11,185 questions with C#-related tags

Sort by: Updated
0 answers

a exception at writeline: ArgumentOutofRangeException:specified argument was out of range of valid values.

Write line to a file by file stream "streamwriter". Whenever the variable data changes, write a line.It may run abnormally after running for several hours.It may run whole a day without abnomal. The code is as follows: RecordRow dataRow =…

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.
11,185 questions
asked 2025-01-12T12:51:43.3533333+00:00
小姐 董 0 Reputation points
2 answers

How to Add Record Count on Existing Code

What is easiest way to add Record count for this code: try { String connectionString = "Data Source=XPSSLOWPC;Initial Catalog=Movies;Integrated Security=True;"; using (SqlConnection connection = new(connectionString)) { …

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.
11,185 questions
asked 2025-01-09T21:11:25.2866667+00:00
FRANK LUJAN 20 Reputation points
commented 2025-01-12T03:24:24.09+00:00
Michael Taylor 55,841 Reputation points
2 answers

Issues with Rotating ProgressBar for Vertical Orientation In WinUI App

Hi, I am working on a custom StepBar control, and the Horizontal orientation is functioning as expected. However, I am encountering issues when implementing the Vertical orientation. Since the ProgressBar control does not have an Orientation property,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,034 questions
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.
807 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.
11,185 questions
asked 2025-01-08T14:04:24.5533333+00:00
Mahdi Hosseini 155 Reputation points
answered 2025-01-12T00:26:10.57+00:00
Active Server 0 Reputation points
0 answers

test return value after executing NavigateToAsync command

The following code works perfectly. but now I want to test the value returned in a global variable. (this is an inventory system with a multi column checklist page that calls and populates the infopagemodel when I tap an item/line , so that I can…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,339 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,805 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.
11,185 questions
asked 2025-01-11T21:01:01.0633333+00:00
tim 200 Reputation points
edited the question 2025-01-11T22:46:00.8366667+00:00
tim 200 Reputation points
1 answer

Close and then open a new tab page or window asks authentication

I am trying to embed a webform application in WinForm using Webview2 control. The new window opens in a tab page with webview2 child ( e.handled=true). But when destroying the child tab wm_destroy is not calling properly. so each time while open a new…

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,700 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.
11,185 questions
asked 2025-01-11T04:26:32.7333333+00:00
Neha 0 Reputation points
answered 2025-01-11T19:26:52.34+00:00
Bruce (SqlWork.com) 69,121 Reputation points
1 answer One of the answers was accepted by the question author.

I want lunch a program at 12.00 pm toninght and now time is 10.50 PM,all about timer.How to configure that timer.

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Timer_1 { public partial class…

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.
11,185 questions
asked 2025-01-09T14:42:54.3466667+00:00
MIPAKTEH_1 525 Reputation points
accepted 2025-01-11T15:30:39.0233333+00:00
MIPAKTEH_1 525 Reputation points
0 answers

Real-time Transcription in ACS Group video calls

have been working on implementing the Azure Communication Services (ACS) real-time transcription feature and followed the steps outlined in the:…

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
959 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.
11,185 questions
asked 2025-01-10T05:09:32.3066667+00:00
Madushika Shiromani 0 Reputation points
edited the question 2025-01-11T11:22:56.57+00:00
Madushika Shiromani 0 Reputation points
1 answer

Unable to publish with fulltrustprocess and Multiple instances of UWP app

UWP experts , There are three components here. Main UWP app with multiple instances supported through package manifest - C# UWP FullTrustprocess that acts as the appserviceconnection server - C# .NET 8 WAPP Package that bundles UWP app and…

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.
11,185 questions
asked 2024-12-03T06:00:38.49+00:00
DotNET Fan 271 Reputation points
edited the question 2025-01-11T09:01:32.0033333+00:00
TP 101.3K Reputation points
1 answer

In Azure Web PubSub, How to receive messages in backend microservice for processing

Requirement: My clients are using simple WebSocket connection to send messages. I want to receive these messages inside my backend .NET 8 web api and process them further to send fine-tuned data to some distributed cache services. From documentation, I…

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
81 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,729 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.
11,185 questions
asked 2025-01-10T05:55:02.9966667+00:00
dheeraj awale 1 Reputation point
answered 2025-01-10T18:53:50.1966667+00:00
Bruce (SqlWork.com) 69,121 Reputation points
2 answers

Using jscript.dll for COM Script Execution in C#

What are the steps to utilize "C:\Windows\System32\jscript.dll" for executing scripts with COM? I am looking for a sample code that demonstrates how to load the JScript DLL dynamically or by reflection, and how to utilize the methods or run…

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.
11,185 questions
asked 2025-01-07T07:47:11.1233333+00:00
Deepak Rane (drane) 60 Reputation points
answered 2025-01-10T17:20:11.91+00:00
Michael Taylor 55,841 Reputation points
3 answers

c# binding datagrid wpf

Ciao A tutti, ho creato questo codice namespace WpfApplication6 { /// <summary> /// Logica di interazione per MainWindow.xaml /// </summary> public partial class MainWindow : Window { …

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.
11,185 questions
asked 2025-01-08T09:39:38.3533333+00:00
Marco Boscolo 0 Reputation points
commented 2025-01-10T16:22:35.78+00:00
Marco Boscolo 0 Reputation points
3 answers

How to fix code throwing exception : Microsoft.Data.SqlClient.SqlException: 'Login failed for user '<token-identified principal>'. The server is not currently configured to accept this token.'

Hi All, I'm encountering an issue while trying to connect to an Azure SQL Database using Microsoft Entra Authentication (formerly Azure AD). I am using DefaultAzureCredential in my .NET application to authenticate and retrieve the access token, but…

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,279 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.
11,185 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,143 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,802 questions
asked 2025-01-03T00:29:43.2+00:00
Krishna Basavaraj K S 0 Reputation points
answered 2025-01-10T15:55:04.94+00:00
NIKHILA NETHIKUNTA 4,010 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Why can't I add Items to a ComboBox that is accessed using this.tableLayoutPanel1.GetControlFromPosition(i, j)

I have created ComboBox Controls when my Form Loads and I want to add Items to them later when the user makes specific selections but, I cannot use Items.Add because the compiler reports a Compiler Error CS1061 'Control' does not contain a definition 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.
11,185 questions
asked 2025-01-09T17:36:50.7966667+00:00
Michael Bahr 20 Reputation points
commented 2025-01-10T14:01:10.1066667+00:00
Michael Bahr 20 Reputation points
1 answer

How to get the assistant to use the vector store using Azure OpenAI: OpenAI Assistants client library for .NET

Hi, Seeking help getting the assistant to use the vector store using the library below: Azure OpenAI: OpenAI Assistants client library for .NET - version 1.0.0-beta.4 For some context: I've created a Vector store as well as an Assistant within Azure AI…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,034 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.
11,185 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,503 questions
asked 2025-01-07T05:21:51.9366667+00:00
Khimananda Acharya 0 Reputation points
answered 2025-01-10T11:56:55.5366667+00:00
Daniel FANG 1,040 Reputation points MVP
1 answer

Unable to display alert after modal popup

I have an issue I am unable to solve. In this code: var popupPage = new myPopup(); var taskCompletionSource = new TaskCompletionSource<bool>(); // Set up an event to resolve the task when the modal is dismissed popupPage.Disappearing += (s, args)…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,805 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.
11,185 questions
asked 2025-01-08T17:19:31.36+00:00
Phunction 261 Reputation points
answered 2025-01-10T07:41:29.35+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 34,226 Reputation points Microsoft Vendor
4 answers

How to convert outlook email (.msg) to pdf c# ?

Are there any free libraries using which I can convert outlook emails i.e. .msg files to pdf in my WPF c# app? I've tried using PDFSharp like below but the data is not showing properly at all. The email body contains tables and text and sometimes it may…

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,807 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.
11,185 questions
asked 2023-05-09T07:35:53.6466667+00:00
don bradman 621 Reputation points
edited the question 2025-01-10T07:14:01.1+00:00
TP 101.3K Reputation points
0 answers

Cannot Connect Locally to when using Microsoft.CognitiveServices.Speech

Hello Everyone, I am trying to build a method that detects the language of the audio I provide it. My application translates audio but since we batch transcribe and also use a custom model, I cannot use languageIdentification. Therefore, I am trying to…

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,853 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.
11,185 questions
asked 2025-01-03T20:09:00.52+00:00
Michael Lanctot 0 Reputation points
commented 2025-01-10T02:36:47.58+00:00
navba-MSFT 27,185 Reputation points Microsoft Employee
2 answers

Create new event with location

Using this article: https://learn.microsoft.com/en-us/graph/api/resources/location?view=graph-rest-1.0 I'm trying to use graph api to create a new calendar event with location. For location, I'm putting a random string name in displayName, say…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,750 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.
11,185 questions
asked 2025-01-09T21:47:19.62+00:00
Christopher R 20 Reputation points
answered 2025-01-10T02:26:11.1833333+00:00
Yakun Huang-MSFT 8,825 Reputation points Microsoft Vendor
1 answer

How to query mssql to get weekly time interval from the first day the data was created for a period of 1 year

Hello, I am trying to write sql query to to get weekly time interval from the first day the data was created for a period of 1 year to select number of week of the current date for a particular user Id. Below is my mssql query. WITH WeeklyIntervals AS…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,279 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.
11,185 questions
asked 2025-01-09T09:38:28.99+00:00
Emeka Okoye 106 Reputation points
commented 2025-01-09T22:45:45.2466667+00:00
Erland Sommarskog 115.1K Reputation points MVP
1 answer One of the answers was accepted by the question author.

how to update version in apk maui application automatically?

Hi, i'm using .net maui 8 for Android , and i publish my application in a remote server and when i update my application automatically by comparing version in update.json file. I can't update version in my app. how to do that?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,805 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.
11,185 questions
asked 2025-01-07T15:42:13.4966667+00:00
Graja Kaouthar 20 Reputation points
accepted 2025-01-09T16:36:41.7966667+00:00
Graja Kaouthar 20 Reputation points