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
HP informs me System Image Backup to flashdrive (per Win 8.1 documenttion) has been disabled by HP. Does anyone know a workaround? Perhaps from Cmd line?   Recovery/File History/System Image Backup - will not function to a flashdrive per Win 8.1 dire [More]
Hai All, In our place we are using 4 type of "date type" Z1 Hired date. Z2 Seperation Date Z3 Leave quota start Z4 Service entry date for all employees date specification maintain by dynamic action. for some employees date specification is not m [More]
Its been happening for 2 weeks, when i download a file bigger than 200 mb i downloads until 150- 180 and stops??...if anyone knows the answer to this problem please help! Thanks,I'm having the exact same problem.  Thing is I'm running it on Windows 7 [More]
Just bought this for my husband because it specifically mentions panorama mode, which he wanted in the description listed. ***Shoot crisp photos and video clips with this Canon PowerShot A2300 6192B001 digital camera that features optical image stabi [More]
Why does my iPhone 5 iOS 7 drain the battery from full to empty over night when its in flight mode?Philip Pryce wrote: none of the applications you install on your iPhone can run in the background. The problem apears to be with apples update, there a [More]
How can we know, What's going on about this error ? we have used oracle RAC 10G on Redhat 4 May 4 08:50:29 aadb01 logger: Oracle clsomon failed with fatal status 13. May 4 08:50:30 aadb01 su(pam_unix)[31051]: session opened for user oracle by (uid=0) [More]
I tried several time to redeem a itunes gift card but was unsuccussful many times. Tried to redeem card but never took me where I needed to be. Tried refreshing several times as well but didn't help. Thanks, RobAnd thank you for sharing.  Did you hav [More]
Hi all, I want to drill down on a chart on the basis of fitlter values. i.e User wants to click on the section of first chart and want to pass on the filter values of first chart to the second chart...How should I achieve this in Xcelcius???You can d [More]
Is there a way to copy a set of files (.doc, .xls, .pdf, .jpg etc) and folders from windows PC to ipad and access them on ipad.janardhan-from-bangalore wrote: Is there a way to copy a set of files (.doc, .xls, .pdf, .jpg etc) and folders from windows [More]
Cannot get a machine to talk to the mbam server. Machine is encrypted but not reporting to Mbam Server. Error log: TimeCreated [SystemTime] 2014-12-12T07:43:37.411949200Z EventRecordID 297 Correlation Execution [ ProcessID] 168 [ ThreadID] 2444 Chann [More]