PC Review


Reply
Thread Tools Rate Thread

Delete control from inherited form

 
 
Robert Scheer
Guest
Posts: n/a
 
      24th Aug 2003
Hi.

I am playing a bit with visual inheritance in vb.net. I created a base
form with two buttons, one of them has its Modifiers property set to
public. When I derive a new form from my base form I can resize and
change the behaviour of my public button, but I can't delete it. When
using visual inheritance isn't it possible to remove controls?

Thanks,

Robert Scheer
 
Reply With Quote
 
 
 
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      24th Aug 2003
Robert,
> When using visual inheritance isn't it possible to remove controls?

No. The base form 'needs' it, if you were able to delete it, the base form
may no longer work correctly. Correct?

I would think if it did not need to be visible on the derived form, then you
would hide the control. The base form could still interact with it as
normal, but it would not be visible on the derived form. Of course this is
with the understanding the base form allows it to be hidden...

Hope this helps
Jay

"Robert Scheer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi.
>
> I am playing a bit with visual inheritance in vb.net. I created a base
> form with two buttons, one of them has its Modifiers property set to
> public. When I derive a new form from my base form I can resize and
> change the behaviour of my public button, but I can't delete it. When
> using visual inheritance isn't it possible to remove controls?
>
> Thanks,
>
> Robert Scheer



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      24th Aug 2003
Hello,

"Robert Scheer" <(E-Mail Removed)> schrieb:
> I am playing a bit with visual inheritance in vb.net. I created a base
> form with two buttons, one of them has its Modifiers property set to
> public. When I derive a new form from my base form I can resize and
> change the behaviour of my public button, but I can't delete it. When
> using visual inheritance isn't it possible to remove controls?


You cannot delete an inherited control in a derived form.

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change control property on inherited form from base form ajwalters@gmail.com Microsoft Dot NET Framework Forms 1 20th Apr 2006 03:37 PM
Inherited form control anchoring =?Utf-8?B?TWlrZQ==?= Microsoft Dot NET Framework Forms 4 9th Mar 2006 04:16 PM
Control position on inherited Form nitinvraj@gmail.com Microsoft Dot NET Framework Forms 1 6th Mar 2006 12:36 PM
Control position on inherited Form nitinvraj@gmail.com Microsoft Dot NET Framework Forms 0 3rd Mar 2006 11:14 AM
User Control v Inherited form adbarnet Microsoft C# .NET 2 17th Apr 2005 11:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:20 PM.