10,535 questions with C#-related tags

Sort by: Updated
1 answer

How to read and output the NPU utilization

Hi All How to use the following MS learning to read and output the NPU utilization. Thank you. https://learn.microsoft.com/en-us/windows/win32/api/activitycoordinatortypes/ne-activitycoordinatortypes-activity_coordinator_resource

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,488 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,535 questions
asked 2024-06-18T05:32:45.61+00:00
John Huang 0 Reputation points
commented 2024-06-26T05:56:48.38+00:00
Tong Xu - MSFT 2,116 Reputation points Microsoft Vendor
2 answers

SSIS 2022 Script Component Runtime Error

Hello, I've configured a Data Flow error redirection and is using a Script Component to capture the error description and column but is getting the attached runtime error. I am running the latest version of VS2022. Thanks

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,498 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,535 questions
asked 2024-06-25T19:05:46.56+00:00
libpekin 86 Reputation points
answered 2024-06-26T05:37:14.2433333+00:00
Olaf Helper 42,581 Reputation points
1 answer

How can I get apps on different platforms to communicate?

I wonder if there is anyone out there who can help me with a solution to an application I want to create.  This solution will contain two separate platforms, communicating with each other via network, serial ports, or something else. The first platform…

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,535 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,603 questions
asked 2024-06-24T15:11:27.5633333+00:00
Chuck Kvasnicka 20 Reputation points
commented 2024-06-26T01:59:51.96+00:00
Minxin Yu 10,691 Reputation points Microsoft Vendor
0 answers

In UWP or WinUI3, how to use AutoSuggestBox as the search box and highlight the matching keywords in red in the search result list

AutoSuggestBox is a good control in WinUI3. I use it as a search box and display search results. But how to achieve more advanced functions, such as highlighting keywords in the results ( ex, one of the result is 'powered by Microsoft', and only…

Universal Windows Platform (UWP)
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.
741 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,535 questions
asked 2024-06-25T01:56:14.0933333+00:00
C CB 40 Reputation points
commented 2024-06-26T01:29:38.3866667+00:00
C CB 40 Reputation points
1 answer

Custom fonts not working when uploading Maui Android project to Play Store

I have added custom fonts in the font directory of my Maui project's Resources directory and updated the MauiProgram.cs file accordingly. The fonts work fine when I deploy the application using Visual Studio, but when I publish the app and upload it to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,096 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,535 questions
asked 2024-05-21T16:58:13.6333333+00:00
Mujtaba Ali Panjwani 5 Reputation points
commented 2024-06-25T15:36:12.8333333+00:00
Olen Kirkland 0 Reputation points
2 answers

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,550 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,535 questions
asked 2024-06-21T05:42:45.41+00:00
Willis1962 0 Reputation points
commented 2024-06-25T15:20:44.3266667+00:00
Danny 0 Reputation points
3 answers

Get error column name using script transformation

Hello, Hello with error caused by the GetIdenfificationStringByLineageID. I'm trying to get the actual error column name and I can't get pass this error message. Thanks,

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,498 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,535 questions
asked 2024-06-21T19:33:12.47+00:00
libpekin 86 Reputation points
answered 2024-06-25T15:00:51.4766667+00:00
libpekin 86 Reputation points
2 answers One of the answers was accepted by the question author.

How to solve a task with C#

Each person has a favorite number. Jacob’s favorite number is X and Jayden’s favorite number is Y. A non-empty array A consisting of N integers is given. Jacob and Jayden are interested in occurrences of their favorite numbers X and Y in array A. They…

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,535 questions
asked 2024-06-21T11:49:04.7966667+00:00
Dennis Kiptoo 40 Reputation points
commented 2024-06-25T14:57:03.7033333+00:00
Jiale Xue - MSFT 41,811 Reputation points Microsoft Vendor
2 answers

How Can I track the Last DPI which is sent by WM_DPICHANGED in WPF?

I want to scale my WPF application according to available screen DPI. I know there Per Monitor DPI aware available but that are completely different what I want to achieve. I want to disable scaling for my WPF application even if windows has some scale…

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,700 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,488 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,535 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,603 questions
asked 2024-06-23T21:10:17.6933333+00:00
MERUN KUMAR MAITY 531 Reputation points
commented 2024-06-25T10:34:19+00:00
MERUN KUMAR MAITY 531 Reputation points
3 answers

how to call FSCTL_GET_NTFS_VOLUME_DATA IOCTL from c#

In a C# program, I need to get details, like MFT size, etc, on NTFS partitions. I found a link() to an article that alleges to do this, BUT unfortunately MS redirects it to "Ask a Question".I appreciate any good words, especially sample code,…

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,535 questions
asked 2024-06-24T17:05:04.55+00:00
spinlock 1 Reputation point
answered 2024-06-25T09:39:11.7233333+00:00
Jiale Xue - MSFT 41,811 Reputation points Microsoft Vendor
1 answer

How to inherit form in .net design time (there is no inheritance picker)?

How can I correctly inherit from some template form at design time in VS, on .net? In .net framework there was Inheritance Picker but I do not find it in .net 8.0. When I create simple inheritance from another form, like this: public partial class…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,866 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,550 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,535 questions
asked 2024-06-23T12:50:32.3366667+00:00
Slobodan Krejaković 36 Reputation points
commented 2024-06-25T08:33:31.68+00:00
KOZ6.0 6,300 Reputation points
0 answers

Set cover image to MediaPlayerElement in C# uwp for audio files

In my C# uwp project, i want to set a cover image to my MediaPlayerElement object, when an mp3 (or other audio file) loaded. I have tried the PosterSource property, but after i have been loaded a file in my mediaplayer, the postersource disappeared. I…

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,535 questions
asked 2024-06-14T13:43:15.85+00:00
Tamás Bitó 20 Reputation points
commented 2024-06-25T08:09:15.7033333+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
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,096 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,535 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.
779 questions
asked 2024-06-24T16:24:32.32+00:00
Kaouthar GR AOUICHAOUI 80 Reputation points
commented 2024-06-25T07:31:38.2566667+00:00
Kaouthar GR AOUICHAOUI 80 Reputation points
0 answers

Scripts inside local html is not working with webview Eval in UWP Xamarin forms

Tried to update the html elements using script with webview Eval, its working fine in android and iOS but it is not working with UWP Xamarin forms. 1.webview.Eval to update the script : Script inside local html :

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,316 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
915 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,535 questions
asked 2024-06-13T05:22:24.0766667+00:00
Keerthana Sathiyanathan 0 Reputation points
commented 2024-06-25T07:12:10.2933333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,051 Reputation points Microsoft Vendor
1 answer

How do you read an SMS and MMS message using .NET MAUI (on Android only)?

I'd like to read an SMS and/or MMS message on an Android device only, but from within my .NET MAUI app. Specifically, I want to save any received (MMS) picture that has been texted to me plus any associated (SMS) text. Is this possible with .NET MAUI…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,096 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,535 questions
asked 2024-06-19T23:12:35.5966667+00:00
Gene Magpayo 0 Reputation points
edited a comment 2024-06-25T05:53:24.54+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,051 Reputation points Microsoft Vendor
1 answer

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,387 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,535 questions
asked 2024-06-18T18:03:07.49+00:00
Gani_tpt 2,106 Reputation points
commented 2024-06-25T02:58:10.5066667+00:00
Lan Huang-MSFT 28,126 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

How to create Excel file with Visual Studio 2022 and C#

I'm working with Visual Studio 2022, Project WPF C# with .Net 6.0 and Entity Framework Core. DataBase MS SQL Express.I have also a valid and active licence Microsoft Office 365. I try to Create an Excel File but I have different error msg (see…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,550 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,628 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,535 questions
asked 2023-08-06T15:37:30.7133333+00:00
Dmtr_Grms 331 Reputation points
edited an answer 2024-06-25T02:56:53.9966667+00:00
winironteam 36 Reputation points
2 answers

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,387 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,535 questions
asked 2024-06-23T15:57:21.8333333+00:00
Gani_tpt 2,106 Reputation points
commented 2024-06-25T02:01:55.1433333+00:00
Lan Huang-MSFT 28,126 Reputation points Microsoft Vendor
3 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.
715 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,313 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,465 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,535 questions
asked 2024-06-24T17:33:35.47+00:00
Cenk 986 Reputation points
answered 2024-06-24T23:45:29.2733333+00:00
SurferOnWww 2,251 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,154 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,535 questions
Microsoft Entra
asked 2024-06-24T22:00:00.81+00:00
Isuru 0 Reputation points
edited an answer 2024-06-24T23:29:26.18+00:00
Isuru 0 Reputation points