VB .NET sucks a dick compared to VB6

Discussion in 'OT Technology' started by Slid., Mar 2, 2005.

  1. Slid.

    Slid. I'm a guy.

    Joined:
    Oct 25, 2001
    Messages:
    1,928
    Likes Received:
    0
    Location:
    NH
    Yes, it is more "compatible" if you even want to call it that -- to run .NET applications you need the .NET component installed which is not included with SP2, lame lame lame.

    A lot of people have had trouble with hiding a form then showing it later. Like I'm trying to make something that sits in the tray and when clicked shows a window but it is near impossible to do with .NET if not impossible.

    Some MS guy said this code would work:

    Code:
    #Region "Upgrade Support "
        Private Shared m_vb6FormDefInstance As Form1
        Private Shared m_InitializingDefInstance As Boolean
        Public Shared Property DefInstance() As Form1
            Get
                If m_vb6FormDefInstance Is Nothing OrElse m_vb6FormDefInstance.IsDisposed Then
                    m_InitializingDefInstance = True
                    m_vb6FormDefInstance = New Form1
                    m_InitializingDefInstance = False
                End If
                DefInstance = m_vb6FormDefInstance
            End Get
            Set(ByVal Value As Form1)
                m_vb6FormDefInstance = Value
            End Set
        End Property
    #End Region
    
    Does it show the form, yes, what else does it do? It creates a SECOND INSTANCE of the form, now you have two, you click again and you have three, so stupid.

    Everytime I code in this and have to do form hiding/showing I want to burn my .NET cds. Arrrr.

    :noes: :noes: :noes: :noes: :noes:

    [/rant]
     
  2. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    lol, of course you're getting a new window every time. You're calling New every time on the form if you haven't set the instance manually. Is this some subclass or something?

    BTW, vb6 still requires the vb runtime to be installed on a user's computer in order for it to function.
     
  3. Slid.

    Slid. I'm a guy.

    Joined:
    Oct 25, 2001
    Messages:
    1,928
    Likes Received:
    0
    Location:
    NH
    Ya, the vb6m.dll something or other but that is a 1MB file compared to a 20MB install that .NET has. That function was giving straight from MS -- it is more of a "patch" than an actual function.

    I made a workaround but it is just silly, VB was easy and .NET just seems to overcomplicate old ways of doing things.
     
  4. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area
    visual studio.net rules you

    you realize you dont have to create .net based programs, like in c++ you can just make a win32 console project
     
  5. deezil

    deezil Guest

    .Net sucks. I can't open a form with .show and kill it with unload(frmForm) any more.

    Fuck this. I'm going back to 6.
     

Share This Page