Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

web browser capabilities

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I am doing temporary work for a company. They had an ex-employee write a printing program for some of their other companies. It isn't working correctly and I have searched every inch to find where the check box names/codes have been stored. If anyone could decode this for me a point me in another search direction I would be very thankful. :)

Here is what some of the code looks like:


Private WithEvents d As HTMLDocument
Set d = WebBrowser1.Document

Set varChkBoxCol = d.getElementsByName("checkbox")
For Each varChkBox In varChkBoxCol
If varChkBox.Checked = True Then
strFileName = varChkBox.Id
intX = intX + 1
varChkBox.Checked = False
End If
Next

I want to know how to change the Id's on the check boxes. Or somewhere I should look to see where the person uploads the names next to the checkboxes.

Thanx
 
I'm not sure I understand what you are asking....

Ofcourse, the checkbox control has a "caption" property associated with it.
In design mode, you would just right click on the ckbox, select Properties, tehn change the Caption to the text you want to have displayed.

Sorry, if this is not what you need, then I haven't a clue....

John
 
Need to be a little clearer, I was following just before you asked

I want to know how to change the Id's on the check boxes. Or somewhere I should look to see where the person uploads the names next to the checkboxes.

Delton Phillips.
deltonphillips@hotmail.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top