473,799 Members | 3,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Inherit

i want to extend the progress bar control via inheritance

my question is...in the ide how can i expose the inherited
control

for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from

thanks
dave
Jan 22 '07 #1
5 2467
igd
I'm not sure if I understood you but since you are inherit from
ProgressBar which inherits from Control in turn you have two
possibilities to expose your extended ProgressBar:

(1) through the Parent property (i.e. extendedProgres sBar.Parent =
parentForm;)

or

(2) through the Controls property of the parent form (i.e.
parentForm.Cont rols.Add(extend edProgressBar); )
DAVE P schrieb:
i want to extend the progress bar control via inheritance

my question is...in the ide how can i expose the inherited
control

for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from

thanks
dave
Jan 22 '07 #2
If you are new to user control just start a Windows Control Library porject.
Once you add Windows Application later then you should be able to see it in
your toolbox.

chanmm

"DAVE P" <dv*****@sbcglo bal.netwrote in message
news:zj******** **********@news svr12.news.prod igy.net...
>i want to extend the progress bar control via inheritance

my question is...in the ide how can i expose the inherited
control

for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from

thanks
dave

Jan 23 '07 #3
Hi Dave,

You have to add it to the toolbox manually. In Visual Studio 2005 it will
appear in the toolbox automatically, but only while the project in which
it's defined is part of the currently active solution. If you want to
reference the assembly from another project in a completely different
solution, then you'll have to add the control to the toolbox manually.

How to: Add Items to the Toolbox
http://msdn2.microsoft.com/en-us/lib...55(VS.80).aspx

--
Dave Sexton
http://davesexton.com/blog

"DAVE P" <dv*****@sbcglo bal.netwrote in message
news:zj******** **********@news svr12.news.prod igy.net...
>i want to extend the progress bar control via inheritance

my question is...in the ide how can i expose the inherited
control

for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from

thanks
dave


Jan 23 '07 #4
Thanks for the response

Does that also apply to forms
for instance
I Create a form (no controls)
add new properties like:
oconn // sql connection
and other properties
or callback methods for additional event captures
like a Custom FocusChance etc...

thanks
Dave

"DAVE P" <dv*****@sbcglo bal.netwrote in message
news:zj******** **********@news svr12.news.prod igy.net...
>i want to extend the progress bar control via inheritance

my question is...in the ide how can i expose the inherited
control

for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from

thanks
dave


Jan 26 '07 #5
Hi Dave,

Does what also apply?

--
Dave Sexton
http://davesexton.com/blog
http://www.codeplex.com/DocProject (Sandcastle in VS IDE)

"DAVE" <dv*****@sbcglo bal.netwrote in message
news:kD******** ***@newssvr19.n ews.prodigy.net ...
Thanks for the response

Does that also apply to forms
for instance
I Create a form (no controls)
add new properties like:
oconn // sql connection
and other properties
or callback methods for additional event captures
like a Custom FocusChance etc...

thanks
Dave

"DAVE P" <dv*****@sbcglo bal.netwrote in message
news:zj******** **********@news svr12.news.prod igy.net...
>>i want to extend the progress bar control via inheritance

my question is...in the ide how can i expose the inherited
control

for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from

thanks
dave



Jan 26 '07 #6

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

Similar topics

7
19489
by: Fabian Neumann | last post by:
Hi! I got a problem with font-family inheritance. Let's say I have CSS definitions like: p { font:normal 10pt Verdana; } strong { font:normal 14pt inherit;
1
3249
by: Jeff Schmidt | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, ~ Ok, I've got some tables, and a style sheet that contains stuff to format the table. The problem I'm having is, it appears that using the 'iherit' keyword for td, tr, is not supported? Attached is the stylesheet in question. Let me preface this by saying, I have { border-collapse: collapse } set as the border rendering mode.
0
2413
by: Phil Evans | last post by:
URL: http://philevans.com/tabletest.html A boring table, but one which illustrates my problem. I'm writing a large PHP app which outputs data tables. Users of the app can configure their preferences for table border width, colour, style etc . . . I don't have access to the main stylesheet from the PHP, so the border for the table is going inline, thus: <table id="testTable" style="border: 1px dotted red;">
7
1754
by: bobsled | last post by:
For class A to reuse functionality of a class B, A could either contains B or inherits from B. When should pick which? In a book the author says that "Don't inherit from a concrete class." Does this mean that for a concrete class B, using composition is the only choice? Thank you for your comments!
4
27450
by: Slavyan | last post by:
(I just started to learn C#.NET) What's the syntax in c# for a class to inherit more than one class. I know following syntax: public class MyClass : MyOtherClass { } but I need to inherit one more class.
6
2914
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 to Inherit I must examine its parent RightToLeft property(if i`m wrong please tell me) but in this component that inherits from System.ComponentModel.Component, How can i find parent??? In UserControls we can simply use Parent property but in...
2
1470
by: ad | last post by:
We can inherit a class. But if the class is the code behind, when we inherit it , can we inherit it's aspx ahead together ?
7
1756
by: Frank | last post by:
Hi, a question probably asked before, but I can't find the answers. Base class X, classes A, B and C inherit class X. In class A I do not want to inherit property (or function or method) P1. Possible? How? Thanks in advance Frank
3
8940
by: J | last post by:
I tried to inherit 'Shot' class from 'Image' class, only to fail. It gives me the CS0122 error, which says that it can't access 'System.Drawing.Image.Image()'. What am I missing? using System;
2
3902
by: GTalbot | last post by:
Hello fellow comp.infosystems.www.authoring.stylesheets colleagues, Imagine this situation: #grand-parent-abs-pos { height: 400px; position: absolute; width: 600px; }
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
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
10491
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
10031
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...
0
9079
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7571
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
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4146
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
2941
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.