For checkboxes you should use
Checked property.
WITH THISFORM.WebControl.Document.Forms("MYFORM")
? .Elements("MYCHECKBOX" ).Checked
.Elements("MYCHECKBOX" ).Checked = .T.
BTW, you can use < pre > and < /pre > tags (no spaces) to preserve code (including HTML) formating.
>Hi,
>
>I'm building a desktop application wich has a form that contains an ActiveX WebControl (Shell.Explorer.2).
>
>The webcontrol points to a page with the following HTML code :
>
><FORM NAME="MYFORM">
><INPUT NAME="MYCHECKBOX" TYPE="checkbox">
></FORM>
>The problem is that the following command :
>THISFORM.WebControl.Document.Forms("MYFORM").Elements("MYCHECKBOX" ).Value
>always return "ON" whenever the box is checked or not !
>
>I can set the value for all the other type of control but the checkbox.
>
>What am i doing wrong ?
>
>Please help.
>
>Charles
--sb--