10,249 questions with C#-related tags

Sort by: Updated
1 answer

how to get bus reported device description for VSP com port

Hello, I am using C# to detect usb vsp com port for my ARM controller via usb port. My program has been working properly, but I can't get the descriptor on ARM controller because windows use universal serial device driver. I found item "bus reported…

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,422 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,249 questions
asked 2024-04-23T18:20:45.4133333+00:00
YANG HONG 0 Reputation points
answered 2024-04-23T19:18:02.63+00:00
Castorix31 81,726 Reputation points
1 answer One of the answers was accepted by the question author.

C# XML file, Change watching

Hello forum member experts! I have an XML file containing the current order and the quantity.The application should now read and visualize the file cyclically or at best when the file is changed. As this is parallel to another application, the Windows…

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,249 questions
asked 2024-04-22T14:09:06.5633333+00:00
Noah Aas 100 Reputation points
commented 2024-04-23T17:18:56.4166667+00:00
Noah Aas 100 Reputation points
3 answers

Error Installing Application on Another Computer: Invalid Connection String

Good evening dear community, I am bringing up my problem again since I have not been able to find a solution. To the point: I created a small application with a single Windows Forms form. It has its own connection string to the database and an example…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,715 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,249 questions
asked 2024-02-25T00:40:15.0533333+00:00
Roberto Carlos Melgar Dorado 60 Reputation points
answered 2024-04-23T16:08:38.42+00:00
Roberto Carlos Melgar Dorado 60 Reputation points
1 answer

Not able to get access token using MSAL.Net in VSTO application

I have created a VSTO Excel Add-in project (with C#, Target .Net Framework version 4.8, Visual Studio 2022, working on Windows 10 Enterprise (version 21H2)). With this Microsoft Excel add-in, I want to do authentication for my APIs by getting the…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
611 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,249 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,489 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,474 questions
asked 2023-09-01T13:55:37.1333333+00:00
Krishan Kataria 10 Reputation points
commented 2024-04-23T15:19:54.97+00:00
Bernhard Kircher 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to add Tasks window to Debug Menu

Hi. I am trying to debug my Tasks but The Debug-> Windows menu Item does not have a selection for Tasks.

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,249 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
939 questions
asked 2024-04-22T13:31:09.6033333+00:00
Ronald Rex 181 Reputation points
accepted 2024-04-23T14:54:47.3366667+00:00
Ronald Rex 181 Reputation points
3 answers One of the answers was accepted by the question author.

LinQ query 1:n and 1:n relation

I have two pages and a list of bicycles. I want to check and query properties. If I do it in detail, it works well. List<Bike> listBoardBikes; for (side = Side.Side1; side <= Side.Side2; side++) // Side 1 and Side 2 { listBoardBikes =…

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,249 questions
asked 2024-04-22T14:13:35.8+00:00
Noah Aas 100 Reputation points
commented 2024-04-23T13:40:50.81+00:00
Noah Aas 100 Reputation points
0 answers

Exception thrown: 'System.Data.SqlServerCe.SqlCeException' in System.Data.SqlServerCe.dll

Hello All, I facing an issue with the following error. When I build the project it successfully builds but then when I execute it I am not getting the output window. When checked, I noticed that I am facing an issue when I run. The following exceptions…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 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,607 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,715 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,249 questions
asked 2024-04-23T07:50:48.68+00:00
Lakshman Balasubramanian 21 Reputation points
commented 2024-04-23T09:19:29.0766667+00:00
Jiale Xue - MSFT 31,976 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to fix these errors. (Top figure)

Dear All, How to fix these errors. Files in the folder C:\Users\Ben Tam\source\repos\NewTims\BaseControlLibrary\obj\Debug The content of the file ".NETFramework,Version=v4.0.AssemblyAttributes.cs" (in the red lines in the File…

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,249 questions
asked 2023-09-02T05:19:23.02+00:00
BenTam 1,561 Reputation points
commented 2024-04-23T09:02:13.72+00:00
Đức Hùng 0 Reputation points
1 answer One of the answers was accepted by the question author.

Access and read all SMS on Android phone with .NET MAUI

For an application that, as a part of its functionality, can read all stored SMS on an android phone, can you give general directions what to read exactly to learn and implement it in a .NET MAUI project? I'm a beginner. I've only worked with MVC, WPF…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 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,249 questions
asked 2023-11-21T03:48:09.5466667+00:00
MSCollege3000 120 Reputation points
commented 2024-04-23T07:46:25.7333333+00:00
AG 491 Reputation points
1 answer One of the answers was accepted by the question author.

How to fix the error: cStudentID always reset to "0"

Dear all, I encountered a bug that cStudentID is always reset to "0". I know that I should use the modifier static instead of string at the first line of the RetrieveData() function. Could you show me how? using System; using System.Data; using…

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,249 questions
asked 2024-04-21T14:18:12.3866667+00:00
BenTam 1,561 Reputation points
accepted 2024-04-23T06:48:59.4666667+00:00
BenTam 1,561 Reputation points
1 answer One of the answers was accepted by the question author.

there is something wrong with my c# program, and i need assistance.

Here's how my program like, or you can also see it from attached image:partial class Boot { static void Main() { Console.WriteLine("please input the path of your data store."); string ds_path = Console.ReadLine(); try { …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 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,249 questions
asked 2024-04-22T12:51:02.23+00:00
Weber Chang 20 Reputation points
commented 2024-04-23T06:18:25.7233333+00:00
Weber Chang 20 Reputation points
0 answers

.net MAUI is there a way to have an entry field have focus on load but not show the soft keyboard?

so ive worked on an android app in VS2019 and in that app its not a problem for me to have a screen load up, set focus to the first entry field( in that case its an EditText) but not show the soft keyboard. it will only show the soft keyboard if the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 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,249 questions
asked 2024-04-19T20:56:32.3766667+00:00
Min T 41 Reputation points
commented 2024-04-23T02:49:34.18+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,651 Reputation points Microsoft Vendor
1 answer

Webview2 does not complete download (VS2019, C#)

I have a hidden download dialog in my application. Webview2 sometimes (irregularly) does not complete the download of a small (40-70kb) Pdf file - its final renaming does not occur. The application seems to be in a waiting state, but it is not stopping…

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,249 questions
asked 2023-03-20T15:42:28.96+00:00
Jiri Novak 0 Reputation points
commented 2024-04-22T23:23:31.6466667+00:00
Jesus Perez 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to remove Bottom Border Textbox | UWP

Hello. I have a native TextBox and I'd like to remove this blue border-bottom in Light and Dark: Focus State: Rest: I'd like to remove all these bottom borders. However, if my SO is in High Contrast mode, I'd like to keep these native borders: …

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,249 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.
764 questions
asked 2024-04-19T14:49:44.9933333+00:00
Anderson Rodrigues Cavalcante 271 Reputation points
commented 2024-04-22T23:14:41.38+00:00
Anderson Rodrigues Cavalcante 271 Reputation points
1 answer

OAuth2 callback redirects user to authorization page

I am implementing OAuth2 authorization in my application with an external provider. When the user is redirected back to my application from the authorization server, my application will just redirect the user back despite using the Redirect() method to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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,249 questions
asked 2024-04-22T21:21:27.0266667+00:00
iKingNinja 40 Reputation points
commented 2024-04-22T22:09:38.0233333+00:00
iKingNinja 40 Reputation points
1 answer One of the answers was accepted by the question author.

Get encoding from Encoding.EncodingName

Hello I need to get the Encoding from a string which is a valid string : Encoding.EncodingName ie: Korean (EUC) or Central European (Windows) Having this string, how to get the proper encoding? Encoding.GetEncoding("Central European (Windows)")…

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,249 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,571 questions
asked 2024-04-22T15:43:18.0133333+00:00
Chery Lidan 20 Reputation points
accepted 2024-04-22T21:16:33.2166667+00:00
Chery Lidan 20 Reputation points
2 answers One of the answers was accepted by the question author.

Unable to load the native components of SQL Server Compact

Hello All, I am trying to create a local database programmatically using C# with Sql server compact edition. I have Visual Studio 2019 and created a project with .NET framework of version 4.8. I have the following code which will create a database. …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 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,607 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,715 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,249 questions
asked 2024-04-22T19:03:42.12+00:00
Lakshman Balasubramanian 21 Reputation points
accepted 2024-04-22T20:23:05.6666667+00:00
Lakshman Balasubramanian 21 Reputation points
4 answers

saving the Identity token in the Aspnetusertokens table

Hi I created an Asp.net core 6 project and I added the Identity framework for authentication and authorization, I would like to add token management and while doing research I realized that Identity also manages the management of tokens because it…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
611 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
5,496 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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,249 questions
asked 2023-11-07T11:19:50.1566667+00:00
Marnelle M'BENGUET 20 Reputation points
edited a comment 2024-04-22T20:13:26.7166667+00:00
Angel Tobon 0 Reputation points
4 answers

List SQL Server Instances

Good afternoon, I have a windows form that I am working with. When I first wrote this code it worked and was able to pull a list of SQL Servers for a ComboBox, and then as I changed servers it would populate another ComboBox with databases. I…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 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,249 questions
asked 2022-08-18T19:33:09.817+00:00
Michael Mastro II 51 Reputation points
commented 2024-04-22T09:56:55.08+00:00
Brendan Daunt 0 Reputation points
1 answer

All Toolbox Options Greyed in Visual Studio 2022

I have recently upgraded my WinForm C# application from .Net 4.7.x to .Net 6 I wish to make a change to one of the Forms, however when I try to add any control to any form, I find that all options are greyed out in the Toolbox, so I can modify any of the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 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,249 questions
asked 2024-04-20T11:10:48.4966667+00:00
Tony Hedge 1 Reputation point
commented 2024-04-22T09:39:34.93+00:00
Jiale Xue - MSFT 31,976 Reputation points Microsoft Vendor