473,396 Members | 1,814 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.

getting application to the front of the screen

I have a problem my application is a hide working spion the problem is that when I save in documents (The folder my application watching for file creation) then my msgbox(message) come thats not the problem. The problem is that the message msgbox opening behind all of the applications I see on the screen because my application not is on the front. Is there a way I can get the message or application to the front of the screen and all other applications to I click ok in the msgbox?
Sep 26 '07 #1
7 1716
Killer42
8,435 Expert 8TB
One way would be to Show a form then immediately Hide it again, just to force your application to the front. This may make the form flicker briefly, which can look a bit ugly. If you first move the form outside the boundary of the screen, then do the Show/Hide thing, it will never actually become visible. (Unless the user has multiple screens, in which case moving the form off one might place it on another.)
Sep 26 '07 #2
Ali Rizwan
925 512MB
Hello,
I have too this problem but i have solved it by using show command.

msgbox "Hello"
me.show

i dont know any other solution but this one
Goodluck
Sep 27 '07 #3
Killer42
8,435 Expert 8TB
msgbox "Hello"
me.show
This would not resolve the problem, because the message box is shown "modally". That means control doesn't return until after the user responds to the message box, so your Show will happen too late.
Sep 27 '07 #4
Ali Rizwan
925 512MB
This would not resolve the problem, because the message box is shown "modally". That means control doesn't return until after the user responds to the message box, so your Show will happen too late.
Oh
sorry its not
me.show

its me.setfocus

msgbox "Hello"
me.setfocus
Sep 27 '07 #5
Killer42
8,435 Expert 8TB
sorry its not
me.show

its me.setfocus

msgbox "Hello"
me.setfocus
Still doesn't matter.

It makes no difference what the second statement is, it won't be executed until after the message box gets a user response and returns control to your code. You need to do it before the MsgBox statement, to have any effect.
Sep 27 '07 #6
Ali Rizwan
925 512MB
Still doesn't matter.

It makes no difference what the second statement is, it won't be executed until after the message box gets a user response and returns control to your code. You need to do it before the MsgBox statement, to have any effect.
Oh
I m sorry i have not read the problem carefully so i confused actually the problem is with msgbox.
One thing which is in my mind is that either the application's main form is set to alwaysontop property or you set it.
Because i have made my app and set its priority to always on top and when i want to see a msg it will show under the main form screen and when i removed the topmot property then msgbox appears normly.
Sep 28 '07 #7
An example is generals and warcraft loader when they start and you open another appliaction the loader would still be visible
Oct 30 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Nou Dadoun | last post by:
I'm currently developing an application in C++/MFC (Visual Studio 6, if that makes a difference) and I'd like to avoid the Windows style UI widgets and dialogs if at all possible. In fact, what...
2
by: Jason Smith | last post by:
I have recently designed an application in Ms Access with the folllowing security: 1) Database is split into a front-end / backend with linked tables 2) All modules are password protected 3)...
5
by: Mike Turco | last post by:
(This was also posted to comp.database.ms-access before I realized this was the hep group.) Lets say that my WinXP computer has two users: Michael and Kathryn. One or the other logs into the...
12
by: Mindy | last post by:
Hey, I want to build a database which has an in front end application and back end tables. I am new to access, and all my knowledge is from Access for Dummies. Could any one give me a clue...
4
by: Mark Siler | last post by:
First let me say I'm not a developer. I'm looking for someone that can either do this for me or point me to a technology that can. I'm in need of a way via the Internet to push a screen or webpage...
2
by: jphelan | last post by:
Ever since I successfully applied some techniques for increasing the speed of my 17 meg. Application; it has only made me hunger for more. First, let me list what I have done so far: 1. Split...
0
by: Dave G | last post by:
I'm developing a new multiuser application. Standard arrangement - front end on each XP/Off2003 workstation and back end on a W2003 server. I've noticed the following - when the application opens a...
1
by: ashwiniappajigowda | last post by:
Hi, I have an simple MFC dialog based application. On launch of that application 'Password protected screen saver' is not getting activated after the screen saver timeout. If 'On resume,...
15
by: (PeteCresswell) | last post by:
Some time within the next nine months, there's a pretty good chance I'll have the "opportunity" to port a bond trading system that I wrote - whose front end is currently MS Access - to .NET. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...
0
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,...

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.