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

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#?

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.

Similar Messages

  • How to clear all the data in my inputStream

    hi ,
    here is a problem i am facing
    i have a "BufferedInputStream" that contains some byte packets that i dont require i just want to clean my inputStream so that it contains nothing before i write to my outputStream
    such that after i write to my outputStream , my inputStream contains only the packet sent as a response from my new request written to outputStream
    Best Regards
    Mark

    the problem i am facing is that i dont have the
    information for EOS so how to do it in this case
    since if i use a loop to read the packet it gets hangThis is essentially the same problem you had in http://forum.java.sun.com/thread.jspa?threadID=5198808&messageID=9787600#9787600 .
    If you don't have an EOS indication then you are stuffed.

  • I have ipod nano 6G.I was trying to restore it to clear all the data but it showed error 1439 and couldn't restore.I tried every method given in errors help page but nothing worked.What should i do?

    I have ipod nano 6G.I was trying to restore it to clear all the data but it showed error 1439 and couldn't restore.I tried every method given in errors help page but nothing worked.What should i do?

    Just in case (even though your symptoms aren't explicitly mentioned in the document), let's check to see if there's a LSP problem in play here:
    Apple software on Windows: May see performance issues and blank iTunes Store

  • Lost all contacts and data after update iOS 7.1.2, how to recover all the data?

    lost all contacts and data after update iOS 7.1.2, how to recover all the data?
    it's very important to me...

    Restore from your last backup file.

  • How can i save the data in a jpanel form to a .txt document

    how can i save the data in a jpanel form to a text file using parse function,this should happen when i click a save button .
    please help me..

    each time when i fill the form and click save button ,all the data in the form should be written to a text file and each time when i repeat it should append to the old data in the text file.the elements in the form should be seperated by pipe delimeter.
    thanks for your patience..

  • How can i change the data from one Time Capsule to another?

    How can i change the data from one Time Capsule to another?

    Do you mean copy it?  If so, see #18 in Time Machine - Frequently Asked Questions  You'll need section 2 there.
    If you mean something else, please clarify.

  • How to clear all session data in adf through coding?

    Hi Everyone,
    i have created many pages in an application.I want to clear all session data when i get back to my first page.
    how to do that?
    such that my application should run as i am running for the first time.
    Thanks.

    Hi Jabr,
    i have used this code in initMethod() (Before phase) of my page.
    ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    HttpSession session = (HttpSession)ectx.getSession(false);
    session.invalidate();
    this code got executed but the page has 2 lovs.
    im getting error null pointer exception that EmpLovVO not found.
    if i remove the above code then the page is running correctly.
    What to do now?
    Thanks.

  • How to retrieve all the data from a BLOB using view-generated accessor

    I am using JDeveveloper 10g v. 10.1.3 and am storing an image in a database as a blob object and need to retrieve all of the data to get the entire image and store it in an ImageIcon. The code I have works partially in that it retrieves the correct data, but only gets a piece of it, leaving me with a partial image.
    AppModuleImpl am;
    ImageVwViewImpl vo;
    am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
    vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
    ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();
    ImageIcon icon = new ImageIcon(ivo.getImage().getBytes(1, (int)ivo.getImage().getBufferSize()));
    jULabel1.setIcon(icon);I either need to know how to use a stream to get the data out (from BlobDomain method getBinaryStream()), or how to get the other chunks of data separately.
    edit: I know the problem is that getBufferSize() returns an int which is too small to hold all the data, but need to know what to use instead. Thanks!

    This is the code I'm using now. Same problem :(
    AppModuleImpl am;
            ImageVwViewImpl vo;
            am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
            vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
            ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();  
            ImageIcon icon = new ImageIcon(ivo.getImage().toByteArray());
            jULabel1.setIcon(icon);

  • How to get all the data stored on a table?

    Hi.
    I'm tryng to get all the data stored on a database table but I'm losing in trouble. I've looked for a soloution to my problem in the forums but each post I follow related to this issue gives me a different way to solve the problem and no one works :(
    I suppose I have to call the getAllRowsInRange() method from my ViewObject class. But how can I get an instance of my ApplicationModule in order to get the corresponding ViewObject?
    I think I messed my head a lot.
    Could someone help me please?
    Thanks in advance.

    Thanks for your answer.
    However, there are some things that I don't understand. I will look the book but why is necessary to create another ApplicationModule? The fact is that my application just have one ApplicationModule.
    Apart from that, I have tried your suggestion and I've obtained the quite little friendly response that follows:
    javax.faces.FacesException: #{backing_pruebaFilas.commandButton1_action}: javax.faces.el.EvaluationException: oracle.jbo.ConfigException: JBO-33001: No se ha encontrado el archivo de configuración /DatosViewObj/common/bc4j.xcfg en classpath
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at javax.faces.component.UICommand.broadcast(UICommand.java:332)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.faces.el.EvaluationException: oracle.jbo.ConfigException: JBO-33001: No se ha encontrado el archivo de configuración /DatosViewObj/common/bc4j.xcfg en classpath
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 24 more
    Caused by: oracle.jbo.ConfigException: JBO-33001: No se ha encontrado el archivo de configuración /DatosViewObj/common/bc4j.xcfg en classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:367)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:284)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:539)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:165)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1498)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1476)
         at view.backing.PruebaFilas.commandButton1_action(PruebaFilas.java:100)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         ... 25 more
    At that point, I think a better explanation of my purpose could be helpful. What I'm trying to do is just create a simple page with a command button, and in its action method get all the data stored in the rows of the table. I've seen a possible solution that I understand:
    DCIteratorBinding iter = getIterator("DatosViewObj1Iterator");
    System.out.println("Iterator Binding: "+iter);
    int startRange = iter.getRangeSize();
    iter.setRangeSize(-1);
    Row[] rows = iter.getAllRowsInRange();
    iter.setRangeSize(startRange);
    but the problem is that I don't know what is the class the method getIterator belongs to.
    Could you help me with this last piece of code? If not, I accept, of course, any suggestion. I am absolutely stuck.
    Thanks and regards.

  • How to extract all the dates given in a date Range.

    Hi,
    I would like to extract all  the date given in a  date range select option field, Kindly let me know how is
    it possible in most optimized way,
    Regrd
    Ali

    Hi,
    You can code like below.. Declare the Ranages and use those ranges to append the data.
    Ranges : R_date for Table-date.
    R_date-Sign = I
    R_date-Option = BT
    use the Select statment SELECT * FROM TABLE INTO ITAB WHERE DATE IN S_DATE.
    use the append statmenets to APPEND R_Ranges.
    Regards
    Thiru

  • How to parse all the data of the particular tag in the xml file

    Hi All,
    I have a xml file, which have tags like, code,rev_num,type...volunteer.I want to parse the xml and save the all data(code,rev_num...) of the tag <type>unknown </type>in a text file. I tried to use a Match node vi but I not geting the output i need.attach is my attempt , can anyone suggest me or help me out.(Sorry Cant attach the xml hence i saved it as an text file.)
    Thanks,
    Ankit G
    Solved!
    Go to Solution.
    Attachments:
    teeth.txt ‏385 KB
    Xml parse.vi ‏22 KB

    TailOfGon wrote:
    Do you want to extract all the data with type='unknown'?
    Then try the XPath like this: 
    resource[type='unknown']/code
    Hi,
    Yes I want to extract all the data of the type = "unknown", I tried Xpath resource[type='unknown']/code but it didnt work , I still getting all other data of different type .
    Thanks,
    Ankit G

  • How can I sync my Iphone to a new computer without clearing all the data?

    When I first started using my iPhone, I had it paired with a MacBook which has subsequently crashed. While most of the information was backed up, not all of it was and iTunes now tells me I must completely erase all of my data. I would prefer not to loose all of my contacts, apps, and other information. I know the phone will not transfer files to my computer, I'm not asking how to do that nor do I care to. I just want to sync it with my new MacBook Pro.

    You cannot sync without erasing.
    Transfer your itunes purchases.  Without syncing:  File>Transfer Purchases
    Then enter one unique contact and calendar entry in the new computer. When you first sync you should get the option to merge the data.
    Make sure you backup everything going forward.  It makes all of this much easier.

  • How to transfer all the data from Logic pro to other drive (faster)?

    Hi
    I am trying to upgrade the performance of my Mac and decided to upgrade the RAM and to use a dedicated HardDrive for Logic Pro using firewire (i have a mac mini server...). Think the Processor e fast enough...
    How can i transfer all the information for that drive?
    Can i move the media library from the OS drive to the new drive? or has it to stay were initially instaled?
    I moved to Mac because my Windows "Super 16GB QuadCore PC" was giviing me trouble...in relation to connections, critical errors...
    I am a novice on the Mac "ways"...
    Can someone give me directions?

    Logic doesn't store the majority of its data in designated library places, so you can put your session files and audio files wherever you want. If you move the location of something, say an audio file, and logic doesn't know where to find that asset, then it'll present you with a dialog box which asks you if you can tell it where you moved it to, or if you'd like it to go off and search for files of that name for you. They're all just files on a hard disk. There's only a few things which have to be stored in particular places, such as preferences or sampler instruments. Anything that isn't part of the program, you can store it wherever you want. In a session you can have for example all the live parts on one hard disk, and then all your samples on another hard disk. It's all arbitrary and can be defined by you.
    So yes, you can generally keep your media library wherever you want (as far as Logic is concerned).

  • How to copy all the data from old computer to new computer (server)

    Dear all,
    As I want to upgrade the server from old computer to a new one.
    I want to ask how and easy way to copy all of table, sequence, ......data from existing old computer to new computer.
    The old server is window 2000 Server with oracle 10g
    The new server may window 2003 Server with oracle 10g
    Thanks a lot
    Francis SZE

    As far as I can see you are copying from db10g for windows to another host on the same platform and same OS, so a simple cold backup taken from the source database can be restored at the target host. You must first make sure the configuration files and service be created prior to performing the database startup procedure at the target host. You may also as suggested, perform an rman duplication task
    ~ Madrid

  • Is it possible to clear all the data off of AppleTV?

    Recently, I started iTunes and it started doing a resync of all my music, movies, etc to my appleTV. I thought this was strange but let it finish the sync anyway. Several hours later when it was complete I took a look at the hard drive utilization from itunes and noticed that over 50% of the storage was marked as other and I'm using 2x the storage that I was using before. I'm assuming that the area marked other is my previously copied media collection and is now stuck in limbo for some reason.
    So my question is there a way to clear the data off so I can resync and regain my lost 64gb of space?
    Thanks.

    The sure fire way to do ti is to just restore the apple TV to factory and then do any upgades you need to do.. This will clear out everything for sure.
    Press and hold the menu + down button on your remote, then follow instructions 'til you get the option to restore.

Maybe you are looking for

  • Sub contract in Project System

    Dear PS Experts, In our Manufacturing process max going on Sub Contracting only.  for ex:  There are 10 operation is going on there,  the first process going throgh the Sub Contracting but here we are issuing material and power to contracter free of

  • Free App Promotion

    Is anyone else having problems with the palm.com/appspromo website? I purchased a new HP Veer to replace my trusty Pre Plus.  In the box came an offer to download 1 free app from a select list of apps.  When I go to the website and choose my app (auc

  • JMenuItem covered by video screen

    the JMenuItem is covered by the video screen how do we overcome this?

  • Microsoft office report package

    Hi Guys, Im new to LabeVIEW but a colleague and I are working on an automated monitoring project with our company. We have the Microsoft office report package however I am looking for a few simple examples or tutorials explaining their use. I seen th

  • W-3 Magnetic Media

    I don't know if this is the correct place to post this question, but... This year we need to file our W-3 information electronically. When running W-2s out of Tax Reporter (PU19) we get a paper copy of the W-3 but not a file. I have looked in the con