VB Message Box Help.

A Place For Programmers Of All Levels To Discuss Programming & Web Building.

Moderator: Community Moderator

Locked
User avatar
Eternal
Corporal First Class
Corporal First Class
Posts: 76
Joined: 08 Jan 2010, 07:53
Location: Eternity
Has thanked: 2 times
Been thanked: 1 time
Contact:

VB Message Box Help.

Post 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. :noexp:

Please help this noob. :icon_cheesygrin:

Thanks in advance. :)-)
Image
User avatar
MASTALOL
First Adjutant
First Adjutant
Posts: 303
Joined: 16 Jun 2010, 17:59
Location: SC
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: VB Message Box Help.

Post 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. :noexp:

Please help this noob. :icon_cheesygrin:

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
Last edited by MASTALOL on 31 May 2012, 22:06, edited 2 times in total.
We All Can't Save The World, Someone Needs To Sit On The Curb And Cheer The Hero's On

If you find any links Dead in my posts, Please take a moment to PM me, I will fix them!

Check out My Upload List!

Dropbox - Simplify your life Join Now!
Image
Voted The BEST Cloud Storage!
User avatar
Eternal
Corporal First Class
Corporal First Class
Posts: 76
Joined: 08 Jan 2010, 07:53
Location: Eternity
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: VB Message Box Help.

Post 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. :appls:
Image
User avatar
ChattChitto
Site Admin
Site Admin
Posts: 13868
Joined: 20 Aug 2009, 06:20
Status: The Don
Location: The Fourth Dimension
Has thanked: 11 times
Been thanked: 38 times
Contact:

Re: VB Message Box Help.

Post by ChattChitto »

Marked as Solved!
To err is human, to forgive is divine
We can't all be heroes, because somebody has to sit on the curb and applaud when they go by.

ChattChitto RG - Apps Upload List: http://chattchitto.com/forum/viewtopic.php?f=29&t=104
ChattChitto RG - Movies Upload List: http://chattchitto.com/forum/viewtopic.php?f=29&t=5092
ChattChitto RG - Music Upload List: http://chattchitto.com/forum/viewtopic.php?f=29&t=34836
Locked

Return to “Programming/Web Building Chat & Support”