11,697 questions with Developer technologies | C# tags

Sort by: Updated
1 answer

How to get SelectedText from other applications?

I'm looking for a way to get SelectedText from ForegroundWindow on WPF .NET. What I want to get is the selected text within another application. I'm trying to search, but I can't find the technique I'm looking for, only how to get SelectedText in…

Developer technologies | Windows Presentation Foundation
Developer technologies | C#
Developer technologies | 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,697 questions
asked 2022-05-08T15:39:28.373+00:00
優貴 森 6 Reputation points
commented 2025-12-10T00:57:52.1733333+00:00
段炼 0 Reputation points
3 answers

How to use multiple DLLs with the same name

Years ago I built web apps on my local box, and copied the ASP.NET files over to our web server. This included creating a bin directory, and placing the needed DLLs there. Everything runs great. Now, years later, I'd like to add a new app, and use much…

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-09T01:14:42.65+00:00
Corey Fleig 160 Reputation points
commented 2025-12-10T00:55:03.1866667+00:00
Corey Fleig 160 Reputation points
3 answers One of the answers was accepted by the question author.

How to Use 32-bit COM DLL in a 64-bit WPF .NET Core 6 Application?

I have a Class Library project in .NET Core named "LIBTOOBA" with the following setup: Project File (LIBTOOBA.csproj): <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> …

Developer technologies | Visual Studio | Debugging
Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | .NET | Other
Developer technologies | .NET | Other
Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
4,149 questions
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
5,580 questions
Developer technologies | C#
Developer technologies | 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,697 questions
asked 2024-08-06T02:08:01.25+00:00
Mojtaba_Hakim 321 Reputation points
commented 2025-12-09T16:29:31.9533333+00:00
RLWA32 51,366 Reputation points
2 answers One of the answers was accepted by the question author.

Assigning C# modues to students

I am a high school game dev teacher. I would like to assign C# modules as homework. Is there a teacher version or an online classroom through Microsoft for the C# learning program? Thank you! Ms. M

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-07T18:00:37.0933333+00:00
Murphy, Suzette S 1 20 Reputation points
commented 2025-12-09T15:23:46.5533333+00:00
Murphy, Suzette S 1 20 Reputation points
1 answer

MongoDB.Driver.MongoIncompatibleDriverException:

MongoDB.Driver.MongoIncompatibleDriverException using C# mongodb driver

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-02T20:59:38.6233333+00:00
Nagireddi, Vijaya (US - Texas) 0 Reputation points
commented 2025-12-09T15:22:44.5133333+00:00
Nagireddi, Vijaya (US - Texas) 0 Reputation points
2 answers One of the answers was accepted by the question author.

List all the possibilities of converting DWG (AutoCAD) to different formats

Hi, 1.Can you please list all the possibilities of converting DWG (AutoCAD) to different formats ? And what is the aim of each target format? Thanks in advance,

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-05T05:29:18.7566667+00:00
Dani_S 4,816 Reputation points
commented 2025-12-09T12:35:29.38+00:00
Gade Harika (INFOSYS LIMITED) 2,095 Reputation points Microsoft External Staff
5 answers

ConversionService - convert from GIS file to other format include itself using Aspose.com API

Hi Bruce, 1.I used this conversion orchestrator to convert from one GIS format to another format include itself. 2.I have two cases with gisInputFilePath: an archive or single file. public static ConversionResult Run(string gisInputFilePath, string…

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-11-21T06:39:29.8466667+00:00
Dani_S 4,816 Reputation points
commented 2025-12-09T11:32:53.3933333+00:00
Dani_S 4,816 Reputation points
1 answer

Connect .Net (4.6.2) to Dataverse using the Dataverse plugin

Hi Microsoft Tech Community, We have a Dataverse environment in our tenant, and I have its URL. I'm building a .NET application and need to connect it to Dataverse for data access. From the Learn docs, ChatGPT, and Copilot, it seems I need to use an App…

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-09T07:21:59.17+00:00
Ajay Mahajan 0 Reputation points
commented 2025-12-09T07:23:49.6833333+00:00
Ajay Mahajan 0 Reputation points
1 answer

Run MAUI app

Hi, After having well built one MAUI app, how to run/test it?

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-09T05:06:29.3266667+00:00
Peter_1985 2,826 Reputation points
commented 2025-12-09T06:12:27.9333333+00:00
Peter_1985 2,826 Reputation points
2 answers

Issue to the line

Hi, I got the exception like Exception/StackTrace - Index and length must refer to a location within the string. how to locate to the place causing the issue.

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-05T03:44:34.95+00:00
Peter_1985 2,826 Reputation points
commented 2025-12-09T05:51:58.2166667+00:00
Susmitha T (INFOSYS LIMITED) 1,640 Reputation points Microsoft External Staff
1 answer

Keep Tabs Setting Not Working in Visual Studio 2026

I recently upgraded to Visual Studio 2026. I have Adapting Formatting turned off. I have my Space/Tab setting to Keep Tabs for the all languages default and for all the individual languages that have this option. Despite this, Visual Studio keeps…

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-05T16:52:18.0633333+00:00
Pierre Plourde 6 Reputation points
commented 2025-12-08T14:06:13.9533333+00:00
Pierre Plourde 6 Reputation points
1 answer

Retry required for GetGattServicesAsync() when connecting to BLE peripheral using LE privacy.

When getting GATT services from a paired peripheral using LE privacy, the first call to GetGattServicesAsync() always times out after 7 seconds with a status of 'Unreachable'. Our current workarounds we've identified are to (1) scan for a device…

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-06-02T18:40:24.9566667+00:00
Garin Marlow 0 Reputation points
commented 2025-12-08T10:37:29.1466667+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 1,200 Reputation points Microsoft External Staff
2 answers

False positive in CA2000

CA2000 (“Dispose objects before leaving scope”) is warning because the ContainerControlledLifetimeManager(2nd line) you construct is not disposed in the method’s scope. In Unity, the container owns lifetime managers and will dispose them when the…

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-05T10:09:08.5866667+00:00
K C, Soniya 21 Reputation points
answered 2025-12-08T06:18:41.1166667+00:00
Adiba Khan 1,440 Reputation points Microsoft External Staff
1 answer

In C# how to get the VMSS instance private IP

In C# how can i get the Private IP address from the network interface of VMSS instance? Resource ID:…

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-02T07:05:59.1266667+00:00
pipi 25 Reputation points
commented 2025-12-08T06:08:11.2666667+00:00
Ankit Yadav 6,425 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Concrete type and Concrete method in C#

What is exactly concrete type and concrete method in C#? Is the same with abstract type? Could you please write an example? Thanks

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2022-10-06T00:09:03.553+00:00
Shervan360 1,681 Reputation points
commented 2025-12-06T16:23:08.3566667+00:00
abid iqbal 0 Reputation points
2 answers

How to automatically redirect to next page after progress bar finish loading

How can I create a progress bar that will be loading, and after it finishes loading, it will automatically redirect to next page after 10 seconds? Here is what I tried, although what I've been able to get is a button such that when the button is clicked,…

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-03T18:17:55.22+00:00
Donald Symmons 3,066 Reputation points
answered 2025-12-05T16:57:38.9166667+00:00
Bruce (SqlWork.com) 81,981 Reputation points Volunteer Moderator
2 answers

How do I get the bins from a purchase order line item from the Business Central APIs?

I have a C# app that calls Business Central APIs. I can use https://api.businesscentral.dynamics.com/v2.0/{{tenantId}}/Sandbox/api/v2.0/companies({{company_id}})/purchaseOrders({{PO}})/purchaseOrderLines?$expand=location to get more data about the…

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-04T21:24:59.9433333+00:00
Trevor Leon 25 Reputation points
edited the question 2025-12-05T14:59:46.37+00:00
Trevor Leon 25 Reputation points
4 answers

Issue with Teams Bot: Incoming Call Event Not Reaching Bot (App-Hosted Media Sample)

I am developing a Microsoft Teams bot that should be able to join a call initiated from a Teams user. The goal is that when a user places a call to the bot inside Teams, the bot should join the call and handle the audio stream as described in Microsoft’s…

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-12-01T21:23:48.1766667+00:00
Chandan 5 Reputation points
answered 2025-12-05T12:40:07.09+00:00
Gade Harika (INFOSYS LIMITED) 2,095 Reputation points Microsoft External Staff
2 answers

How can i improve this script to make it better?

Add-Type -AssemblyName System.Windows.Forms $dictDialog = New-Object System.Windows.Forms.OpenFileDialog $dictDialog.Title = "Select dictionary.txt" $dictDialog.Filter = "All files (.)|." $null =…

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-11-07T05:46:07.9166667+00:00
DEREK CHUA 0 Reputation points
answered 2025-12-05T09:52:10+00:00
Adiba Khan 1,440 Reputation points Microsoft External Staff
1 answer

Conditional Access Not Triggering in Azure AD B2C

Hi , I’ve successfully implemented all my main Azure AD B2C flows for user migration— including custom password reset, MFA with authenticator app (via TOTP), user migration with just-in-time logic, and sign-in / sign-up orchestration. Most core flows are…

Developer technologies | C#
Developer technologies | 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,697 questions
asked 2025-06-06T02:20:23.8666667+00:00
Ray Garg 10 Reputation points
commented 2025-12-04T06:00:16.4833333+00:00
Adiba Khan 1,440 Reputation points Microsoft External Staff