Click here to Skip to main content
15,900,816 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: creating icons for windows forms under smart device application of VS2008 Pin
Jabbar_espania8-May-09 6:44
Jabbar_espania8-May-09 6:44 
QuestionMonthCalendar BoldedDates. Pin
Incvisitor4-Apr-09 4:27
Incvisitor4-Apr-09 4:27 
QuestionDateTimePicker date disable. Pin
Incvisitor4-Apr-09 3:06
Incvisitor4-Apr-09 3:06 
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 
In controls that allow selection of a thing, I've seen two common ways to inform the user that the currently selected thing has changed and what the new selected thing is.

In the first method, the event notification arguments contain no extra information about the selected thing but the control has a property for accessing it.

private void someControl_SelectedThingChanged(object sender, EventArgs e)
{
    SomeControl someControl = sender as SomeControl;
    SomeThing selectedThing = someControl.SelectedThing;
    ...
}

In the second method, the new selected thing is a property of the event notification arguments.

private void someControl_SelectedThingChanged(object sender, SelectedThingChangedEventArgs e)
{
    SomeThing selectedThing = e.SelectedThing;
    ...
}

One advantage I can see of one method over the other is that the first method is useful if the SomeControl.SelectedThing property is read/write and can be set via code and not just input events. If the SomeControl.SelectedThing property is read-only, then it doesn't really need to exist and the value can be passed in the event arguments as per the second method.

Agree? Disagree? Discuss ...
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 
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 

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.