473,402 Members | 2,046 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,402 software developers and data experts.

Inherits a User Control

Hi All,

I want to create 2 set of user controls.
The datasource and their properties is exactly the same, but each control
have different User Interface to display data
(one is bind with combo box and one is bind with list box)

I am trying to write an abstract class name myUserControl (which is inherits
System.Windows.Forms.UserControl) and let the two user controls to inherits
myUserControl

And the problem comes after i doing that, i cannot use Vs.Net 's design
view to drag the UI into the user control

What should i do ?

Thx for your kindest help

Regards,
norton
Nov 21 '05 #1
1 946
Any controls you create will appear on the My User Controls Tab of the
toolbox once you compile the project. Is it that your control does not
appear, or is it that Drag and Drop does not initiate, or is it that Drop is
disallowed?

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Norton" <no********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi All,

I want to create 2 set of user controls.
The datasource and their properties is exactly the same, but each control
have different User Interface to display data
(one is bind with combo box and one is bind with list box)

I am trying to write an abstract class name myUserControl (which is inherits System.Windows.Forms.UserControl) and let the two user controls to inherits myUserControl

And the problem comes after i doing that, i cannot use Vs.Net 's design
view to drag the UI into the user control

What should i do ?

Thx for your kindest help

Regards,
norton

Nov 21 '05 #2

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

Similar topics

4
by: Ben R. | last post by:
Between ClassName and Inherits, which attribute is set to specify the class that a page uses? I would think that would be inherits. Further, the description for ClassName is: Specifies the class...
0
by: Rob Meade | last post by:
Hi all, ok - the scenario... We have a secure login page known as the Clinical Portal (single login etc) - we have a web user control for this which checks if a session is available or not...
1
by: Tee | last post by:
Hi, how to let web user control inherits the webpage that holding the user control ? as 1 class only can have 1 inherits, anyway to do this ? I am using VB.NET. Thanks, Tee
0
by: Alex Nitulescu | last post by:
Hi, I have the following in project "RaducuCustomControls": Imports System.ComponentModel Imports System.Web.UI <DefaultProperty("Text"), ToolboxData("<{0}:Rotator1...
10
by: Tony Abate | last post by:
I am working on an ASP.NET app that is going well except for one thing. I build my application and then move the .aspx file to a different directory. I can point the Codebehind property back to the...
4
by: Tull Clancey | last post by:
I have a class that inherits a form. How can I handle clicks and changes to controls on the inherited form within my class? Cheers, Tull.
14
by: Prabhudhas Peter | last post by:
Hai, I've Created a User control for example a Button and i've given the font of the text as Bold and compiled it. Now i've used this Usercontrol everywhere in my project. Now i changed the font...
3
by: Gregory Gadow | last post by:
I am looking to create a custom TabControl in VB using VS 2.0. All of the documentation I've found online starts with Public Class NewTabControl Inherits Windows.Forms.TabControl End Class ...
0
by: murl | last post by:
I want to create a web user control with a base class of 'GridView' so I can wrap the needed methods to make rows clickable. However when building the project I get the following message: "Make...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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,...

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.