Page 1 of 1
					
				VB Message Box Help.
				Posted: 31 May 2012, 15:15
				by Eternal
				What i want to make is when i open the application created in VB, a message box appears having two buttons "OK" and "Cancel". When the OK button is pressed, a particular link is opened in the web browser. Also in the message box, the link which will be opened should not be seen.  
 
Please help this noob. 
 
Thanks in advance. 

 
			 
			
					
				Re: VB Message Box Help.
				Posted: 31 May 2012, 21:37
				by MASTALOL
				Eternal wrote:What i want to make is when i open the application created in VB, a message box appears having two buttons "OK" and "Cancel". When the OK button is pressed, a particular link is opened in the web browser. Also in the message box, the link which will be opened should not be seen.  
 
Please help this noob. 
 
Thanks in advance. 

 
Lol this is an easy one, you must be new, i am somewhat advanced (but even i need help at times..) at it so if you need a teacher.. yea..
Ok here is the code..
Code: Select all
Dim MyFirstMessageBox As String
        MyFirstMessageBox = MessageBox.Show("CHANGE THIS TEXT TO WHATERVER YOU WANT!", "NAME OF PROGRAM", MessageBoxButtons.OKCancel)
        If MyFirstMessageBox = vbOK Then
            Dim webAddress As String = "http://chattchitto.com" 'CHANGE THIS TO YOUR URL
            Process.Start(webAddress)
        Else
        End If
 
			 
			
					
				Re: VB Message Box Help.
				Posted: 01 Jun 2012, 09:35
				by Eternal
				MASTALOL wrote:Lol this is an easy one, you must be new, i am somewhat advanced (but even i need help at times..) at it so if you need a teacher.. yea..
Ok here is the code..
Code: Select all
Dim MyFirstMessageBox As String
        MyFirstMessageBox = MessageBox.Show("CHANGE THIS TEXT TO WHATERVER YOU WANT!", "NAME OF PROGRAM", MessageBoxButtons.OKCancel)
        If MyFirstMessageBox = vbOK Then
            Dim webAddress As String = "http://chattchitto.com" 'CHANGE THIS TO YOUR URL
            Process.Start(webAddress)
        Else
        End If
 
Thanks bro, exactly what i needed. And yup, m new to this programming and stuff. Just trying to learn the basic atm. Thanks again.  

 
			 
			
					
				Re: VB Message Box Help.
				Posted: 01 Jun 2012, 18:53
				by ChattChitto
				Marked as Solved!