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

Could I add component to toolbox in VS2005 WebSite Project?

Hi all,
I wrote a component with ComponentDesigner
to let users drag and drop it to WebPage from toolbox directly.
Just like the behavior of dataAdapter.
But it works fine on ASP.NET 1.1 but not on ASP.NET 2.0.
Sometimes I add it to toolbox in VS2005 WebSite Project but it will
not appear.
And always it can't be drag and drop to WebPage any more.
Nothing will be added to page after that.

Here is my code structure
---------------------------------------
//Class
[ToolboxItemFilter("System.Web.UI",ToolboxItemFilte rType.Require),
Designer(typeof(Ares.Workflow.WebControls.AFWebUIC ontrolDesigner))
]
public class AFWebUIControl : System.ComponentModel.Component
{
public AFWebUIControl()
{
}
}

//Designer
public class AFWebUIControlDesigner : ComponentDesigner
{
public override void Initialize(IComponent component)
{
base.Initialize(component);
}
}
---------------------------------------

Any help will be appreciated.

Albert

Jul 24 '07 #1
2 3100
Albert,

This one got me for a little while too. Microsoft changed some Visual Studio
functionality when they went to Visual Studio 2005.

In the previous version you could drag a component control onto a page (in
design view) and the Component Designer window would appear at the bottom of
the page.

In Visual Studio 2005 the component designer has been separated from the
display page. Component Designer objects won't even appear in the toolbox
unless the new component designer window has been displayed first. To do so:
Go to the design view of one of your pages and then in the menu go to
View - Component Designer. Like magic your toolbox should now contain your
component and let you drag it to the designer.

Regards,

--
S. Justin Gengo, MCP
justin@aboutfortunate[-NoSpam-].com

Free code library at:
www.aboutfortunate.com


<al**********@gmail.comwrote in message
news:11*********************@d30g2000prg.googlegro ups.com...
Hi all,
I wrote a component with ComponentDesigner
to let users drag and drop it to WebPage from toolbox directly.
Just like the behavior of dataAdapter.
But it works fine on ASP.NET 1.1 but not on ASP.NET 2.0.
Sometimes I add it to toolbox in VS2005 WebSite Project but it will
not appear.
And always it can't be drag and drop to WebPage any more.
Nothing will be added to page after that.

Here is my code structure
---------------------------------------
//Class
[ToolboxItemFilter("System.Web.UI",ToolboxItemFilte rType.Require),
Designer(typeof(Ares.Workflow.WebControls.AFWebUIC ontrolDesigner))
]
public class AFWebUIControl : System.ComponentModel.Component
{
public AFWebUIControl()
{
}
}

//Designer
public class AFWebUIControlDesigner : ComponentDesigner
{
public override void Initialize(IComponent component)
{
base.Initialize(component);
}
}
---------------------------------------

Any help will be appreciated.

Albert
Jul 25 '07 #2
On 7 26 , 12 33 , "S. Justin Gengo" <justin@aboutfortunate[-
NoSpam-].comwrote:
Albert,

This one got me for a little while too. Microsoft changed some Visual Studio
functionality when they went to Visual Studio 2005.

In the previous version you could drag a component control onto a page (in
design view) and the Component Designer window would appear at the bottom of
the page.

In Visual Studio 2005 the component designer has been separated from the
display page. Component Designer objects won't even appear in the toolbox
unless the new component designer window has been displayed first. To do so:
Go to the design view of one of your pages and then in the menu go to
View - Component Designer. Like magic your toolbox should now contain your
component and let you drag it to the designer.

Regards,

--
S. Justin Gengo, MCP
justin@aboutfortunate[-NoSpam-].com

Free code library at:www.aboutfortunate.com

<alberthun...@gmail.comwrote in message

news:11*********************@d30g2000prg.googlegro ups.com...
Hi all,
I wrote a component with ComponentDesigner
to let users drag and drop it to WebPage from toolbox directly.
Just like the behavior of dataAdapter.
But it works fine on ASP.NET 1.1 but not on ASP.NET 2.0.
Sometimes I add it to toolbox in VS2005 WebSite Project but it will
not appear.
And always it can't be drag and drop to WebPage any more.
Nothing will be added to page after that.
Here is my code structure
---------------------------------------
//Class
[ToolboxItemFilter("System.Web.UI",ToolboxItemFilte rType.Require),
Designer(typeof(Ares.Workflow.WebControls.AFWebUIC ontrolDesigner))
]
public class AFWebUIControl : System.ComponentModel.Component
{
public AFWebUIControl()
{
}
}
//Designer
public class AFWebUIControlDesigner : ComponentDesigner
{
public override void Initialize(IComponent component)
{
base.Initialize(component);
}
}
---------------------------------------
Any help will be appreciated.
Albert- -

- -
Hi Justin,
Thanks for your help!
It works now after I remove the ToolboxItemFilter and display the
Component Designer.
Really magic!

Best Regards,
Albert

Jul 26 '07 #3

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

Similar topics

1
by: David Hearn | last post by:
I have a new website that I am working on in VS2005. I know that the SQLConnection, SQLDataAdapter and a few other components are not loaded into the toolbox by default. So I click "Add Items",...
3
by: BluDog | last post by:
Hi I have a component that inherits from TreeView, my project is a standard exe. How do i get the component into the toolbox for use within the project? I find that only controls based on...
4
by: Amin Sobati | last post by:
Hi, I have added a component class that inherits System.windows.Forms.TextBox. This component is in the same project as my windows application (executable). I could instantiate it and add to...
9
by: Roman | last post by:
Hello I have a component built in VB.2003. It has the following property: Public Shared mCONN As SqlConnection Public Property Connection() As SqlConnection Get Return mCONN End Get...
2
by: ad | last post by:
Hi, I am using a third party component in VS2005. It is install by add the .dll to toolbox Now I got the new version of that component. How can I update the component to my VS2005?
3
by: Alan T | last post by:
I have downloaded the timepicker component which in a form of CShart solution/project. How do I install this into VS 2005 IDE?
4
by: Jules Winfield | last post by:
I'm using VS2005. I have a solution consisting of twelve projects. All projects are console/service apps except for one which is a WinForms app. There are no web projects. I'd say that I'm at...
5
by: John Kotuby | last post by:
Hi all, This is my first time trying to creaet and use a custome Web Control in a Web Site project in ASP.NET 2.0 with VS 2005 and VB. I created the control in a separate Web Control Library...
18
by: MyMarlboro | last post by:
Hi, How to add existing component to toolbox? i right click my project say AAA and choose the existing component say ABC.cs and then i click ok. then ABC.cs is added to my project. But when i view...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.