borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (How To print Trought mscomm?)Next Topic (Hamradio and radioprogramming) New Topic New Poll Post Reply
AndreaVB Forum : VB General : app loosing focus
Poster Message
tdoubleu
Level: Trainee

Registered: 23-03-2009
Posts: 1

Ads by Lake Quincy Media
icon app loosing focus

I have a mdi app that uses a remote control.  The remote just sends various keystrokes and works well but requires the app to have focus to recieve the commands.  The problem is that some users have things going on that take focus away from the program.  Since they're using a remote and away from the screen, they don't always see what's going on, they just know their remote has stopped working.  Actually, sometime they'll report the keyboard not responding as well.  They have some system things taking focus away.  I can't diagnose that over the phone but I've seen things like that happen on my own machine, so I know it's not an imaginary problem.  

I need something to keep my app on top WITH FOCUS.  I've found some things for SDI forms but nothing for MDI apps.  This is VB6 also, if it matters.  Can anyone help?

Ads by Lake Quincy Media
23-03-2009 at 07:46 PM
View Profile Send Email to User Show All Posts | Quote Reply
Tom
Level: Protégé

Registered: 24-03-2009
Posts: 5
icon Re: app loosing focus

Well you can set the TopMost property to True to keep the form on top of all others. Also you could set a timer event just to ensure if the program did lose focus somehow that it regains it when the timer event is fired.

24-03-2009 at 01:51 PM
View Profile Send Email to User Show All Posts | Quote Reply
Tom
Level: Protégé

Registered: 24-03-2009
Posts: 5
icon Re: app loosing focus

Sorry just noticed the VB6 part, no TopMost property....  There is an equivelant API call though to keep FormsOnTop

24-03-2009 at 01:52 PM
View Profile Send Email to User Show All Posts | Quote Reply
admin
Level: Administrator


Registered: 04-04-2002
Posts: 637
icon Re: app loosing focus

Take a look at this example, it contains some API calls to manage forms.

http://www.andreavb.com/tip050002.html

____________________________
AndreaVB

24-03-2009 at 03:24 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : VB General : app loosing focus
Previous Topic (How To print Trought mscomm?)Next Topic (Hamradio and radioprogramming) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder