Sitemap

Amicuk Programming Answers

How to Clear all the data of open windows form of another exe?

2015-10-11   Views:0

Advertisement

Hi, I want to make utility which will clear all the data from one windows application. i know the application name. The application of which data i want to clear is made in C# and contains many windows forms and controls. out of that opened windows f

Hi,
I want to make utility which will clear all the data from one windows application.
i know the application name. The application of which data i want to clear is made in C# and contains many windows forms and controls.
out of that opened windows form and controls inside it need to be cleared.
Please guide on how to do this in C#?

The replay answer
Advertisement
Short version: Find the window and send it a message with
SendMessage.
Open up Spy++ and find your form's window.  You will see that the window has children and they have classes of the form "WindowsForms10.EDIT.*"  Those are TextBox controls.  You can call things like SetWindowText to set the
text of the window to clear it.
To do this programmatically, you'll have to obtain the window hand that corresponds to the control.  You can find windows with
FindWindowEx or
EnumWindows.  Locate the window by name or class or whatever else you can determine about it.  Find the child windows and "clear" them however you wish.  I assume you mean to set empty strings to all the TextEdit controls. If you
intend to do something more sophisticated than that, then you'll have to be more specific about what you mean by "Clear all the data".
It may or may not be obvious that you'll be poking around with Win32 API calls via PInvoke to accomplish much of this. Example:
SetWindowText via PInvoke.

Go to See the other 3 answers

How to Clear all the data of open windows form of another exe?

Category:DefaultRelease time:2015-10-11Views:130

Hi, I want to make utility which will clear all the data from one windows application. i know the application name. The application of which data i want to clear is made in C# and contains many windows forms and controls. out of that opened windows f[More]

After I reset my Ipod (deleted all data and settings) windows 7 doesn't recognize by ipod touch, and it doesn't appear in the itunes library or in the device menu, but it does charge. How can I get my computer to recognize it again?

Category:DefaultRelease time:2015-10-11Views:130

After I reset my Ipod (deleted all data and settings) windows 7 doesn't recognize by ipod touch, and it doesn't appear in the itunes library or in the device menu, but it does charge. How can I get my computer to recognize it again?Refer to this arti[More]

Adobe photoshop cc 2014 crashes at startup / GC driver up to date (nvidia 740M) / windows 8 / uninstalled software reinstalled disconnected creative cloud and reconnect /  nothing solved /error report ready to send

Category:DefaultRelease time:2015-10-11Views:130

Help in this for 3 and a half hours now and really nervous bout it. adobe photoshop cc 2014 crashes at startup / solely photoshop : lightroom illustrator indesign okay / GC driver up to date (nvidia 740M) / windows 8 / uninstalled software and reinst[More]

Transfer data from a window to another

Category:DefaultRelease time:2015-10-11Views:130

Hello All, This my first programme, In my first window I write the name of the company in "INSociete" in the class DataPanelCli when I use the button "findcli" in the class ButtonPanelCli, I'm looking in the tables Cli_fact and Adresse[More]

Recovering data from my windows external hard disk

Category:DefaultRelease time:2015-10-11Views:130

I have a unique bit of problem. Well, i used windows system 3 years back when i switched to mac. I saves all my data in my windows format hard drive. From there i used usb thumb drive to transfer to mac. Recently i found that my windows hard drive is[More]

How do I sync my data from a windows phone to an iPhone 4 iOS 7.1.2

Category:DefaultRelease time:2015-10-11Views:130

i need help syncing my data from a windows phone to a iPhone.Assuming you have your Windows Phone data synced to Microsoft's Outlook.com, or even Gmail, You can setup the Outlook.com or Gmail account in Settings->Email, Contacts, Calendars->Accounts[More]

A USB thumb drive with data created in Windows is not showing up on my desktop. Do I need a different driver or something?

Category:DefaultRelease time:2015-10-11Views:130

A USB thumb drive with data created in Windows is not showing up on my desktop. Do I need a different driver or something?OK in order to read those files you will need MS Office for Mac or install MS Windows on your Mac. You can get MS Office for Mac[More]

I've deleted Adobe Reader 11 and rebooted and reinstalled Adobe Reader 11 and I still get the error message that 'Adobe Reader is blocked because it is out of date'. Using Windows XP with the latest updates (SP3).

Category:DefaultRelease time:2015-10-11Views:130

I've deleted Adobe Reader 11 and rebooted and reinstalled Adobe Reader 11 and I still get the error message that 'Adobe Reader is blocked because it is out of date'. Using Windows XP with the latest updates (SP3).Screenshots attached to email replies[More]

When I open itunes I get a 'DATA EXECUTION PREVENTION' 'Windows closed program'. Can anybody help please.

Category:DefaultRelease time:2015-10-11Views:130

When open iTunes it starts OK then a message from Windows appears, 'DATA EXECUTION PREVENTION Windows closed program'. Then the whole thing shuts down. Does anybody know how to sort this out please. I am using XP operating system and have recently up[More]

How to pass a data from child window to parent window

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have a jsp page with two hidden fields and a button, On clicking the button a popup will come out. There are two combobox in the popup and a search button. After putting a value in the comboboxes,if I click the search button, I need the datas o[More]

Possible to print Int.Tab data in a window other than MAIN window in Script

Category:DefaultRelease time:-0001-11-30Views:130

Hi,   Can we print a internal table data in a window which is a VARIABLE Window in SAP Script? my requirement is not to print in MAIN Window. Thanks in Advance, Jakeer.Hi, You can do that.But main window is must. Create a text element and please chec[More]

Hot
Hi, I have a table and the below query is used to fetch around 3 lakh record. select * from emp where start_date between sysdate and (sysdate -30). It was taking more time(more than 1hr), hence i created index on the start_date column and now could g [More]
Hi All, How to mange serial number in the third party sales scenario.In standard sales process we manage serial numbers at delivery level. But for Third party delivery will be done from vendor's place.But our client wants to keep a track of serial nu [More]
I am running Leopard on my MacBook Pro and use both IMovie HD and 09. My IPhoto library is not available to me when I am editing in IMovieHD. This is a recent occurrence. I get the message "Open iPhoto 2 or Aperture 1.5 or later to see photos from yo [More]
I recently upgraded to a new PC, on Windows 7.  I've finally finished reinstalling everything and getting things back to "working order".  But I'm noticing something very troubling.  When I open previously edited photos in Photoshop, photos that [More]
I have just installed oracle personal edition 8.1.7 on my windows ME desktop. I have configured a LISTENER and DATABASE. On trying to get into the Database (through DBA studion or SQLPLUS) I get the error 'ORA-12541:TNS:no Listener'. I have tried to [More]
When a confirmation is of the process order executed the open reservations for this order should be closed but it will only do so for a limited number of items. When looking at process order xxxxxx it will show a final issue for materials say A, B an [More]
Hi there, I want to create a Flash lite signature grabber. Could someone give me a head start? I really need to be able to draw to a canvas and save the image using a png encoder to send binary data  to a coldfusion server. I can do the coldfusion si [More]
Ok. I could not open my NEF files. I looked at what version I was using and it was 4.0 I shoot with a Nikon D300.....so I need the 4.3 version or above. This much I know. But when I pull 4.0 onto my desktop and replaced it with 4.3 (tried 4.6 but tha [More]
Hello, I could not find any documentation on the test infrastructure / system that seems to be integrated into Netweaver CE 7.1. A DC offers the option via the context menu to "Add/Repair Unit Test Support". When this is used the Developer Studi [More]
Hi All, I have a user participant and I want to give it a full permissions. i want this user to be able to enter the BPM Administrator and have all the permission nedded. How can i do it? ThanksIf you need to provide Administrator rights to the user, [More]