10,430 questions with C#-related tags

Sort by: Updated
0 answers

How to check if an audio file is being played by programs like video players or audio players using C# as console-based app?

I want to check if an audio file is being played by audio or video player programs or by other programs. Since I don't have any knowledge or somehow solid knowledge about how to do it, I hope, you all(Microsoft Q&A community) will help me to do…

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,430 questions
asked 2024-06-04T15:43:31.9966667+00:00
Rahmatulloh 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to implement h.264 codec into screen recorder C# GUI app which records the full screen and also the system sound of Windows OS?

Here is my project on github: https://github.com/RahmatullohIsmoilov/ScreenAudioRecorder I want to record the full screen and at the same time the system sound of Windows OS with possible in less MB size :) And sometimes, I have some problems 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.
10,430 questions
asked 2024-06-03T15:45:20.5+00:00
Rahmatulloh 0 Reputation points
accepted 2024-06-04T14:35:17.7333333+00:00
Rahmatulloh 0 Reputation points
2 answers

How to maintain file upload values in session while editing and updating Gridview

I have developed and discussed a lot about the file upload and we were maintaining the upload file in session and data table I used session for time being for gridview footer and emptydata template. i want the same logic have to be implement for…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,334 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,430 questions
asked 2024-06-03T19:51:45.72+00:00
Gani_tpt 1,866 Reputation points
edited a comment 2024-06-04T14:19:21.28+00:00
Gani_tpt 1,866 Reputation points
1 answer

How to reproduce the UI control from mock-up using wpf?

Hi Team I have a mock-up and want to reproduce it using wpf controls given by Microsoft forms in windows. Below is my current code and need some adjustment, as well screen shot of the mock-up want to produce using wpf ui controls. <UserControl…

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,690 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,430 questions
asked 2024-05-28T16:45:17.65+00:00
Gcobani Mkontwana 40 Reputation points
commented 2024-06-04T13:57:42.1433333+00:00
Gcobani Mkontwana 40 Reputation points
0 answers

.Net 8 - HttpClient - Kerberos Auth - Authentication validation failed with error - InvalidToken.

We have an existing C# application in firm in .Net 6. This app consumes rest api exposed by another system within the firm (sso / kerberos). Its a simple GET call with Http Client. We upgraded the solution to .Net 8 and started facing Authentication…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,485 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,430 questions
asked 2024-05-08T12:17:33.0066667+00:00
Goutham Anandhan 0 Reputation points
commented 2024-06-04T13:31:33.42+00:00
Uwe Berthold 0 Reputation points
0 answers

How to add a different CSS to a razor page in Blazor WASM?

I am working on a Blazor WASM e-commerce application using the .NET 6 old version with a default template. I want to add a new razor page with a different look while keeping the old ones in the project. How can I achieve this? Specifically, I want to add…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,262 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,440 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,430 questions
asked 2024-06-04T13:24:09.7766667+00:00
Cenk 976 Reputation points
1 answer

How can C# be utilized to seamlessly integrate artificial intelligence algorithms into a web-based platform, optimizing user experience and enhancing system performance?

In the realm of software development, particularly in web-based applications, there's a growing demand for intelligent systems that adapt to user behavior and optimize performance. Considering the versatility of C# in various domains, how can developers…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,485 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,430 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
309 questions
asked 2024-06-04T11:23:59.78+00:00
tejaswini 0 Reputation points
answered 2024-06-04T12:38:55.1+00:00
Andrea Soldano 0 Reputation points
0 answers

How to replace OperationContext in new V12 SDK Azure.Storage.Blobs

I'm switching from Microsoft.WindowsAzure.Storage to Azure.Storage.Blobs. In the former versions I could log retries, this seems to be missing in the new SDK. I used OperationContext for this: var context = new OperationContext(); …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,857 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,785 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,516 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,430 questions
asked 2024-06-04T11:18:12.8033333+00:00
Becker, W 46 Reputation points
0 answers

System.Net.Http dll not loading issue in .Net Framework 4.8 project

Hi Team, I have a ClassLibrary 1 project targeting .Net Framework 4.6 refering "System.Net.Http" of dll version 4.1.1.3 ClassLibrary 2 project targeting .Net Framework 4.6 refering "System.Net.Http" of dll version 4.1.1.3 WPF…

Universal Windows Platform (UWP)
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,458 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,430 questions
asked 2024-06-04T10:36:45.6233333+00:00
Thejesh Pushpala 1 Reputation point
1 answer

Mitigation for Dll hijacking

Hello Team, I found dll injection in c#, .net and c++thick client applications. But to perform dll here I needed admin access. in this case I had admin access. So what will be the standard mitigation to prevent dll injection after even get the admin…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,485 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,430 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,574 questions
asked 2024-06-03T09:12:59.99+00:00
Mashuk Raza 0 Reputation points
commented 2024-06-04T10:23:15.49+00:00
RLWA32 41,466 Reputation points
2 answers

How can I set a control/element to full screen in WinUI3

I'm using MediaPlayerElement to play video, but there is no full screen button in the MediaTransportControls(but it does exist in UWP). So I think, maybe I can set the MediaPlayerElement or it's parent element to full screen. I tried the ZIndex and…

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.
735 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,430 questions
asked 2024-06-04T02:40:04.7733333+00:00
C CB 0 Reputation points
answered 2024-06-04T09:18:34.4333333+00:00
gekka 7,411 Reputation points MVP
0 answers

How can I trigger a method from the OrderConfirmation page in Blazor WASM?

Hi, I have a Blazor WASM Client e-commerce application where I'm showing cart counts in the NavMenu. I'm trying to call the GetCartCount() method from the OrderConfirmation razor page after payment has been completed to make the cart count zero, but I'm…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,262 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,440 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,430 questions
asked 2024-06-03T10:46:35.6966667+00:00
Cenk 976 Reputation points
edited a comment 2024-06-04T08:26:25.0666667+00:00
JasonPan - MSFT 4,626 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to build screen recorder Winform GUI app which also records the sound of system at the same time

using System; using System.Diagnostics; using System.Drawing; using System.Windows.Forms; using NAudio.Wave; using SharpAvi; using SharpAvi.Codecs; using SharpAvi.Output; namespace ScreenAudioRecorder { public partial class Form1 : Form { …

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,430 questions
asked 2024-05-27T15:21:50.9433333+00:00
Rahmatulloh 0 Reputation points
accepted 2024-06-04T07:33:47.1866667+00:00
Rahmatulloh 0 Reputation points
1 answer

How to fix build errors that I am getting currently when I convert my .NET MAUI [ sdk 6 version] to .NET 8 version?

I am currently in a process of converting my MAUI project which is in .NET 6 version to .NET 8 version. I have used Microsoft's .NET upgrade assistant extension tool for the same. After successful upgrade, when I try to build/rebuild my project, I am…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,485 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,020 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,430 questions
asked 2024-05-29T07:24:16.99+00:00
Suhas MR 0 Reputation points
commented 2024-06-04T06:24:23.9666667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,356 Reputation points Microsoft Vendor
0 answers

c# failed to invoke the openai API interface on Azure

I am using the official example to access the openai interface times the following error, how can I solve, increase the number of repetition is still the same public class OpenaiApi { public async Task

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,430 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,360 questions
asked 2024-05-29T08:10:41.67+00:00
Xianpeng XP3 Huang 0 Reputation points
commented 2024-06-04T04:26:31.2766667+00:00
navba-MSFT 18,160 Reputation points Microsoft Employee
0 answers

Azure Function app timeout in 4 minutes (230 seconds)

I am getting 500 Timeout issue while running function app for more than 4 minutes (230 seconds). It was working for 30 minutes when we were using .net 6 version. Suddenly we started getting 500 timeout when we updated function app to .net 8 version.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,433 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,430 questions
asked 2024-05-29T03:08:44.4366667+00:00
Shirvadkar, Virendra 0 Reputation points
commented 2024-06-04T03:00:55.3366667+00:00
SwathiDhanwada-MSFT 18,036 Reputation points
1 answer

privacy concerns when working with sensitive documents using Vision API

Hi: I am trying to extract texts from some sensitive image pdf documents using the Vision API. Any suggestions on how to ensure non-disclosure of these documents when processing them on Azure. Thank you.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,433 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,430 questions
asked 2024-06-03T21:31:02.36+00:00
Suli Adeniye 0 Reputation points
edited the question 2024-06-04T01:43:04+00:00
Jiale Xue - MSFT 38,951 Reputation points Microsoft Vendor
1 answer

When I try to download Microsoft Entra Connect from the provided link, it still shows as Azure AD Connect, and I want to ensure it's the correct download since the documentation refers to Entra Connect.

Hello, When I try to download the latest Microsoft Entra Connect, it still shows up as Azure AD Connect. I just want to make sure I am not downloading the wrong one since Microsoft documentation keeps referring to Entra Connect. Here is the link:…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,433 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,430 questions
asked 2024-06-03T14:59:12.02+00:00
Adewale Bello 0 Reputation points
edited the question 2024-06-04T01:30:32.05+00:00
Jiale Xue - MSFT 38,951 Reputation points Microsoft Vendor
3 answers

REST interface, server for GET,PUT,POST,DELETE

Hello, My goal is to control a Rest Server from a WPF C# desktop app. Get, Push, Pop, Delete should be tested. The server does not require extensive logic, only test data. Later, the customer REST server is connected. How can I achieve this? How should I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,262 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,334 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,430 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
309 questions
asked 2024-05-23T17:15:44.0466667+00:00
Noah Aas 260 Reputation points
commented 2024-06-04T00:46:38.2333333+00:00
SurferOnWww 2,086 Reputation points
2 answers

How can I save the original state of my Model and its XAML bindings in C# in a Variable?

I need to save the original state of my viewmodel and XAML bindings in C# when a View is originally loaded, so that I can revert back to the original Model property values if the user chooses to cancel their changes. I attempted to use the code below,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,020 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,430 questions
asked 2024-06-03T21:06:41.3733333+00:00
Tom Meier 140 Reputation points
answered 2024-06-03T22:45:39.5933333+00:00
Bruce (SqlWork.com) 58,761 Reputation points