Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Status Bar Question

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I want to use a staus bar on my MDI main form that shows the user logged in and the date and time. How do i do this?


thanks in advance
DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
 
Microsoft Common Controls 6 (mscomctl.ocx) has a status bar control in it. You can set up text boxes or progress bars or other controls in its panes.

Simplest way, though is just add a text box at the bottom of your form. Then write a simple procedure that you can call from your other functions.

Private Sub UpdateStatus(ByVal strMessage as String)
txtStatus.Text = strMessage
End Sub

Then you can call UpdateStatus("This is my message") from
your other functions.

scarfhead
 
OK..how would I get the user thats logged into my SQL server? I want to have the current user and time of the person logged into my sql server. DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top