We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Sending data to an editor from win forms.

Thread ID:

Created:

Updated:

Platform:

Replies:

1321 Oct 16,2002 11:39 PM Oct 21,2002 04:30 AM Windows Forms 2
loading
Tags: FAQ
Sharath Kumar Gajare
Asked On October 16, 2002 11:39 PM

Hi i am trying to send a message to a windows editor(like notepad, wordpad, word etc) whenever i click a button on a windows form.(I am using C#). If i have to use the sendkeys class, how do i make that particular editor an active window while running the form? Thanks for your time.

Prakash S [Syncfusion]
Replied On October 19, 2002 02:18 PM

From the Class Library docs on the SendKeys class: Note Because there is no managed method to activate another application, you can either use this class within the current application or use native Windows methods, such as FindWindow and SetForegroundWindow, to force focus on other applications. Will this not work for you? Are there any complications involved that I am missing? Prakash Syncfusion, Inc.

Sharath Kumar Gajare
Replied On October 21, 2002 04:30 AM

Thanks - I got this working using FindWindow/SetForegroundWindow. Actually i was wondering if there was any new method to do this in C#. -Sharath. > From the Class Library docs on the SendKeys class: > > > Note Because there is no managed method to activate another application, you can either use this class within the current application or use native Windows methods, such as FindWindow and SetForegroundWindow, to force focus on other applications. > > > Will this not work for you? Are there any complications involved that I am missing? > > Prakash > Syncfusion, Inc. >

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;