Click here to Skip to main content
15,896,118 members
Home / Discussions / C#
   

C#

 
AnswerRe: MD5 Conflict between PHP and C# Pin
Mark Churchill8-Oct-08 17:06
Mark Churchill8-Oct-08 17:06 
Questionevent not fired [modified] Pin
netJP12L8-Oct-08 12:02
netJP12L8-Oct-08 12:02 
AnswerRe: event not fired Pin
DaveyM698-Oct-08 12:31
professionalDaveyM698-Oct-08 12:31 
GeneralRe: event not fired Pin
netJP12L8-Oct-08 16:58
netJP12L8-Oct-08 16:58 
QuestionError- This row already belongd to another table Pin
rahul218-Oct-08 10:40
rahul218-Oct-08 10:40 
AnswerRe: Error- This row already belongd to another table Pin
Richard Blythe8-Oct-08 16:14
Richard Blythe8-Oct-08 16:14 
QuestionHow do I call the combobox SelectionChangeCommitted event manually? Pin
OldSchoolToC#8-Oct-08 5:56
OldSchoolToC#8-Oct-08 5:56 
AnswerRe: How do I call the combobox SelectionChangeCommitted event manually? Pin
DaveyM698-Oct-08 6:30
professionalDaveyM698-Oct-08 6:30 
The OnSelectionChangeCommitted that raises the event is protected virtual so it is only accesible in derived classes. Therefore, I think the only way to call that method to raise the event is by your own class the derives from ComboBox:
public class MyComboBox : ComboBox
{
    public void RaiseSelectionChangeCommitted()
    {
        base.OnSelectionChangeCommitted(EventArgs.Empty);
    }
}

You can now use the RaiseSelectionChangeCommitted method to call the base method and raise the event. This is probably not advisable and there is probably a better way but it's all I can think of - and it works!

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

GeneralRe: How do I call the combobox SelectionChangeCommitted event manually? Pin
led mike8-Oct-08 10:08
led mike8-Oct-08 10:08 
GeneralRe: How do I call the combobox SelectionChangeCommitted event manually? Pin
DaveyM698-Oct-08 11:50
professionalDaveyM698-Oct-08 11:50 
GeneralRe: How do I call the combobox SelectionChangeCommitted event manually? Pin
OldSchoolToC#8-Oct-08 10:17
OldSchoolToC#8-Oct-08 10:17 
QuestionArrayList vs. List<object> Pin
dbrenth8-Oct-08 5:28
dbrenth8-Oct-08 5:28 
AnswerRe: ArrayList vs. List<object></object> PinPopular
led mike8-Oct-08 5:39
led mike8-Oct-08 5:39 
GeneralRe: ArrayList vs. List Pin
Dave Kreskowiak8-Oct-08 8:29
mveDave Kreskowiak8-Oct-08 8:29 
GeneralRe: ArrayList vs. List Pin
led mike8-Oct-08 10:02
led mike8-Oct-08 10:02 
AnswerRe: ArrayList vs. List&lt;object&gt; Pin
Simon P Stevens8-Oct-08 5:41
Simon P Stevens8-Oct-08 5:41 
GeneralRe: ArrayList vs. List&lt;object&gt; Pin
dbrenth8-Oct-08 5:44
dbrenth8-Oct-08 5:44 
GeneralRe: ArrayList vs. List&lt;object&gt; Pin
Mark Salsbery8-Oct-08 7:35
Mark Salsbery8-Oct-08 7:35 
AnswerRe: ArrayList vs. List&lt;object&gt; Pin
DaveyM698-Oct-08 5:43
professionalDaveyM698-Oct-08 5:43 
AnswerRe: ArrayList vs. List&lt;object&gt; Pin
Scott Dorman8-Oct-08 7:38
professionalScott Dorman8-Oct-08 7:38 
AnswerRe: ArrayList vs. List&lt;object&gt; Pin
Daniel Grunwald8-Oct-08 8:11
Daniel Grunwald8-Oct-08 8:11 
AnswerRe: ArrayList vs. List&lt;object&gt; Pin
CPallini8-Oct-08 9:15
mveCPallini8-Oct-08 9:15 
AnswerRe: ArrayList vs. List&lt;object&gt; Pin
Guffa8-Oct-08 9:19
Guffa8-Oct-08 9:19 
QuestionCreate new Table in Access mdb Pin
Planker8-Oct-08 5:07
Planker8-Oct-08 5:07 
AnswerRe: Create new Table in Access mdb Pin
led mike8-Oct-08 5:41
led mike8-Oct-08 5:41 

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.