|
-
Dec 11th, 2002, 03:05 AM
#1
Thread Starter
New Member
How can I flatten ComboBox in vbnet
Hi there
I have some inherited Controls in my application and i would like to make them flatcontrols .
Is there anybody out there who has a class which I can pass my control and make it flat.?
Preferably in vb.net.
Thanks
Gabriel
Thanks for your help and suggestion
Gabriel
-
Dec 11th, 2002, 03:17 AM
#2
Man the combobox is of the devil, you can ownerdraw it or override the paint but really there is a textbox constitue control in there and I don't know how to get a handle to it. So when you paint on it you can only paint the combo part around the text part and sometimes that makes the textbox part not match.
Although I was trying to draw over the whole thing so maybe there is a way to flat it. I have the code at work I'll post it tomorrow.
-
Dec 11th, 2002, 04:27 AM
#3
Thread Starter
New Member
Hi there.
Thanks for your reply.
Its proving a real nightmare too make these badly control look good.
I have tried to convert into vb.net a control that a guy on http://www.codeproject.com/cs/combob...etcombobox.asp
but I failed.
It didnt draw properly.
My idea was to create a general class where I could pass the control and that would flatten it.
But may be is not worth the hassle.
If anybody can convert the above successfully would be great.
Thanks
Gabriel
Thanks for your help and suggestion
Gabriel
-
Dec 11th, 2002, 08:49 AM
#4
yay gay
each control type is different so u cant just make a class that would flatten all the controls
\m/  \m/
-
Dec 11th, 2002, 11:04 AM
#5
Thread Starter
New Member
What about flatten a combobox
Anybody done that in vb.net
Thanks for any suggestions or examples
Gabriel
Thanks for your help and suggestion
Gabriel
-
Dec 11th, 2002, 12:01 PM
#6
Yeah I say that link before and it looks great I was just too lazy to decipher all of the UtilityLibrary.
-
Dec 11th, 2002, 12:38 PM
#7
Well here is the attempt I mentioned before. It should give you a push in the right direction, albeit a small one. It would be easy if there wasn't that inner edit control. Let me know if you get further and I will try to help more if I can.
-
Dec 11th, 2002, 05:57 PM
#8
Thread Starter
New Member
Hi Thanks for emailing the flatcombo
I will have a look and I far I get.
Thanks for your help and suggestion
Gabriel
-
Dec 11th, 2002, 06:43 PM
#9
Here is another way to do it which I don't like all that well but it is closer to working. In the derived class I just add a textbox and panel to the combobox.controls collection and place them properly.
-
Dec 11th, 2002, 07:23 PM
#10
Ok now I have decided that I hate the ComboBox and it must die! Anyone with information to the where abouts of said ComboBox, or knowledge of how to destroy it please notify me at, [email protected]
-
Nov 16th, 2003, 07:28 AM
#11
Hyperactive Member
I hate the combobox object.
I also hate the textbox object. You can't make the scrollbars ownerdrawn!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|