I have created some web custom controls (both composite controls or derived/inherited controls). I successfully added them to the toolbox.
However, when I try to drag them onto the form, the cursor changes into a black circle with a diagonal line, and cannot drag them. I also tried double-clicking them from the toolbox but it still won't work.
I sent the Control Library (DLL) to a friend, and he managed to use it properly. I am assuming this is a problem with my Visual Studio.
Has anyone encountered such a problem? Any suggestions or solutions?
The control works perfectly on another computer, but on my machine using the current Visual Studio .NET installation, it simply won't allow me to drag and drop any controls I create.
place your cursor in the page your editing where you want the control, then go to the toolbox control you want and double click and presto! It appears where you want. As to why double click was turned on instead of the drag functionality, who knows.
God bless you brother. Jesus is the way, I used to be an athiest, check me out at thomasdcox.com
n8in
Member
20 Points
4 Posts
I cannot drag web custom controls from toolbox to web form
May 04, 2006 08:51 PM|LINK
I have created some web custom controls (both composite controls or derived/inherited controls). I successfully added them to the toolbox.
However, when I try to drag them onto the form, the cursor changes into a black circle with a diagonal line, and cannot drag them. I also tried double-clicking them from the toolbox but it still won't work.
I sent the Control Library (DLL) to a friend, and he managed to use it properly. I am assuming this is a problem with my Visual Studio.
Has anyone encountered such a problem? Any suggestions or solutions?
Thanks.
Mikhail Arkh...
All-Star
33139 Points
6083 Posts
Microsoft
Re: I cannot drag web custom controls from toolbox to web form
May 05, 2006 03:42 AM|LINK
------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
robil
Member
45 Points
9 Posts
Re: I cannot drag web custom controls from toolbox to web form
May 05, 2006 04:59 AM|LINK
Try close and reopen the Visual Studio.
Libor
n8in
Member
20 Points
4 Posts
Re: I cannot drag web custom controls from toolbox to web form
May 05, 2006 06:03 AM|LINK
It's a web form, and I derived from the Control class, and implemented the INamingContainer interface.
I wanted to point out also, that if I created a derived/inherited control, it still doesn't work.
e.g. CustomTextBox control that inherits from System.Web.....TextBox Control
Any third-party controls, or any controls I create can be added to the toolbox, but then I CANNOT drag them onto the form.
n8in
Member
20 Points
4 Posts
Re: I cannot drag web custom controls from toolbox to web form
May 05, 2006 06:04 AM|LINK
Libor: I tried restarting VS.NET, and it didn't work.
I even restarted the PC, and it still didn't work! :(
Mikhail Arkh...
All-Star
33139 Points
6083 Posts
Microsoft
Re: I cannot drag web custom controls from toolbox to web form
May 09, 2006 06:38 PM|LINK
------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
n8in
Member
20 Points
4 Posts
Re: I cannot drag web custom controls from toolbox to web form
May 09, 2006 08:49 PM|LINK
The control works perfectly on another computer, but on my machine using the current Visual Studio .NET installation, it simply won't allow me to drag and drop any controls I create.
Only the included web controls work.
Any other ideas?
rumbafum
Participant
1162 Points
247 Posts
Re: I cannot drag web custom controls from toolbox to web form
May 09, 2006 11:34 PM|LINK
<%@ Register tagPrefix="controls" tagName="WhataControl" src="..\Controls\MyControl.ascx" %>
mr_chris
Member
5 Points
1 Post
Re: I cannot drag web custom controls from toolbox to web form
Oct 01, 2006 11:26 AM|LINK
I'm having exactly the same problem :( I might give up and just reinstall VS2003.
Any advice would be appreciated from anyone who's come across this.
Thanks
xocmot
Member
7 Points
2 Posts
Re: I cannot drag web custom controls from toolbox to web form
Jun 13, 2011 07:27 PM|LINK
here's your answer... if you still care...
place your cursor in the page your editing where you want the control, then go to the toolbox control you want and double click and presto! It appears where you want. As to why double click was turned on instead of the drag functionality, who knows.
God bless you brother. Jesus is the way, I used to be an athiest, check me out at thomasdcox.com