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

inherited property -- PLEASE HELP

hi all
perhaps can someone help me.

i have a form ( base ) where a i change the opacity from 100 to 60 %
now i have a form inherited from the previous. and the opacity is correctly
at 60%.

i have created another string property and it has the same behavior
but when i create my own property class it allways rewirte the code in the
inherited form. why ??
anyone can help me???

i allready tryed to put the DesignerSerializationVisibility.content

thks
JSB

Sample
public property MyClass () as MyClass
..........

Jul 21 '05 #1
2 1175
"Joăo Santa Bárbara" <jo****@i24portugal.com> wrote in message
news:Ot**************@TK2MSFTNGP09.phx.gbl...
hi all
perhaps can someone help me.

i have a form ( base ) where a i change the opacity from 100 to 60 %
now i have a form inherited from the previous. and the opacity is
correctly
at 60%.

i have created another string property and it has the same behavior
but when i create my own property class it allways rewirte the code in the
inherited form. why ??
anyone can help me???
Base Class
-----------
Public Overridable Property MyClass() as MyClass

Derived Class
--------------
Public Overrides Property MyClass() as MyClass
i allready tryed to put the DesignerSerializationVisibility.content

thks
JSB

Sample
public property MyClass () as MyClass
.........


Jul 21 '05 #2
Are you using the name "MyClass" ? That is a reserved word in VB.
Try a different class name.
If that's not the problem, please show more code.

Jul 21 '05 #3

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

Similar topics

2
by: Terrance | last post by:
Hello all I have a question I'm hoping someone can shed some light on. I have 2 user Inherited Controls on a form. When I click 1 inherited control I would like to change the text of the other...
4
by: rob bowley | last post by:
I have a class which inherits from a generated abstract base class. I simply want to hide some fields which are inherited from the base class when it is serialised. I have tried: public...
5
by: Earl Teigrob | last post by:
Is there a way to rename the public properties of a inherited class? I am inheriting an asp.net control (class) and am adding addtional functionality. (in this case, up to 3 borders on an...
8
by: Spam Trap | last post by:
I am getting strange resizing problems when using an inherited form. Controls are moving themselves seemingly randomly, but reproducibly. "frmBase" is my base class (a windows form), and...
2
by: Joăo Santa Bárbara | last post by:
hi all perhaps can someone help me. i have a form ( base ) where a i change the opacity from 100 to 60 % now i have a form inherited from the previous. and the opacity is correctly at 60%. ...
4
by: asad.naeem | last post by:
hi to all this is the problem about inheritence. I have designed a form with some essential controls which are required for every form which will inherited from it. for example i have Button1 on...
4
by: Mikus Sleiners | last post by:
I can't seem to add new controls to form that is inherited from another form. I have BaseForm wich have table layout on it 2 panelsm and some buttons. Now i create InheritedForm : BaseForm and...
2
by: Brano | last post by:
Hi all, I am using VB.NET 2005 with a windows application. I have a form frmImageTemplate that has one image on it. All other forms of my application are declared in the frm.designer like...
4
by: cameljs18 | last post by:
Should be easy don't know y i cant get it to work please help. public partial class Form1 : Form { public Form1() { InitializeComponent(); }
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...

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.