How can I prevent my control to be serialized in design-mode?
-
Hello, How can I prevent my control to be serialized in design-mode? Thank you in advance. Goran
-
Hello, How can I prevent my control to be serialized in design-mode? Thank you in advance. Goran
Need more info.
-
Need more info.
So, when I move the control in design-mode I would like the position settings not to be updated.
-
So, when I move the control in design-mode I would like the position settings not to be updated.
You're serializing a control? I didnt even think that you could serialize a control.
-
So, when I move the control in design-mode I would like the position settings not to be updated.
Ummm....What??? If you move the control, you're changing the position! When you move the control in the designer, the only property of the control being changed is Location. So how do you want to both move and not move the control? What are you really trying to do with this? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
You're serializing a control? I didnt even think that you could serialize a control.
Actually, I would like to check in the constructor of my control where I am - in designer or in runtime. How can i do that?
-
Actually, I would like to check in the constructor of my control where I am - in designer or in runtime. How can i do that?
Do you mean that you want to check to see if youre running in debug or release mode?
-
Do you mean that you want to check to see if youre running in debug or release mode?
No. The control can be placed to the form in design mode in MSVS.NET IDE - design-mode or the application can be run - run-mode.
-
Ummm....What??? If you move the control, you're changing the position! When you move the control in the designer, the only property of the control being changed is Location. So how do you want to both move and not move the control? What are you really trying to do with this? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Actually, I would like to check in the constructor of my control where I am - in design-mode in MSVS.NET IDE or in runtime, which means my application is started. How can I check that?
-
Actually, I would like to check in the constructor of my control where I am - in design-mode in MSVS.NET IDE or in runtime, which means my application is started. How can I check that?
Just check the
DesignMode
property. It'll be true if you're in DesignMode and false if in Runtime or other. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome -
Actually, I would like to check in the constructor of my control where I am - in designer or in runtime. How can i do that?