Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
Status Bar
Old
  (#1)
Anonymous
Guest
 
Posts: n/a
Default Status Bar - 06-04-2007, 10:31 AM

Just wondering how do I get the status bar in my program to tell the user
what is happening?
I'm creating a small media player and I want the status bar to tell me the
time of the file (how much has played / how much is left) and tell me the
filename. here is my code

Private Sub cmdOpen_Click()

dlgPlayer.FileName = ""
dlgPlayer.ShowOpen
Open dlgPlayer.FileName For Input As 1
WindowsMediaPlayer1.URL = dlgPlayer.FileName
Close 1
End Sub

as you can see I haven't got a clue of what to do with the statusbar with of
course isn't listed, i figured I could put it in between the 'Open
dlgPlayer' and the 'Close 1" but I have no idea the property that I'm
changing
Please HELP?!
Thanx


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Status Bar
Old
  (#2)
Anonymous
Guest
 
Posts: n/a
Default Re: Status Bar - 06-04-2007, 10:32 AM

ok now I got something better but it still doesn't display anything in the
status bar
here it is

Private Sub WindowsMediaPlayer1_OpenStateChange(ByVal NewState As Long)
StatusBar1.SimpleText = WindowsMediaPlayer1.Status
End Sub
someone help

"Anonymous" <EMAIL REMOVED> wrote in message
news:m%gZg.27689$P7.13286@edtnps89...
> Just wondering how do I get the status bar in my program to tell the user
> what is happening?
> I'm creating a small media player and I want the status bar to tell me the
> time of the file (how much has played / how much is left) and tell me the
> filename. here is my code
>
> Private Sub cmdOpen_Click()
>
> dlgPlayer.FileName = ""
> dlgPlayer.ShowOpen
> Open dlgPlayer.FileName For Input As 1
> WindowsMediaPlayer1.URL = dlgPlayer.FileName
> Close 1
> End Sub
>
> as you can see I haven't got a clue of what to do with the statusbar with
> of course isn't listed, i figured I could put it in between the 'Open
> dlgPlayer' and the 'Close 1" but I have no idea the property that I'm
> changing
> Please HELP?!
> Thanx
>
>



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top