10,094 questions with C#-related tags

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

How to use timer to automatically run JavaScript in WebView2.

Hello: For my project, I have to automatically run some JavaScript every minute in WebView2. Even I can manually click on the button to run the JavaScript and get the result, but I can’t figure out how to use timer to run the job automatically. …

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.
10,094 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
923 questions
asked 2021-01-21T18:58:25.26+00:00
john zyd 421 Reputation points
edited the question 2024-03-28T07:39:22.0066667+00:00
Jiale Xue - MSFT 24,021 Reputation points Microsoft Vendor
0 answers

MAPI32.DLL” for sending mails not working?

Hello, We are using MAPI32.dll for sending mails. But we are unable to send mails. we are getting "General MAPI failure [2]" issue. Outlook settings also we have checked still not working. Kindly support us on this. Thanks, Akhila Alla

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.
10,094 questions
asked 2024-03-28T07:34:11.1766667+00:00
0 answers

Unclear exception captured

Hi, The exception captured is mentioning the error on 1st line of the event below. If I remark 1st line of the event, it will further mention the other parts that is after such "if part". I do not know why the exception is making the issue…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,218 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.
10,094 questions
asked 2024-03-25T03:01:18.4666667+00:00
Peter_1985 2,466 Reputation points
commented 2024-03-28T07:26:18.02+00:00
Peter_1985 2,466 Reputation points
1 answer

How to get system win+H voice input status ,result of voice input...programaically?

Is there any api get information of system voice input(win+h) I want to know some informations like open or close voice input status ,result of voice input...etc.

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.
10,094 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
7,914 questions
asked 2024-03-08T02:36:10.37+00:00
Hank Lin 1 Reputation point
commented 2024-03-28T07:14:31.4966667+00:00
Jiale Xue - MSFT 24,021 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Retrieve SAS key from a service bus via http request or C# sdk

I need to get some SAS Kay from some service buses and I do it manually very often. I need to implement something that I get the SAS Key by the name. Is it possible to retrieve it via http or with c# sdk or with any other method?

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
535 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.
10,094 questions
asked 2024-03-07T07:25:35.32+00:00
Ricardo Jacobsen 20 Reputation points
commented 2024-03-28T06:32:53.2633333+00:00
Ricardo Jacobsen 20 Reputation points
1 answer

Permutations Array?

Good day all Master! please help me to fix my problem. This problem is a permutations process. If I click button OK it well shuffle and this display in the listBox1. Please take look the picture below. at this image as you can see it's do permutations…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,261 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.
10,094 questions
asked 2024-03-09T02:28:32.5766667+00:00
Jay-R Hayashi 186 Reputation points
commented 2024-03-28T06:22:17.6366667+00:00
Jiale Xue - MSFT 24,021 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

What is the alternative of GetWebLoginClientContext in the current PnP.Framework?

Following this issue, I have copied the code for GetWebLoginClientContext and implemented it in my project. However, I get this out-of-date browser error because the code uses System.Windows.Forms.WebBrowser which uses the old built-in browser. What…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,811 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,261 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.
10,094 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,615 questions
asked 2023-02-03T01:04:49.1433333+00:00
Jack Le 45 Reputation points
commented 2024-03-28T02:33:58.0566667+00:00
Ken Netherland 6 Reputation points
1 answer

How to request authorization from macOS to delete file in MAUI Mac Catalyst app

I have MAUI application that deletes file. But I can get UnathorizedException, because file is secured. I want a dialog to appear for user "Application NAME_OF_MY_APP wants to delete FILE", like Finder does when you want to delete some…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,261 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,745 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.
10,094 questions
asked 2024-03-26T21:54:18.49+00:00
Bohdan Rieznikov 5 Reputation points
commented 2024-03-27T22:50:03.74+00:00
Bohdan Rieznikov 5 Reputation points
1 answer One of the answers was accepted by the question author.

C# Trigger and event when there is a change in a variable

Total noob to C# and don't really have a good grasp of delegate and events. I want to trigger an event when a variable is changed and run some method/function when it is triggered in the same class. Not sure if events are best way to do this but if could…

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.
10,094 questions
asked 2022-01-20T15:15:54.053+00:00
Erci Cheung 21 Reputation points
commented 2024-03-27T12:01:29.6333333+00:00
Dean Abraham 0 Reputation points
16 answers

How to save all the updates in a datagrid (set of comboboxes) MVVM back to the database in WPF C#?

I have similar issue as @Mesh Ka working on the filtering between comboboxes. https://learn.microsoft.com/en-us/answers/questions/1481853/filtering-a-combobox-in-a-datagrid-based-on-anothe Thanks for the solution! The challenge I have is to save all the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,261 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,646 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.
10,094 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.
756 questions
asked 2024-02-22T18:34:30.8433333+00:00
Yvon 0 Reputation points
commented 2024-03-27T06:16:07.6+00:00
Peter Fleischer (former MVP) 19,056 Reputation points
0 answers

How to use Microsoft Azure DeviceClient with MQTT in .Net Framework 4.6.1

For a legacy WinForms application (.NET Frm. 4.6.1), I need to use Azure IOT device client to send events. When trying to create an instance like below with MQTT type, It throws "Operation is not supported on this platform." error. DeviceClient…

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
373 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,261 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.
10,094 questions
asked 2024-03-17T14:01:38.5733333+00:00
dheeraj awale 1 Reputation point
commented 2024-03-27T06:02:07.78+00:00
dheeraj awale 1 Reputation point
0 answers

How to fix Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

Using VB 2022 and I have this issue that I can not get resolved. using .net framework 4.8 and I tried using x64, x86 and nothing has worked

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,511 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.
10,094 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
923 questions
asked 2023-02-13T16:44:30.9733333+00:00
Tyrique 0 Reputation points
edited a comment 2024-03-27T05:57:13.7933333+00:00
Tianyu Sun-MSFT 26,306 Reputation points Microsoft Vendor
1 answer

Is it possible to write new attached property like Validation.Errors, say MyValidation.XYZ

Hello, I would like to use some set of my own different attached properties not defined in Validation.cs. Actually I've tried all known possible ways including AddValueChanged for existing public Validation.<DependencyProperty>, but no have no luck…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,261 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,646 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.
10,094 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.
756 questions
asked 2024-03-25T15:29:46.77+00:00
Alexander Landa 0 Reputation points
commented 2024-03-26T14:17:27.8+00:00
Hui Liu-MSFT 31,031 Reputation points Microsoft Vendor
1 answer

Throttling consumption of Servicebus messages with azure functions

We have built several solutions for clients based on azure functions and servicebus to move data between systems. Each solution hosts many (100+) individual functions triggering on individual topics from many different systems. Although some solutions…

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
535 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,111 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.
10,094 questions
asked 2024-03-26T13:08:09.7333333+00:00
Kasper Laursen 0 Reputation points
edited an answer 2024-03-26T14:15:57.31+00:00
Sedat SALMAN 12,985 Reputation points
1 answer One of the answers was accepted by the question author.

Azure AI Speech Service - No punctuation on Recognized return

I am using the Azure AI speech recognition, which I think is configured correctly to punctuate en-GB. Currently, the recognized return is unpunctuated and comes out as straight text _speechConfig = SpeechConfig.FromSubscription(Token,…

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,336 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
882 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.
10,094 questions
asked 2024-03-26T10:35:32.91+00:00
David Strachan 26 Reputation points
edited a comment 2024-03-26T11:59:52.8933333+00:00
David Strachan 26 Reputation points
0 answers

I am trying to download a file which is inside a subfolder of a blob container in a storage account using Azure c# function.

BlobUriBuilder blobUriBuilder = new BlobUriBuilder(fileUri);   string containerName = blobUriBuilder.BlobContainerName; string blobName = blobUriBuilder.BlobName;   BlobServiceClient blobServiceClient = new BlobServiceClient(connectionString);…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,111 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,368 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.
10,094 questions
asked 2024-03-06T12:45:23.4966667+00:00
Tilak Karthik 0 Reputation points
commented 2024-03-26T09:25:17.74+00:00
Anand Prakash Yadav 4,625 Reputation points Microsoft Vendor
2 answers

DataGridView: Unable to 'De-select' Cell

I am having trouble removing the blue background from a DataGridView Cell (2 actually). The DataGridViews have NO selected cells and NO CurrentCells (CurrentCellAddress = -1, -1), Neither DataGridView is the ActiveControl, yet the Blue Background…

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.
10,094 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
7,914 questions
asked 2024-03-19T16:21:10.08+00:00
Tony Hedge 1 Reputation point
commented 2024-03-26T07:56:19.7266667+00:00
Jiale Xue - MSFT 24,021 Reputation points Microsoft Vendor
1 answer

C# windows form crash

Hi, I'm writing my Windows forms project in C# using the latest versione available of Visual Studio Community (17.9.3). The project manages a Modbus TCP client connection using the NModbus library to a proprietary and tested server. The connection is…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,811 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.
10,094 questions
asked 2024-03-13T10:22:08.48+00:00
Isacco Simonini 0 Reputation points
commented 2024-03-26T07:50:43.0666667+00:00
Jiale Xue - MSFT 24,021 Reputation points Microsoft Vendor
0 answers

System Exception thrown when changing focus on screens when debuging run program in Visual Studio

Dear everybody. Using Microsoft Visual Studio Community 2022 (64 bits) - Current Versión 17.9.3 on Windows 10 most recent update, Packaged WinUI with C# I am programming from scratch a new program (WinUI with C#) in VisualStudio. I have two screens on my…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,511 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
710 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.
10,094 questions
asked 2024-03-20T18:43:30.7933333+00:00
Paul Harvey Chiverton Messina 5 Reputation points
commented 2024-03-26T07:50:26.6933333+00:00
Junjie Zhu - MSFT 13,971 Reputation points Microsoft Vendor
0 answers

Can VB.NET / ASP.NET MVC call the charp enterpriceservice.component COM+ component of .NET 4.6.1 through progid?

Can VB.NET / ASP.NET MVC call the charp enterpriceservice.component COM+ component of .NET 4.6.1 through progid? Currently, when calling the enterpriceservice.component component, there are conflicts between System._comobject and…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,218 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.
10,094 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,539 questions
asked 2024-03-24T14:02:00.0166667+00:00
易安 蔡 0 Reputation points
commented 2024-03-26T07:46:02.14+00:00
Lan Huang-MSFT 24,461 Reputation points Microsoft Vendor