PC Review


Reply
Thread Tools Rate Thread

design time atrributs for ComboBox in costum control

 
 
David Diefenbach
Guest
Posts: n/a
 
      21st Apr 2009
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.

 
Reply With Quote
 
 
 
 
Carsten Unterberg
Guest
Posts: n/a
 
      21st Apr 2009
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/

"David Diefenbach" <David (E-Mail Removed)> schrieb im
Newsbeitrag news:602C30AD-AC3C-4022-9DF5-(E-Mail Removed)...
> 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.
>



 
Reply With Quote
 
David Diefenbach
Guest
Posts: n/a
 
      21st Apr 2009
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

"Carsten Unterberg" wrote:

> 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/
>
> "David Diefenbach" <David (E-Mail Removed)> schrieb im
> Newsbeitrag news:602C30AD-AC3C-4022-9DF5-(E-Mail Removed)...
> > 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.
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
combobox set seletectedindex at design time Rick Microsoft VB .NET 2 6th Jan 2007 12:16 AM
Hell = ComboBox databinding at design time =?Utf-8?B?RGF2aWQgTWNDbGVsbGFuZA==?= Microsoft Dot NET Framework Forms 2 17th Mar 2006 03:53 PM
ComboBox design-time DataBinding setting questions. dbuchanan Microsoft Dot NET Framework Forms 3 1st Feb 2006 12:15 PM
ComboBox design-time DataBinding setting questions. dbuchanan Microsoft Dot NET 3 1st Feb 2006 12:15 PM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com Microsoft ASP .NET 0 1st Jul 2003 10:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:45 PM.