vb.net screensaver, environment variable

defuseme2k

[H]ard|Gawd
Joined
Oct 7, 2004
Messages
1,074
I actually cannot find anything wrong with my code. This is more of a question that might need to go in the operating systems thread.

When I run my executable directly it pulls the Eviron("username") properly and the current user is displayed on my label. However when the .exe is renamed to .scr, and the system starts the screensaver the evironment variable no longer works.

Perhaps I'm not doing something correctly

Label#.text = Eviron("username") ?
 
Back
Top