How to handle nullreference exception in "NM_CUSTOMDRAW" notification message?
Hello, I have a windows forms application having a user control . The user control has a Treeview named as TriView. TriView's drawmode is set to OwnerDrawAll. The form is visible all the time. When I run my application and switch between the…
Why my Visual Studio 2022 Crashes when added new Windows Form UI in CLR Project?
Following This Tutorial Video, I'm keep Experiencing fatal crash at Adding new WinForm UI item. (at 3:10~ in video) followed Exactly the video's tutorial.(the video gets an Error too, but It's not fatal as I crash.) I Made new CLI Empty Project(.NET…
Chart control. I need to show the Label of the bar in the middle of the bar not on top
I need to show the Label of the bar in the middle of the bar not on top. To get the original photo below, I have set the series flag IsValueShownAsLabel to true. The desired label position is shown in the second screenshot. Original: Desired:
Windows defender blocking signed apps
Hi, I have created some windows forms apps, the apps are all signed with a Sectigo code signing certificate but when I download them from my own website, I initially get the windows defender warning that the app has been blocked for my protection, once I…
how to get the encoding of text?
how to get the encoding? if I have text like this:Καλώς ήρθατε στην επίσκεψη how to get its encoding? I know it is in windows-1253 but if there is textBox and user input some text how to get the encoding?
How to solve: You have reached the maximum number of connections for the sendmail API.
Trying to use power automate to flow the response but getting the error message when using sending mail funciton v3 You have reached the maximum number of connections for the sendmail API.
How to fix the error
Severity Code Description Project File Line Suppression State Error (active) NETSDK1004 Assets file 'C:\Users\User\source\repos\WinFormsApp1\WinFormsApp1\obj\project.assets.json' not found. Run a NuGet package restore to generate this…
4D Linked list Text Editer using Winform
My task is to use a 4D linked list and display Linked List in Windows form and store data in a .txt file using file handling. and how can I input my data in linked list because console .read is not available in winform How can I display my linked…
Visual studio Resource files are being stored as string
I updated to vs2022 17.11.5. In the older vs2022, i was able to add a resource file through project properties. The set up was almost automatic. And when I needed the resource file I just call it using My.resource.[fileName] and get a byte() stream of…
How to debug unexpected behavior in tree view navigation after implementing lazy loading and caching in Winforms and C#?
I am creating a taxonomy as a tree view in Visual Studio Winforms with C#, which already holds some 40,000+ items in an SQLServer data base, and its nodes details are translated into 15 languages into a data grid. The latency for directly loading the…
How should I use the Visual Studio 2022 Image Library?
I am developing a WinForm application using C# in VS2022, targeting .NET 8.0. I downloaded the "Visual Studio 2022 Image Library," which contains PNG and SVG files. I want to use the PNG files to add images to my buttons, but the resolution…
Toolbox has no items
Visual Studio 22 Windows Forms App has the following message in the Toolbox, "There are no usable controls in this group. Drag an item onto this text to add it to the toolbox." I have tried the reset toolbox and choosing items but neither…
How do you prevent form closing when events or methods are still running?
I'm struggling with the issue of user prematurely closing (using the Red X button) a form while it is processing an event or another process is calling a method in it. Object references inside the running event or method might become invalid because the…
Exception when using Firebase streaming
Hi, When I try to read data from Firebase using FirebaseDatabase.net Library I receive Newtonsoft.Json.JsonReaderException exeption this code works Imports Firebase.Database Imports Firebase.Database.Query Public Class Form1 Private Async Sub…
Clickonce setup app crashes
on a windows 7,64 bit, Sp1 can a C#.net winform application build on framework 4.8 be installed ? it was possible to install framework 4.8 on windows 7 sp1, 64 bit pc the clickonce setup also ran sucsesfully. but application starts and stops…
Get Results from Task.WhenAll for multiple tasks
Hi Folks, I am trying to get the results back from running multiple tasks. Each task point to a function and returns either true or false. Here is my code: var t1 = new Task(() => { CheckNC(); }) ; var t2 = new Task(() => { CheckNL(); }); var t3…
Assistance Required for Resolving "System.OutOfMemoryException" in Visual Studio
Subject: Help Needed with System Out-of-Memory Issue in Visual Studio Hello Everyone, I hope you're all doing well. I'm working on a project in Visual Studio that includes a large number of forms, user controls, and images used as icons. However, I am…
vb.net I have folder in program path called patient files i need to open specific file using textbox1 with name of file
vb.net I have folder in program path called patient files i need to open specific pdf file using textbox1 with name of file
How to Fix: Method "Form1_Load" not Found
just got started using visual basic and I don't know how to fix this
GUI using Windows Forms and Powershell
I am building a GUI using Windows Forms in Powershell. I have created 4 Radio Buttons with a line of text to the right of each button to describe the purpose . The text is long (22 Characters) and it is being wrapped onto two lines when I want it to…