10,596 questions with C#-related tags

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

Changing Taskbar (Shell_TrayWnd) Color to Transparent

0 I found a way to change color to fully transparent, by researching structure of DesktopWindowXamlSource of Taskbar (Shell_TrayWnd). I'm curious is it possible to somehow change BackgroundFill in DesktopWindowXamlSource to Windows.UI.Xaml.Media.Brush…

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.
5,027 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,505 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,596 questions
asked 2024-07-09T09:51:43.66+00:00
Jacob Mordon 65 Reputation points
accepted 2024-07-11T11:32:45.5+00:00
Jacob Mordon 65 Reputation points
2 answers

REST interface possibilities

Hello, I have seen a code snippet like this, can I return more than two objects in this task? Then I can ask it like this. bool responseState = false; string responseData = ""; (responseState, responseData) = await…

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,596 questions
asked 2024-07-04T17:26:43.7733333+00:00
Noah Aas 380 Reputation points
edited a comment 2024-07-11T10:48:32.54+00:00
Noah Aas 380 Reputation points
2 answers One of the answers was accepted by the question author.

<Title> tag not reflected in AssemblyInfo.cs

Hello <Title> tag is not reflected in the generated AssemblyInfo.cs. ConsoleApp1.csproj <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,591 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,841 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,596 questions
asked 2024-07-11T09:58:48.1333333+00:00
Hideo Yamada 0 Reputation points
accepted 2024-07-11T10:33:33.63+00:00
Hideo Yamada 0 Reputation points
1 answer One of the answers was accepted by the question author.

Validate Xml file

Hello, I just need to verify if a file is xml, no specific structure, so just loading to an xml parser and if no exception is thrown at load, I'm fine with it, so I use: Dim doc As XDocument doc = XDocument.Load(InputStream, LoadOptions.None) Check for…

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,596 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,650 questions
asked 2024-07-11T02:55:36.5266667+00:00
StewartBW 785 Reputation points
accepted 2024-07-11T09:41:17.68+00:00
StewartBW 785 Reputation points
0 answers

Issues with Access Permissions in PhoneLineTransportDevice API on Windows 11

I am currently working on a hands-free application on Windows and using the PhoneLineTransportDevice API. To utilize the features of this API, I initially request access permissions using the PhoneLineTransportDevice.RequestAccessAsync() method. This…

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,596 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,852 questions
asked 2024-07-07T03:07:39.5133333+00:00
Taylor Yi 0 Reputation points
commented 2024-07-11T08:15:18.53+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
1 answer

Help Needed: Errors in Initial .NET MAUI Project

I have created my first .NET MAUI project several times, but to my surprise, errors appear without changing any line of code. Although the application runs fine, the lines remain underlined. I have captured a screenshot so you can see the issue and guide…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,171 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,596 questions
asked 2024-07-08T01:24:07.06+00:00
Roberto C 120 Reputation points
commented 2024-07-11T06:09:52.9866667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,681 Reputation points Microsoft Vendor
1 answer

I dont understand why OnPropertyChanged is not firing in neither my Model or ViewModel

I am using the MVVM Community Tollkit and below is the generated code. I also included my Model code and the OnPropertyChanged Method. I put a breakpoint in the generated code on the property Spousessn and it was fired and OnPropertyChanged in the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,171 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,596 questions
asked 2024-07-09T21:32:59.66+00:00
Tom Meier 220 Reputation points
commented 2024-07-11T06:05:01.6966667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,681 Reputation points Microsoft Vendor
1 answer

How to register device on Entra ID programatically

Hi , I want to register my local device to Entra ID using c#. I have gone through the Microsoft Graph API documentation as well but didn't get any information related to this topic please help me.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,303 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,596 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,425 questions
asked 2024-07-09T07:45:18.6466667+00:00
Akesh Jadhav 0 Reputation points
edited a comment 2024-07-11T05:42:43.3466667+00:00
Shweta Mathur 29,261 Reputation points Microsoft Employee
1 answer

How to Create a Device on AAD Using Microsoft Graph API ?

I'm trying to use the Microsoft Graph API to create a device in Microsoft Entra ID. I need to generate a device ID and include it in the deviceid property of the POST request. Additionally, I want to know if this API call can join my Windows machine to…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,303 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,596 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,425 questions
asked 2024-07-10T11:26:38.5+00:00
sarvesh chaudhari 0 Reputation points
answered 2024-07-11T05:09:19.66+00:00
Givary-MSFT 30,346 Reputation points Microsoft Employee
0 answers

Timer Function returns 404 on consumption plan. cronjob but http fn invokes ok

Timer function returns 404 from both postman and Az Portal test/run. Http function executes from Postman and from Az Portal test/run, OK. App is deployed from GitHub Action. I have used Restart and Refresh but cron job does not fire. Publishing model:…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,602 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,596 questions
asked 2024-07-09T03:41:19.5333333+00:00
ozbobwa 21 Reputation points
edited a comment 2024-07-11T01:52:41.02+00:00
ozbobwa 21 Reputation points
2 answers

C# app, Long Path support on Windows 10 post-1607, .NET 4.6.2.

Hello, I've got an app where long path support is now needed. It's running on Windows 10 post-1607, long paths have been enabled via group policy. When the app was targeting 4.6.1, it threw the PathTooLongException what a System.IO.FileInfo object 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,596 questions
asked 2021-01-21T23:07:31.533+00:00
Severian 6 Reputation points
commented 2024-07-11T01:18:48.9466667+00:00
Danial H 1 Reputation point
1 answer

How to get SSO SAML token using C# from Azure Active Directory

Hi everyone, Just a quick question. Is it possible using C# to authenticate an account in Azure Active Directory and retrieve an SAML token back? If so, how can we go about doing this? Many thanks

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,175 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,596 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,311 questions
asked 2024-07-10T15:46:35.85+00:00
Sigusmund 0 Reputation points
answered 2024-07-10T22:05:23.8566667+00:00
Bruce (SqlWork.com) 60,861 Reputation points
1 answer

I am using the MVVM pattern and I want to get the value of the property in the OnPropertyChanged event

I want to get the value of the property in the OnPropertyChanged event. I would rather not use reflection.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,171 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,596 questions
asked 2024-07-10T16:20:54.3866667+00:00
Tom Meier 220 Reputation points
answered 2024-07-10T21:21:10.8366667+00:00
Bruce (SqlWork.com) 60,861 Reputation points
1 answer One of the answers was accepted by the question author.

.Net Maui Validate Property of a Model in the ViewModel Class

I am using MVVM along with the MVVM Community Toolkit. I have a Constructor in my .Net Maui ViewModel public EmployeeEditViewModel() { CompanyInfo= new PYEModel(); } I have an Observable property in the .Net Maui ViewModel…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,171 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,596 questions
asked 2024-07-08T19:52:09.4566667+00:00
Tom Meier 220 Reputation points
commented 2024-07-10T17:34:08.54+00:00
Bruce (SqlWork.com) 60,861 Reputation points
3 answers One of the answers was accepted by the question author.

VS 2022 Not showing red squiggles under errors when i debug projects saved on network disk

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,591 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,596 questions
asked 2024-06-21T05:42:45.41+00:00
Willis1962 25 Reputation points
edited a comment 2024-07-10T16:52:30.0033333+00:00
Alberto La Greca 0 Reputation points
1 answer One of the answers was accepted by the question author.

XDocument vs XmlDocument

Hello experts, To load and parse PAD xml from string which one is recommended to use, ie faster or more…

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,596 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,650 questions
asked 2024-07-09T21:01:18.96+00:00
StewartBW 785 Reputation points
commented 2024-07-10T13:15:57.63+00:00
Dewayne Basnett 1,361 Reputation points
1 answer One of the answers was accepted by the question author.

How to scroll in the tabs area in TabView in WinUI3 by using code

There are many tabs in a TabView Control in WinUI3 App. I made a function: pin a selected tab to top. After set it to the top (meaning the first tab ), I make it be selected. Everything is ok, but the first selected tab may be hidden if I had previously…

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.
748 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,596 questions
asked 2024-07-05T08:19:01.0566667+00:00
C CB 125 Reputation points
accepted 2024-07-10T09:27:50.8033333+00:00
C CB 125 Reputation points
1 answer

Text inversion in right-to-left languages such as Persian in the Itextsharp Paragraph

First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). I want to add Persian text to the PDF headline, but when I do this through the iTextSharp.text.Paragraph class, I get into trouble. I can solve this…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,869 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,708 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,596 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.
788 questions
asked 2021-11-12T23:34:53.513+00:00
رضا جافری 1,296 Reputation points
commented 2024-07-10T08:48:51.74+00:00
Enayatullah 0 Reputation points
0 answers

How to fix Expression: m_pAccessor != 0 Debug Assertion Failed!

Debug Assertion Failed! Program: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll File: C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\atlmfc\include\atldbcli.h Line: 5198 Expression: m_pAccessor != 0 For…

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.
748 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,596 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,620 questions
asked 2024-07-09T12:58:59.3533333+00:00
Shubham Kshirsagar 0 Reputation points
commented 2024-07-10T07:02:55.27+00:00
Minxin Yu 10,791 Reputation points Microsoft Vendor
1 answer

How do I resolve this exception thrown while trying to do CRUD operations on CSOM?

How do I resolve this exception thrown while trying to do CRUD operations on CSOM? Let me break this down for you. CRUD, of course, means "Create Read Update and Delete". CSOM is the tech for connection C# to a Sharepoint List (or, I assume,…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,194 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,596 questions
asked 2024-06-14T15:03:35.8266667+00:00
William Thompson 80 Reputation points
commented 2024-07-09T22:34:37.4633333+00:00
William Thompson 80 Reputation points