Click here to Skip to main content
15,905,508 members
Home / Discussions / C#
   

C#

 
AnswerRe: Installer Project, Registry and Regasm Pin
Ranjan Banerji11-Sep-06 17:21
Ranjan Banerji11-Sep-06 17:21 
QuestionComboBox lock/suppress DropDown Pin
--Ian12-Jul-06 5:26
--Ian12-Jul-06 5:26 
AnswerRe: ComboBox lock/suppress DropDown Pin
Not Active12-Jul-06 5:33
mentorNot Active12-Jul-06 5:33 
GeneralRe: ComboBox lock/suppress DropDown Pin
--Ian12-Jul-06 6:38
--Ian12-Jul-06 6:38 
GeneralRe: ComboBox lock/suppress DropDown Pin
Not Active12-Jul-06 6:46
mentorNot Active12-Jul-06 6:46 
GeneralRe: ComboBox lock/suppress DropDown Pin
--Ian12-Jul-06 7:13
--Ian12-Jul-06 7:13 
GeneralRe: ComboBox lock/suppress DropDown Pin
VB 8.05-Feb-09 1:01
VB 8.05-Feb-09 1:01 
QuestionComboBox Custom OnPaint Pin
--Ian12-Jul-06 5:15
--Ian12-Jul-06 5:15 
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:

protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);

DrawBorder();
DrawBackground();
DrawArrowButton();
DrawForegroundText();
}

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
leppie12-Jul-06 7:01
leppie12-Jul-06 7:01 
GeneralRe: ComboBox Custom OnPaint Pin
--Ian12-Jul-06 8:10
--Ian12-Jul-06 8:10 
GeneralRe: ComboBox Custom OnPaint -- CODE Pin
--Ian13-Jul-06 3:18
--Ian13-Jul-06 3:18 
QuestionGDI - filling color in a region Pin
Imtiaz Murtaza12-Jul-06 5:03
Imtiaz Murtaza12-Jul-06 5:03 
AnswerRe: GDI - filling color in a region Pin
Not Active12-Jul-06 5:13
mentorNot Active12-Jul-06 5:13 
GeneralRe: GDI - filling color in a region Pin
Imtiaz Murtaza12-Jul-06 5:33
Imtiaz Murtaza12-Jul-06 5:33 
GeneralRe: GDI - filling color in a region Pin
Not Active12-Jul-06 5:43
mentorNot Active12-Jul-06 5:43 
AnswerDrawArc Pin
Ennis Ray Lynch, Jr.12-Jul-06 6:18
Ennis Ray Lynch, Jr.12-Jul-06 6:18 
QuestionHow to avoid popup window during USB detection. Pin
sai_akkina12-Jul-06 5:01
sai_akkina12-Jul-06 5:01 
QuestionQuestion on dealing with output parameters Pin
leckey12-Jul-06 5:00
leckey12-Jul-06 5:00 
AnswerRe: Question on dealing with output parameters Pin
Not Active12-Jul-06 5:06
mentorNot Active12-Jul-06 5:06 
GeneralRe: Question on dealing with output parameters Pin
leckey12-Jul-06 5:11
leckey12-Jul-06 5:11 
AnswerI try to aviod output parameters Pin
Ennis Ray Lynch, Jr.12-Jul-06 6:15
Ennis Ray Lynch, Jr.12-Jul-06 6:15 
GeneralRe: I try to aviod output parameters Pin
leckey12-Jul-06 6:18
leckey12-Jul-06 6:18 
GeneralRe: I try to aviod output parameters Pin
Ennis Ray Lynch, Jr.12-Jul-06 6:24
Ennis Ray Lynch, Jr.12-Jul-06 6:24 
QuestionNot Enough storage available mscorlib Pin
Flash-Over12-Jul-06 4:57
Flash-Over12-Jul-06 4:57 
Questioncombobox Pin
gsvgnani12-Jul-06 4:24
gsvgnani12-Jul-06 4:24 

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.