Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

ComboBox

$
0
0

Hi,

Its more of a VBA question, but its very much related because I am working on Processbook Objects..
I have created a ComboBox1 which has two important events of my concerns. dropbuttonclick and change events.
In ComboBox1 dropbuttonclick event I have added this only



ComboBox1.Clear
ComboBox1.AddItem "Daily"
ComboBox1.AddItem "Weekly"
 
Now my problem is, I want only these two options to be available in the list,(no runtime adding or deleting), and if a user selects one than that should comeup in the textdisplay of combobox, but because of this ComboBox clear function above, that selected thing doesnt display in Combox, it gets cleared and it remains empty. If I remove that combobox clear from here than everytime I click the drop button these two options add up in the list and didn get cleared. I dont know how to solve that problem
Summarizing, If I select Daily or weekly, then selected one should display in the text area of ComboBox and clears and display other when user selects the other option.
- and also in properties, I have set Hide selection as False, so that selected thing should be visible in the display

Any help regarding that would be highly appreciated.
.

Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>