Need a small app...

Soldato
Joined
15 Dec 2004
Posts
3,819
Hi,

Would someone mind writing me a small application that will run on logon at work? It needs to be a small window that sits in the bottom right corner of the screen rather like ranger toolbar but instead of having those buttons, it needs a logoff button and a button that links to this path:

Code:
\\server\ranger\quotaexplorer.exe

The main function will be to display the currently logged on username in a status bar of said window and if possible in the window title as well so if it gets minimised then it will still be in the taskbar. Final request is that it cannot be closed.

Thankyou for any attempts- anything will be much appreciated.

Ben
 
robmiller said:
Certainly sir, one moment please!

I assume that was sarcastic :(

EDIT: I have tried by the way- we've started learning VB at college but we've not and won't be doing windows forms until the second year- it's all modules at the moment.
 
Of course it wasn't sarcastic—it takes about two seconds to make and I'm bored.

Here you go: (Needs .NET framework 2.0)

http://robm.me.uk/uploads/files/1/scruttocks.zip

scruttocks.png


It's always on top by default, and I've not tested the logging off (because I don't want to log myself off, heh) but I'm pretty certain it should work—it just executes `shutdown -l`.
 
Last edited:
Trigger said:
I assume that was sarcastic :(

EDIT: I have tried by the way- we've started learning VB at college but we've not and won't be doing windows forms until the second year- it's all modules at the moment.


I don't think he was being sarcastic, i think thats just Rob.

He does C# IIRC.

EDIT: lol see above.
 
Thanks :)

I keep getting unhandled exeption errors though when I try and do anything :( Would it be possible to put the currently logged on username in the window and window title please?

Thanks though- much appreciated :)

Ben
 
You'll get an exception if \\server\ranger\quotaexplorer.exe isn't a valid path, which I should imagine it isn't on your home machine. I shall fix this.

And yup I'll stick the username in the title :)
 
Excellent! Thanks Rob :D

I like the error message for quota checker. One final question though, would it be a lot of work to put a confirm box in for the logoff button otherwise we'll have people logging each other off a bit quickly :o

Thanks again

Ben
 
My god. It took me longer to read Trigger's 2nd post than it did for rob to create the first version. Rob Rules!!! :cool:


/bows



edit: I'm disappointed. The corners aren't rounded, there's no hover help balloons, and it doesn't automatically dock to the lower right corner. ;) :D
 
Last edited:
Trigger said:
Excellent! Thanks Rob :D

I like the error message for quota checker. One final question though, would it be a lot of work to put a confirm box in for the logoff button otherwise we'll have people logging each other off a bit quickly :o

Thanks again

Ben

Here's a confirmation for logging off, and I also made it start 5 pixels above the system tray by default :)

http://robm.me.uk/uploads/files/1/Scruttocks.zip
 
Brilliant :D One thing I forgot to mention- would it be possible to stop the user closing it and so it only closes when they log off? Sorry for being a pest :o

Thankyou

Ben
 
Back
Top Bottom