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

Home Posts Topics Members FAQ

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 1185
"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
1277
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
4069
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
4617
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
6674
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
231
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
1937
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
16231
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
1397
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
1617
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
7265
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,...
1
7111
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
7539
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
5692
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,...
1
5095
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...
0
3240
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
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
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 ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.