473,468 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MSGBOX displays running as a process

2 New Member
Hi Everyone. I have a VB6 program in which I display errors using MSGBOX's. When I run the program from an Icon or a .EXE (as an application) the messages are displayed to the user, but when I run it as a scheduled task (as a process) the messages are not displayed. I do use the vbSystemModal parameter to bring the message in front of all applications that are running. WHY and is there a way to make this work when running as a process.
Feb 29 '08 #1
3 1202
lotus18
866 Contributor
Post some of your codes here for the reference of our experts here ^ ^
Feb 29 '08 #2
QVeen72
1,445 Recognized Expert Top Contributor
Hi,

"vbSystemModal" flag is a carry over from 16-bit Visual Basic.
System modal windows are not supported in the Win32 (WinXP Win2000 and all above)
In all such Cases, you first need to Bring Your Application Form on the Top of other Windows, and display the message . To do this, you need "SetWindowPos" API

Regards
Veena
Mar 1 '08 #3
kcollins3133
2 New Member
Veena,

Thanks for your help! I will give that a try.

Kathy


Hi,

"vbSystemModal" flag is a carry over from 16-bit Visual Basic.
System modal windows are not supported in the Win32 (WinXP Win2000 and all above)
In all such Cases, you first need to Bring Your Application Form on the Top of other Windows, and display the message . To do this, you need "SetWindowPos" API

Regards
Veena
Mar 3 '08 #4

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

Similar topics

2
by: douh | last post by:
In a customer form I have a field, cust_mess that is popluated with information that will be displayed when an invoice is generated. Obviously this info is customer specific. Ie. customer Tommy...
2
by: Chuck Traywick | last post by:
I am trying to get a message box to work in a web form. The code looks right But when I browse the form I get It is invalid to show a modal dialog or form when the application is not...
0
by: WATYF | last post by:
This is my problem... I have some code that starts a Process and returns it to a variable... (prcBat) At any time while that process is running... I want to be able to Kill it by pressing a...
7
by: Anne Richmond | last post by:
I have just returned to my first vb.net project after a few weeks and find I have a problem with Msgbox. The commands I added earlier work OK but any new ones fail to show the prompt value...
4
by: | last post by:
I have about 20 MsgBox occurance in by program, which I use to inform the user of the progress of the program, or ask confirmation of an action, or simply to act separators to various parts of the...
7
by: Bob L | last post by:
I've inserted a MsgBox in some VBScript on line 12 of an .asp page and get the following error: Microsoft VBScript runtime error '800a0046' Permission denied: 'MsgBox' /default.asp, line 12 ...
2
by: John Wright | last post by:
How can I close a msgbox programtically. I have a process that can run 24/7. If an operator is not at the station, I want to close the msgbox that appears. How can I do this? John
5
by: joel_dizon | last post by:
Hi, I have an application to be run as Local System Account, it suppose to show a msgbox to the user but it doesnt show anything. I know that app run as system is not visible but is there any...
5
by: win | last post by:
I'm using ASP.Net 2.0 MsgBox("Are you sure to delete?", MsgBoxStyle.Question + MsgBoxStyle.OkCancel, Page.Title.ToString) The message box sometimes does not pop up on the top of the screen....
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
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,...
1
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
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,...
1
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.