Internal Class Public members
I had been asked an interesting question around why internal class members were declared public, not internal in my PR.
Form displays empty if not modal
In WinForms, I created a form to display the version number of the application.
It only contains labels, and a timer to close it.
I have an hesitation about this.
If showed modal, it works very good; but of course, it delays the rest of the application, if I want to let time to read a description.
If showed not modal, it displays its background, and nothing else.
I am thinking about a way to stimulate the loading of the texts, without refraining the execution of the application.
Set Click event for Panel which dynamicly created
I made a class witch building some cards(Panel), and I want to add “Click” event while they are generated. I use this code below:
How to detect mouse leave event when the mouse left button is hold down?
i tried this but it’s not working. the check is never true and it’s never get inside.
How to resolve blurry text in WinForms, *only* after connecting to USB dock
I should say first up, I don’t think this is a duplicate of Creating a DPI-Aware Application, and the many other similar questions, though it is closely related.
My Project cannot load a .cs file that is in the folder
very new programmer here,
I just completed a C# winform project and wanted to rename my project folder to something else (bad idea). After I renamed it, my code would not compile and gave me a CSC : error CS2001: Source file ‘myfile.cs’ could not be found.
I’m trying to create a simple csv file viewer in c# winforms. the problem is how to resize the usercontrol with the datagridview on form1 designer?
The code
Form with transparent element
In CSharp, on Windows 11, I have a form with a solid background and a transparent PictureBox. The form loads and PictureBox is actually transparent, but when I move the mouse over the transparent area the mouse handling gets sent to objects behind the form.
How to draw a point exactly on the mouse cursor coordinates?
this is a screenshot of my form1 and there is a small offset between the point and the mouse cursor. the point should be drawn where the mouse cursor arrow is.
Why getting exception System.IO.IOException: ‘The process cannot access the file … because it is being used by another process?
How to solve and avoid from getting this exception ?