Re: Create new "me"

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



Well then, too bad you need to go that route to gain any sense of self
worth. It would be so much better had you never answered this person's post
than belittle them. Shame does not teach. I used to do the same self-serving
kind of belittling that you know do but I rose above it to be able to give
greater support to more people. Perhaps someday, you'll try the same


"GhostInAK" <ghostinak@xxxxxxxxx> wrote in message
news:be1391bf1a8128c8b1f6f5a370e5@xxxxxxxxxxxxxxxxxxxxx
Hello Steve,

I'll berate whoever I want. Must you be so freakin sensitive? Grow a
pair, ya pansy.

-Boo

-Boo,
Must you berate everyone?
"GhostInAK" <ghostinak@xxxxxxxxx> wrote in message
news:be1391bf1a7298c8b1cb3c763b18@xxxxxxxxxxxxxxxxxxxxx

Hello M O J O,

What's the point of this? If the goal is to not have to call .Show
when you create a form (lazy-ass).. then add Me.Show to the base
form's ctor. -Boo

Hi,

Instead of doing this....

Public Class Form1
Public Shared Sub CreateAndShow()
Dim f As New Form1
f.Show()
End Sub
End Class
I would like to make it generic by doing something like...
Public Class Form1
Public Shared Sub CreateAndShow()
Dim f As New Me
f.Show()
End Sub
End Class
... but "Me" is not accepted, neither is "Dim f As New TypeOf(Me)".
I would like to put the CreateAndShow in a base form and then
inherit from it and still be able to use the CreateAndShow method.

Any suggestions? TANKS!!! :o)

M O J O





.



Relevant Pages

  • Re: Create new "me"
    ... Just use the .Show method with the Me keyword in your base form's ctor. ... Public Class Form1 ... Public Shared Sub CreateAndShow() ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Create new "me"
    ... Public Class Form1 ... Public Shared Sub CreateAndShow() ... Dim f As New Form1 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Create new "me"
    ... Public Class Form1 ... Public Shared Sub CreateAndShow() ... Dim f As New Form1 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Create new "me"
    ... Public Class Form1 ... Public Shared Sub CreateAndShow() ... Dim f As New Form1 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Create new "me"
    ... Public Class Form1 ... Public Shared Sub CreateAndShow() ... Dim f As New Form1 ...
    (microsoft.public.dotnet.languages.vb)