DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Using ActiveX Microsoft Textbox Control on a form (SUD)

Has anyone had any luck using a Microsoft text box on a custom user dialog form via ActiveX?  I can place the control on the form, but I can not get it to accept any text at runtime.  I can delete any characters in the text box, and set values programmatically, but I cannot input characters from the keyboard.
 
The Microsoft control is a little more configurable than the DIAdem edit box (I can limit the Microsoft control to a single line of input, for example), so I would prefer to use it if at all possible.
 
Thanks for reading my question, and for any help you can provide.
0 Kudos
Message 1 of 4
(3,968 Views)

InternationAL,

We were able to reproduce this behavior here on our test machines.  Thanks for clueing us in to a potential bug.  I've notified R&D about this issue, and we are currently looking for a work around.  I will keep you updated on our progress.

-Josh W.
National Instruments
Applications Engineer

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 2 of 4
(3,929 Views)
Hello InternationalAL!

It seems that there is a general problem with all MS Forms Controls in SUD. MS recommend to use this controls only in VBA.

You can use the Microsoft Rich Textbox Control with Multiline=0 instead. OK it is for RTF but you can use it for standard text input as well.

Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 3 of 4
(3,923 Views)
Thanks for the replies.
 
If these controls can be made to work, that would be great!  I hope you guys find a way to make it work.  Thanks for keeping me posted on this issue, and I hope to hear soon about an update that makes the forms controls work.  I'm also glad to hear that it wasn't just my machine that was doing this.
 
And thanks Twigeater for the workaround.  I'll try the Rich Text control as a workaround.
 
Maybe you guys could give the edit box control the same configurability as the Microsoft control, at least add a Multiline property?
 
Thanks again, and hopefully I'll hear soon about some DIAdem tweaks!!!
0 Kudos
Message 4 of 4
(3,888 Views)