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…
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…
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…
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…
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.
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 =…
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…
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…
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…
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…
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 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…
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…
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: …
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…
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)")…
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. …
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…
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…
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…