dumb question?

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

SystemInformation contains forms-relevant information, but I also see other,
totally unrelated stuff like UserDomainName and UserName. Isn't it rather
poor design to require projects to include a reference to Windows.Forms.dll
just to get this information? Perhaps there is another area I can get login
and domain info without resorting to API calls?

Paul
 
SystemInformation contains forms-relevant information, but I also see other,
totally unrelated stuff like UserDomainName and UserName. Isn't it rather
poor design to require projects to include a reference to Windows.Forms.dll
just to get this information? Perhaps there is another area I can get login
and domain info without resorting to API calls?


The System.Environment class.



Mattias
 
Paul said:
SystemInformation contains forms-relevant information, but I also see
other,
totally unrelated stuff like UserDomainName and UserName. Isn't it rather
poor design to require projects to include a reference to
Windows.Forms.dll
just to get this information? Perhaps there is another area I can get
login
and domain info without resorting to API calls?

Information about the user can be obtained using the 'Environment' class
too, which is not part of the Windows Forms assembly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

A rather dumb question... 2
Question 5
Authenticating domain users 1
dataser design considerations 3
A question of normalization 6
Prefill a field 1
Dumb Question/ "Default Mail Client" problem from IE 1
Windows XP Big Problem... 1

Back
Top