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

Property Sheet for Inherited Objects

I've got a custom datagrid that inherits from the standard datagrid on
a windows form. I expected that since it is an inherited object,
protected properties from the standard datagrid would be visible in
the property sheet when working with the custom datagrid on a form.

This seems not to be the case. Am I expecting too much? Could it be
due to using VB.net Standard 2002?

Thanks,
Gene H.
Nov 20 '05 #1
3 1640
Hi Gene,

No... that is the expected result. Protected means accessible to derived
classes, so your derived class can access them.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"
"Gene Hubert" <gw******@hotmail.com> wrote in message
news:7e**************************@posting.google.c om...
: I've got a custom datagrid that inherits from the standard datagrid on
: a windows form. I expected that since it is an inherited object,
: protected properties from the standard datagrid would be visible in
: the property sheet when working with the custom datagrid on a form.
:
: This seems not to be the case. Am I expecting too much? Could it be
: due to using VB.net Standard 2002?
:
: Thanks,
: Gene H.
Nov 20 '05 #2
gw******@hotmail.com (Gene Hubert) scripsit:
I've got a custom datagrid that inherits from the standard datagrid on
a windows form. I expected that since it is an inherited object,
protected properties from the standard datagrid would be visible in
the property sheet when working with the custom datagrid on a form.

This seems not to be the case. Am I expecting too much? Could it be
due to using VB.net Standard 2002?


Protected properties are only visible to the class and the inherited
class. If you place a control on the form, you won't see them.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
So, a child object can see protected properties of its parent in code
at runtime but not at design time in the IDE. Is that right?

Thanks,
Gene H.

hi***************@gmx.at (Herfried K. Wagner [MVP]) wrote in message news:<bl************@ID-208219.news.uni-berlin.de>...
gw******@hotmail.com (Gene Hubert) scripsit:
I've got a custom datagrid that inherits from the standard datagrid on
a windows form. I expected that since it is an inherited object,
protected properties from the standard datagrid would be visible in
the property sheet when working with the custom datagrid on a form.

This seems not to be the case. Am I expecting too much? Could it be
due to using VB.net Standard 2002?


Protected properties are only visible to the class and the inherited
class. If you place a control on the form, you won't see them.

Nov 20 '05 #4

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

Similar topics

16
by: sneill | last post by:
How is it possible to take the value of a variable (in this case, MODE_CREATE, MODE_UPDATE, etc) and use that as an object property name? In the following example I want 'oIcon' object to have...
19
by: MLH | last post by:
I call the following Sub and Function in frmLaunch's OnOpen event code. I keep getting Property Not Found error for the AllowBypassKey setting. Failure point is line #30 in the Function (not the...
1
by: Jack Addington | last post by:
I have create a base class for a user control as well as a related base class for its logic (nonvisual). As part of the non-visual class I have a variable that references the base user object and...
15
by: Sam Kong | last post by:
Hello! I got recently intrigued with JavaScript's prototype-based object-orientation. However, I still don't understand the mechanism clearly. What's the difference between the following...
0
by: porter_wss | last post by:
I am a bit confused on serializing objects and inherited objects. What I am trying to accomplish is creating a base object and an inherited object with additional properties. The sender of these...
2
by: garyusenet | last post by:
I could do with something similiar, can you tell me if you think this would work for me, and if there's any advantage in working with controls this way than how I currently am. At the moment...
1
by: Rich | last post by:
Hello, I need to change the font size of a datagridview to accommodate a screen resolution of 800x600. I know how to set the fontsize at runtime datagridview1.Font = New Font("arial", 8,...
13
by: Sam Kong | last post by:
Hi, I am familiar with the ruby language. To use my ruby knowledge when writing in JavaScript, I use the following library. http://www.advogato.org/proj/Ruby.js/ If I include the file in...
2
by: Ryan Liu | last post by:
I have a control with a toolbar on it, and I have another control inherits it, and in this sub-control, I add more toobar buttons to it. It used to work fine in VS 2003. But in VS 2005, in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.