Click here to Skip to main content
15,890,882 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: DateTimePicker date disable. Pin
Luc Pattyn4-Apr-09 3:14
sitebuilderLuc Pattyn4-Apr-09 3:14 
GeneralRe: DateTimePicker date disable. Pin
Incvisitor4-Apr-09 3:29
Incvisitor4-Apr-09 3:29 
GeneralRe: DateTimePicker date disable. Pin
Luc Pattyn4-Apr-09 3:50
sitebuilderLuc Pattyn4-Apr-09 3:50 
AnswerRe: DateTimePicker date disable. Pin
jaypatel5129-Apr-09 21:02
jaypatel5129-Apr-09 21:02 
GeneralControl selection event alternatives Pin
Adrian Cole3-Apr-09 13:20
Adrian Cole3-Apr-09 13:20 
QuestionDisplaying Tournament Brackets Pin
aslamc3-Apr-09 12:42
aslamc3-Apr-09 12:42 
QuestionTooltip for Combobox Pin
Vikram.....3-Apr-09 1:48
Vikram.....3-Apr-09 1:48 
AnswerRe: Tooltip for Combobox Pin
Juan1R13-Apr-09 4:28
Juan1R13-Apr-09 4:28 
Hope this helps:

- Change the DrawMode property of your combo box to OwnerDrawFixed.

- Implement the event DrawItem of the combo box and write there something like this:

ToolTip tt = new ToolTip();
private void comboBox1_DrawItem(object sender, DrawItemEventArgs e) {
    e.DrawBackground();

    e.Graphics.DrawString(comboBox1.Items[e.Index].ToString(),
        e.Font, e.State == DrawItemState.Selected ? Brushes.White : Brushes.Black, e.Bounds, StringFormat.GenericDefault);
    e.DrawFocusRectangle();
    tt.Show(comboBox1.Items[e.Index].ToString(), comboBox1, 1000);
}


This event is now called whenever an item is displayed. Now you have to insert the text that draws the combo items and, by the way, you update the tool tip with the information you want to show about the item.
QuestionListView Virtual data from disk Pin
Polity2-Apr-09 9:23
Polity2-Apr-09 9:23 
AnswerRe: ListView Virtual data from disk Pin
Mycroft Holmes2-Apr-09 22:14
professionalMycroft Holmes2-Apr-09 22:14 
GeneralRe: ListView Virtual data from disk Pin
Polity3-Apr-09 5:51
Polity3-Apr-09 5:51 
QuestionSourceGrid, how to use different fonts in different cells Pin
balukg2-Apr-09 5:01
balukg2-Apr-09 5:01 
AnswerRe: SourceGrid, how to use different fonts in different cells Pin
Henry Minute2-Apr-09 6:59
Henry Minute2-Apr-09 6:59 
QuestionIs it possible to shadow IsMdiContainer? Pin
Gregory Gadow1-Apr-09 16:47
Gregory Gadow1-Apr-09 16:47 
AnswerRe: Is it possible to shadow IsMdiContainer? Pin
Colin Angus Mackay1-Apr-09 23:49
Colin Angus Mackay1-Apr-09 23:49 
GeneralRe: Is it possible to shadow IsMdiContainer? Pin
Gregory Gadow2-Apr-09 3:37
Gregory Gadow2-Apr-09 3:37 
QuestionOnly MySqlParameter objects may be stored Pin
naim khan1-Apr-09 11:21
naim khan1-Apr-09 11:21 
AnswerRe: Only MySqlParameter objects may be stored Pin
Henry Minute1-Apr-09 12:01
Henry Minute1-Apr-09 12:01 
AnswerRe: Only MySqlParameter objects may be stored Pin
Henry Minute2-Apr-09 7:07
Henry Minute2-Apr-09 7:07 
GeneralRe: Only MySqlParameter objects may be stored Pin
Luc Pattyn2-Apr-09 9:01
sitebuilderLuc Pattyn2-Apr-09 9:01 
QuestionNeed sugestion on what font to use with Unicode chars Pin
Christian Wikander1-Apr-09 2:39
Christian Wikander1-Apr-09 2:39 
QuestionRe: Need sugestion on what font to use with Unicode chars Pin
led mike1-Apr-09 5:32
led mike1-Apr-09 5:32 
GeneralRe: Need sugestion on what font to use with Unicode chars Pin
Christian Wikander1-Apr-09 22:36
Christian Wikander1-Apr-09 22:36 
GeneralRe: Need sugestion on what font to use with Unicode chars Pin
led mike10-Apr-09 4:41
led mike10-Apr-09 4:41 
GeneralRe: Need sugestion on what font to use with Unicode chars Pin
Christian Wikander13-Apr-09 21:00
Christian Wikander13-Apr-09 21:00 

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.