Creating custom controls
-
Tuesday, September 18, 2012 9:54 AMI want to create a custom control where the footprint of the control is a small button, but when clicked it pops out to larger area. An example would be a combo box. On the form it only takes up the space of one line, but when clicked it pops down to offer selections. When creating composite controls, one has to create the control at the size it is on the form. In the end I would like to have a small button sized control in my toolbox which I can drag onto a form, when clicked it would display a larger area with custom stuff in that area.
All Replies
-
Tuesday, September 18, 2012 2:08 PM
But a combo box, when expanded, doesn't cause other controls to move around or cause the form to change the layout. It just creates a window on top.
You can use a borderless popup form to do this.
- Marked As Answer by Chester HongMicrosoft Contingent Staff, Moderator Tuesday, September 25, 2012 8:24 AM
-
Wednesday, September 19, 2012 9:56 AM
Hi macowl,
you always not get the exact that you want, sometimes you have to learn from others
Writing your Custom Control: step by step
How to create a custom ComboBox from scratch
Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.
- Marked As Answer by Chester HongMicrosoft Contingent Staff, Moderator Tuesday, September 25, 2012 8:24 AM
-
Friday, September 21, 2012 8:40 AMhave your problem decreased?
Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.
-
Friday, September 21, 2012 9:23 AMModerator
Hi macowl,
How is everything going now?
Are there any updates about your issue?
It seems that you need something like a custom DropDownControl?
http://www.codeproject.com/Articles/35068/Creating-a-Custom-DropDown-Control
http://www.codeproject.com/Articles/32170/DropDownContainer-Custom-DropDown-Container-Using
Chester Hong
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked As Answer by Chester HongMicrosoft Contingent Staff, Moderator Tuesday, September 25, 2012 8:24 AM
-
Saturday, September 22, 2012 6:28 PMany updates about your issue?
Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.


