Microsoft Q&A

.NET

20,562 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,562 questions with .NET-related tags

Sort by: Updated
1 answer

.NET Maui: how do you process low memory notifications from iOS

iOS sends warnings to an app when it approaches its memory limit. How do you process those warnings in a .NET Maui app? (I see that for Android, .NET Maui supports delegates OnApplicationLowMemory and OnApplicationTrimMemory, but I do not see any such…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,836 questions
asked 2023-09-06T02:48:46.1+00:00
Kurt K 96 Reputation points
commented 2023-09-22T16:58:38.1833333+00:00
Kurt K 96 Reputation points
4 answers

When Microsoft will release Entity Framework 6.x (.NET Full framework) having Microsoft.Data.SQLClient support?

We are migrating our .NET Full framework 4.8 based Data Access Layer projects from System.Data.SQLClient to Micosoft.Data.SQLClient. While it is very straightforward for AD0.NET based projects, we do have some projects where we are also using EF 6.0. As…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
258 questions
asked 2023-06-05T07:36:18.9+00:00
Buch, Dishant 5 Reputation points
commented 2023-09-22T16:56:44.3966667+00:00
Bruce (SqlWork.com) 43,906 Reputation points
0 answers

How to run AI model in a Blazor frontend

Hi, What is the best way to run a AI model (programmed in Python) that has been deployed in Azure as a managed endpoint in the Blazor frontend of each user of a Blazor website? Is there a way to run the AI model in the Blazor frontend in a simple and…

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,075 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,921 questions
Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
93 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,102 questions
.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
131 questions
asked 2023-09-21T17:27:39.8233333+00:00
Héðinn Steingrímsson 0 Reputation points
commented 2023-09-22T16:47:56.8333333+00:00
Bruce (SqlWork.com) 43,906 Reputation points
3 answers One of the answers was accepted by the question author.

Special characters in a textbox

Hi , i have crated a textbox which shows current date . i want that user cannot enter special characters inside that except - or / . can you please suggest how to do it .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,625 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.
8,953 questions
asked 2023-09-22T09:07:13.48+00:00
Shaifali jain 80 Reputation points
answered 2023-09-22T16:30:02.72+00:00
KOZ6.0 235 Reputation points
0 answers

In Blazor MAUI with a shared UI library, navigation doesn't work

In a shared blazor library, login page and sample page are defined. Here is the Minimum Reproducible Example: https://github.com/johnmangam/ShellNavigation/ Login.razor @page "/login" @inject NavigationManager navigationManager <button…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,836 questions
asked 2023-09-22T16:27:50.62+00:00
John Mangam 0 Reputation points
2 answers

Visual Studio for Mac support .NET 7.0 Bindings to Xcode 15?

Hello, we are in the middle of porting our Xamarin Forms application to .NET MAUI and need to know if Visual Studio for Mac will support .NET 7 binding for Xcode 15, and if so, do you have information about a release date?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,769 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,836 questions
asked 2023-09-20T18:19:55.8+00:00
Miguel Jimenez 0 Reputation points
commented 2023-09-22T16:08:26.3633333+00:00
Bruce (SqlWork.com) 43,906 Reputation points
1 answer One of the answers was accepted by the question author.

SSL connection could not be established with .Net HttpClient

Hi, Attempting to make api calls to Yelp Fusion via .Net 3.1 api but receiving the following error: Error Message: The SSL connection could not be established, see inner exception. Source: System.Net.Http Trace: at…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,545 questions
asked 2023-09-22T00:20:37.9133333+00:00
wrappingduke 21 Reputation points
accepted 2023-09-22T16:04:17.5733333+00:00
wrappingduke 21 Reputation points
1 answer One of the answers was accepted by the question author.

Pdf file creation

Hello Friends. I am trying to create a Pdf by using a service in .Net Maui. At the code below it throws a System.NullReferenceException. Can someone tell me what might be going on. Thanks…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,836 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.
8,953 questions
asked 2023-09-20T00:44:08.1933333+00:00
Ronald Rex 1,271 Reputation points
accepted 2023-09-22T15:52:32.14+00:00
Ronald Rex 1,271 Reputation points
1 answer

Deploy an asp.net core API on a Linux server with nginx

hi I followed your tutorial on deploying an asp.net core API and I followed the same logic to deploy my API on an ubuntu server with Nginx, it happens that locally I access the API from the development environment, and even from another machine on the…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
583 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,545 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.
8,953 questions
Microsoft Intune Linux
Microsoft Intune Linux
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Linux: A family of open-source Unix-like operating systems.
23 questions
asked 2023-09-21T11:42:05.2133333+00:00
Marnelle M'BENGUET 0 Reputation points
answered 2023-09-22T15:38:28.5933333+00:00
Bruce (SqlWork.com) 43,906 Reputation points
1 answer

ASP.Net Core Identity : Credential Obfuscation

I am new to ASP.Net Core Identity and new to Encryption. I followed the article @ https://learn.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-6.0&tabs=visual-studio I created a new Web App using ASP.NET Core Web App…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,545 questions
asked 2023-09-22T01:53:45.9833333+00:00
Dan Lee 0 Reputation points
answered 2023-09-22T15:23:16.12+00:00
Bruce (SqlWork.com) 43,906 Reputation points
2 answers One of the answers was accepted by the question author.

Populate html table from api

In the Visits controller I want to populate the index page from api and not from entity model https://visitsapi.azurewebsites.net/api/Visits I want to populate the html table with Visit Date and Notes patid is being passed from earlier…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,545 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
981 questions
asked 2023-09-21T12:20:30.4333333+00:00
Dotnet Engineer 240 Reputation points
accepted 2023-09-22T15:07:42.04+00:00
Dotnet Engineer 240 Reputation points
5 answers One of the answers was accepted by the question author.

handling enter press on a form

Hi , Can someone pls suggest how to detect if the user presses enter key on his keyboard so that we can capture that event . i don't have and don't want a button(or a hidden button) for that purpose (as the size of the form is too small) .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,625 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.
8,953 questions
asked 2023-09-22T10:46:45.1433333+00:00
Shaifali jain 80 Reputation points
accepted 2023-09-22T14:25:31.84+00:00
Shaifali jain 80 Reputation points
0 answers

how to use ForcedSampleCount in DX11.1.

Dear Microsoft Official, I hope this email finds you well. I am writing to seek your guidance regarding the usage of ForcedSampleCount in DX11.1. I have been working on a project that involves DirectX 11.1 and I am currently facing some challenges with…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
3,029 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,018 questions
asked 2023-09-22T01:48:29.0566667+00:00
DAVIDE VENCENT 0 Reputation points
edited the question 2023-09-22T13:32:00.2633333+00:00
msft-an 260 Reputation points
0 answers

How can I get the Material You design in my Maui app on Android?

When running my app on android, the controls are of Material design 2, while the latest is 3 - Material You. Can I in some way update the android part of the project to support the latest design?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,836 questions
asked 2023-09-22T12:15:07.9133333+00:00
Noam 0 Reputation points
0 answers

How to change the default layout appearing when tap to write on entry or search bar in xamarin forms app

When I press to write text on the xamarin forms searchbar a page shown with keyboard and editor and button that fill the full width of screen but I nerd the basic page to show with keyboard on the button like chat or any other search engine I attach the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,145 questions
asked 2023-09-15T09:58:53.38+00:00
adel romany 0 Reputation points
commented 2023-09-22T11:38:20.1133333+00:00
adel romany 0 Reputation points
1 answer

Return values from a form

Hi , Which is the best technique to return values from a form and use that in another form . like using a variable or some other way . for example , i have a form with a textbox which returns a value . i want to use that value in the textbox of other…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,625 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.
8,953 questions
asked 2023-09-22T09:26:05.5166667+00:00
Shaifali jain 80 Reputation points
answered 2023-09-22T11:02:25.9133333+00:00
Johan Smarius 390 Reputation points
1 answer One of the answers was accepted by the question author.

How to display ContextMenu on certain TreeViewItem and highlight the selected TreeViewItem in WPF following MVVM

Following MVVM, I have developed a TreeView and now I want mouse right click to show ContextMenu on certain TreeViewItem. As you can see in the screeshot, I only want the ContextMenu to be displayed when mouse right clicks on the first level…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,474 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.
8,953 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
687 questions
asked 2023-09-20T10:36:51.4633333+00:00
BabyHai 41 Reputation points
edited a comment 2023-09-22T10:51:17.3833333+00:00
BabyHai 41 Reputation points
2 answers One of the answers was accepted by the question author.

minimum rows to display in datagridview

hello , is there a way by which i can set that there must be minimum number of rows is available to display in datagridview regardless of the data it has or not .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,625 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.
8,953 questions
asked 2023-09-20T15:09:51.38+00:00
Shaifali jain 80 Reputation points
accepted 2023-09-22T10:36:39.5833333+00:00
Shaifali jain 80 Reputation points
1 answer

WPF custom animation thread

Hello, I have a small simple WPF application (I am learing by doing). I made some custom drawing on a Canvas declared in XAML, by using code in the corresponding C# file. Now I want to access the canvas from another thread to be able to apply geometric…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,018 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,474 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
5,945 questions
asked 2023-09-16T17:21:29.6333333+00:00
Daniel Santos 0 Reputation points
commented 2023-09-22T09:56:41.3666667+00:00
Hui Liu-MSFT 21,376 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Gap between Text and underline of label control

Hi , is it possible to increase the gap between the text and underline in a label control . for example , below is a label with underline in vs and this is what i have to

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,625 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.
8,953 questions
asked 2023-09-22T08:49:58.82+00:00
Shaifali jain 80 Reputation points
accepted 2023-09-22T09:55:59.7833333+00:00
Shaifali jain 80 Reputation points