Click here to Skip to main content
15,916,379 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Login User Pin
Mohammad Daba'an27-Feb-05 4:23
Mohammad Daba'an27-Feb-05 4:23 
GeneralRe: Login User Pin
Mandar Patankar27-Feb-05 6:17
Mandar Patankar27-Feb-05 6:17 
GeneralRe: Login User Pin
albCode27-Feb-05 6:38
albCode27-Feb-05 6:38 
QuestionHow to write and call a module in VB.net Pin
eshban28426-Feb-05 20:28
eshban28426-Feb-05 20:28 
AnswerRe: How to write and call a module in VB.net Pin
Mitch F.26-Feb-05 20:45
Mitch F.26-Feb-05 20:45 
GeneralRaj Settiappli Pin
shijutheertha26-Feb-05 19:35
shijutheertha26-Feb-05 19:35 
GeneralRe: Raj Settiappli Pin
Dave Kreskowiak28-Feb-05 4:59
mveDave Kreskowiak28-Feb-05 4:59 
GeneralPausing until value change [Updated 2 times] Pin
Mitch F.26-Feb-05 16:34
Mitch F.26-Feb-05 16:34 
Hello,

I am currently writing an application using the Windows Media Player library to read files. However, since Windows Media Player takes a couple seconds to buffer the data, everytime I call WMP1.status it returns "Opening Media..." (a string). Is it possible to pause/stall the sub or function until the value for WMP1.status changes? (For an example, once it changes from the "Opening Media...", I could go about doing the rest of my function.)

I have tried using a Do Loop, however, with the way I coded it, the loop freezes the application forever.

Edit:
I have noticed something strange with the behavior of Windows Media Player. After I set it to a file, and I display a MsgBox, it all loads very fast; however, without a message box, it seems to take quite a while. Is this caused due to the MsgBox 'somewhat rushing' the previous code to finish loading? It doesn't matter what the contents of the MsgBox are, as long as it (the MsgBox) is displayed. Would it be possible for me to fake the MsgBox, so that the user doesn't have to press any buttons, and yet it still forces the previous code to run fast?

Edit #2:
Is it possible for me to stall the Sub of the Button Click event for a predetermined amount of time (eg, 3 seconds) to allow the media player to finish loading?

This problem has really gotten me this time. WTF | :WTF:

Any suggestions or help will be greatly appreciated,

Programmer2k4

My sig:

"The so-called 'Bugs' do not exist, they are merely features hidden by developers with message boxes that say 'An unhandled exception has occurred'." - Programmer2k4

"And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright


I now use my CodeProject Blog!

GeneralRe: Pausing until value change [Updated 2 times] Pin
Dennis C. Dietrich27-Feb-05 1:45
Dennis C. Dietrich27-Feb-05 1:45 
GeneralRe: Pausing until value change [Updated 2 times] Pin
Mitch F.27-Feb-05 5:10
Mitch F.27-Feb-05 5:10 
GeneralRe: Pausing until value change [Updated 2 times] Pin
H@is@here27-Feb-05 11:44
H@is@here27-Feb-05 11:44 
GeneralWake up from stand by / hibertane Pin
Jackiem300126-Feb-05 12:43
Jackiem300126-Feb-05 12:43 
GeneralRe: Wake up from stand by / hibertane Pin
Colin Angus Mackay26-Feb-05 16:32
Colin Angus Mackay26-Feb-05 16:32 
GeneralRe: Wake up from stand by / hibertane Pin
Jackiem300127-Feb-05 12:59
Jackiem300127-Feb-05 12:59 
GeneralRe: Wake up from stand by / hibertane Pin
Colin Angus Mackay27-Feb-05 13:12
Colin Angus Mackay27-Feb-05 13:12 
GeneralPerfect coders wanted (freelancers) Pin
PavelMenshikov25-Feb-05 23:44
PavelMenshikov25-Feb-05 23:44 
GeneralRe: Perfect coders wanted (freelancers) Pin
Dave Kreskowiak26-Feb-05 4:08
mveDave Kreskowiak26-Feb-05 4:08 
GeneralRe: Perfect coders wanted (freelancers) Pin
Tom John26-Feb-05 4:53
Tom John26-Feb-05 4:53 
GeneralRe: Perfect coders wanted (freelancers) Pin
Dave Kreskowiak26-Feb-05 9:27
mveDave Kreskowiak26-Feb-05 9:27 
GeneralRe: Perfect coders wanted (freelancers) Pin
rwestgraham26-Feb-05 13:43
rwestgraham26-Feb-05 13:43 
GeneralRe: Perfect coders wanted (freelancers) Pin
Dave Kreskowiak26-Feb-05 15:39
mveDave Kreskowiak26-Feb-05 15:39 
GeneralRe: Perfect coders wanted (freelancers) Pin
Colin Angus Mackay26-Feb-05 16:27
Colin Angus Mackay26-Feb-05 16:27 
GeneralRe: Perfect coders wanted (freelancers) Pin
rwestgraham26-Feb-05 16:58
rwestgraham26-Feb-05 16:58 
GeneralRe: Perfect coders wanted (freelancers) Pin
Colin Angus Mackay26-Feb-05 17:10
Colin Angus Mackay26-Feb-05 17:10 
GeneralRe: Perfect coders wanted (freelancers) Pin
Dave Kreskowiak28-Feb-05 5:11
mveDave Kreskowiak28-Feb-05 5:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.