Microsoft Q&A

.NET

20,608 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,608 questions with .NET-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

String and integer needing to be added to exisiting categories.

Hi, I have a grocery list app that I have a browse for groceries on a catalogue and that catalogue adds it to a category with number of database functions and models. The categories are on the listViewModel page. What I am struggling with is being able…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,148 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,963 questions
asked 2023-09-24T10:24:24.9166667+00:00
Matthew Zoljan 80 Reputation points
accepted 2023-09-24T12:48:12.82+00:00
Matthew Zoljan 80 Reputation points
2 answers One of the answers was accepted by the question author.

How to set VisualStates in MAUI CollectionView in C# (NOT Xaml)

Hi, In reference to Microsoft MAUI Documentation, it is possible to change visual state of selected CollectionView items in Xaml:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,843 questions
asked 2023-02-19T11:19:00.91+00:00
Alex Kay 25 Reputation points
edited an answer 2023-09-24T12:28:41.2966667+00:00
axa88 0 Reputation points
0 answers

Using TargetName reference in VisualStates in MAUI in C# (NOT Xaml)

This question is in some way an extension to another question: https://learn.microsoft.com/en-us/answers/questions/1182099/how-to-set-visualstates-in-maui-collectionview-in which Alec Liu (Yonglun Liu) provided an excellent answer for. In that…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,843 questions
asked 2023-02-23T22:56:14.66+00:00
Alex Kay 25 Reputation points
commented 2023-09-24T12:18:41.53+00:00
axa88 0 Reputation points
1 answer

Recommendation for Blazor Server use for an application

I would like to know if Blazor Server would be recommended as the way to go for an application that does the following Needs to run on any device able to run .NET apps (i.e. Raspberry PI etc.) Needs to access IOT devices (JSON strings received or sent…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,550 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,103 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
10,922 questions
asked 2023-09-23T22:07:05.4433333+00:00
Robert Salasidis 111 Reputation points
edited a comment 2023-09-24T11:46:33.02+00:00
AgaveJoe 520 Reputation points
0 answers

Pending Navigations still processing when navigating from page constructor or OnNavigated method in MAUI

I am using MAUI with .NET 7 and I want to implement login flow. Basic case I have is to have only 2 pages: Dashboard and Login. Third page is Loading page that will have no layout, just serves as a routing page. Flow is: Loading page is the first one…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,843 questions
asked 2023-09-24T09:50:19.78+00:00
Milos Ciprijanovic 0 Reputation points
2 answers One of the answers was accepted by the question author.

Strategies for Handling Large File Uploads in a .NET Web API?

I am designing a .NET Web API that needs to handle large file uploads. I am exploring different strategies to efficiently process and store large files while ensuring the application remains responsive. Can anyone provide insights, recommendations, or…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 questions
asked 2023-09-23T14:37:03.9866667+00:00
William Goodfellow 0 Reputation points
accepted 2023-09-24T09:24:44.0333333+00:00
William Goodfellow 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to Optimize Database Queries in a .NET Entity Framework Application?

I am developing a .NET application using Entity Framework for database interactions. I have noticed some performance bottlenecks related to database queries and am seeking advice on optimizing them. Can anyone share tips, best practices, or resources on…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 questions
asked 2023-09-23T14:36:34.5433333+00:00
William Goodfellow 0 Reputation points
accepted 2023-09-24T09:24:23.3433333+00:00
William Goodfellow 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to Implement Efficient Logging in a .NET Core Application?

I am developing a .NET Core application and am exploring different approaches to implementing efficient and scalable logging mechanisms. I am considering using libraries like Serilog and NLog but am open to other recommendations. Can anyone provide…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 questions
asked 2023-09-23T14:35:43.63+00:00
William Goodfellow 0 Reputation points
accepted 2023-09-24T09:23:13.1366667+00:00
William Goodfellow 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to Implement Caching Strategies in a .NET Core Web API?

I am developing a .NET Core Web API and am looking to optimize its performance by implementing effective caching strategies. I am considering using in-memory caching and distributed caching but am open to other recommendations. Can anyone provide…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 questions
asked 2023-09-23T14:32:53.88+00:00
William Goodfellow 0 Reputation points
accepted 2023-09-24T09:17:27.99+00:00
William Goodfellow 0 Reputation points
3 answers

ASP.NET CORE WEBAPI Custom Filter <> Bearer Token

Seeing this article [http://dotnet-concept.com/Tutorials/2020/1/5800875/Web-API-Tutorial-Csharp-Part-3-Implementing-basic-Bearer-authentication-in-Web-API-application] I created a custom filter CustomAuthenticationAttribute , I am trying use Custom…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,550 questions
asked 2023-09-23T04:54:58.3533333+00:00
Dotnet Engineer 240 Reputation points
commented 2023-09-24T09:06:05.77+00:00
Dotnet Engineer 240 Reputation points
0 answers

How to Reduce Splash screen time in .net maui?

I am working on .net maui apps and I want to set fully custom splash screen using page like doing in modern apps (due to android 12 or later limitations). So, I make one page that shows immediately after splash screen that is actually my splash screen.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,148 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,843 questions
asked 2023-09-24T08:51:12.0666667+00:00
Haider Ali Faizi 20 Reputation points
2 answers

Runtime Error 424 when the module was running fine before.

Sub Report() Worksheets("Report").Activate Cells(41, 14).Select Dim baris, kira As Integer Dim Nama, ProperPath, Namafail As String baris = 41 kira = Cells(40, 17).Value Do While baris < kira + 41 Nama = Cells(baris,…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
905 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,042 questions
asked 2023-09-23T03:35:19.63+00:00
Chee Fong Cheng 0 Reputation points
answered 2023-09-24T05:57:45.9166667+00:00
Chee Fong Cheng 0 Reputation points
3 answers One of the answers was accepted by the question author.

calling REST API

I am trying to call a REST API on my local host for testing purposes. This is what I have in my controller: public class SMSController : ControllerBase { private readonly IWebHostEnvironment _webHostEnvironment; public readonly…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,550 questions
asked 2023-09-23T05:03:04.4733333+00:00
Anjali Agarwal 1,021 Reputation points
accepted 2023-09-24T04:18:30.0466667+00:00
Anjali Agarwal 1,021 Reputation points
0 answers

ComboBox Appears Black in Windows 10 Using .NET Framework 4.8

Hello, I'm currently facing an issue with a ComboBox in a Windows application I developed using .NET Framework 4.8 on Windows 10. The ComboBox is appearing black, making it difficult to see which item is selected. However, when I click on it, it…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,628 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
8,832 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 questions
asked 2023-09-22T06:37:19.17+00:00
Woonsung Baek - 백운성 0 Reputation points
commented 2023-09-24T01:59:57.2833333+00:00
S.Sengupta 10,696 Reputation points MVP
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,079 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,103 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-24T00:07:28.6+00:00
Olive Sa 0 Reputation points
0 answers

system.drawing.icon from System.Windows.Shapes.Path

<Path x:Key="Icon.Path.ExpandAll" Style="{StaticResource Style.Path.Icon.Base}" StrokeThickness="0.2" Data="M19,19V5H5V19H19M19,3A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5C3,3.89 3.9,3…

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,475 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,963 questions
asked 2023-09-23T23:38:51.9566667+00:00
essamce 621 Reputation points
1 answer

issue in opacity of the parent form and panel

Hi , my other problem is there is a scenario in which i have a form named child which is opened inside a panel of a form named father . what i am trying is when i press F2 on my keyboard a new form opens asking for current date . at this moment i want…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,628 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,963 questions
asked 2023-09-23T11:43:45.1433333+00:00
Shaifali jain 200 Reputation points
edited an answer 2023-09-23T21:12:01.87+00:00
KOZ6.0 310 Reputation points
0 answers

Is there some way to get VS 2022 to stop closing my Maui app with no reason/no error in VS?

The last few days I am getting VS closing my app in the Android emulator for no apparent reason. If I plug in my phone and do testing from there I don't get the problem. I have gone thru the horrible process of trying to re-init the emulator but it…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,773 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,843 questions
asked 2023-09-23T20:36:49.8033333+00:00
Lloyd Sheen 1,191 Reputation points
commented 2023-09-23T20:58:10.5233333+00:00
Lloyd Sheen 1,191 Reputation points
2 answers

.net maui fully custom splash screen

I am working on . net maui splash screen but there are android 12 and later issues. So I can not set splash screen like make image like previous android versions. But I want and set it image that has contents on all screen. I have seen many splash…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,148 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,843 questions
asked 2023-09-22T18:15:18.9866667+00:00
Haider Ali Faizi 20 Reputation points
answered 2023-09-23T20:14:03.4266667+00:00
Haider Ali Faizi 20 Reputation points
1 answer One of the answers was accepted by the question author.

InvalidProgramException in Windows Forms application

Hello, I'm a developer of the desktop .NET Windows Forms application. I faced a strange exception thrown by .NET runtime on a single production PC. On a component initialization phase .NET throws the following: System.InvalidProgramException: Common…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,628 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,042 questions
asked 2023-08-29T18:10:10.3533333+00:00
Vadym Lenda 20 Reputation points
accepted 2023-09-23T18:39:27.5233333+00:00
Vadym Lenda 20 Reputation points