473,513 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to inherit an user control?

Hi,

I have an user control named GuestBook.ascx. I want to create another user
control by inheriting it. So I add a class file named GuestBookNew.vb into
the project. Inside this class file I have:

Public Class GuestBookNew
Inherits GuestBook

Then I tried to use the new control in a web form by adding
<%@ Register TagPrefix="eShop" Namespace="eShop" Assembly="eShop" %>
By the way, eShop is the VB.Net project name.

This is not working at all, I am getting "Error Creating Control" in web
form designer.

Please help.

TIA

Nov 19 '05 #1
0 1159

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

Similar topics

0
321
by: Prathiraj | last post by:
Hi All, Please let me know the steps one has to follow for successful inheritance of a control. An example would be to inherit an ImageButton server side control with OnClick functionality...
6
2897
by: Mohammad-Reza | last post by:
I wrote a component using class library wizard. In my component i want to in order to RightToLeft property do some works. I can find out if user set this property to Yes or No, But if He/She set it...
1
5952
by: Spurry Moses | last post by:
Hi, I'm converting a project from C++Builder to C# and I just need to copy my class design across. It's looking good so far. To stick with the design I want to inherit from a ComboBox control...
1
1625
by: chavdar | last post by:
I need to inherit web user control page, how can I do this? Thanks, Chavdar
0
1084
by: CJ Taylor | last post by:
Is it possible to visually inherit one user control from another in Whidbey?
1
1411
by: mtczx232 | last post by:
I going to drive my own Inherit control for All Win control, But I see that inherit control not get by default the original control Icon. How i can get the original Icon for each Inherit control?
3
1652
by: Guillaume Hanique | last post by:
Hi, I feel very stupid. I simply want to derive a control from system.web.ui.webcontrols.button and use that on my webform, but I just can't get it done. Can anyone tell me how to do that? I...
0
2646
by: Michael Howes | last post by:
I added a new user control I went in and changed the control to inherit from DataGridView I want my new DataGridView to have a fixed number of Rows and Columns so I have a method I call in my...
1
1932
by: FireFlux | last post by:
Inherit the Listview Control with Visual Basic ? I have decided do inherit the Listview control some days ago to change some painting things to make the .net Listview look like the explorer's...
2
2256
by: Joe | last post by:
Is it possible to inherit from a UserControl? If I try my user control class is not recognized. Thanks, Joe
0
7264
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7386
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,...
1
7106
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
7534
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...
0
5689
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3236
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3226
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
459
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...

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.