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 am facing following error on during the snapshot refresh at 8i ORA-04052: error occurred when looking up remote object [email protected] ORA-00604: error occurred at recursive SQL level 2 ORA-02085: database link RT.PRDU connects to RT ORA-065 [More]
How do I access my Toshiba Web Camera-HD on my Satellite C50-B series laptop? It's in the device manager file and shows that  it is working properly. Your help would be much appreciated.Hi Lilred, I agree with Cyber_Defend_Team .To use a web cam ,we [More]
I'm tearing my hair out over this one. We have a server that was located in our office. I just moved it downtown to a colo center (no longer in office) and set up VPN access. However, nobody is able to mount the server share points, even though the c [More]
I am trying to create new users and add them to "Administrator" and "Administrators" so that they can access Admin console. I tried open up "http://localhost:7001/console" and entered in this new id and password, but it did n [More]
I am having problems with snow leopard locking up while thrying to open up Safari. What can be done to correct the problem?I am having problems with snow leopard locking up while thrying to open up Safari. What can be done to correct the problem?Read [More]
Have been trying migration assistant to transfer Windows to MAC, does this work? Keeps searching for computer? Both are on the network but cannot connect.You are following this? http://www.apple.com/support/switch101/Read other 2 answers [More]
I purchased the Promotheus on Apple TV and watched it for about 15 minutes, Then it stopped and kept loading. The screen informed me the movies would be available in 2 hours 45 minutes. That was silly and wrong and it ruined my movies' night. I would [More]
Hi I wan't to know how to use mm -pci command to enable intel HD on bootcamp The device ( for 8086:0045 vga) pci adress is 00 00 02 00, I can display it when I use efi shell with the command "pci" how can I enable this card in my macbookpro6,2 p [More]
hi all,   i need some clarification with regarding the function module convert_to_local_currency. i have a requirement to convert form USD to GBP currency in my program so what are the data types i have to declare, how to pass parameters, are there a [More]
please help. I ran the query below in php4 + oacle9i <?php $quantity = 12345; $grace=20; $conn = ociLogon('username', 'pwd','host'); if (!$conn) { $e = ocierror(); print htmlentities($e['message']); exit; $query = "udpate product set status_dtm = [More]