Microsoft Q&A

.NET

14,046 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

3,461 questions with .NET-related tags

Sort by: Updated
0 answers

Problem with emulator(s)?

I have the following XAML in a MAUI app. <CollectionView Grid.Row="2" ItemsSource="{Binding selectedAward.winnersList}" > <CollectionView.ItemTemplate> <DataTemplate> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,089 questions
asked 2023-03-28T16:13:36.6366667+00:00
Lloyd Sheen 936 Reputation points
0 answers

How to navigate to another page when not on UI thread?

I'm building a mobile and desktop app with Maui + MauiReactor that communicates with my server over Websockets. I have this working fine. My problem is that if I try to Navigate to another page when I receive a Websocket reply: await…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,089 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,583 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
889 questions
asked 2023-03-28T16:04:58.8866667+00:00
Paul Hollyer 0 Reputation points
commented 2023-03-28T16:08:41.3833333+00:00
Alessandro Caliaro 3,436 Reputation points
0 answers

C# parsing program

I have created a C# program using 2019 visual studio enterprise. It takes a GEDCOM file and parses it to create a work file. I have since changed to 2022 visual studio community. But when I try to duplicate the code in community it creates a WPF project…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
889 questions
asked 2023-03-28T16:02:08.43+00:00
C# learner 0 Reputation points
0 answers

The MAUI GraphicsViewDemos image draw causes iOS app to abort

The GraphicsViewDemos app found at https://github.com/dotnet/maui-samples/tree/main/6.0/UserInterface/Views/GraphicsViewDemos aborts on iOS when the "Image paint" option is selected.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,089 questions
asked 2023-03-28T15:34:32.3233333+00:00
Randy Clegg 0 Reputation points
commented 2023-03-28T15:36:26.17+00:00
Randy Clegg 0 Reputation points
0 answers

Detect if user has muted/unmuted microphone in messengers (Skype, Discord, Telegram) with C# on application level?

I am writing a program to collect a Windows user actions data: clicks, outlook meetings, microphone and webcamera usage, etc. Something close to key logger, but with additions. I have a task to collect data if user has muted or unmuted his microphone or…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,583 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
6,700 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,326 questions
asked 2023-03-28T15:31:12.22+00:00
BOBOLLI 0 Reputation points
0 answers

How to do NTLMv2 auth when consuming web service in Xamarin.Android client?

We have a legacy app built with Xamarin.Android that uses HttpWebRequest to consume a web service. We're authenticating with NTLM (not v2) by setting the HttpWebRequest.Credentials property to an appropriate NetworkCredential object. The customer has…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,927 questions
asked 2023-03-28T14:49:27.0533333+00:00
Douglas G. Henke 0 Reputation points
0 answers

Viewing Embed Link (Thumbnail) that is the content of a property

I would like to be able to access an embed link that is the string content of a property in the same manner that the code below allows me to access a web link that is the string content of a property. <a href=@Html.DisplayFor(modelItem =>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,838 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
737 questions
asked 2023-03-27T20:06:49.5466667+00:00
Dean Everhart 906 Reputation points
commented 2023-03-28T13:46:37.27+00:00
Dean Everhart 906 Reputation points
0 answers

Custom configuration provider with sqlserver

Hi everyone, I need to create my own customized provider configuration with a sqlserver database in order to offer my client (who manages his website) to change some settings. My idea is to use the settings in the json file for the "system"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,838 questions
asked 2023-03-27T11:11:05.1166667+00:00
Salvatore Sanollo 0 Reputation points
commented 2023-03-28T13:43:15.77+00:00
Salvatore Sanollo 0 Reputation points
0 answers

How can I figure out what nuget package is throwing an error about Xamarin.Android.Support.v4 no longer supported?

I have an old Xamarin.Forms app for iOS and Android that I am trying to upgrade to work on the latest Android OS. When I build I get these errors: …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,927 questions
asked 2023-03-27T21:22:32.47+00:00
Tony Pitman 21 Reputation points
commented 2023-03-28T13:14:18.6766667+00:00
Tony Pitman 21 Reputation points
0 answers

How to update appSetting for a Background Service (Service Worker) (.NET 6)

Hello, I came to ask you for your help, please. I have created a Worker Service which periodically deletes files in a folder. My path to the folder is stored in an App.config file, I read the value via ConfigurationManager. It works, but I want to be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,838 questions
asked 2023-03-28T12:34:00.33+00:00
tma9 1 Reputation point
edited the question 2023-03-28T12:45:05.1133333+00:00
tma9 1 Reputation point
0 answers

asp.net תקלה

היי הורדתי visual studio 2022 אני מחפשת ליצור פרויקט של asp.net enpty web site ואני לא מוצאת זה נותן לי רק asp.net core מה לעשות? תודה

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,838 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,326 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,797 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
464 questions
asked 2023-03-28T11:46:25.9633333+00:00
noga hominer 0 Reputation points
0 answers

Programatically force winform app to open at 125 scaling using Dotnet core 6

We have built a DPI Unaware Winform app using DotNet core 6 which works fine on windows operating system with 100% and 125% scaling options on all devices whether it's laptop or desktop . Example screenshot for the 125 scaling is given below The moment…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,583 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
889 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,401 questions
asked 2023-03-27T12:17:02.6366667+00:00
Sunny Sharma 1 Reputation point
commented 2023-03-28T11:11:30.0633333+00:00
David Lowndes 4,541 Reputation points MVP
0 answers

How can word file displayed in a div container be printed in a pdf format?

I am trying to have a single page that will can be used to display either a word (.doc/.docx) or a PDF file. Instead of having two pages, each for word and pdf files. It’s a success but printing either of these formats in PDF is where I have…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
464 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,583 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
889 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,326 questions
asked 2023-03-28T10:44:36.1866667+00:00
Donald Symmons 1,266 Reputation points
edited the question 2023-03-28T11:06:02.42+00:00
Donald Symmons 1,266 Reputation points
0 answers

How to read the large data from serial port in visual c++/cli

i am trying to read the large file from serial port expected output 112 212 311 411 but i get new line between some data like output 112 212 /n 311 /n 411 I got some extra new line .how to solve it private: System::Void…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,838 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
2,756 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
5,953 questions
asked 2023-03-28T07:27:53.0066667+00:00
denesh neupane 121 Reputation points
commented 2023-03-28T10:32:39.2466667+00:00
Viorel 88,656 Reputation points
0 answers

How to hide net maui tabbar correctly?

How to hide net maui bottom tabs correctly? To see it, create maui project, add two pages, name them FirstPage, SecondPage. add shell tabbar, for example two tabs: 1st tab, 2nd tab, set datatemplate for them FirstPage. Then create in FirstTab Button to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,089 questions
asked 2023-03-28T10:26:43.95+00:00
0 answers

In MAUI, Top status bar is not display properly if I change it from Portrait to Landscape mode

In above image, on top left you can see the status bar background color is not updating in landscape mode, in portrait mode it's working file but as soon as I rotate into landscape mode it showing me like this. Not sure why it is happening only for ios.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,089 questions
asked 2023-03-27T15:44:05.6266667+00:00
Mane, PRASHANT GORAKH 31 Reputation points
commented 2023-03-28T10:16:32.7033333+00:00
Mane, PRASHANT GORAKH 31 Reputation points
0 answers

Mail functionality breaks in Azure Web Apps

Hello! I have recently started working on an ASP.NET Core application that is to be deployed as an Azure Web App. As part of the App, we need some sort of mailing functionality in order to notify customers upon purchases. However, every part of…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,838 questions
Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,572 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,583 questions
asked 2023-03-28T07:55:33.6666667+00:00
Jareen 0 Reputation points
edited the question 2023-03-28T08:41:02.7933333+00:00
Lan Huang-MSFT 11,821 Reputation points Microsoft Vendor
0 answers

Circular Progressbar through SKIA Sharp is not working in MAUI

I have created a custom control for circular progress bar using skia sharp in xamarin forms and it is not working in MAUI after migration. I have shared the code below, please check <skia:SKCanvasView x:Name="canvas" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,089 questions
asked 2023-03-27T11:27:08.9133333+00:00
Satya 40 Reputation points
commented 2023-03-28T07:57:26.0966667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,441 Reputation points Microsoft Vendor
0 answers

How to Open Files on Xamarin Android Using FilePicker

using Xamarin.Essentials; (at the top of the file) async Task<FileResult> PickAndShow(PickOptions options) { try { var result = await FilePicker.PickAsync(options); if (result != null) { string Text…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,927 questions
asked 2023-03-21T13:53:33.71+00:00
Ronald GANS 136 Reputation points
commented 2023-03-28T07:50:41.9633333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 13,736 Reputation points Microsoft Vendor
0 answers

How to improve the MAUI Button responsiveness in a "this.Dispatcher.Dispatch" thread?

I have a MAUI application with two "this.Dispatcher.Dispatch"ed NavigationPages launched from the App class, both of which have two ImageButtons both of which have extremely poor responsiveness as compared to the buttons of other…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,089 questions
asked 2023-03-28T01:33:23.4733333+00:00
Marc George 66 Reputation points
commented 2023-03-28T07:41:31.45+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 44,086 Reputation points Microsoft Vendor