I have a few TextBoxes and I want to write a procedure like that:
If my.txtField1.text = "" Then
my.txtField1.width = 100%
Else
my.txtField1.width = auto
End If
But unfortunately the only thing I can do is getting the content of TextBox using msgbox:
Sub msoxd_my_txtField1_OnValidate(eventObj)
msgbox XDocument.DOM.selectSingleNode(".//my:txtField1").text
End Sub
Could you please help me!