Button not visible

M

mahesh

hi,
i have created a button using runtime
function XDocument::OnLoad(eventObj)
{

var xx =new ActiveXObject("MSComctlLib.Button");
xx.Caption="Mahesh"
xx.Visible=True
xx.Left=600
xx.Top=600
xx.Width=600
}

but i am not able to Visible that Button in my Infopath
form at The time of Preview.

thanku,
mahesh
 
A

Andrew Ma [MSFT]

If you are looking to hide and show a button, you should look into the
"conditional formatting" feature. It will allow you to hide groups based on
conditions in your data.

--
Andrew J. Ma
Software Test Engineer
Microsoft Office InfoPath
http://blogs.msdn.com/ajma
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
 
Top