[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Custom Controls and Namespaces

Asked by AdamKPainter in Microsoft Visual Basic.Net, Visual Studio

Tags: Custom Controls, Namespaces, VB.net, Auto Append, Form Designer

Hi,

I am making a project that utilises some custom controls, made by myself and a friend. The controls are produced within a namespace, for example: namespace "Controls" within the project.

In this case, call the project Application.UI

When we come to use the custom control, we add it like we would any other control to the form it is required on. The form designer automatically appends the control with the following  Projectname.namespace.control

Sample:
     Me.clientComboBox = New Application.UI.Controls.ClientLookup

And this results in a form designer error. Obviously the reason for this is namespace related. So next we add the following imports statment:
 
                   Imports Application.UI.Controls

and remove the equivalent from the sample message. This seems to be a tempary fix as, for some unknown reason the form designer at random times (litterally just closing and opening the project at times causes it) decides it no longer likes the fact we removed the code from it and re-adds it.

The question is:

How can we stop the form designer from re-adding the code which we are deleting?! It is frustrating and annoying and it really shouldnt happen.

Any help would be much appreciated.
[+][-]11/05/09 06:18 AM, ID: 25749665Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 07:20 AM, ID: 25750375Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 04:22 PM, ID: 25755619Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/06/09 01:28 AM, ID: 25757745Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/06/09 06:23 AM, ID: 25759302Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/11/09 12:55 AM, ID: 25793266Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/11/09 10:08 AM, ID: 25797353Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/12/09 12:53 AM, ID: 25802497Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/12/09 06:45 AM, ID: 25804927Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/09 12:54 AM, ID: 25847665Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/18/09 07:06 AM, ID: 25850445Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/23/09 12:54 AM, ID: 25885935Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625