Key Press event when no focus

  • Thread starter Thread starter ofiras
  • Start date Start date
O

ofiras

Hii,
I saw a lot of programs, that can be in tray (in the bottom right
corner), and they can get Key Press event although they are not in
focus.
Is there a way to do it in C# windows application?
Thanks,
Ofir.
 
Hi,

Take a look at NotifyIcon

To remove the window from the ALT+TAB list you have to P/invoke , I do not
have the code here with me but if you look into the archives you will find
it
 
Hi,

Take a look at NotifyIcon

To remove the window from the ALT+TAB list you have to P/invoke , I do not
have the code here with me but if you look into the archives you will find
it


Thanks, I will look for it.
I have another question - when I finish writing a program, and I want
to make it exe, so the code can't be changed, how can I do it?
Ofir.
 
Hi,

ofiras said:
Thanks, I will look for it.
I have another question - when I finish writing a program, and I want
to make it exe, so the code can't be changed, how can I do it?
Ofir.

Each time you compile & run it an EXE is created , in the most simplest
cases all you need to run the app is this exe.
If you need a complex deployment you can use a Setup project
 
Hi,







Each time you compile & run it an EXE is created , in the most simplest
cases all you need to run the app is this exe.
If you need a complex deployment you can use a Setup project


According to what I tried, this exe file (from the debug folder) is
working only on some of the computers I tried, and I think it has
something with having C# on the computer.
Is it just me?
Is there another way to export an exe file?
Please help,
Ofir.
 
Hi,
According to what I tried, this exe file (from the debug folder) is
working only on some of the computers I tried, and I think it has
something with having C# on the computer.
Is it just me?
Is there another way to export an exe file?
Please help,
Ofir.

Can you elaborate a little more, I got lost :(
 
Hi,





Can you elaborate a little more, I got lost :(

The .NET runtime must be installed on the computers. Many computers
don't have it yet, or may not have the correct version.
 
The .NET runtime must be installed on the computers. Many computers
don't have it yet, or may not have the correct version.

Hoo... thanks a lot... I always wondered why...
Is there a way of making an exe that doesn't need .NET on the
computer?
Thanks, Ofir.
 
Hi,

ofiras said:
Hoo... thanks a lot... I always wondered why...
Is there a way of making an exe that doesn't need .NET on the
computer?

I don't think so, but maybe it's possible I have seen posts talking about
that.
Personally I think it is a bad idea.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top