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

C#

 
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 
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 
The sample class below does not contain all the code, however it will give you an idea of the problem. Just drop this class into your a project, compile, and drop it the ComboDraw control onto a form.

<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
<br />
namespace ComboTest<br />
{<br />
class ComboDraw : ComboBox<br />
{<br />
public ComboDraw()<br />
{<br />
DrawMode = DrawMode.OwnerDrawFixed;<br />
DropDownStyle = ComboBoxStyle.DropDown;<br />
FlatStyle = FlatStyle.Flat;<br />
SetStyle(ControlStyles.UserPaint, true);<br />
}<br />
<br />
protected override void OnPaint(PaintEventArgs e)<br />
{<br />
base.OnPaint(e);<br />
<br />
e.Graphics.FillRectangle(new SolidBrush(Color.Green), ClientRectangle);<br />
}<br />
}<br />
}<br />


--Ian;
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 
AnswerRe: combobox Pin
Christian Graus12-Jul-06 4:29
protectorChristian Graus12-Jul-06 4:29 
AnswerClear the combo box? Pin
Ennis Ray Lynch, Jr.12-Jul-06 4:37
Ennis Ray Lynch, Jr.12-Jul-06 4:37 
QuestionBrowser - Show Friendly HTTP Error Messages Pin
nlarson1112-Jul-06 4:18
nlarson1112-Jul-06 4:18 

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.