|
|
Hello,
It is somehow descriped as a focus-event of a lower layer. (don't know what that means exactly)
Instead the Enter and Leave events are recomended.
All the best,
Martin
|
|
|
|
|
I want to activate the program that will capture screen as vdo streaming when I start my program.
This capture program will be activated by pressing F9. So now I'm using
Sendkeys("{F9}");
When the form loaded. But this F9 pressing event was sent to my application only.
How to make it global?
I cannot call or change focus to screen capture program because I want it to be transparant to user.
|
|
|
|
|
checkout this vb.net code...
http://sharma.hariomprakash.googlepages.com/WindowsApplication1.rar
Lxcite's Planet
... the ultimate solution
|
|
|
|
|
How to get an IP Address from registry in windows XP.
|
|
|
|
|
What IP address? Your own?
Marc
Thyme In The CountryPeople are just notoriously impossible. --DavidCrow There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith
|
|
|
|
|
Yes, my own computer IP address.
|
|
|
|
|
This[^] should help.
Marc
Thyme In The CountryPeople are just notoriously impossible. --DavidCrow There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith
|
|
|
|
|
Your IP address is not stored in the registry.
|
|
|
|
|
I need to start a console application without showing the console. Can anyone help???
The reason I want to do this is that I have a windows application that I want to be able to either run as a straight application but also from the command prompt. I want to have a switch "/?" that displays on the console, help for the command prompt syntax. To do this you have set up the windows project output type to the console. BUT I want to then be able to run the window straight from windows without showing this console at startup.
In essence, I have a console application that displays a form. I need to be able to run it from windows without bringing up a console window.
Thanks,
Tim
|
|
|
|
|
If you use the Process and ProcessStart class you can redirect the stdin, stdout, and stderr as well as not show a windows. See the MSDN help, I think it has your specific example.
File Not Found
|
|
|
|
|
Thanks, but that example is only when the main object of an application is a windows form. I need to hide the console window rather than the form.
Tim
|
|
|
|
|
You have a confusion in the nature of the beast. A console app runs without a GUI. In theory a console can be run without the windows GUI so there could never be a console window to hide. While there are probably a lot of handy tricks to make the console window hide from a console app and then display a windows app something is not right.
However, Windows apps do accept command line parameters. In fact a windows app can even write to the stdin, stdout, and stderr and never spawn a window. Which would be close in functionality.
File Not Found
|
|
|
|
|
Ok, so i started out with a windows application. I wanted to use the switch myapp.exe /? that would display syntax on the console window for the switches on the app. To write to the console you should surely be able to write Console.Writeline("some text")? No, you can't it doesn't work unless the solution's output type is set to console application. If you do this and then run the program from windows rather than the commmand prompt it displays a console window, which I want to be able to hide.
|
|
|
|
|
Tim Rutter wrote: In essence, I have a console application that displays a form. I need to be able to run it from windows without bringing up a console window.
Change the startup mode for the shortcut to run minimized, or get the window handle and minimize the console window programmatically.
Marc
Thyme In The CountryPeople are just notoriously impossible. --DavidCrow There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith
|
|
|
|
|
Hi, I'm fairly new to the programming world, could you give me some more details of how to do that? I'm not sure how to get the window handle of the console window. Also, I want to hide it rather than minimise so it doesn't have anything on the taskbar.
Thanks,
Tim
|
|
|
|
|
I always create a windows form, but modify the program.cs file. Comment out the Application.Run line and call your class from there (also comment out the InitializeComponent(); ) Make sure you call System.Diagnostics.Process.GetCurrentProcess().Kill(); in Main, when you're done.
Maybe not the prettiest thing to do, I don't know, it was the first I thing I found quickly when I needed it, AND it works.
V.
I found a living worth working for, but haven't found work worth living for.
|
|
|
|
|
again this is for a windows app not a console app. I need to start a console app but not display the console window????
|
|
|
|
|
Yes idd, But I don't see the difference as long as you don't see anything anyway??
|
|
|
|
|
A form is a class so you can deal with it by not having application.run and then just using showdialog or something. A console window appears regardless.
Tim
|
|
|
|
|
How about a NotifyIcon project?
|
|
|
|
|
Hi all,
We are developing two applications using C#.Net 2005. I want to pass a string from one application to another.
For example if the user click a button in the application 1, I want to pass an string from this application(application1) to the another application(application2), also the application2 has to run simultaneously.
Plz any one suggest me, How to do this?
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
Use the windows messaging queue. You can pass messages between apps and even create your own queue. There is a chapter on it in the Wrox C# 2005 Professional Edition.
File Not Found
|
|
|
|
|
Exelioindia wrote: I want to pass a string from one application to another
I don't think that you can do so. IF you were in one application you can pass between a form and another.
i advice you to save the data you want to use in the other application in a file or a database and then recover it using the second application
|
|
|
|
|
There are all sorts of ways of passing data between applications. MSMQ is one example already discussed in this thread. Named pipes, network connections (you can connect through the loopback adapter) and so on.
|
|
|
|