473,725 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Could I add component to toolbox in VS2005 WebSite Project?

Hi all,
I wrote a component with ComponentDesign er
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
[ToolboxItemFilt er("System.Web. UI",ToolboxItem FilterType.Requ ire),
Designer(typeof (Ares.Workflow. WebControls.AFW ebUIControlDesi gner))
]
public class AFWebUIControl : System.Componen tModel.Componen t
{
public AFWebUIControl( )
{
}
}

//Designer
public class AFWebUIControlD esigner : ComponentDesign er
{
public override void Initialize(ICom ponent component)
{
base.Initialize (component);
}
}
---------------------------------------

Any help will be appreciated.

Albert

Jul 24 '07 #1
2 3123
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@aboutfor tunate[-NoSpam-].com

Free code library at:
www.aboutfortunate.com


<al**********@g mail.comwrote in message
news:11******** *************@d 30g2000prg.goog legroups.com...
Hi all,
I wrote a component with ComponentDesign er
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
[ToolboxItemFilt er("System.Web. UI",ToolboxItem FilterType.Requ ire),
Designer(typeof (Ares.Workflow. WebControls.AFW ebUIControlDesi gner))
]
public class AFWebUIControl : System.Componen tModel.Componen t
{
public AFWebUIControl( )
{
}
}

//Designer
public class AFWebUIControlD esigner : ComponentDesign er
{
public override void Initialize(ICom ponent component)
{
base.Initialize (component);
}
}
---------------------------------------

Any help will be appreciated.

Albert
Jul 25 '07 #2
On 7 26 , 12 33 , "S. Justin Gengo" <justin@aboutfo rtunate[-
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@aboutfor tunate[-NoSpam-].com

Free code library at:www.aboutfortunate.com

<alberthun...@g mail.comwrote in message

news:11******** *************@d 30g2000prg.goog legroups.com...
Hi all,
I wrote a component with ComponentDesign er
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
[ToolboxItemFilt er("System.Web. UI",ToolboxItem FilterType.Requ ire),
Designer(typeof (Ares.Workflow. WebControls.AFW ebUIControlDesi gner))
]
public class AFWebUIControl : System.Componen tModel.Componen t
{
public AFWebUIControl( )
{
}
}
//Designer
public class AFWebUIControlD esigner : ComponentDesign er
{
public override void Initialize(ICom ponent component)
{
base.Initialize (component);
}
}
---------------------------------------
Any help will be appreciated.
Albert- -

- -
Hi Justin,
Thanks for your help!
It works now after I remove the ToolboxItemFilt er 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
1364
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", find the SQLConnection and others and add them to the toolbox. However, the components don't show up in the toolbox unless I right click on it and select "Show All Items". Then they show up, but they are greyed out and unusable. Anyone know why? ...
3
3065
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 UserControl apear there automatically, therefore if i set the component to inherit from UserControl it will appear, then i change it back to inherit from TreeView, although it stays, as soon as i close the solition, the next
4
8247
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 form's controls collection but I want to know that if it is possible to add it to the toolbox like if this component was in separate project in this solution. Thanks in advance. Amin
9
4197
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 Set(ByVal value As SqlConnection)
2
1321
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
3243
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
2152
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 around 125k-150k lines of code in total. My development machine has 2gigs of physical RAM, a hyperthreaded CPU running at 3.6ghz, and plenty of harddrive space on a recently defragged drive. The only installed apps are VS2005 and SQL Server 2005....
5
3749
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 project. The original code for that control was written in VS 2003 for .NET 1.1. I created a Web Project and pulled the VB module into the project. I compared the syntax to the VB template classs that was built and it looked very similar. I then...
18
6529
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 the Toolbox on my left, i can't find the ABC component appear in the toolbox list? i am using Visual C# 2008 Please guide. Thanks.
0
8752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9174
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9111
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4782
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.