473,406 Members | 2,352 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,406 software developers and data experts.

Prevent code execution in form design view

Hi

I made a control that in its onload sets the dockstyle to Fill,
I only want this in runmode not in the IDE forms designer.

Is there some attribute or define i can rely or use to prevent some code
parts to execute in the designer view ?

Johan
Nov 20 '05 #1
1 1813
Look at the DesignMode property. It's in call Component derived classes.
It's a boolean: True if the component (or control) is in DesignMode, false
if it isn't.

Pete

"Sagaert Johan" <RE*************@hotmail.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
Hi

I made a control that in its onload sets the dockstyle to Fill,
I only want this in runmode not in the IDE forms designer.

Is there some attribute or define i can rely or use to prevent some code
parts to execute in the designer view ?

Johan

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: P. Emigh | last post by:
By default in more recent versions, Access forms keep users' last sort request in the "orderby" property. That can slow things down considerably, especially when the last user has chosen a...
6
by: NB | last post by:
Hi Is there any way to call up the query design view from code? In my compiled-as-MDE app everything is hidden from end users. However, I want advanced user to have access to the query design...
5
by: David Deacon | last post by:
Hi i was given the following advise,below my OriginalQuestion I am a little new to ADOX can you direct me to the following Do i place the code behind a button on a form? Or do i place it in the...
5
by: NTE | last post by:
Access 2000, My application has a main form that the users interact with. There are 2 hidden fields. When they select "filter by form" from the menu, the hidden fields become visble. Is...
2
by: Dica | last post by:
this is related to an earlier question i had. i'm trying to figure out visual studio 2003 and c#. i started a simple app to try to learn the basics and used many of the wizards to set up things...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to...
8
by: Fred Zuckerman | last post by:
I'd like to prevent users from accidently going into design view of a form and screwing it up. I've googled the group and have found that the normal method is to use MDE or user level security....
1
by: RICHARD BROMBERG | last post by:
I am writing an Access program using Access 2000. There may be a small market for the application aI am writing and I would like to do two things. First I'd like to prevent a user from going...
1
by: =?Utf-8?B?TGkgV2VuZw==?= | last post by:
Hi, I have a window application in VS2005. I can build and run it. But when I open a specific form with design view, the Visual Studio crashes and closes without error message! the error message...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...

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.