26,304 questions with .NET-related tags

Sort by: Updated
1 answer

Capturing the Pixel Color at the Cursor Position Doesn't Return Correct Color on Different DPI Monitors with Multiple Monitor Setup

Hello, In the provided sample, we are trying to capture the pixel color at the cursor position. This works correctly in a single monitor setup and in multiple monitors with the same DPI settings. However, when used in a multi-monitor setup with different…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 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,795 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 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,795 questions
asked 2024-12-02T07:16:57.55+00:00
Karthick Arjunan 0 Reputation points
answered 2024-12-02T11:54:09.1266667+00:00
Viorel 118.4K Reputation points
1 answer

Capturing the Pixel Color at the Cursor Position Doesn't Return Correct Color on Different DPI Monitors with Multiple Monitor Setup

Hello, In the provided sample, we are trying to capture the pixel color at the cursor position. This works correctly in a single monitor setup and in multiple monitors with the same DPI settings. However, when used in a multi-monitor setup with different…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 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,795 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 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,795 questions
asked 2024-12-02T07:16:57.55+00:00
Karthick Arjunan 0 Reputation points
answered 2024-12-02T11:54:09.1266667+00:00
Viorel 118.4K Reputation points
1 answer

Textboxes distorted presumably because of Bootstrap issues

<h3>ParNonParallel</h3> @inject NavigationManager Navigation @page "/AnglesTriangles/ParNonParallel" <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,…

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,610 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
asked 2024-12-01T16:00:38.65+00:00
Kalyan A 325 Reputation points
answered 2024-12-02T11:50:57.3033333+00:00
Kalyan A 325 Reputation points
0 answers

Multiple ASP.NET Core Web API instances runs only once

I have an ASP.NET Core 8.0 Web API hosted on two IIS applications (app-1 and app-2) under the Default Web Site on a Windows 11. Both IIS applications point to the same physical path (inetpub\wwwroot\myapp) and each application has its own dedicated…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,663 questions
asked 2024-12-02T08:05:25.4233333+00:00
Adriano Iannotta 0 Reputation points
commented 2024-12-02T11:46:25.9333333+00:00
Brando Zhang-MSFT 3,786 Reputation points Microsoft Vendor
0 answers

Issue Retrieving Campaign ID (cid) in Microsoft Store app

I am encountering an issue with retrieving the CampaignId (cid) parameter programmatically in an application installed from a Microsoft Store following Create a custom app promotion campaign guide. To retrieve the CampaignId, I am using code provided in…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 questions
Universal Windows Platform (UWP)
asked 2024-11-22T09:39:02.9733333+00:00
Joel 0 Reputation points
commented 2024-12-02T11:45:24.8966667+00:00
Joel 0 Reputation points
0 answers

Execute command rom another view Model

I know the mvvm pattern is equal to no code behind, but sometimes is impossible to avoid code behind, especially, when you need access to a UI component in your vm My app has several pages ChargeStationPage TurbinesCollectionPage NewPage …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
asked 2024-12-01T19:22:27.1033333+00:00
Eduardo Gomez Romero 1,015 Reputation points
commented 2024-12-02T11:32:26.3533333+00:00
Eduardo Gomez Romero 1,015 Reputation points
2 answers

"The NPM script 'start' exited without indicating that the create-react-app server was listening for requests" In .Net React Application

When I try to run my project I always get this error: I've tried everything I've seen online, and it still fails. I've executed "npm install" and a lot of npm commands I've seen in similar questions online. I've updated npm, node.js…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,663 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.
11,091 questions
asked 2022-03-09T16:10:47.987+00:00
Manuel Rom 1 Reputation point
commented 2024-12-02T11:23:29.8866667+00:00
Raghava Rohith 0 Reputation points
1 answer

Issue with WKWebView in iOS CustomHandler: View zooms and shifts on text input

Hello, I am using a WKWebView in iOS through a custom control in my .NET MAUI project. The URL loads correctly, but when I tap to enter text in an input field, the view zooms in and shifts slightly to the right. I implemented a custom handler for…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
asked 2024-11-29T10:54:29.64+00:00
nandu kathmandi 6 Reputation points
commented 2024-12-02T11:15:06.9166667+00:00
nandu kathmandi 6 Reputation points
0 answers

No Internet page problems

I have an interface public interface IConnectivityService { Task InitializeAsync(); } and a implementation class ConnectivityService(IConnectivity connectivity, IAppService appService): IConnectivityService { public async…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
asked 2024-11-29T22:01:58.0466667+00:00
Eduardo Gomez Romero 1,015 Reputation points
commented 2024-12-02T11:10:08.2166667+00:00
Eduardo Gomez Romero 1,015 Reputation points
1 answer

Find Mac address

Hi, I used this code to find mac address,but if there is virtual adapter there is no mac addtess and function return me null, how is can be fix ? I'm in net 8,using MAUI. /// <summary>   /// Get MAC address   /// </summary>   ///…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
asked 2024-11-28T07:32:51.2+00:00
Dani_S 3,806 Reputation points
edited a comment 2024-12-02T11:03:41.92+00:00
Dani_S 3,806 Reputation points
1 answer

Find Mac address

Hi, I used this code to find mac address,but if there is virtual adapter there is no mac addtess and function return me null, how is can be fix ? I'm in net 8,using MAUI. /// <summary>   /// Get MAC address   /// </summary>   ///…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
asked 2024-11-28T07:32:51.2+00:00
Dani_S 3,806 Reputation points
edited a comment 2024-12-02T11:03:41.92+00:00
Dani_S 3,806 Reputation points
0 answers

problem with pins again

So, in order to decrease waiting times on my app, I decided to create the turbines in the shell and inherit from the shell in my ChrgeStationPage, and now I don't see anything interface public interface ITurbineService { Task…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
asked 2024-11-29T01:03:39.0033333+00:00
Eduardo Gomez Romero 1,015 Reputation points
commented 2024-12-02T10:56:32.1733333+00:00
Eduardo Gomez Romero 1,015 Reputation points
1 answer One of the answers was accepted by the question author.

search bar in shell behavior

So, I need to modify, my behavior on desktop I have the shell, with the Seach bar <Window x:Class="METROWIND.Views.MainWindow" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
asked 2024-11-22T10:58:06.6833333+00:00
Eduardo Gomez Romero 1,015 Reputation points
accepted 2024-12-02T10:55:36.02+00:00
Eduardo Gomez Romero 1,015 Reputation points
2 answers

How can I write to multiple specific cells in Excel with C#, OleDb

How can I write to multiple specific cells in Excel? I am using below query but getting the error. Insert into [Stream data (EB)$ E4:E5:E6:E7:E8:E9:E10:E11:E12] VALUES (…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 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.
11,091 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,047 questions
asked 2023-04-05T05:40:38.39+00:00
Nitin Sharma [NTSA] 0 Reputation points
commented 2024-12-02T10:55:17.73+00:00
Marc Tolkmitt 0 Reputation points
1 answer One of the answers was accepted by the question author.

Disable the scaling on app level/platform level

Hi, The behavior happens with maui controls is expected when changing the scale. The ui of contrl can be cut  if you there is a definitive height set to the border/element. Is there any way to disable the scaling on app level/platform level ? I'm using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
asked 2024-11-28T12:19:46.2433333+00:00
Dani_S 3,806 Reputation points
accepted 2024-12-02T10:47:54.97+00:00
Dani_S 3,806 Reputation points
0 answers

Is there any change how GC works in .Net for Android and .Net for iOS application?

Previously our application is in Xamarin Native and in that GC is called frequently so app works properly without out of memory exception. After migrating to .Net for Android, the app crashes as the memory utilization is continuously increasing and I did…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,177 questions
asked 2024-11-27T06:35:39.79+00:00
Sejal Harsoda 0 Reputation points
commented 2024-12-02T09:41:59.8533333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 33,091 Reputation points Microsoft Vendor
3 answers

Azure app service continuous deployment failed after upgrading project to .NET 9

After upgrading our application to use .NET 9, Azure app service build service is unable to build and deploy our application. We already changed stack settings and continuous deployment settings to .NET 9 A deployment log shows that MSBuild version is…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,663 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,997 questions
asked 2024-11-22T13:38:31.1666667+00:00
Pongpak Santithamkul 10 Reputation points
answered 2024-12-02T08:26:09.5966667+00:00
Pongpak Santithamkul 10 Reputation points
1 answer

How to reference the native Onnxruntime.dll in my app installed from Nuget in my app .Instead of from System32

Requirements:- Hi i have created a .net framework class library. It uses inference session from ML.Onnxruntime nuget package to load a model and run inferencing on it. Now i am using that library in my WPF UI app. I don't want to install…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 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,795 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.
11,091 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 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,795 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.
11,091 questions
asked 2024-11-29T12:30:32.1733333+00:00
Vishal2 Bansal 145 Reputation points
commented 2024-12-02T07:33:16.78+00:00
Hongrui Yu-MSFT 3,015 Reputation points Microsoft Vendor
1 answer

How to reference the native Onnxruntime.dll in my app installed from Nuget in my app .Instead of from System32

Requirements:- Hi i have created a .net framework class library. It uses inference session from ML.Onnxruntime nuget package to load a model and run inferencing on it. Now i am using that library in my WPF UI app. I don't want to install…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 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,795 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.
11,091 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 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,795 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.
11,091 questions
asked 2024-11-29T12:30:32.1733333+00:00
Vishal2 Bansal 145 Reputation points
commented 2024-12-02T07:33:16.78+00:00
Hongrui Yu-MSFT 3,015 Reputation points Microsoft Vendor
1 answer

Error in our ASP.NET Web Host app after updating to the latest version of Visual Studio 2022

Hi there, We have an ASP.NET solution running on our dev machines, which are Windows Server 2022 Datacenter. Previously, the app was working fine. However, after updating Visual Studio to the latest version (Microsoft Visual Studio Enterprise 2022…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,336 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,177 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
348 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,056 questions
asked 2024-12-02T01:40:26.98+00:00
Juan-4116 20 Reputation points
edited an answer 2024-12-02T07:13:10.0566667+00:00
Tianyu Sun-MSFT 31,511 Reputation points Microsoft Vendor