473,396 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Application always on top

Hi,

I want that my application is always on top (configurable), so the user can
not use any other program.

Any ideas?

Gaby
Nov 15 '05 #1
6 33745
Take a look at the TopMost property:
http://tinyurl.com/29olx

--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"G Uljee" <le***@xs4all.nl> schreef in bericht
news:40*********************@news.xs4all.nl...
Hi,

I want that my application is always on top (configurable), so the user can not use any other program.

Any ideas?

Gaby

Nov 15 '05 #2
Gaby,

It should be noted that this is very bad behavior for any program, and
should be discouraged. I also believe that there are statements to this
affect in the Windows Application Guidelines. Of course, that doesn't mean
that you can't do it, just that you shouldn't.

What exactly are you trying to do? Perhaps there is a better way of
doing it.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"G Uljee" <le***@xs4all.nl> wrote in message
news:40*********************@news.xs4all.nl...
Hi,

I want that my application is always on top (configurable), so the user can not use any other program.

Any ideas?

Gaby

Nov 15 '05 #3
Nicholas,

This application will be used as an 100% dedicated program on a client
(reception) machine, my client want this to protect that people play games
on the machine -:).

The top most property is not enough.

Any suggestion?

Gaby


"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl...
Gaby,

It should be noted that this is very bad behavior for any program, and
should be discouraged. I also believe that there are statements to this
affect in the Windows Application Guidelines. Of course, that doesn't mean that you can't do it, just that you shouldn't.

What exactly are you trying to do? Perhaps there is a better way of
doing it.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"G Uljee" <le***@xs4all.nl> wrote in message
news:40*********************@news.xs4all.nl...
Hi,

I want that my application is always on top (configurable), so the user

can
not use any other program.

Any ideas?

Gaby


Nov 15 '05 #4
Gaby,

In that case, I would make sure that the machine that this is installed
on doesn't have the games in the first place. Additionally, I would make it
so that the receptionist does not have the appropriate rights to install new
programs on the machine (just make her a normal user). I think that writing
an application that hijacks the machine isn't really the answer (no
offense).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"G Uljee" <le***@xs4all.nl> wrote in message
news:40*********************@news.xs4all.nl...
Nicholas,

This application will be used as an 100% dedicated program on a client
(reception) machine, my client want this to protect that people play games
on the machine -:).

The top most property is not enough.

Any suggestion?

Gaby


"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
Gaby,

It should be noted that this is very bad behavior for any program, and should be discouraged. I also believe that there are statements to this
affect in the Windows Application Guidelines. Of course, that doesn't

mean
that you can't do it, just that you shouldn't.

What exactly are you trying to do? Perhaps there is a better way of
doing it.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"G Uljee" <le***@xs4all.nl> wrote in message
news:40*********************@news.xs4all.nl...
Hi,

I want that my application is always on top (configurable), so the
user can
not use any other program.

Any ideas?

Gaby



Nov 15 '05 #5
I've had to do the same thing several times on PC's set up in a lobby for
customers (the public) to sign in, and also a guard desk application where
vistitors sign in and get a badge printed on the spot. And it's very hard to
do in windows. The least troublesome way is to make a form that has no
controls, no close box, control box or min/max. Set it topmost. Be sure to
monitor keystrokes so you can kill the app with a password. Make the box
size the same as the screen resolution and set the start bar so it's not
hidden and doesn't cover anything. This will fool anyone except a smart 8
year old.

On the app that the public used, I even altered the keyboard to disable the
F keys, control and alt keys, print screen, etc.
I hope this helps

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl...
Gaby,

It should be noted that this is very bad behavior for any program, and
should be discouraged. I also believe that there are statements to this
affect in the Windows Application Guidelines. Of course, that doesn't mean that you can't do it, just that you shouldn't.

What exactly are you trying to do? Perhaps there is a better way of
doing it.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"G Uljee" <le***@xs4all.nl> wrote in message
news:40*********************@news.xs4all.nl...
Hi,

I want that my application is always on top (configurable), so the user

can
not use any other program.

Any ideas?

Gaby


Nov 15 '05 #6
> > I want that my application is always on top (configurable), so the user
can not use any other program. Any ideas?


Yes, here's a better one. Tie the users hands down to his desk once he has
your app on top.

You should write your app such that there is no way of proceding before the
user performed the necessary tasks. Not by inhibiting him to navigate but by
disabling the next step in the process, in other words by checking
prerequisites.

Now on the Window-on-top issue, I found this to be flawed in the .NET
framework, possibly by design. I did not find a nice way to make an
application window pop up to the foreground for instance. I had to revert to
the Win32 SetForeGroundWindow function. Pretty horrid yet it was the only
way to make my application window pop back out of the tray on top of others.

The TopMost property works only within the context of an application window.

Martin.
Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: BMM | last post by:
Hi. I have a dumb question. Is a database an application? And, in the context of a data-driven web-enabled application, is the database still an application? I have a project lead who says it is....
9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
3
by: OsD | last post by:
I'm having trouble with the workflow described bellow: 1. Asp page 1 on server A contains an iframe. 2. Asp page 1 submits a form targeted to the iframe, to Asp page 2 on server B. 3. Asp page...
7
by: Pavils Jurjans | last post by:
Hello, I wanted to get some light in the subject. As I develop ASP.NET applications, it's necessary to understand how exactly the server- communication happens. It seems like initially...
13
by: Åženol Akbulak | last post by:
Hi, I have an asp.net application. And I have worker threads which must run always (7x24). I start my threads in Application_Start, and I stop its in Application_Stop events. I log this...
14
by: Ray5531 | last post by:
I have a console application in my local computer which I like to use remoting in it,to instanciate an object (MyClass.dll) in a web application(its bin folder) in a completely seperated box(in the...
4
by: rs | last post by:
Hi guys Thank you in advance for the help. I developed a simple application using vs.net 2003. running framework 1.1 sp1. the application runs fine on the development machine (win xp). I tried...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
7
by: aviad | last post by:
I am writing a Form application I need it to fit both resolution of 1600*1200 and 800*600 (and any other resolution that might jump in) the application is meant for regular PCs another question...
3
by: PhilBray | last post by:
Hello, I am creating an application that is triggered by another 3rd party app when they create a file in a directory. I use the filesystemwatcher class to monitor for this file creation event...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.