Microsoft Q&A

C#

6,921 questions

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.

Browse all C# tags

132 questions with C#-related tags

Sort by: Updated
0 answers

在wpf中,我想像winform那样判断resize的开始和结束

I need a event in WPF which can tell me when does the window's border stop being drag,because i cant run my large code everytime by use the event named SizeChanged

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.
6,921 questions
asked 2023-01-29T14:12:29.06+00:00
尼龟 杰 0 Reputation points
0 answers

WPF Mousemove is a noticeable lag

I am making a UserControl called VolumeScrollBar to control the volume a video player I am working on. Now the problem I am having is when I slide my SwitchPath it moves noticeable slower than my mouse. How can I fix this ? note: everything is working…

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.
6,921 questions
asked 2023-01-29T06:16:37.1733333+00:00
Brandon Boone 1 Reputation point
0 answers

Shell Navigation and using a Dictionary to pass values.

I am trying to learn how to pass complex data types to a page using a Dictionary. As you can see in the example code below that Name was hardcoded, but I was wondering what is the best practice if I wanted to dynamically set the Name property in the view…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
876 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.
6,921 questions
asked 2023-01-27T15:01:59.6933333+00:00
Ronald Rex 506 Reputation points
edited the question 2023-01-27T15:16:32.2166667+00:00
Ronald Rex 506 Reputation points
0 answers

How to download rest api response content into excel using windows forms application c#

I'm trying to download REST API response content as (original format) excel (.xlsx) And I have used this method to return the response content public static string DownloadFileName() { try { var client = 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.
6,921 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
61 questions
asked 2023-01-27T07:47:50.0733333+00:00
Ashok Kumar 121 Reputation points
edited the question 2023-01-27T07:56:11.2433333+00:00
Ashok Kumar 121 Reputation points
0 answers

How to search dictionary key and find the value in C#?

Hello: I have the following Json data stored into one dictionary: public class JsonKey { public int? Index { get; set; } public string? ID { get; set; } public string? Name { get; set; } …

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.
6,921 questions
asked 2023-01-24T20:34:08.8733333+00:00
john zyd 406 Reputation points
0 answers

How to use Json Data as dictionary key and find the value?

Hello: I have the following Json data stored into one dictionary: (newtonsoft.json) public class JsonKey { public int? Index { get; set; } public string? ID { get; set; } public string? Name { get; set;…

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.
6,921 questions
asked 2023-01-24T20:30:06.5233333+00:00
john zyd 406 Reputation points
0 answers

File type cannot be inspected, CorrelationId=4ac4cbff-e67f-4ce9-81b7-254d7728cdb9, CorrelationId.Description=FileHandler

Hi Team, I'm using Microsoft Graph v1.0 to read emails. Recently we started receiving emails which are encrypted with below label. When I'm trying to read the attachments of these emails, I'm receiving RPMSG file which I'm unable to decrypt. I'm using…

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.
6,921 questions
Microsoft Graph Mail API
Microsoft Graph Mail API
A Microsoft API that supports accessing data in users' primary mailboxes and in shared mailboxes.
676 questions
asked 2023-01-23T15:13:00.7933333+00:00
Tejasvini Shelar 0 Reputation points
edited the question 2023-01-24T03:23:59.9066667+00:00
Jack J Jun 19,036 Reputation points Microsoft Employee
0 answers

Compilation of XSLT is not supported on this platform

What app I am making I'm making a UWP (Universal Windows Platform) app. With which, a user drag-and-drops .xml and .xsl to convert into .pdf . Internally, they are converted into .html before converting into .pdf. Problem The problem is that…

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.
6,921 questions
Universal Windows Platform (UWP)
asked 2023-01-19T15:27:25.0966667+00:00
Naoki Watanabe 0 Reputation points
edited the question 2023-01-19T15:29:23.5333333+00:00
Naoki Watanabe 0 Reputation points
0 answers

Cannot convert from method group to System.EventHandler. Changing handler signature shows error when dealing with appdomain

Hi, I have the following two programs (1) Windows forms application (2) ClassLibrary1.dll In the winform, the dll is loaded using appdomain. The winform subscribes to the action('TestAction') in the dll. I am trying to access the value returned by the…

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.
6,921 questions
asked 2023-01-13T03:50:04.25+00:00
Crystal98 1 Reputation point
0 answers

Issue with providing load balancing information using AxMSTSCLib

I am trying to establish a remote desktop connection via a remote desktop session broker in my C# application using the 'AxInterop.MSTSCLib' where I encounter problems with the transfer of the load balancing information. Basically, I create a new object…

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.
6,921 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
3,031 questions
asked 2023-01-12T11:16:50.74+00:00
Lukas Peschel 0 Reputation points
edited the question 2023-01-12T11:18:36.81+00:00
Lukas Peschel 0 Reputation points
0 answers

BingAds upload offlineconversion

HI, I am following this sample code from site https://learn.microsoft.com/en-us/advertising/guides/code-example-offline-conversions?view=bingads-13 to upload offline conversion goal using Campaign Management service. I have a doubt, with…

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.
6,921 questions
asked 2022-12-20T17:40:19.57+00:00
Amitha Shenoy 1 Reputation point
0 answers

Integrate Google pay in xamarin application using stripe

I need to integrate google pay in xamarin application and it should work for both android and iOS application. I followed the link https://stripe.com/docs/google-pay?platform=android but here this is in java. I got this link also…

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.
6,921 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,803 questions
asked 2022-12-20T07:21:04.763+00:00
Monalisha Swain 1 Reputation point
0 answers

XamlCompiler.exe fails with code -1073741515 on GitLab CI

I am trying to set up CI on GitLab for my MAUI Project. My setup uses a Windows Runner with a Docker Container that uses the following .gitlab-ci.yml ` image: mcr.microsoft.com/dotnet/sdk:6.0 stages: - build build_job: stage:…

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.
6,921 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
876 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
289 questions
asked 2022-12-12T17:46:42.843+00:00
Lucas 1 Reputation point
0 answers

Adding text watermark using ms interop doesn't work if there is a table or an image on header

here is my code to add text watermark to the center of a document. foreach (Microsoft.Office.Interop.Word.Section section in wordDoc.Sections) { Microsoft.Office.Interop.Word.Shape wordShape =…

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.
6,921 questions
asked 2022-12-12T12:41:09.407+00:00
Jeongmin Lee 1 Reputation point
0 answers

SignedXml CheckSignature is returning false everytime

We receive a SAML response from the client and when I am trying to validate the signature value using signedXml.CheckSignature(cert,true) then this method is returning always false. I used the example code related to CheckSignature(X509Certificate2,…

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.
6,921 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
asked 2022-12-09T18:31:22.153+00:00
Kumar Jalli 1 Reputation point
0 answers

Creating a meeting fails with invalid address while address of recipient is valid

original question at: https://answers.microsoft.com/en-us/outlook_com/forum/all/creating-a-meeting-fails-with-invalid-address/d992fabf-b161-4952-859f-a50ed3a13d5d?messageId=e38799e1-b2c1-46ca-815c-0d182e41b6e0 Our application calls the local Outlook…

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.
6,921 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
3,417 questions
asked 2022-11-22T09:43:49.66+00:00
wst 1 Reputation point
0 answers

A first chance exception of type 'System.Net.Http.HttpRequestException' occurred in mscorlib.dll

Hi, i am trying to generate the authentication token using AcquireTokenForClient but ending up with Httprequestexception, The code crashes at async method (cca.AcquireTokenForClient(ewsScopes).ExecuteAsync()) below is the code snippet (a well known…

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.
6,921 questions
asked 2022-11-22T01:55:21.477+00:00
niranjan kumar 1 Reputation point
0 answers

Difference between native API and windows MDM profile

What is the difference between Native API(Win32) and MDM in windows. Why MDM started to grow apart from native API. What are the Pros and Cons of using MDM over Native API

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.
6,921 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,905 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
3,480 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,147 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.
2,617 questions
asked 2022-11-21T11:11:00.277+00:00
Hari Pranesh 166 Reputation points
0 answers

Saving XML Data from Endpoint to my database

I am trying to pass from a "POST" endpoint that contains data in XML format to my model class then save the same to my database. It is possible for me to save the data when the XML is in the format below: …

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.
6,921 questions
asked 2022-10-27T14:44:41.713+00:00
Nickson 1 Reputation point
0 answers

How to upload Nested Object Collections To solr using solr.net and C#

i have created this class to update it to schemaless solr Core public class PendingQueueProcessingCore { [SolrField("QueueID")] public int QueueID { get; set; } [SolrField("ListID")] public…

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.
6,921 questions
asked 2022-10-27T10:17:00.88+00:00
hamza dev 1 Reputation point