Click here to Skip to main content
15,906,463 members
Home / Discussions / C#
   

C#

 
AnswerRe: permutation Pin
_Maxxx_5-Mar-09 14:06
professional_Maxxx_5-Mar-09 14:06 
QuestionCustom Open Dialogs with WebBrowser Control Pin
Umer Sheikh5-Mar-09 12:11
Umer Sheikh5-Mar-09 12:11 
AnswerRe: Custom Open Dialogs with WebBrowser Control Pin
_Maxxx_5-Mar-09 14:29
professional_Maxxx_5-Mar-09 14:29 
GeneralRe: Custom Open Dialogs with WebBrowser Control Pin
Umer Sheikh5-Mar-09 17:07
Umer Sheikh5-Mar-09 17:07 
QuestionUsing IAccessible to navigate across Datagrid rows Pin
Brian Garnica5-Mar-09 11:35
Brian Garnica5-Mar-09 11:35 
QuestionGraphs disappear from panel Pin
StuffyEst5-Mar-09 10:58
StuffyEst5-Mar-09 10:58 
AnswerRe: Graphs disappear from panel Pin
Calin Tatar5-Mar-09 11:27
Calin Tatar5-Mar-09 11:27 
GeneralRe: Graphs disappear from panel Pin
StuffyEst5-Mar-09 11:54
StuffyEst5-Mar-09 11:54 
GeneralRe: Graphs disappear from panel Pin
Calin Tatar5-Mar-09 12:07
Calin Tatar5-Mar-09 12:07 
GeneralRe: Graphs disappear from panel Pin
StuffyEst5-Mar-09 12:24
StuffyEst5-Mar-09 12:24 
AnswerRe: Graphs disappear from panel Pin
Luc Pattyn5-Mar-09 12:06
sitebuilderLuc Pattyn5-Mar-09 12:06 
GeneralRe: Graphs disappear from panel Pin
StuffyEst5-Mar-09 12:26
StuffyEst5-Mar-09 12:26 
AnswerRe: Graphs disappear from panel Pin
S K Y5-Mar-09 13:54
S K Y5-Mar-09 13:54 
GeneralRe: Graphs disappear from panel Pin
StuffyEst10-Mar-09 0:38
StuffyEst10-Mar-09 0:38 
QuestionEvent Question Pin
E_Gold5-Mar-09 9:31
E_Gold5-Mar-09 9:31 
AnswerRe: Event Question Pin
Christian Graus5-Mar-09 9:45
protectorChristian Graus5-Mar-09 9:45 
AnswerRe: Event Question Pin
Eslam Afifi5-Mar-09 9:48
Eslam Afifi5-Mar-09 9:48 
GeneralRe: Event Question Pin
Yusuf5-Mar-09 10:11
Yusuf5-Mar-09 10:11 
GeneralRe: Event Question Pin
Eslam Afifi5-Mar-09 12:55
Eslam Afifi5-Mar-09 12:55 
GeneralRe: Event Question Pin
E_Gold5-Mar-09 10:12
E_Gold5-Mar-09 10:12 
GeneralRe: Event Question Pin
Yusuf5-Mar-09 10:22
Yusuf5-Mar-09 10:22 
AnswerRe: Event Question Pin
DaveyM695-Mar-09 10:21
professionalDaveyM695-Mar-09 10:21 
You can call the method that normally handles the event directly as has been suggested.

To actually raise the event you need to get access to the TextBox's OnEnter method. This isn't as easy as the question you posed earlier so I think the others are being a bit harsh flaming you.

There are two ways that I know of. The first involves reflection:
typeof(TextBox).GetMethod(
    "OnEnter", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic
    ).Invoke(
    textBox1, new object[] { EventArgs.Empty }
    );
The other is to subclass the TextBox and add a public PerformEnter method. From it call OnEnter(EventArgs.Empty), and use your derived TextBox instead of the original.

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: Event Question Pin
E_Gold5-Mar-09 10:31
E_Gold5-Mar-09 10:31 
GeneralRe: Event Question Pin
Christian Graus5-Mar-09 12:43
protectorChristian Graus5-Mar-09 12:43 
GeneralRe: Event Question Pin
_Maxxx_5-Mar-09 14:09
professional_Maxxx_5-Mar-09 14:09 

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.