|
-
Mar 28th, 2020, 08:35 PM
#1
Re: Me.Hide or frmMyForm.Hide
Most forms are partial classes, so that's not totally out of the question. Generally, it is the .designer.vb that gets the Partial Class designation, but it doesn't HAVE to be that way.
What does have to be the case is that it has to be at least part of a form class, but it would have to be for that button to work...in most cases. I'm intrigued by the use of Protected on that method. It's not necessarily right or wrong, but does suggest that this is part of some kind of novel inheritance tree. It doesn't sound like it is necessarily a form, but it might be something derived from a form in some fashion, so you might be able to get away with MyBase.Close, though if that worked, it would be best if you understood why, and I certainly don't from what has been shown thus far.
The forum software tends to shrink screenshots down to the point where they become unreadable, so pasting code, as you did, is FAR better when showing code. Screenshots of forms are a different matter, but code doesn't work well as a screenshot.
My usual boring signature: Nothing
 
Tags for this Thread
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
|