Hello!
Is it possible to make actions when working with other applications.
For example:
I start my application. It runs in the background with no user interface. But when I for example drag a window (to move it, a notepad, calculator, whatever) then a message box appears: "you dragged this window: notepad" or any other actions.
Is it possible to do this?
Could you give me a sample...
User Profile
Collapse
-
How to make actions when working with other applications?
-
Ok, I could solve it:
Code:public void AdatokFeldolgozasaForm() { AdatokFeldolgozasa frmAdatokFeldolgozasa = new AdatokFeldolgozasa(); int X = this.Left + (this.Width - frmAdatokFeldolgozasa.Width) / 2; int Y = this.Top + (this.Height - frmAdatokFeldolgozasa.Height) / 2; frmAdatokFeldolgozasa.Location = new Point(X, Y);
-
Ok, I could figure out a working solution:
Code:public void AdatokFeldolgozasaForm() { AdatokFeldolgozasa frmAdatokFeldolgozasa = new AdatokFeldolgozasa(); frmAdatokFeldolgozasa.ShowDialog(); }
Code:Thread tAdatokFeldolgozasa = new Thread(new ThreadStart(AdatokFeldolgozasaForm)); tAdatokFeldolgozasa.Start();
Leave a comment:
-
Hi!
I tried, really, but can't understand...
Please help me make this little example. With this I'm sure I would understand the working of BackgroundWorke r.
So:
Let's have two forms, Form1 and Form2. Form1 contains one button, called Start. When this Start button is pressed, the Form1 would start a process, for example sleep for 5 seconds (Thread.Sleep(5 000);), and the Form2 window opens. After the 5 seconds...Leave a comment:
-
Thanks, but it's not so clear for me.
Here is the part of my code:
Code:DirectoryInfo diForrasStilusok = new DirectoryInfo(strForrasKonyvtar + "\\Stilusok" + strStilus); DirectoryInfo diCelStilusok = new DirectoryInfo(strMunkaKonyvtar); CopyAll(diForrasStilusok, diCelStilusok);
Leave a comment:
-
Showing "Work in progress" window while copying files
Hi!
I'm writing an application in which I'm copying a few files. It takes a while, that's why I would like to open a window which would say "Work in progress", so the user would know that copying is in progress and he should wait until it finishes. After finishing the copy-progress, the little notification window should close and let the user continue the work with the application.
I tried to solve this, but when I...
No activity results to display
Show More
Leave a comment: