Overloads/Shadows question

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jeff Johnson [MVP: VB] (i.get_at_enough.spam)
Date: 06/30/04


Date: Wed, 30 Jun 2004 09:11:57 -0400

I'm developing a form which is to be used as an enhanced MessageBox(). I
don't want it to be shown with the default Show() method, so as I provided
overloaded versions of Show() I marked them as Shadows and I didn't provide
a parameterless version of Show(). Would it have been better (or would this
have even worked) to simply make a Private version of Show() and only
exposed (i.e., made Public) the other overloads?



Relevant Pages

  • Re: Overloads/Shadows question
    ... Cor ... > a parameterless version of Show. ... > have even worked) to simply make a Private version of Showand only ... the other overloads? ...
    (microsoft.public.dotnet.languages.vb)
  • Recursive WebRequest.Create()
    ... The WebRequest class implements IWebRequestCreate and hence, ... This method has two other overloads, one of which is a private method. ...
    (microsoft.public.dotnet.framework)
  • Re: overloading
    ... > I have a function 'Private MyFunc(ByVal dbS as String) As Boolean' where ... 'Private Overloads MyFuncAs ... I added the Overloads keyword to the original also, ... > overloading change the requirements of Private/Public? ...
    (microsoft.public.dotnet.languages.vb)
  • overloading
    ... I have a function 'Private MyFunc(ByVal dbS as String) As Boolean' where dbS ... is a database value determined by the database reader method. ... I added the Overloads keyword to the original also, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Late binding -- Calling a static method
    ... meaning the constructor is ... private, ... There are other overloads of GetMethod that allow you to pass the types ...
    (microsoft.public.dotnet.framework)