Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin10-Mar-04 7:33
Eric Marchesin10-Mar-04 7:33 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart10-Mar-04 9:57
protectorHeath Stewart10-Mar-04 9:57 
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin10-Mar-04 21:40
Eric Marchesin10-Mar-04 21:40 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart11-Mar-04 2:58
protectorHeath Stewart11-Mar-04 2:58 
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin11-Mar-04 22:56
Eric Marchesin11-Mar-04 22:56 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart12-Mar-04 3:05
protectorHeath Stewart12-Mar-04 3:05 
Generalraise event in another form Pin
laptop_0110-Mar-04 3:13
laptop_0110-Mar-04 3:13 
GeneralRe: raise event in another form Pin
John Fisher10-Mar-04 3:52
John Fisher10-Mar-04 3:52 
Hello,

The most appropriate way of accomplishing this would be to have FormB subscribe to the event from TextBoxA. Then, within the event handler, do whatever is needed to add the text into TextBoxB.

laptop_01 wrote:
I really want to raise the same event in form B and not just call TextBoxB_KeyPress method in FormB

May I ask why? I don't see a benefit to raising the event vs. using the information you already have. Assuming you do proceed with this goal, it will likely involve sending windows messages to TextBoxB. Once you start doing that, you will need to be careful that focus issues don't crop up. (You don't want to type a character in TextBoxA, only to find that the next typed character only shows up in TextBoxB. This can be worked around if it does happen, though.)



John

"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.

General.Net windows forms problem in c# Pin
libpcap200110-Mar-04 1:07
libpcap200110-Mar-04 1:07 
GeneralRe: .Net windows forms problem in c# Pin
Dave Kreskowiak10-Mar-04 1:22
mveDave Kreskowiak10-Mar-04 1:22 
GeneralRe: .Net windows forms problem in c# Pin
LongRange.Shooter10-Mar-04 3:28
LongRange.Shooter10-Mar-04 3:28 
GeneralExchage server 5.0 Pin
pushpi10-Mar-04 1:04
pushpi10-Mar-04 1:04 
GeneralRe: Exchage server 5.0 Pin
Corinna John10-Mar-04 3:13
Corinna John10-Mar-04 3:13 
GeneralCrystal Reports (9) Sorting hierarchy Pin
Mr. Labenche9-Mar-04 23:18
Mr. Labenche9-Mar-04 23:18 
GeneralRe: Crystal Reports (9) Sorting hierarchy Pin
Heath Stewart10-Mar-04 6:18
protectorHeath Stewart10-Mar-04 6:18 
Generalmultimedia files Pin
m_ramses9-Mar-04 22:50
m_ramses9-Mar-04 22:50 
GeneralRe: multimedia files Pin
Mazdak10-Mar-04 3:13
Mazdak10-Mar-04 3:13 
GeneralRe: multimedia files Pin
Heath Stewart10-Mar-04 6:14
protectorHeath Stewart10-Mar-04 6:14 
GeneralRe: multimedia files Pin
Mazdak10-Mar-04 6:22
Mazdak10-Mar-04 6:22 
GeneralRe: multimedia files Pin
Heath Stewart10-Mar-04 6:24
protectorHeath Stewart10-Mar-04 6:24 
GeneralRe: multimedia files Pin
Heath Stewart10-Mar-04 6:22
protectorHeath Stewart10-Mar-04 6:22 
GeneralCreating new worksheet dynamically Pin
Member 6705319-Mar-04 20:05
Member 6705319-Mar-04 20:05 
GeneralAsyncronous callback to only a specific client. Pin
Blue_Aqua9-Mar-04 19:36
Blue_Aqua9-Mar-04 19:36 
GeneralRe: Asyncronous callback to only a specific client. Pin
Corinna John9-Mar-04 20:43
Corinna John9-Mar-04 20:43 
GeneralRe: Lots of free tutorials on C sharp Pin
Christian Graus14-Mar-04 14:58
protectorChristian Graus14-Mar-04 14:58 

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.