11,154 questions with C#-related tags

Sort by: Updated
0 answers

user32.dll!UserCallWinProcCheckWow()

My MFC embed WPF, and sometimes I want to show a WPF dialog, it will crash. I find below difference, and want to know when execute the two functions. there is not parameter in the crashed call stack: user32.dll!UserCallWinProcCheckWow() there are…

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,154 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,807 questions
asked 2024-12-16T10:36:24+00:00
Jin Yang 20 Reputation points
edited the question 2024-12-27T07:13:55.37+00:00
Roy Li - MSFT 33,501 Reputation points Microsoft Vendor
1 answer

How do I make a richTextBox have a transparent background / show the image beneath it? (C#, Windows Forms App)

Hello, as per the title, I want to make the richTextBox in my project transparent, or have a way to show the image beneath it. Whenever I try to set the backcolor to transparent, i always get "Property value is not valid" with "Control…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,915 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,312 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,154 questions
asked 2024-12-27T06:00:17.44+00:00
dorian tester 0 Reputation points
answered 2024-12-27T06:43:01.78+00:00
Jiale Xue - MSFT 48,441 Reputation points Microsoft Vendor
0 answers

Add Signature while replying using Selection c# vsto addin

I am new to C# VSTO Add-In development and am trying to add a signature at the cursor's location. However, I'm unable to insert HTML and can only add plain text. How can I append HTML instead? I tried the code below and was able to add text. How can I…

Outlook
Outlook
A family of Microsoft email and calendar products.
4,222 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,154 questions
asked 2024-12-27T05:45:36.4366667+00:00
Ramakrishnan Ramar 20 Reputation points
0 answers

I am unable to create index in Azure AI search using C#

I have followed below git repo to create index in Azure AI Search (Line 231 - 307) https://github.com/Azure/azure-search-vector-samples/blob/main/demo-dotnet/DotNetVectorDemo/Program.cs I am not using SemanticSearch so removed code from Line 266 -…

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,119 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,154 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,003 questions
asked 2024-12-26T16:18:20.36+00:00
AJITH KRISHNA MANKENA 0 Reputation points
commented 2024-12-27T05:16:31.3866667+00:00
Avinash Devarakonda 605 Reputation points Microsoft Vendor
1 answer

Dependency Properties in User Controls

I have a simple Slider and Label user control that I load into my window and I want to change the following properties using databinding from the main window. Slider Properties -> Value, SelectionStart, SelectionEnd (all doubles) Label Properties…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,009 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,804 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,154 questions
asked 2024-12-18T16:06:49.42+00:00
dmccric 0 Reputation points
commented 2024-12-27T01:03:28.84+00:00
Hongrui Yu-MSFT 3,645 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Blazor 8.0 NavigateTo throws an exception

Hello, I have a language selector that calls the following code and it works like a charm. On other hand, I want to change the language from within the MainLayout on Initialized event (async) but then the very same code throws an exception of type…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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,634 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,154 questions
asked 2024-12-19T08:59:18.7133333+00:00
Kuler Master 306 Reputation points
accepted 2024-12-26T15:10:56.6233333+00:00
Kuler Master 306 Reputation points
2 answers

C# - Interface Reimplementation

Hello, I've read an article about Interface implementation, I don't understand the second reason. Could you please explain and write an example? I really appreciate any help you can provide. Alternatives to interface reimplementation Even with explicit…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,009 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,154 questions
asked 2024-12-06T14:49:13.8533333+00:00
Shervan360 1,621 Reputation points
commented 2024-12-26T09:48:16.9933333+00:00
Jiale Xue - MSFT 48,441 Reputation points Microsoft Vendor
1 answer

preventing c# listview items from disappearing

I have a ListView in a form in c#. There was info about an error in the ListView implementation that causes the items to disappear the first time the mouse hovers over the ListView, and there is a solution to prevent that which works fine. However, my…

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,154 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,280 questions
asked 2024-12-10T20:26:37.2166667+00:00
genush 41 Reputation points
commented 2024-12-26T08:25:40.28+00:00
Jiale Xue - MSFT 48,441 Reputation points Microsoft Vendor
1 answer

Multiple HTTPs Requests

Hello All, We have a WPF application built on .Net Framework 4.8. This application communicates with an HTTPs server to perform a list of commands. These commands must be executed one after another and must not be sent in on go. This communication is…

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,804 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,154 questions
asked 2024-12-20T07:04:45.51+00:00
S Abijith 466 Reputation points
commented 2024-12-26T01:27:26.3933333+00:00
Jiale Xue - MSFT 48,441 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

The "CreateAppHost" task failed unexpectedly. How do I fix this?

I opened a project I worked on a few months and a few updates ago. Now I can't open the form designer. The error list states: MSB4018 The "CreateAppHost" task failed unexpectedly. System.IO.IOException: The requested operation cannot be…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,009 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,154 questions
asked 2024-06-13T00:02:22.32+00:00
Jon Hall 20 Reputation points
commented 2024-12-25T15:54:48.5566667+00:00
Bhasker S 0 Reputation points
1 answer One of the answers was accepted by the question author.

FirebaseApp Initialization Error in MAUI .NET 8

Hello, I am encountering an issue with initializing Firebase in my MAUI Android and iOS projects. The error message I am receiving on Android is: [mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: Java.Lang.IllegalStateException: Default FirebaseApp is not…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,766 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,154 questions
asked 2024-12-24T11:32:28.0366667+00:00
Omkar Pawar 40 Reputation points
accepted 2024-12-25T12:36:51.4666667+00:00
Omkar Pawar 40 Reputation points
2 answers

Issue with 405 Method Not Allowed instead of 401 Unauthorized in ASP.NET Core with JWT Authentication

Hi everyone, I'm encountering an issue with my ASP.NET Core application where I'm getting a 405 Method Not Allowed error instead of the expected 401 Unauthorized error when accessing an endpoint that requires authentication. Here's a detailed description…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
729 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,009 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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,154 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.
355 questions
asked 2024-12-25T05:41:55.44+00:00
Naser AL-Asbahi 5 Reputation points
commented 2024-12-25T09:00:08.68+00:00
Naser AL-Asbahi 5 Reputation points
1 answer

Adding Blazor Identity to existing Blazer project fails with a 'null path' exception

Hi! I have the following: .Net SDK 9 Visual Studio Community 2022 v 17.12.3 Windows v10.0.19044 Blazer Server App When I try to add the Blazor Identity "scaffolding" I get a "There was an error running the selected code generator:…

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,634 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,312 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,154 questions
asked 2024-12-18T11:16:39.07+00:00
kodo65 0 Reputation points
commented 2024-12-25T08:20:56.4333333+00:00
Tianyu Sun-MSFT 31,956 Reputation points Microsoft Vendor
1 answer

An odd issue where VS2022 is not able to bring Apps list from Microsoft Store.

Hello Everyone, Everything was working fine all these years, but suddenly, for no apparent reason, I'm unable to associate my application with the Microsoft Store. Whenever I try, I receive the following error. I have no network issues and I can login…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,312 questions
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
1,040 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,154 questions
asked 2024-12-18T09:28:39.5433333+00:00
Jignesh Desai 106 Reputation points
edited an answer 2024-12-25T07:40:12.28+00:00
Tianyu Sun-MSFT 31,956 Reputation points Microsoft Vendor
2 answers

Can we convert .eml file to pdf , .docx or any image format

I am fetching the email from exchange server through graph api and then saving it to .eml , for which i didn't got any way to directly convert it into pdf , .docx or any image format . But while going through outlook when we open any message and go to…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,658 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,154 questions
asked 2021-12-10T10:50:19.877+00:00
palak agarwal 1 Reputation point
answered 2024-12-25T07:16:24.7666667+00:00
levi garcia 0 Reputation points
2 answers

How to run asp.net web application using visual studio code ?

I work on .NET 4.7. I have an issue: I can't run applications in Visual Studio Code. I don't know how to run it. Startup page is http://localhost:22851/WebPages/loginT.aspx This page opens in Visual Studio 2019, but how to open the page logint.aspx in…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,547 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,154 questions
asked 2024-12-24T21:40:42.5133333+00:00
ahmed salah 3,216 Reputation points
answered 2024-12-25T03:36:44.36+00:00
XuDong Peng-MSFT 10,841 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Microsoft Authenticator

Hello, I am currently experiencing issues with the Microsoft Authenticator app. When I try to log in to an application, it asks me to enter a security code generated by Microsoft Authenticator. Unfortunately, I have forgotten the security code, and I did…

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,515 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,154 questions
asked 2024-12-01T08:18:29.34+00:00
Chuyên Minh 25 Reputation points
edited the question 2024-12-25T01:42:10.6133333+00:00
Jack J Jun 24,616 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Why am I Only Seeing Warning Level Logs in Application Insights?

I am working on an ASP.NET Core application and have integrated Application Insights for logging. However, I'm facing an issue where only Warning level logs (severity level 2) are being sent to Application Insights, even though I expect to see logs of…

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,396 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,009 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,154 questions
asked 2024-12-19T16:21:16.08+00:00
Neeraj Mahajan 81 Reputation points
edited the question 2024-12-25T01:28:31.01+00:00
Jack J Jun 24,616 Reputation points Microsoft Vendor
1 answer

MAUI stops keeping the display up to date when an HTTP request is made

I am new to MAUI programming as well as parallel Thread programming. I have retrieved a MAUI application that I am trying to modify. The application captures a sound sample and transmits it to a server to identifies its origin among a set of determined…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,766 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,154 questions
asked 2024-12-24T18:56:53.3366667+00:00
Boucourt 105 Reputation points
commented 2024-12-24T20:50:02.45+00:00
Boucourt 105 Reputation points
1 answer One of the answers was accepted by the question author.

Regex for QRCode Information

Hello everyone and thanks for the help in advance. I am developing a program to read information scanned by a QRCode reader. Here is a sample of the input (01)00358160740213(17)260515(10)32PF3(21)5HZ6R1PX8C The input includes the GS1 separator fields…

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,154 questions
asked 2024-12-23T19:58:28.1133333+00:00
Kmcnet 886 Reputation points
accepted 2024-12-24T18:17:56.26+00:00
Kmcnet 886 Reputation points