10,596 questions with C#-related tags

Sort by: Updated
0 answers

Switching Between System Power Saving Mode in UWP app ,makes the app non-responded for a while

My UWP app was not responding for sometime, when switching between power Saving mode(windows settings) while App was running. To Reproduce the issue , Run the app Open Windows System Battery Settings -> Enable/Disable Power Saving Mode Now try to…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,108 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,591 questions
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
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 2024-06-28T10:13:12.27+00:00
Prem Kumar S 0 Reputation points
commented 2024-07-03T08:06:32.83+00:00
Junjie Zhu - MSFT 16,466 Reputation points Microsoft Vendor
1 answer

Issue with move folder API in Microsoft Graph when Email ID contains "/"

When attempting to move a folder using the following endpoint: Endpoint: https://graph.microsoft.com/v1.0/me/messages/{EmailId}/move I'm encountering an error when the EmailId parameter contains a "/" symbol. Despite trying to encode the Email…

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
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
237 questions
asked 2024-05-09T04:23:23.2433333+00:00
Waqar Ahmed 0 Reputation points
edited the question 2024-07-03T04:18:29.2+00:00
Ryan Hill 26,866 Reputation points Microsoft Employee
0 answers

How to make UWP MediaElement to be loop mode when casting to a TV?

I find that when using UWP MediaElement (component name: video), it works well to be in loop mode when set as below: video.IsLooping = true; // method 1 video.MediaEnded -= Video_MediaEnded; video.MediaEnded += Video_MediaEnded; // method 2 private…

Universal Windows Platform (UWP)
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
asked 2024-06-28T08:17:01.82+00:00
Tom JD1 Xue 21 Reputation points
commented 2024-07-03T02:34:45.64+00:00
Tom JD1 Xue 21 Reputation points
0 answers

How to apply search in collection view with portion loaded data?

i want to display filtred product in collectionview defined as: <CollectionView Grid.Row="0" Grid.ColumnSpan="3" IsVisible="{Binding IsNoResult, Converter={StaticResource…

.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
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 2024-06-24T16:24:32.32+00:00
Kaouthar GR AOUICHAOUI 80 Reputation points
commented 2024-07-03T01:42:27.98+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,681 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

MS ResourceManagementClient.GetResources overload issue

I am new to C#. When I put following code in VS 2017 it shows error message: Error CS1503 Argument 2: cannot convert from 'int' to 'System.Collections.Generic.IEnumerable<string>' Error CS1503 Argument 3: cannot convert from 'string' to…

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-01T17:37:49.0033333+00:00
Lee, Jeff 20 Reputation points
answered 2024-07-02T15:42:19.2666667+00:00
Lee, Jeff 20 Reputation points
1 answer

How to create a custom text editor VS2022

I am looking for some way to open a new window in visual studio that acts as a customizable text editor with the contents of a file (given by specified file path). I would then like to configure the features of the editor such as setting it to read only.…

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-06-28T15:32:31.28+00:00
helloWorld22 0 Reputation points
commented 2024-07-02T14:17:05.9666667+00:00
helloWorld22 0 Reputation points
0 answers

Adding custom icons to files on desktop crashes explorer.exe

I have a Windows service application to add custom icons to files and directories using .Net Framework 4.5.2 SharpShell library. When I try to create a Microsoft Excel file on desktop, file icon moves to default file position on the desktop (top left).…

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-01T14:07:16.77+00:00
Mustafa BAY 0 Reputation points
commented 2024-07-02T10:10:41.62+00:00
Mustafa BAY 0 Reputation points
1 answer

Visual Studio Code syntax errors not being highlighted for C#

I am creating a new console project in Visual Studio Code using "dotnet run new console -n 'name'", but syntax errors are not being highlighted anymore. Even when I forget to use a ";" or make a syntax error, I don't see error…

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-02-20T22:26:47.7733333+00:00
Jeremy Marin 10 Reputation points
answered 2024-07-02T07:52:47.7+00:00
Rax 0 Reputation points
4 answers

How to fix Add-Migration problem?

Hi, I am trying to add another entity to the database in my e-commerce solution which includes client and admin projects using Blazor WASM and Server, Asp.Net Core API, and data access projects. However, I am getting an error message as shown below: How…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
720 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,354 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,489 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-24T17:33:35.47+00:00
Cenk 986 Reputation points
answered 2024-07-02T06:00:31.8533333+00:00
Cenk 986 Reputation points
1 answer

.dll file working with windows 10 gets stuck on FileNotFoundException error with windows IoT Core.

Hello everyone, In the software that I created with Keyence image sensors, I run a .dll file and import the data from FTP to my program. In this software I created with Windows10 .Net Framework 4.8, the target version of the .dll file is 4.0.0. My…

Windows for IoT
Windows for IoT
A family of Microsoft operating systems designed for use in Internet of Things (IoT) devices.
383 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 2022-08-26T10:25:43.477+00:00
Fatih Kadir YILMAZ 11 Reputation points
commented 2024-07-01T21:41:14.92+00:00
Tadashi Konno 0 Reputation points
1 answer

Why "connection" is "Null"?

Dear all, Why "connection" is "Null"? string cConnectionString = "Data Source=(local); Initial Catalog=Tims; Integrated Security=True"; using (SqlConnection connection = 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,596 questions
asked 2024-06-30T15:03:23.67+00:00
BenTam 1,601 Reputation points
answered 2024-07-01T09:20:21.0166667+00:00
Jiale Xue - MSFT 42,316 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to create bootstrap Tab Menu in top of the heading on ASP.NET Home page

I have designed login page for my asp.net application. when user logging the application, in the home page, user want to see the settings of their menu's like below. On the top of the heading in right corner, user want to see the settings image. when…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,402 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-22T12:51:39.3366667+00:00
BeUnique 2,112 Reputation points
accepted 2024-07-01T08:57:31.9433333+00:00
BeUnique 2,112 Reputation points
2 answers One of the answers was accepted by the question author.

SQL Mail Account Name not displaying properly while sending mail from ASP.NET Application

I am developing ASP.NET web application. In that, i am sending mail to end user from my SQL Mail profile. i have the below mail profile and account name and mail id. SQL Mail Account Name : IND GROUP MAIL E-mail ID : indteamsupport@jeevesteam.com We are…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,402 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-23T15:57:21.8333333+00:00
BeUnique 2,112 Reputation points
accepted 2024-07-01T08:56:52.0666667+00:00
BeUnique 2,112 Reputation points
1 answer One of the answers was accepted by the question author.

How to export viewstate data to pdf in ASP.NET C#

I am developing asp.net application and i already done from viewstate to excel (not from gridview to excel). But, i am struggling to export pdf from viewstate. my viewstate columns is nearly having 20 to 25 columns. below is my code and correct me where…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,402 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-18T18:03:07.49+00:00
BeUnique 2,112 Reputation points
accepted 2024-07-01T08:55:58.7233333+00:00
BeUnique 2,112 Reputation points
1 answer

Access members@delta from group delta query

Hi There, I'm trying to get the group member changes from group.delta query But i cant access "members@delta" any ideas ? This is what i'm trying to do string deltaLink = deltaPage.OdataDeltaLink.ToString(); var groupResult = await…

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
asked 2024-06-24T22:00:00.81+00:00
Isuru 0 Reputation points
commented 2024-07-01T07:22:07.5066667+00:00
Danstan Onyango 3,816 Reputation points Microsoft Employee
0 answers

.Net Maui, use gestures on tabbed page

Hi, I have a tabbed page with 2 tabs, on one tab I have and image that I would like the user to be able to use touch to pinch zoom and pan the image around. I use this to show the image: <Grid x:Name="imageView"…

.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-06-28T23:38:06.1833333+00:00
Phunction 226 Reputation points
commented 2024-07-01T04:12:18.2166667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,681 Reputation points Microsoft Vendor
1 answer

Problem passing a structure by reference

I have a class and in one of the functions Fcn_Task_Async() I have a parameter that is a structure called "ref StTask_Async". Inside the function, I need to create a Task passing "ref StTask_Async" to assign values ​​in 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.
10,596 questions
asked 2024-06-24T04:37:43.77+00:00
zequion 211 Reputation points
commented 2024-07-01T03:02:54.7966667+00:00
Jiale Xue - MSFT 42,316 Reputation points Microsoft Vendor
1 answer

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,869 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.
5,027 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
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,851 questions
asked 2024-05-13T10:05:23.3933333+00:00
Sanjay Kumar Jha 151 Reputation points
edited a comment 2024-07-01T02:41:12.9533333+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
1 answer

Get Sql instances in .Net

How can I retrieve a DataTable from Sql Server instances in .Net? In the .Net Framework it was done this way: SqlDataSourceEnumerator instance = SqlDataSourceEnumerator.Instance; DataTable table = instance.GetDataSources(); string…

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-05-23T09:46:11.3966667+00:00
zequion 211 Reputation points
edited a comment 2024-07-01T02:31:16.78+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
2 answers

How to detect a device

Hi, I'm currently working on .net core web API project . There is a moment that I can't figure out. I had to detect the device which user used when signed in. I used "user-agent" first but this only says if its smartphone, Desktop etc. And only…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,354 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-27T20:25:13.6533333+00:00
Atilla Rüstəmli 20 Reputation points
commented 2024-06-29T00:27:08.61+00:00
SurferOnWww 2,406 Reputation points