I'm creating a WinForm using an UltraToolbarsManager and using VB.net
I've created the Toolbar with both combo boxes and text boxes and also a Button.
I'm able to populate the combo boxes with a value list of the options I want to give the user.
When the user clicks the button on the toolbar I'd like to identify the values the user selected in the combo box and with that value supply the textbox in the toolbar with a value.
For example:If me.ultratoolbarsmanager1.toolsbars(0).tools("Combo1").selectedtext = "Major" then
me.ultratoolbarsmanager1.toolsbars(0).tools("TextResults").text = "Version 2"
end ifI know the above code is not accurate, but hope that shows what I'm trying to accomplish.
Mike,
Thanks for your response. Actually what I was looking for I found about 10 minutes ago and here is what I did to get the information I needed.
Dim ProdVersion As TextBoxTool = Me.UltraToolbarsManager1.Toolbars(0).Tools("ProductVersion")Dim RelTypeSelect As ComboBoxTool = Me.UltraToolbarsManager1.Toolbars(0).Tools("ReleaseType")If e.Tool.Key = "Update" Then Select RelTypeSelect.Test.ToString CASE "Major" ProdVersion.Text = "1.0" CASE "Minor" ProdVersion.Text = "1.1" End SelectEnd If
You should check the Value or SelectedItem of the ComboBoxTool instead of the SelectedText. As soon as you click the button, the ComboBoxTool will come out of edit mode and the text will no longer be selected.