|
-
Feb 13th, 2004, 03:26 AM
#1
Thread Starter
Lively Member
Inherited Public Sub to a Private Sub
I would like to know if there is a way to trash a sub that is inside a inherited class example:
system.windows.forms.form has the 'Public Sub Show()'
My Form will only be using the ShowDialog() sub.
Is there a way to remove the sub show from my form so that it is not listed in the Intellisense and so that isn't part of my Form?
If your post is resolved, mark it as such using the thread tools, Keep the forums tidy.
-
Feb 13th, 2004, 08:00 AM
#2
Why not just override it and throw an exception if it gets called?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Feb 13th, 2004, 09:16 AM
#3
Look up the shadows declaration, it should cover you problem (hehe).
-
Feb 13th, 2004, 02:49 PM
#4
Thread Starter
Lively Member
Nope shadows still gives access to the original Sub from the form.
If anyone knows how please and has a working example please share.
If your post is resolved, mark it as such using the thread tools, Keep the forums tidy.
-
Feb 13th, 2004, 03:16 PM
#5
Originally posted by crptcblade
Why not just override it and throw an exception if it gets called?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Feb 13th, 2004, 09:07 PM
#6
Originally posted by Evad
Nope shadows still gives access to the original Sub from the form.
If anyone knows how please and has a working example please share.
Shadows is basically like overrides.... I dont think you can do it
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|