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#
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#
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 | Visual Studio | Other
Developer technologies | C#
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#
MongoDB.Driver.MongoIncompatibleDriverException:
MongoDB.Driver.MongoIncompatibleDriverException using C# mongodb driver
Developer technologies | C#
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#
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#
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#
Run MAUI app
Hi, After having well built one MAUI app, how to run/test it?
Developer technologies | C#
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#
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#
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#
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#
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#
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#
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#
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#
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#
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#
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…