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.cont
rol
Sample:
Me.clientComboBox = New Application.UI.Controls.Cl
ientLookup
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.