473,327 Members | 1,892 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,327 software developers and data experts.

Design Mode

Hi,
How do I to check if the WebControl is in DesignMode or not ?

Thanks.

Simon.
Nov 19 '05 #1
3 1262
Check Site attribute. If it is not null you are in design mode. Also if it
is not null you can get DesignMode via Site.DesignMode attribute

--
Thanks,
Yunus Emre ALPZEN

"Simon" <simon> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
Hi,
How do I to check if the WebControl is in DesignMode or not ?

Thanks.

Simon.

Nov 19 '05 #2
Hi Yunus
I have try, but the property Site is always set to null, also when the
WebControl is in DesignMode.
"Yunus Emre ALPZEN" <ye***@msakademik.net> wrote in message
news:eE**************@TK2MSFTNGP10.phx.gbl...
Check Site attribute. If it is not null you are in design mode. Also if it
is not null you can get DesignMode via Site.DesignMode attribute

--
Thanks,
Yunus Emre ALPZEN

"Simon" <simon> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
Hi,
How do I to check if the WebControl is in DesignMode or not ?

Thanks.

Simon.


Nov 19 '05 #3
Ok I have try whit CustomControl.Page.Site and this work fine.

Thanks.

"Yunus Emre ALPZEN" <ye***@msakademik.net> wrote in message
news:eE**************@TK2MSFTNGP10.phx.gbl...
Check Site attribute. If it is not null you are in design mode. Also if it
is not null you can get DesignMode via Site.DesignMode attribute

--
Thanks,
Yunus Emre ALPZEN

"Simon" <simon> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
Hi,
How do I to check if the WebControl is in DesignMode or not ?

Thanks.

Simon.


Nov 19 '05 #4

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

Similar topics

3
by: Tom Rahav | last post by:
Hi. I develop VB.NET for about 2 year.... recently, I created some user controls, and use them in a win-form. Sometimes, when I try to design a form that contains these controls, I get error...
4
by: Jeff | last post by:
I have a need to open a report in design mode immediately before opening it in preview, to change the Minimum and Maximum scale on an axis on a chart. This results in a flash of the report in...
4
by: jim | last post by:
I am trying to debug a user written web control and web control designer. I found an article “Building Windows Forms Controls and Component with Rich Design-Time Features” that describes how...
11
by: Crirus | last post by:
I need to derive the Windows.Forms.Control 2 times so I design a class like this Public Class BMControl Inherits System.Windows.Forms.UserControl Public Class MapControl Inherits BMControl
5
by: Don | last post by:
Is there a way to capture click events in the form designer? I'm trying to create a control similar to the TabControl (which seems to handle clicks in design mode) and would like to be able to...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
3
by: Rolf Welskes | last post by:
Hello, for a large web site project we would like to use nested Master Pages. Unfortunely VS2005 is not able to show pages in design mode when nested Master pages are used. This has the...
0
by: Chris Davoli | last post by:
I'm using Visual Studio 2005 to build my web pages. This works fine except for using the VS2005 design mode and inserting panels to not display some rows (before and after TR tags), it won't show...
2
by: TerryStone | last post by:
I have created a control that displays a list of items. During design mode I fill it with junk data using calls from the constructor. So when I look at a form with the control on, instead of...
0
by: Timje | last post by:
Visual C# 2005 Express Edition crashes the instant I attempt to view any class in design mode, or just switch the program to design mode (shift-F7). I have tried reinstalling, closing all other...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.