design time atrributs for ComboBox in costum control

D

David Diefenbach

Hi,

I'm building a costum control for a Windows CE Camera Driver. I have
integrated this control in to the toolbox, and also defined some additional
parameters in the DesignTimeAttributs.xmta file.

I now want to extend this toolbox-item by an additional parameter which
holds the current resolution of the CameraOutput window. In my
control-application i have created a string array with all available
resolutions.

The user should now see a combobox in the toolbox-item properties where he
can select one of the available resolutions. But i have found no information
how i can populate these infomation as a combobox and then save the user
selected value.
 
C

Carsten Unterberg

Hi David,

that is very easy, just use a enumeration for all available resolutions. if
you let the user set up the resultion via a property, Visual Studio gives
him a combobox to select the right resolution.

Feel free to ask me, if you might have any questions.

Best regards

Carsten Unterberg | Test-Framework
http://test-framework.blogspot.com/
 
D

David Diefenbach

thanks for your answers,

using an enumeration, works fine.

But by using them i run into another problem. The name of enumerations
entrys which is also the name of the resolution in the combobox can not start
with a number. So i can not name the resolution like "567X460".

I could rename all entries so that they will start with a character, but if
there is any other solution without renaming it would be more suitable for me.

Thank you
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top