|
-
Apr 15th, 2011, 06:10 AM
#3
Re: Remake of my MP3 Player using Windows Media Player
Here's an example for avoiding the label in your code:
vb Code:
Option Explicit
Private Sub Command1_Click()
Dim myMsgResult As VbMsgBoxResult
Do
myMsgResult = MsgBox("Do you want to continue reading my post ?", vbQuestion + vbYesNo, "Do you wanna risk yourself ?")
If myMsgResult = vbYes Then
'do some blah..blah here...
Else
Exit Do '~~~ This will exit the loop
End If
Loop
End Sub
Also, try indenting your code next time, which makes it easy for reading.
Good luck 
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|