Click here to Skip to main content
15,922,533 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPlacement of Data in ListView Pin
kobezt0829-Dec-04 4:54
kobezt0829-Dec-04 4:54 
GeneralDates from a given week Pin
Alsvha29-Dec-04 4:06
Alsvha29-Dec-04 4:06 
Questionhow can i use Overture and Adwords in Vb.net Pin
Hammad Umar28-Dec-04 23:23
sussHammad Umar28-Dec-04 23:23 
QuestionSilent install? Pin
charleslau285528-Dec-04 15:54
charleslau285528-Dec-04 15:54 
QuestionHow to write and display chemical formula or mathematical formula in VB.NET Pin
bangzozo28-Dec-04 15:32
bangzozo28-Dec-04 15:32 
GeneralSQL Statement in vb.net Pin
Mekong River28-Dec-04 13:33
Mekong River28-Dec-04 13:33 
GeneralRe: SQL Statement in vb.net Pin
Mekong River28-Dec-04 14:53
Mekong River28-Dec-04 14:53 
QuestionHow to select a RadioButton? Pin
Matrix100028-Dec-04 13:29
Matrix100028-Dec-04 13:29 
I'm using vb.net and I have 1 form with a webbrowser control on it, and one button on the form.
I have an html page I'm calling which has 2 radio buttons on it and a textbox.

I can fill in the textbox by going...
AxWebBrowser1.Document.Forms(0)("username").Value = "myusername"

My problem is, I'd like to select a radio button depending on its value...
How could I do that? I'd like to be able to select a radio button based on its value if at all possible....
I found a page on HTML Document Object Modeling here...http://www.w3schools.com/htmldom/dom_obj_radio.asp but cant quite get it figured out. Dead | X|

Thanks for any help! Big Grin | :-D

----------------------------------------------------------------------------
Heres My current code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
   Dim Choice As String<br />
   Choice =  2<br />
<br />
   If Choice = 1 Then<br />
       AxWebBrowser1.Document.forms(0).radiobutton.value(1) = checked<br />
   ElseIf Choice = 2 Then<br />
       AxWebBrowser1.Document.forms(0).radiobutton.value(2) = checked<br />
   End If<br />
End Sub
-------------------------------------------------------------
Here's the body of the page I'm using

<body> <br />
<form name="form1" method="post" action=""> <br />
   <input name="radiobutton" type="radio" value="1"> <br />
    <br> <br />
   <input name="radiobutton" type="radio" value="2"> <br />
    <br><br />
   <input name="username" type="text" id="username"> <br />
</form> <br />
</body> 

GeneralDisappointed with Graphics Speed Pin
nagajim28-Dec-04 12:05
nagajim28-Dec-04 12:05 
GeneralRe: Disappointed with Graphics Speed Pin
Robert Rohde29-Dec-04 1:26
Robert Rohde29-Dec-04 1:26 
GeneralVB.NET &amp; ADO - Update &amp; Insert Problems Pin
tinomclaren28-Dec-04 12:01
tinomclaren28-Dec-04 12:01 
GeneralRe: VB.NET &amp; ADO - Update &amp; Insert Problems Pin
Mekong River28-Dec-04 13:46
Mekong River28-Dec-04 13:46 
GeneralZip and Unzip from VB.Net Pin
CharlotteF28-Dec-04 6:19
CharlotteF28-Dec-04 6:19 
GeneralRe: Zip and Unzip from VB.Net Pin
Robert Rohde29-Dec-04 1:32
Robert Rohde29-Dec-04 1:32 
GeneralRe: Zip and Unzip from VB.Net Pin
Dennis C. Dietrich29-Dec-04 9:35
Dennis C. Dietrich29-Dec-04 9:35 
QuestionHow to Call Visual C++ .NET from Visual Basic .NET Pin
Member 161742528-Dec-04 6:05
Member 161742528-Dec-04 6:05 
AnswerRe: How to Call Visual C++ .NET from Visual Basic .NET Pin
Colin Angus Mackay28-Dec-04 13:59
Colin Angus Mackay28-Dec-04 13:59 
GeneralMDI non-child forms Pin
GeneralDisorder28-Dec-04 5:28
GeneralDisorder28-Dec-04 5:28 
Generalvolume and pitch Pin
azam31628-Dec-04 1:47
azam31628-Dec-04 1:47 
GeneralMake graphik with data shape Pin
widhie_prihatna28-Dec-04 1:44
widhie_prihatna28-Dec-04 1:44 
Generaltouch screen (point-of-sales) user interface Pin
StenH28-Dec-04 1:00
StenH28-Dec-04 1:00 
Generalinserting images to imagelist Pin
SelvaRavi28-Dec-04 0:34
SelvaRavi28-Dec-04 0:34 
GeneralImport text files Pin
G-Viking27-Dec-04 23:36
G-Viking27-Dec-04 23:36 
GeneralPopulating Listview with DB information Pin
kobezt0827-Dec-04 18:36
kobezt0827-Dec-04 18:36 
GeneralRe: Populating Listview with DB information Pin
Mekong River27-Dec-04 20:24
Mekong River27-Dec-04 20:24 

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.