Userform - Catia VBA - Looping through Textboxes - loops

I want to Set the first Textbox as active, and when I typed in something in the first Box, it goes automatically to the next one. So it loops through all Textboxes. How do I make that?
Thanks!

You should manage the TabIndex property of each TextBoxes. Put the number according to the order of your loop.
Then you should be able to loop through your TextBoxes by pressing Enter or Tab

Related

Is there a way to commit value on datagrid without press enter?

I'm working on a wpf application that display a datagrid with 7 columns:
ID, Value1,Value2,Value3,Value4,Value5,Total. ID and Total are not editable form the user, only the other. Once the user have clicked on one cell and change it (only 0 and 1 allowed), I'd like that when he press 1 or 0 the value is entered and commited going to the next editable cell,(that can be also in the next row.
Is there a way to do that in wpf?
You may try CellEndEdit event and put your calculateTotal method there.
enter image description here

LabVIEW: clear all the elements in combobox during runtime

I have a combobox which has an array of Strings such as "Alice", "Bob",and "Charlie". After user presses the ok button I want to remove all the elements in the combobox. How do I do this during run time ? All I know is to manually right click on the combobox and remove its element one by one.
Thanks.
Settings String[] to an empty array will clear the strings stored in the Combobox, but will not clear the active value visible on the front panel terminal. To clear that as well, use the "Value" property with a blank string.
Here's a snippet:
After having tried many ways this does clear elements but the first element is not removed completely.

Combobox List passing string

I have a VB6 application that has been running for quite sometime. Currently I'm trying to update one of the form that has a combobox 2.0. Because the combobox is populated with hundreds of items - I'm trying to update it so that users are able to click on a look up button next to it, where another window opens up with all the items from the combobox. User will be able to search by keyword and/or select an item and double click on it and have it appear in the combobox. The issue I'm having is with trying to pass no value or "" when CANCEL is clicked. I'm able to pass the value if I in the properties window my STYLE Is set to COMBO rather than list. However, the issue I come across is that with COMBO the value (text) in the combobox sometimes is not aligned properly. Is there a way to pass a "" value to a combobox 2.0 without changing the style to COMBO?
If they hit cancel set the ListIndex of your combo to -1 rather than setting the text property. This is the value for no item being selected.

Not selecting item in combobox

I need the following behavior for WPF Combobox:
i need autofilter in combobox. Took the implementation from here. But when there are several items in dropdown that are almost same-when i press DOWN it just selects the first one from list and hides others(see video of current behavior here: http://www.youtube.com/watch?v=_WYAgMTxc4M). If i want the second possible-i have to select it with mouse or write down the whole item display name in editable part of combobox. Is it possible to select item without changing editable part of the combobox, until i press ENTER, for example?
I think that problem is when you select the item, it fill the text area of ComboBox, than it notify that filter text changed and it applied new filter for the list, and the only one item remains in the list.
You should to rewrite this behavior that will apply filter only if KeyPressed / KeyDown / KeyUp events was fired.

silverlight combobox - highlight a few items in the popup list

I'm wondering if I can make fake sections in the popup menu:
The rule would be, if the 5th character of the displayed item is different from the 5th char of the previous item in the menu, it has to be highlighted
What do you think?
Thanks!
To achieve this would be a hack.
Normally the items that appear in the popup part of a combo box will be an instantiated data template, and each gets its own data item and has no clue or knowledge of the other items in the list, so you couldn't use a converter or anything else to achieve this behavior.
What you could do though is inject (attach) your own control into the popup part of the combo box, and take over the rendering of the data items. How you do this will depend upon which combo box you are using (i.e. MS or some other vendor's) and would be a whole new question.
Would that be easier if I were to create my own combobox as follow:
a TextBox associated with a Button that when pushed would popup a datagrid in which I could implement this conditional formatting?

Resources