Results 1 to 13 of 13

Thread: Changing display message in Task Bar

Hybrid View

  1. #1

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Changing display message in Task Bar

    Yes I tried it. But the only thing that I don't like is when you minimize the form it shows two forms minimizing, and that can be annoying. Thanks though it's a lot of help!

  2. #2

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Changing display message in Task Bar

    Alright one more question. I tried to figure out a way to make text scroll across the title bar caption. I got as far as the code below, but i can't figure out how to make the right edge connect to the left edge, so its a continuous loop.

    VB Code:
    1. 'code in timer
    2. Me.Caption = " " & Me.Caption

    Any suggestions?

  3. #3
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Changing display message in Task Bar

    Hey I think I'm getting closer..


    Change Rhinos code to this:

    FrmMain:
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Form_Load()
    4.     Load frmHidden
    5.     frmHidden.Show
    6.     frmHidden.Move -1000, -1000
    7. End Sub
    8.  
    9. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    10.     Unload frmHidden
    11. End Sub
    12.  
    13. Private Sub Form_Resize()
    14.     If Me.WindowState = vbMinimized Then
    15.         Me.Visible = False
    16.     Else
    17.         Me.Visible = True
    18.     End If
    19. End Sub

    FrmHidden:
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Form_Activate()
    4.     LockWindowUpdate (frmHidden.hWnd)
    5. End Sub
    6.  
    7. Private Sub Form_Resize()
    8.     frmMain.WindowState = Me.WindowState
    9.     If Me.WindowState = vbMinimized Then
    10.         frmMain.Visible = False
    11.     Else
    12.         frmMain.Visible = True
    13.     End If
    14. End Sub

    Module:
    VB Code:
    1. Option Explicit
    2. Public Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long

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