10,320 questions with C#-related tags

Sort by: Updated
0 answers

Certificate Revocation List

Hi All, We have a WPF application built on .Net Framework v4.8. This application acts as an HTTPs client. We are currently performing the certificate check using 'RemoteCertificateValidationCallback' method (except CRL). We now need to perform CRL…

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,683 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,320 questions
asked 2024-05-14T06:33:05.25+00:00
S Abijith 346 Reputation points
commented 2024-05-14T09:57:44.64+00:00
Hui Liu-MSFT 40,786 Reputation points Microsoft Vendor
0 answers

Solution Parser not working in .Net8

Hi, I'm in the process of migrating my WPF application from .NET Framework 4.8 to .NET 8. In my previous application, I utilized the Solution Parser functionality from Microsoft.Build for certain tasks. However, after migrating to .NET 8, this…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,803 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,683 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,320 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,309 questions
asked 2024-05-13T10:05:23.3933333+00:00
Sanjay Kumar Jha 151 Reputation points
commented 2024-05-14T09:38:49.05+00:00
Viorel 112.8K Reputation points
2 answers

double roundoff error in calculations

All of these following code statements should yield the same value, but the second to fourth statement have a second to last digit rounding error in c#. The first statement is correct and fifth to last are correct. Do you know this is…

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,320 questions
asked 2024-05-10T16:47:06.63+00:00
Lawrence254 0 Reputation points
commented 2024-05-14T09:27:31.9133333+00:00
Jiale Xue - MSFT 34,361 Reputation points Microsoft Vendor
1 answer

How to access/Update Group Policy Objects using C sharp

Hi, We are referring below link to access group policies programmatically   using c sharp. https://learn.microsoft.com/en-us/previous-versions/windows/desktop/wmi_v2/class-library/gpo-class-microsoft-grouppolicy This is sample code which we have written…

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,320 questions
asked 2024-05-08T07:35:50.82+00:00
commented 2024-05-14T09:20:01.89+00:00
Jiale Xue - MSFT 34,361 Reputation points Microsoft Vendor
2 answers

Procedure for a m:n data relationship

Hello! Are there any tools or tips on how to create a data model? Once the data model is there, how best to deal with primary and foreign keys. The based on XML or JSON format. Save and read XML or JSON files. <MappingTable> <Parameters> …

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,320 questions
asked 2024-05-09T07:56:03.26+00:00
Noah Aas 140 Reputation points
edited an answer 2024-05-14T08:37:59.1966667+00:00
Hongrui Yu-MSFT 80 Reputation points Microsoft Vendor
1 answer

COM timeout Excel

Microsoft 365 Excel version 2403. C# application (WPF on .Net 8) using excel COM interop ("automation") which adds a menu in the Excel application and setsup a click handler (in WPF). All works normally just fine, but when debugging and say…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,500 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,320 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.
3,538 questions
asked 2024-04-24T07:13:01.6266667+00:00
Magne 126 Reputation points
edited a comment 2024-05-14T08:15:02.4733333+00:00
RLWA32 40,856 Reputation points
1 answer

How to Increase/Decrease mouse pointer moving speed on a WPF application surface?

Hi there, I have a simple WPF application where I need to control the mouse pointer speed. Suppose I run the application and as soon as my mouse pointer enter the application area, the mouse pointer speed should be increase and I want some more…

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,683 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,431 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,320 questions
asked 2024-05-13T21:28:00.4833333+00:00
MERUN KUMAR MAITY 511 Reputation points
answered 2024-05-14T08:13:48.94+00:00
Hongrui Yu-MSFT 80 Reputation points Microsoft Vendor
1 answer

Send Emails after Business Trasnaction in Azure

Hi All, We have a requirement to send emails containing business data (and contract file attachments) to external users (outside Org. domains) from applications hosted in Azure. Our backend services are either Az Functions or Services hosted in Azure App…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,332 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,320 questions
asked 2024-05-13T13:29:55.01+00:00
Kaushik Dutta 0 Reputation points
answered 2024-05-14T06:41:34.97+00:00
SwathiDhanwada-MSFT 17,806 Reputation points
1 answer

The process cannot access the file because it is being used by another process

I tried to update me db schema in my code and after changing that if i run my application i ma getting the error as follows The process cannot access the file because it is being used by another process but my db is not opened anywhere so how to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,425 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,320 questions
asked 2023-02-09T13:53:39.9233333+00:00
Dineshkumar.S 446 Reputation points
commented 2024-05-14T06:16:20.01+00:00
Mustafa Bamboat 0 Reputation points
0 answers

Dropbox on .NET Maui

I am trying to get Dropbox to work in .net maui. I have it working fine in xamarin.ios, it open a browser and get them to login, then when the go back from the browser, the app is receives the redirect in appdelegate.cs to get the auth token and use it…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,943 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,320 questions
asked 2024-05-12T21:27:18.04+00:00
Phunction 206 Reputation points
commented 2024-05-14T06:10:28.39+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,456 Reputation points Microsoft Vendor
0 answers

Answered my own post -- how to read ObservableCollection to an array --

I may be doing this the wrong way, I want to read all the Line in my listview to be able to add them to an array. xaml <ListView ItemsSource="{Binding MyItems}" IsGroupingEnabled="True" GroupShortNameBinding="{Binding…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,649 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,320 questions
asked 2024-05-11T13:45:01.4433333+00:00
tim 120 Reputation points
commented 2024-05-14T06:02:16.83+00:00
Hui Liu-MSFT 40,786 Reputation points Microsoft Vendor
0 answers

How to convert HTML to RTF file and RTF to HTML file in C# UWP?

When I attempt to convert HTML to RTF and RTF to HTML files, I cannot find the Microsoft Native Library needed for conversion. Could you please assist?

Universal Windows Platform (UWP)
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,320 questions
asked 2024-05-13T09:16:23.5333333+00:00
Jay 30 Reputation points
commented 2024-05-14T05:42:01.8833333+00:00
Jay 30 Reputation points
1 answer

Not able to get all paging checkbox checked records in gridview asp.net c#

I am using gridview with paging. i done all the pagination code and selected checkbox. Checkbox "CheclALL" is working fine with every page. But, when i save the record, it will be saving only last page checkbox checked values. What is the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,292 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,320 questions
asked 2024-05-13T15:30:31.1333333+00:00
Gani_tpt 1,586 Reputation points
answered 2024-05-14T05:15:26.4966667+00:00
Lan Huang-MSFT 25,956 Reputation points Microsoft Vendor
3 answers

How to fill a ListView?

Dear all, I'm a beginner in C#. Could anyone tell me how to fill a ListView?

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,320 questions
asked 2024-04-30T05:22:04.94+00:00
BenTam 1,581 Reputation points
commented 2024-05-14T05:11:02.85+00:00
BenTam 1,581 Reputation points
1 answer

Stop background worker

I am using C#. I have a that has a background worker reading a file. How do I stop it before it is finished by pressing esc key.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,425 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,320 questions
asked 2024-05-13T16:09:43.7+00:00
Jordan Halgunseth 1 Reputation point
commented 2024-05-14T03:23:07.6433333+00:00
Jiale Xue - MSFT 34,361 Reputation points Microsoft Vendor
0 answers

Android Emulator waiting for debugger to attach in .net maui app

I upgraded my .net maui app from .net 7 to .net 8 and updated my nuget packages. I built the output solution but deployment was not successful as I had received the error message:- Xaml XC002 erro: Binding could be compiled if x:datatype is specified…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,943 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,320 questions
asked 2024-05-11T02:31:41.49+00:00
wire_jp 201 Reputation points
commented 2024-05-14T02:55:15.96+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,456 Reputation points Microsoft Vendor
1 answer

image not loading in modal popup imageurl in asp.net c#

i am trying to load image in image button through modal popup. The problem is modal popup is showing, but image not loading which means it is blank window. i am storing all the images in different server and application hosted in another server. what is…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,292 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,320 questions
asked 2024-05-05T17:01:04.1133333+00:00
Gani_tpt 1,586 Reputation points
commented 2024-05-14T01:28:20.95+00:00
Lan Huang-MSFT 25,956 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Method that returns an anonymous Object

Hello Friends I just have a question about the code below that uses Dapper to get data. I was wondering why do I need the code new{Id} and how does Dapper handle that one property. Thanks ! var output=_db.LoadDataItem<PayerModel, dynamic>(sql, new…

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,320 questions
asked 2024-05-13T18:34:22.9033333+00:00
Tom Meier 120 Reputation points
accepted 2024-05-13T22:02:25.57+00:00
Tom Meier 120 Reputation points
3 answers

Update Workload Problem/ NuGet Package unable to be installed.

**I have created 3 Projects: FrontEndProject and it is a Blazor Project and this is the csProj:** <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,212 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,407 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,320 questions
asked 2024-05-10T04:54:17.63+00:00
Muhammad Ghozlan 5 Reputation points
commented 2024-05-13T21:20:09.44+00:00
Bruce (SqlWork.com) 57,241 Reputation points
2 answers One of the answers was accepted by the question author.

Enabling specific cipher suite in C#

We are trying to upload a file to a device or download a file from a device using a C# WPF application. We are using .Net Framework 4.5 to achieve this. The device in question supports only two protocols, namely: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 …

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,320 questions
asked 2021-01-07T04:41:27.28+00:00
S Abijith 346 Reputation points
answered 2024-05-13T20:42:53.1+00:00
Esen Kaya 0 Reputation points