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

Use Design Mode with User Control?

I have created a user control using the HTML view, and I now want to switch
to Design mode so that it will automatically enter the controls used on the
page in the code-behind, but the option to switch over is not available.
Also, whenever I load up my controls, I get the message:

"The file failed to load in the Web Form designer. Please correct the
following error, then load it again: An exception occurred while trying to
create an instance of <Control>. The exception was "Object reference not set
to an instance of an object.".

This is starting to get incredibly annoying, as it pops up this message
everytime I open the control to make changes. What's the deal here guys?

Thanks,
Steve
Nov 17 '05 #1
1 2623
Hi,

I think problem is with your ascx html syntax. Does your
inherrit keyword in the page directive matches with the
namespace mentioned in the codebehind?. If there is a mis
match between the namespace this error can happen. Can you
able to compile and run your code? Could you please sent
your ascx code.

regards
Sreejumon[MVP]
DOTNET makes IT happen
-----Original Message-----
I have created a user control using the HTML view, and I now want to switchto Design mode so that it will automatically enter the controls used on thepage in the code-behind, but the option to switch over is not available.Also, whenever I load up my controls, I get the message:

"The file failed to load in the Web Form designer. Please correct thefollowing error, then load it again: An exception occurred while trying tocreate an instance of <Control>. The exception was "Object reference not setto an instance of an object.".

This is starting to get incredibly annoying, as it pops up this messageeverytime I open the control to make changes. What's the deal here guys?
Thanks,
Steve
.

Nov 17 '05 #2

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...
0
by: Ryan Liu | last post by:
I have a user control, it must set a property when it is just created, so I set it in its constructor, which has an parameter to specify the property . For example: public class ExecQuest :...
4
by: oneeye | last post by:
Hello All, I have designed and built a web control that loads a user control at run time. The question I have is, can I Load the user control in design view? Any Ideas or code snippets would be...
0
by: Eric Mamet | last post by:
Everytime I try to look at a web user control in design mode, Visual Studio prompts me for checking out the file from Visual Source Safe. Apparently, it just shuffles around the first three lines...
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...
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...
0
by: tony | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. In this user control we have a class...
6
by: ajk | last post by:
Hi I was wondering how to show different properties in design and run-mode for a user control? Is it possible to do this when implementing the System.ComponentModel.ICustomTypeDescriptor...
1
by: indyanguy | last post by:
Hi all, I have a dashboard page that hosts several sections. Each section can have different modes (Ex: preview mode, edit mode etc) and one of the differences between the modes are how they are...
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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.