IDE Mode vs Runtime Mode 
Author Message
 IDE Mode vs Runtime Mode

In VB6 we could determine if we were running in the IDE by using a
Debug.Print 1/0 statement and trapping for the error (which would only occur
in the IDE).

How does one now determine we are running from the .Net IDE as opposed to
running the exe?

Bill



Sat, 25 Sep 2004 20:11:52 GMT  
 IDE Mode vs Runtime Mode
You should always be running the Exe, just because of how .Net works

Quote:
> In VB6 we could determine if we were running in the IDE by using a
> Debug.Print 1/0 statement and trapping for the error (which would only
occur
> in the IDE).

> How does one now determine we are running from the .Net IDE as opposed to
> running the exe?

> Bill



Sat, 25 Sep 2004 20:34:33 GMT  
 IDE Mode vs Runtime Mode
Sure, I get that when actually RUNing. What I am really after is how to
determine that a control or form is running in (or being run by) the IDE. I
have a situation where some code needs to reference the Application object,
which works perfectly at runtime, but falls over in the IDE when trying to
display the form in design mode, because the Application object doesn't
exist until runtime.

Bill


Quote:
> You should always be running the Exe, just because of how .Net works


> > In VB6 we could determine if we were running in the IDE by using a
> > Debug.Print 1/0 statement and trapping for the error (which would only
> occur
> > in the IDE).

> > How does one now determine we are running from the .Net IDE as opposed
to
> > running the exe?

> > Bill



Sat, 25 Sep 2004 20:54:18 GMT  
 IDE Mode vs Runtime Mode
Bill-

Quote:
> Sure, I get that when actually RUNing. What I am really after is how
> to determine that a control or form is running in (or being run by)
> the IDE. I have a situation where some code needs to reference the
> Application object, which works perfectly at runtime, but falls over
> in the IDE when trying to display the form in design mode, because
> the Application object doesn't exist until runtime.

Try checking to see if the Form.DesignMode property is true/false.

--
Jacob Grass
Microsoft .NET MVP



Sat, 25 Sep 2004 23:24:43 GMT  
 IDE Mode vs Runtime Mode
That's what I was looking for - thanks.

Bill



Quote:
> Bill-

> Try checking to see if the Form.DesignMode property is true/false.

> --
> Jacob Grass



Sun, 26 Sep 2004 05:59:22 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Differences between Runtime mode and Dev Mode

2. Browser Control: Design Mode vs Compiled Mode

3. DBGrid in Development Mode vs Deployment Mode

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

5. Browser Control: Design Mode vs Compiled Mode

6. Debug mode vs. Run mode

7. Form size changes in runtime vs design time modes

8. Best Way to Detect Design-Time vs RunTime Mode of an Applicatin

9. Programatically changing Form from Data Entry mode to Edit mode

10. Development mode or running.exe mode?

11. vb3.0 - Development mode or EXE(?) mode

12. change from running mode to design mode

 

 
Powered by phpBB® Forum Software