information about c#

  • Thread starter Thread starter nadeem lion
  • Start date Start date
N

nadeem lion

i am creating window application for netcafe manager ,the problem is
that i wana logout particular user computer if the time of the user if
finished ........

could any one help me
 
Make a timer, set the time interval, start it when user logs in, when it
finishes make it auto log out user.

Is the problem you don't know 'how' to do it? (as answered above) or you
don't know how to implement it. If its the latter, that is very basic c#
(not meaning to be patronising) so i would recommend some tutorials on c# to
get aquanited with the language before undertaking any project or you'll be
posting on here a lot.
 
Daniel

Even doing a course or two doesnt always help. I have done a few short
courses including a 5 day Microsoft course, and have read many books, but
still I get stuck.

I think your experience is what is beneficial. And I, for one, greatly
appreciate those (including you ) who share your knowledge and experience in
this forum.

thanks

Doug
 
Hello nadeem,

Create the service wich will be installed on the user's machine and will
communicate with the master machite where u set the time to logout.
Perform logout via the WMI (SELECT * FROM Win32_OperatingSystem and Win32Shutdown
method)

See samples of the script to logout on the microsoft/technet/script section
there http://www.microsoft.com/technet/scriptcenter/default.mspx



---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

nl> i am creating window application for netcafe manager ,the problem is
nl> that i wana logout particular user computer if the time of the user
nl> if finished ........
nl>
nl> could any one help me
nl>
nl>
nl>
 
Hi Doug,

I didn't mean to cause offence but you have to be realistc. As i said to him
if it was as basic a need as it seemed (i could be wrong, if he wants to do
it the way that Michael mentioned its a little smarter, but i assumed
logging out of his programme not logging out the windows account itself but
still similar style), then in my opinion, tutorials are the way forward.

There is nothing wrong with getting stuck, i post on here as well from time
to time with issues that come up, but some post very simple issues and then
you see another post, and another all very simple when they can just google
a tutorial. Great to use newsgroups but they should be for those question
when finding a online resource is not so easy or for a guide etc. Again
nothing wrong with his post and i certianly don't feel i have the right to
say what should and shoud not be posted.

That said i stand by my comment, tutorials online are great and there is one
for nearly every problem out there. If they don't work for you and courses
haven't helped much you need to ask yourself why, i would expect there is
some fundamentals you have not grasped. When i started out i couldn't get my
head round what a class was, then one day it clicked and suddenly everything
fell into place. Maybe it is or will be the same for you?

I should add, i have never taken a course and am self taught. (Same goes for
many of the game programmers i work with).
 
Try expert exchange and codeproject webpage, they have wealth of
information. You can place technical question in expert exchange, but
they charge £6 per month (which is very cheap for given response). I
used it a lot and sometime give better answer than textbook, but
textbook provide better education. Try Apress book series on C#, they
very good materials.
 
Back
Top