Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Notepad from windows form

Status
Not open for further replies.

meBrian

Programmer
Aug 7, 2001
73
US
I am looking to launch an instance of Notepad from a windows form and pull string data from a textbox to that instance. I want to allow the user to edit this data and then upon closing Notepad (not sure how I'll capture this), return the new string data to the form's textbox.

There just isn't enough room on my form to easily review/edit/add the information and I figure Notepad would be the perfect alternative - unless someone can offer anything better. I know creating a new form and passing things around that way will work, but I thought I'd try this route first.

Any ideas or links? I'm sure this wheel has been invented before, I just haven't found it yet.

Thanks for the help folks.
 
It is possible to do what you are suggesting, but to do so you will need to access a number of Windows API functions. A lot of unnecessary hard work when you have already identified a very straightforward solution.


Hope this helps.

[vampire][bat]
 
Creating a form is the best idea. Just put a single Multi-line textbox on the form and set the Docking to Full, and you pretty much have Notepad.
 
Most of the time, programmers look for the most straight-forward and -dare I say - easiest solution. Most of the time I'm no different.

I guess I am just looking at doing it different than the norm. If time allows I'll persue the API, but if not, I already know the straight-forward approach.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top