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

Visual Basic

 
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 
GeneralRe: Pausing until value change [Updated 2 times] Pin
Dennis C. Dietrich27-Feb-05 1:45
Dennis C. Dietrich27-Feb-05 1:45 
Programmer2k4 wrote:
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?

No. The usual way to achieve this is to let the object you use notify you when its state has changed. According to the Windows Media Player 10 SDK[^] there is a Player.StatusChange Event[^]. So instead of constantly checking the Player.status[^] property you should use an event handler.

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

Don't use polling[^] as long as there's a better alternative, especially not by using a loop as it (without any precautions) will take all available CPU time. If you really need polling then at least use a timer[^].

Programmer2k4 wrote:
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?

I guess that this is just a side effect of your usage of polling. As long as the message box is displayed your program is not "trapped" in your loop which leaves considerably more CPU time for the Media Player. I suggest you try to solve your problem with event handling. If you run into any problems just ask again (maybe with some small code excerpts this time). Smile | :)

Best regards
Dennis
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 
GeneralData Report Pin
vjayakumar25-Feb-05 23:13
vjayakumar25-Feb-05 23:13 

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.