webbrowser SetAttribute

  • Thread starter Thread starter Young
  • Start date Start date
Y

Young

Hi

I want to be able to put customer's name automatically in a text
box.However, it can not
reference the textbox.
Is frame has something to do with my problem?


nullreferenceException was unhandled
Object reference not set to an instance of an object.

Web source
<input type="text" name="cust.name" maxlength="16" value=""
title="Customer Name">

click button
WebBrowser1.Document.GetElementById("ccust.name").SetAttribute("Value",
custname.Text)

thanks,
Young
 
Hi again,

Please ignore the extra "c" from the code.

WebBrowser1.Document.GetElementById("cust.name").SetAttribute("Value",
custname.Text)

thanks again
 
Back
Top