-
ActiveX
hi
I am trying to create an activex which includes a textbox.
just like a textbox has a multiline property i want my control i.e modified textbox also to have that property...when i try to set the multiline property of the control it gives me an error "read only property"
cann't i set this property?
pls help me :confused:
-
I don't think the Multiline property of the TextBox is available at Runtime. Only Design Time, so you're need to set it either True or False before building your control.
Alternatively, you could have 2 text boxes if you really really needed to do that, 1 single line, 1 multi line, toggle the visibility of the each using a PropertySet in your User Control, thus giving you your functionality. Only overhead though is the naming of the controls...
Pee