Community discussion forum

how to design notify pop up window in vb.net

Tags: vb.net India
  • 3 months ago

    hello sir

    i would like to know that

    how to design a notify popup windows in vb.net desktop application

    also this pop should appears in right corner (i.e at time taskbar)

    like in many antivirus it notify through pop up from corner

    thanks

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 3 months ago

    for popup use NotifyIcon added to form via designer. (Just try to add it and check for right usage of its limbs). Don't forget to set icon of NotifyIcon. Also check events of NI - it is possible also to show window or message detail for BaloonClick
    -
    for flashing window in taskbar use

    Declare Function FlashWindow% Lib "user32" (ByVal hWnd As System.IntPtr, ByVal revert As Boolean)

    Shared Function SearchProcessByCaption(ByVal caption$) As System.Diagnostics.Process
     Dim pss() As Process = Process.GetProcesses
     Dim i%
     For Each ps As System.Diagnostic.Process In pss
      If ps.MainWindowTitle = caption Then Return ps
     Next
     Return Nothing
    End Function

    Shared Function Flash%(ByVal caption$, ByVal revert As Boolean)
     Dim ps As System.Diagnostics.Process = SearchProcessByCaption(caption)
     If ps Is Nothing Then
      Return -1
     Else
      Return lApi.user32.FlashWindow(ps.MainWindowHandle, revert)
     End If
    End Function

  • 3 months ago

    And if you mean just that non-buble smooth moving alerts I guess it is just normal "animated" window, but I guess bubble should suffice with minimum of care on both sides :)

Post a reply

Enter your message below

Sign in or Join us (it's free).