Click here to Skip to main content
15,887,683 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: MDIChild Showdialog Pin
leozampa7430-Jul-09 2:38
leozampa7430-Jul-09 2:38 
GeneralRe: MDIChild Showdialog Pin
Dave Kreskowiak30-Jul-09 6:03
mveDave Kreskowiak30-Jul-09 6:03 
QuestionVB Webcontrol If Field Exists on form Pin
Paul Hayman30-Jul-09 0:51
Paul Hayman30-Jul-09 0:51 
AnswerRe: VB Webcontrol If Field Exists on form Pin
Johan Hakkesteegt30-Jul-09 2:52
Johan Hakkesteegt30-Jul-09 2:52 
GeneralRe: VB Webcontrol If Field Exists on form Pin
Paul Hayman30-Jul-09 2:59
Paul Hayman30-Jul-09 2:59 
GeneralRe: VB Webcontrol If Field Exists on form Pin
Johan Hakkesteegt30-Jul-09 3:04
Johan Hakkesteegt30-Jul-09 3:04 
GeneralRe: VB Webcontrol If Field Exists on form Pin
Paul Hayman30-Jul-09 3:28
Paul Hayman30-Jul-09 3:28 
GeneralRe: VB Webcontrol If Field Exists on form Pin
Johan Hakkesteegt30-Jul-09 3:41
Johan Hakkesteegt30-Jul-09 3:41 
WebBrowser2.Document.GetElementsByTagName("input").Count will give you the number of items at that moment. So that is the number that you can check against.

The question is, where / how / why did you determine to do something with item(22) specifically (22 being the key question here)?

In other words your code should look something like:
If 22 > WebBrowser2.Document.GetElementsByTagName("input").Count Then
  'do something here
End If


Except that instead of 22 it really should be something like:
Dim i As Integer
'The value of i should become 22 due to some logic,
'but for the purpose of the conversation I am
'just going to assign it the value straight out.
i = 22 
If i > WebBrowser2.Document.GetElementsByTagName("input").Count Then
  'Item(i), in other words Item(22), does not exist
  'Now that you know this, do what you want here.
End If


The test you ran earlier tells us that at that exact moment Item(20) was the maximum existing number. So you shouldn't be trying to write to Item(22).

My advice is free, and you may get what you paid for.

AnswerRe: VB Webcontrol If Field Exists on form Pin
Paul Hayman3-Aug-09 1:01
Paul Hayman3-Aug-09 1:01 
Questiondll missing in code Pin
meguru29-Jul-09 22:11
meguru29-Jul-09 22:11 
AnswerRe: dll missing in code Pin
DaveyM6929-Jul-09 22:32
professionalDaveyM6929-Jul-09 22:32 
QuestionHow to Update and Retrieve data from MDB file on server? Pin
NeilRanjan29-Jul-09 19:55
NeilRanjan29-Jul-09 19:55 
AnswerRe: How to Update and Retrieve data from MDB file on server? Pin
Vimalsoft(Pty) Ltd29-Jul-09 21:13
professionalVimalsoft(Pty) Ltd29-Jul-09 21:13 
AnswerRe: How to Update and Retrieve data from MDB file on server? [CROSS_POST - please ignore] Pin
Henry Minute30-Jul-09 5:20
Henry Minute30-Jul-09 5:20 
QuestionEnterprise library [modified] Pin
abcurl29-Jul-09 19:47
abcurl29-Jul-09 19:47 
AnswerRe: Enterprise library Pin
Mycroft Holmes29-Jul-09 21:32
professionalMycroft Holmes29-Jul-09 21:32 
QuestionRe: Enterprise library Pin
abcurl29-Jul-09 21:34
abcurl29-Jul-09 21:34 
AnswerRe: Enterprise library Pin
Johan Hakkesteegt29-Jul-09 22:04
Johan Hakkesteegt29-Jul-09 22:04 
GeneralRe: Enterprise library Pin
abcurl29-Jul-09 22:11
abcurl29-Jul-09 22:11 
GeneralRe: Enterprise library Pin
Johan Hakkesteegt29-Jul-09 22:19
Johan Hakkesteegt29-Jul-09 22:19 
GeneralRe: Enterprise library Pin
abcurl29-Jul-09 23:55
abcurl29-Jul-09 23:55 
GeneralRe: Enterprise library Pin
Johan Hakkesteegt29-Jul-09 23:57
Johan Hakkesteegt29-Jul-09 23:57 
QuestionVisual Basic 6 Equivalent to VBA Pin
C#Coudou29-Jul-09 19:37
C#Coudou29-Jul-09 19:37 
AnswerRe: Visual Basic 6 Equivalent to VBA Pin
Moreno Airoldi29-Jul-09 23:07
Moreno Airoldi29-Jul-09 23:07 
GeneralRe: Visual Basic 6 Equivalent to VBA Pin
C#Coudou30-Jul-09 14:14
C#Coudou30-Jul-09 14:14 

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.