473,399 Members | 3,401 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,399 software developers and data experts.

Halt Execution / Wait for Input Problem.

164 Expert 100+
Hello, VB'ers. I'm not an expert on VB. :)

During execution, I open a dialog (a form named 'frmMetaData').

Currently, I open frmMetaData as vbModal, but this locks out the user's ability to manipulate the window behind the dialog. I switched the modality to vbModeless, (via frmMetaData.show vbModeless) but what happens is the code keeps running after the show command, and it no longer waits for frmMetaData to be completed.

The code which follows the .Show() command depends on input from the user to work correctly. Users also should to be able to access the window behind the dialog.

What do I do?
Jun 17 '09 #1
1 2407
Nicodemas
164 Expert 100+
I have created a workaround to this. My solution was as follows:

I separated the code that followed the .Show command in a Public subroutine of its own.

I then put a Click() event on the "OK" button on the dialog which called the new Public subroutine.
Jun 17 '09 #2

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

Similar topics

2
by: kochs | last post by:
Hi, I have a problem here. Referring to the following programming structure, is there a way to cause the computer to overflow or stop by inputting wrong values of intTime and/or intDay? i.e. I...
5
by: Boris Nikolaevich | last post by:
This is backwards of what I usually want--normally if you have a long-running ASP script, it's a good idea to check to see whether the client is still connected so you can cancel execution. ...
3
by: Robert Sorger | last post by:
I have a problem with thread execution after calling response.redirect() in a web form. Basically, I want the thread to continue to work (e.g. do some long database work) but want to redirect...
2
by: whornak | last post by:
The only way that I found to display a message to the user from an application that has an interface is by using the MessageBox.Show() method. What I need to do is notify the user of something...
1
by: googlinggoogler | last post by:
Hi, I've posted my code to try and explain myself better, although its not correct and i realise this cos i've chopped bits out to make things easier to read. Basically in start.vb,...
4
by: G. Miller | last post by:
Hey, I'm trying to automate an import routine by using the shell command to call a batch file that will run a vendor export utility before continuing with the import. The problem is that...
5
by: Chris | last post by:
What would be the simplest way to make an app wait for one process to finish before starting the next process? Example /// FileCopy(strPath & "test.mdb", strPath & "live.mdb") Wait(Until...
1
by: wrcdc | last post by:
Hello. I have a form/radio buttons which chooses and action based on a chosen date from a combox box. Some of these options ask for a windows dialog box to choose input or output filename. All is...
3
by: Lie | last post by:
When you've got a nested loop a StopIteration in the Inner Loop would break the loop for the outer loop too: a, b, c = , , def looper(a, b, c): for a_ in a: for b_ in b: for c_ in c:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
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
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,...
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.