Click here to Skip to main content
15,912,897 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Missing Tab Pages Titles Pin
alexey N12-Jul-06 23:31
alexey N12-Jul-06 23:31 
GeneralRe: Missing Tab Pages Titles Pin
Aldrich Caw12-Jul-06 23:49
Aldrich Caw12-Jul-06 23:49 
QuestionMicrosoft content management server 2002 Pin
Kanjinghat12-Jul-06 19:46
Kanjinghat12-Jul-06 19:46 
QuestionHow to use functions in Win32 and COM Development environment?? [modified] Pin
mmhu12-Jul-06 9:27
mmhu12-Jul-06 9:27 
Questionoverriding interface functions Pin
mmhu12-Jul-06 5:51
mmhu12-Jul-06 5:51 
AnswerRe: overriding interface functions Pin
Jun Du12-Jul-06 7:10
Jun Du12-Jul-06 7:10 
GeneralRe: overriding interface functions Pin
mmhu12-Jul-06 9:21
mmhu12-Jul-06 9:21 
QuestionComboBox Custom OnPaint Pin
--Ian12-Jul-06 5:02
--Ian12-Jul-06 5:02 
I have a control that is derived from the standard ComboBox. I have an override for the OnPaint method that paints a border, drop down arrow button, background, and foreground. The only problem is that something (some other event/subcontrol) is drawing a black text box with a large font over top of the text box region of the combo box control.

I am drawing a background in my OnPaint event, and it is being draw on top of. I can see that the background is drawn because there is a border around the text box region. My code looks like the following:

<br />
protected override void OnPaint(PaintEventArgs e)<br />
{<br />
	base.OnPaint(e);<br />
<br />
	DrawBorder();<br />
	DrawBackground();<br />
	DrawArrowButton();<br />
	DrawForegroundText();<br />
}<br />


What am I missing here??? By the way, this control works just fine if the DropDownStyle is set to DropDownList, however I'm need it to work as a DropDown (being able to edit the text box).



--Ian;
AnswerRe: ComboBox Custom OnPaint Pin
Dave Kreskowiak12-Jul-06 5:16
mveDave Kreskowiak12-Jul-06 5:16 
GeneralRe: ComboBox Custom OnPaint Pin
--Ian12-Jul-06 6:42
--Ian12-Jul-06 6:42 
GeneralRe: ComboBox Custom OnPaint Pin
Dave Kreskowiak12-Jul-06 12:09
mveDave Kreskowiak12-Jul-06 12:09 
GeneralRe: ComboBox Custom OnPaint -- CODE Pin
--Ian12-Jul-06 12:27
--Ian12-Jul-06 12:27 
GeneralRe: ComboBox Custom OnPaint -- CODE Pin
Dave Kreskowiak13-Jul-06 6:18
mveDave Kreskowiak13-Jul-06 6:18 
GeneralRe: ComboBox Custom OnPaint Pin
--Ian13-Jul-06 7:02
--Ian13-Jul-06 7:02 
GeneralRe: ComboBox Custom OnPaint Pin
Dave Kreskowiak13-Jul-06 12:23
mveDave Kreskowiak13-Jul-06 12:23 
QuestionDropDown Button in C# Pin
wasife12-Jul-06 4:57
wasife12-Jul-06 4:57 
AnswerRe: DropDown Button in C# Pin
Guffa12-Jul-06 12:58
Guffa12-Jul-06 12:58 
GeneralRe: DropDown Button in C# Pin
Josh Smith14-Jul-06 5:31
Josh Smith14-Jul-06 5:31 
AnswerRe: DropDown Button in C# Pin
Josh Smith14-Jul-06 5:28
Josh Smith14-Jul-06 5:28 
QuestionNeed some help for merging Crystal Reports Pin
Jats_4ru11-Jul-06 23:54
Jats_4ru11-Jul-06 23:54 
QuestionHow to get the complete scrollable height and width of a control Pin
Yash Purohit11-Jul-06 22:36
Yash Purohit11-Jul-06 22:36 
QuestionExceptions in .net Pin
narasimha peta11-Jul-06 18:22
narasimha peta11-Jul-06 18:22 
AnswerRe: Exceptions in .net Pin
Rob Philpott12-Jul-06 3:46
Rob Philpott12-Jul-06 3:46 
GeneralRe: Exceptions in .net Pin
Dan Neely12-Jul-06 4:41
Dan Neely12-Jul-06 4:41 
GeneralRe: Exceptions in .net Pin
eggsovereasy12-Jul-06 10:44
eggsovereasy12-Jul-06 10:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.