Results 1 to 4 of 4
  1. #1
    whitten's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    1,459
    Reputation
    21
    Thanks
    491

    whats wrong with this?

    [html]Public Function PutWindowOnTop(pFrm As Form)
    Dim lngWindowPosition As Long LngWindowPosition = SetWindowPos(pFrm.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE)[/html]



    it says error.
    im using vb 6...
    thanks!
    Last edited by whitten; 08-21-2009 at 07:36 PM.

  2. #2
    Dave84311's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    The Wild Wild West
    Posts
    35,837
    Reputation
    5782
    Thanks
    41,292
    My Mood
    Devilish
    I don't think that is C++





    THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE


    "First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311

    HAVING VIRTUAL DETOX

  3. #3
    whitten's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    1,459
    Reputation
    21
    Thanks
    491
    well it's for a crosshair...
    this is my code for the buttons:
    [html]Private Sub Command1_Click()
    Call PutWindowOnTop(Form2)
    Form2.Show
    Call PutWindowOnTop(Form3)
    Form3.Show
    End Sub

    Private Sub Command2_Click()
    Call PutWindowOnTop(Form2)
    Form2.Hide
    Call PutWindowOnTop(Form3)
    Form3.Hide
    End Sub
    [/html]

  4. #4
    Dave84311's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    The Wild Wild West
    Posts
    35,837
    Reputation
    5782
    Thanks
    41,292
    My Mood
    Devilish
    You used Public Function instead of Public Sub?





    THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE


    "First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311

    HAVING VIRTUAL DETOX

Similar Threads

  1. Whats wrong with this
    By Obama in forum General
    Replies: 76
    Last Post: 09-08-2009, 01:09 AM
  2. Whats wrong with this?
    By superHackz in forum Visual Basic Programming
    Replies: 1
    Last Post: 05-31-2008, 11:35 AM
  3. Whats wrong with this?
    By superHackz in forum WarRock - International Hacks
    Replies: 1
    Last Post: 05-26-2008, 04:03 AM
  4. Whats wrong with this code ?
    By bohnenbong in forum WarRock - International Hacks
    Replies: 7
    Last Post: 10-26-2007, 06:57 AM
  5. whats wrong with this...
    By NetNavi in forum WarRock - International Hacks
    Replies: 6
    Last Post: 09-03-2007, 01:19 AM

Tags for this Thread