Hi All,
I need to open 2 notepads programatically. If I copy data from one notepad, and try to paste it in the next notepad, it should not get pasted.
Can anyone suggest me a solution for carrying out the above one.
Hi All,
I need to open 2 notepads programatically. If I copy data from one notepad, and try to paste it in the next notepad, it should not get pasted.
Can anyone suggest me a solution for carrying out the above one.
Copy and paste data between 2 notepads in C#
TianHon
melberti
I'm working in an e-publishing concern. Here we process a lot of 3b2 files. When we start a 3B2 application, scripts are generated. These scripts generate data.
This data is copied from one file to another file. But the data should be unique for each file. Since people are copying and pasting this data, we encounter certain problems.
So to overcome this problem, we need to find a solution.
Can u suggest some other solution for this problem
Thanks!
msv6
Uppy
Since i'm new to .NET, i want to know how to start with this. Can u help me on this
mcnamaragio
Reham
If you open the notepad.exe programaticaly. You could just open 2 multiline textbox and handle the copy/paste yourself (much easier). Sort of creating your own notepad that prevent paste.
You cannot stop people from opening notepad themself and modifing the text and if you do find a way to prevent copy/paste when the user open notepad by himself then that's not a feature I would like to have installed in my computer.
j_a_m_e_s
Hi,
I wrote some code snippet which copies text from Clipboard and pastes to notepad.
I have used WM_SETTEXT to paste the text into the Notepad. The same way you can get the text from notepad using WM_GETTEXT.
Please refer the sample and modify it as per your need if possible.
Look at the last post of mine at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1108725&SiteID=1
For more info about WM_XXXTEXT please refer,
http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowmessages/wm_settext.asp
http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowmessages/wm_gettext.asp
HTH,
R1ZWAN
It's not clear what you want... do you want to copy/paste between notepad, or do you want to PREVENT users from doing it
I posted how to handle the pasting in this post:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1179235&SiteID=1
Bluehunter
Thanks a lot.
I'll come back to u in case of doubts.
leonlai