I am new to this forum & programming world.....sorry if i post it in worng section..

I am writing a vb program.

program working a given below

1-- when the program starts there should be a window with a button
(the button is directed to a web link eg. www.facebook.com)

2-- when user press the button...a second small window opens having 2 option
buttons (each of them contains some arguments for the web link of first

3-- the user select the option and press ok....and the weblink with
respective button argument is executed..

I need this for downloading files...i have able to create download script but
dont know how to do this

For eg... 1st button link is www.facebook.com

1st option button ---(/login.php)
2nd option button --- (/groups.php)

so if user selects first option then www.facebook.com/login.php is executed

i want help with this button and argument passing...

plz try to explain your code...as i am a newbie

thanks in advance :)

Okay, this can be done with the webbrowser control (Project>Components>Microsoft Internet Controls>ok)

Now the best place to get a tutorial on the WebBrowser Control is over at vbforums in their codebank section...

Good Luck

Hello trytrytry,
If your problem is still not solved, here is my help. Actually i am also Newbie to this site but i hope my post is helpful.

Suppose you have 2 option button called optLogin and optGroup, and 1 command button called cmdOK. I would like to write my code for cmdOK when it is clicked as under.

Private Sub cmdOK_Click()
If optLogin.Value = True Then
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.facebook.com/login.php"
ElseIf optGroup.Value = True Then
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.facebook.com/group.php"
Exit Sub
End If
End Sub

If you have same name given to your option button and command button you can copy the code and paste the above code.

Good Luck

This article has been dead for over six months. Start a new discussion instead.