473,797 Members | 3,162 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Maximize a minimized window

We have a windows 2000 server with terminal services activated. Users will
connect using RDP and launch an application. Sometimes, users will minimize
the application when they meant to minimize the terminal server session so
they can get back to their desktop. The permissions set on the terminal
server are such that they cannot maximize the application again. Since the
application remembers it's location or state, the next user that logs on gets
the application minimized.

The simple answer is to change the permissions to allow a window to be
restored or maximized, but apparently there are other permissions which would
be affected by making this change and the management is resistant to do that.

So....

I'm considering writing a windows service which starts using the admin
account, so that it may check every second to see if this application is
minimized and restore it; which brings me to my 2 questions.

1. How do I 'look' for the application's window and determine it's state.
2. Since it's a terminal server, the application may be running multiple
times, so how do I find the application in each session.

Thanks
Mark
Nov 21 '05 #1
4 1912
Mark wrote:
We have a windows 2000 server with terminal services activated. Users will
connect using RDP and launch an application. Sometimes, users will minimize
the application when they meant to minimize the terminal server session so
they can get back to their desktop. The permissions set on the terminal
server are such that they cannot maximize the application again. Since the
application remembers it's location or state, the next user that logs on gets
the application minimized.

The simple answer is to change the permissions to allow a window to be
restored or maximized, but apparently there are other permissions which would
be affected by making this change and the management is resistant to do that.

So....

I'm considering writing a windows service which starts using the admin
account, so that it may check every second to see if this application is
minimized and restore it; which brings me to my 2 questions.

1. How do I 'look' for the application's window and determine it's state.
2. Since it's a terminal server, the application may be running multiple
times, so how do I find the application in each session.

Thanks
Mark


Why not disallow them to minimize your app?
Chris
Nov 21 '05 #2
Can't disallow that, cause other apps may be running in the session which
they may need to access (yes they can use Alt-Tab, but they also want to have
minimize). These are medical coders, so they need to be very efficient and
some like Alt-Tab, some don't.
"Chris" wrote:
Mark wrote:
We have a windows 2000 server with terminal services activated. Users will
connect using RDP and launch an application. Sometimes, users will minimize
the application when they meant to minimize the terminal server session so
they can get back to their desktop. The permissions set on the terminal
server are such that they cannot maximize the application again. Since the
application remembers it's location or state, the next user that logs on gets
the application minimized.

The simple answer is to change the permissions to allow a window to be
restored or maximized, but apparently there are other permissions which would
be affected by making this change and the management is resistant to do that.

So....

I'm considering writing a windows service which starts using the admin
account, so that it may check every second to see if this application is
minimized and restore it; which brings me to my 2 questions.

1. How do I 'look' for the application's window and determine it's state.
2. Since it's a terminal server, the application may be running multiple
times, so how do I find the application in each session.

Thanks
Mark


Why not disallow them to minimize your app?
Chris

Nov 21 '05 #3

Mark wrote:
Can't disallow that, cause other apps may be running in the session which


That makes no sense! You say you can't disable the ability to minimize
the app but you want to write a windows service that effectively does
the same thing by restoring the app if they minimize it!!

Nov 21 '05 #4
Sure it makes sense. If the service starts up with the admin account, then
the restriction doesn't apply.

Mark
"Chris Dunaway" wrote:

Mark wrote:
Can't disallow that, cause other apps may be running in the session which


That makes no sense! You say you can't disable the ability to minimize
the app but you want to write a windows service that effectively does
the same thing by restoring the app if they minimize it!!

Nov 21 '05 #5

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

Similar topics

7
5476
by: Colleyville Alan | last post by:
I have an app that uses Access to grab various PowerPoint slides using the followhyperlink command. I have set the PPT window to run in a minimized state: FollowHyperlink link Set oPres = oPPT.ActivePresentation oPPT.WindowState = ppWindowMinimized Then I do the copy and paste part: With oPres
2
4991
by: Justin Echternach | last post by:
What is the best way to detect the minimization/maximization of any windows program currently running? Do I want to hook the desktop message pump?
2
11773
by: Hide | last post by:
hi, Now, I'm creating window based applicaton. In this application, I want to put some traps(code) before form minimizing or maximizing event, but I only can get events after form minimized or maximized. I tried to test these 2 codes below: 1.
1
1779
by: JJ | last post by:
I have athe following code, but nothing happens when I minimize or maximze the form using "top right corner minimze/maximize icons". What am I missing!!!!! Help please!!!!!!!!!! Thanks JJ private void Form1_SizeChanged(object sender, System.EventArgs e)
3
3233
by: JJ | last post by:
I have athe following code, but nothing happens when I minimize or maximze the form using "top right corner minimze/maximize buttons". What am I missing!!!!! Help please!!!!!!!!!! Thanks JJ private void Form1_SizeChanged(object sender, System.EventArgs e)
2
7901
by: Dave Booker | last post by:
I have a Windows form application that I generally run minimized. When a critical event occurs it instantiates another "Alert" form which I want to grab the user focus. In the Alert constructor I call both this.Show() and this.Activate(), but if the parent application is minimized then the Alert form will also stay minimized (and just flash). How can I cause the Alert form to show itself and grab focus?
2
1568
by: uczen | last post by:
hello, is it possible i javascrip to maksimize window, which was minimized before. For instance: user read information, minimized window html, after page automatic actualization, window should maximize hiself. Thx
4
13460
by: EmilH | last post by:
Hi, Can anybody show me how to minimize/maximize a window dynamically? I placed buttons for each of these commands and want to place the code which will minimize and maximize the window. Thanks in advance. Emil.
2
3824
by: =?Utf-8?B?UmljaA==?= | last post by:
using WinXp (SP3), VB2005. sometimes when a user opens the app - the app opens in minimized WindowState and clicking on the app's icon in the windows taskbar wont open the app to Normal WindowState. The short term fix I have the users doing when this happens is to right-click the app's icon and select Maximize. This will open the primary form Maximized. Then they close the app and reopen it normally. The windowState of the primary...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9537
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10246
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7560
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.