Having problems seeing your design when running you windows forms app on XP? Looks good in VS design, but colorless and dull in runtime?
Then you need to make this fix to the main method:
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
// Calling DoEvents after the above method call seems to fix this issue
Application.DoEvents();
Application.Run(new Form1());
}
// Lazze
The life of a computer/sci-fy/teccie-nerd :-) Interested in lots of stuff like: Net, C#, Software Architecture, IoT, building stuff (like sensors based on RPI Pico W), Cars, Books, meeting people, learning new stuff, Cyber Security
Subscribe to:
Post Comments (Atom)
Lazzes Smart Home - 2023
Here is an overview of the components in the Smart Home as of now. More stuff than I tought :-)

-
If you, like me - use VLC mediaplayer to view all your media, you may have run into the same problem as I. That is, when we watch multiple m...
-
Start, Run, CMD to open a command prompt(need to be admin): Reset TCP/IP stack to installation defaults. netsh int ip reset reset.log Reset ...
-
using System ; using System . Data ; using System . Configuration ; using System . Web ; using System . Web . Security ; using System ...
No comments:
Post a Comment