yes i want to do the second option and i am searching for API(s) and the purpose of this thread was just to get idea from someone who worked on it so he or she can guide me about API(s) and other features and loop holes.
anyhow thank you so much for replying if is there anyone you know who has some experience about windchill send kindly refer me
I setup a form (subform) inside another form (mainform)at runtime. While some methods are being executed, the data in this subform also gets updated. However, I can not do anything else in the mainform. I have also tried setting the subform up as a control but I have the same problem. Is there a way I can access the mainform while the subform is updating.
I presume the process going on in the subform is reading from the database or some other long running process. This long running process needs to be separated onto another thread (backgroundworker thread is a good place to start.) This allow the UI on the main thread to respond.
Never underestimate the power of human stupidity
To add to Mycroft's answer, all long running operations should be done on a separate thread to the UI. The problem with that is you cannot update the UI from a different thread.
The BackgroundWorker[^] component is a perfect fit for this situation as it's ProgressChanged and RunWorkerCompleted events will be raised on your UI thread so that problem is solved, and the DoWork event is raised on the worker thread so you don't have to get involved any more than that.
If you need to pass data around then the various methods/event arguments have an object you can use, alternatively I made a generic version which you can find here[^].
The format Exception may be thrown because you are not receiving any value or the string from the t.Text may be "" (empty string).please try to debug and check the issue or place your code snippet and let me check it.
Do not use Int32.Parse() when you do not know the contents of the input. Use the Int32.TryParse() Method[^], or put the parsing code within a try/catch block. You should also use your debugger to check the value that the code is actually trying to interpret; don't assume it's the value that you think is there.
One of these days I'm going to think of a really clever signature.
Last Visit: 31-Dec-99 18:00 Last Update: 26-Oct-16 20:17