Determine if in Design Mode 
Author Message
 Determine if in Design Mode

How do I determine if my app is running in Design Mode under VB4? I have
code that I only want to run when the app is running from within VB4 not
after the app has been compiled into an EXE.
Thanks

--
----------
James

Modern Business Solutions



Thu, 30 Dec 1999 03:00:00 GMT  
 Determine if in Design Mode

Actually, I'm interested in a way to do this as well. For the time being
I'm using conditional compilation, but this way I always have to remember
to remove the flag that executes the special code before building for
distibution. I've also seen a sample somewhere that tries to find the VB
main window, but the disavantage of this is that the code for finding it
always executes. Hope any of these tricks will help you.

Miguel Santos

____________________________________________________________



Quote:
> How do I determine if my app is running in Design Mode under VB4? I have
> code that I only want to run when the app is running from within VB4 not
> after the app has been compiled into an EXE.
> Thanks

> --
> ----------
> James

> Modern Business Solutions



Thu, 30 Dec 1999 03:00:00 GMT  
 Determine if in Design Mode

Quote:

>How do I determine if my app is running in Design Mode under VB4?

The technique I use is to create a batch file that sets an environment
variable and then STARTs VB with the appropriate command-line stuff.  The
VB code can test the value of the environment variable.  The "Open" action
of VBP files is also modified to use the batch file instead of executing VB
directly.

 /* MER */



Fri, 31 Dec 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How to determine report mode (design or preview)?

2. Determine whether running in design mode or not

3. ?: Want to determine whether program runs in design mode or not

4. Determining Run-Time/Design-Time mode

5. Browser Control: Design Mode vs Compiled Mode

6. change from running mode to design mode

7. Please Help......Design mode Vs. Run mode detection

8. Browser Control: Design Mode vs Compiled Mode

9. MainMenu does not show in design mode when Form1.vb[Design] has focus

10. VBE in User Designed Control Design Mode

11. Need a function that detects if Access is in Design mode

12. Access opening Excel sheet in visual basic design mode

 

 
Powered by phpBB® Forum Software