Click here to Skip to main content
15,889,365 members
Home / Discussions / C#
   

C#

 
GeneralRe: Running thread to refresh image disable scrollbars in DataGridView Pin
neualex28-Apr-14 3:28
neualex28-Apr-14 3:28 
GeneralRe: Running thread to refresh image disable scrollbars in DataGridView Pin
OriginalGriff28-Apr-14 3:34
mveOriginalGriff28-Apr-14 3:34 
QuestionI got this error on page load my photo gallery page . http://s.codeproject.com/script/Forums/Images/smiley_WTF.gif Pin
300sparta25-Apr-14 23:03
300sparta25-Apr-14 23:03 
AnswerRe: I got this error on page load my photo gallery page . http://s.codeproject.com/script/Forums/Images/smiley_WTF.gif Pin
OriginalGriff25-Apr-14 23:18
mveOriginalGriff25-Apr-14 23:18 
QuestionHow can I change the background color of the part of a ComboBox that is always visible? Pin
arnold_w25-Apr-14 4:34
arnold_w25-Apr-14 4:34 
QuestionRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
Richard Deeming25-Apr-14 4:52
mveRichard Deeming25-Apr-14 4:52 
AnswerRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
arnold_w25-Apr-14 4:56
arnold_w25-Apr-14 4:56 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
Richard Deeming25-Apr-14 5:10
mveRichard Deeming25-Apr-14 5:10 
You'll need to set the DrawMode property[^] to OwnerDrawFixed or OwnerDrawVariable, depending on whether or not your items have a fixed height.

For OwnerDrawVariable, you'll need to handle the MeasureItem event[^] to specify the size for each item.

You'll then need to handle the DrawItem event[^] to draw each item in the ComboBox. You should be able to identify whether the item is the edit portion of the ComboBox by checking for the DrawItemState.ComboBoxEdit flag in the State property[^] of the DrawItemEventArgs[^].



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
Mycroft Holmes25-Apr-14 13:23
professionalMycroft Holmes25-Apr-14 13:23 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
arnold_w27-Apr-14 21:22
arnold_w27-Apr-14 21:22 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
Richard Deeming28-Apr-14 1:39
mveRichard Deeming28-Apr-14 1:39 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
arnold_w28-Apr-14 2:17
arnold_w28-Apr-14 2:17 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
Richard Deeming28-Apr-14 2:32
mveRichard Deeming28-Apr-14 2:32 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
arnold_w28-Apr-14 2:35
arnold_w28-Apr-14 2:35 
QuestionHow can I disallow SelectedValue to be -1 in a ComboBox? Pin
arnold_w25-Apr-14 4:28
arnold_w25-Apr-14 4:28 
AnswerRe: How can I disallow SelectedValue to be -1 in a ComboBox? Pin
OriginalGriff25-Apr-14 4:42
mveOriginalGriff25-Apr-14 4:42 
GeneralRe: How can I disallow SelectedValue to be -1 in a ComboBox? Pin
arnold_w25-Apr-14 4:48
arnold_w25-Apr-14 4:48 
GeneralRe: How can I disallow SelectedValue to be -1 in a ComboBox? Pin
OriginalGriff25-Apr-14 5:04
mveOriginalGriff25-Apr-14 5:04 
GeneralRe: How can I disallow SelectedValue to be -1 in a ComboBox? Pin
arnold_w25-Apr-14 5:20
arnold_w25-Apr-14 5:20 
GeneralRe: How can I disallow SelectedValue to be -1 in a ComboBox? Pin
OriginalGriff25-Apr-14 6:00
mveOriginalGriff25-Apr-14 6:00 
Questionadd picturebox to panel from a dll file at design time Pin
Member 1059256824-Apr-14 23:25
Member 1059256824-Apr-14 23:25 
AnswerRe: add picturebox to panel from a dll file at design time Pin
Eddy Vluggen25-Apr-14 4:00
professionalEddy Vluggen25-Apr-14 4:00 
QuestionC# unable to get handle when multiple instances of app are open in windows 8.1 Pin
RRLCoder24-Apr-14 19:11
RRLCoder24-Apr-14 19:11 
QuestionRe: C# unable to get handle when multiple instances of app are open in windows 8.1 Pin
Eddy Vluggen25-Apr-14 4:01
professionalEddy Vluggen25-Apr-14 4:01 
AnswerRe: C# unable to get handle when multiple instances of app are open in windows 8.1 Pin
RRLCoder25-Apr-14 6:44
RRLCoder25-Apr-14 6: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.