Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to use Taskbar Close(X) Option in Vb6 application

How to use Taskbar Close(X) Option in Vb6 application

Scheduled Pinned Locked Moved Visual Basic
helptutorial
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mdrizwan_1
    wrote on last edited by
    #1

    Hello Everybody, I have Search the entire google, for how to close vb application from taskbar when it is minimize. But found nothing can anybody plz help me. Thanks in Advance.

    F C 2 Replies Last reply
    0
    • M mdrizwan_1

      Hello Everybody, I have Search the entire google, for how to close vb application from taskbar when it is minimize. But found nothing can anybody plz help me. Thanks in Advance.

      F Offline
      F Offline
      freakyit
      wrote on last edited by
      #2

      hi, need more information about your problem! the close (X) is not visible if your application is minimized.. you need to close via SystemMenu right click at the minimized app and close.. the titelbar i think you mean instead of taskbar is not visible at that time. greetz

      M 1 Reply Last reply
      0
      • F freakyit

        hi, need more information about your problem! the close (X) is not visible if your application is minimized.. you need to close via SystemMenu right click at the minimized app and close.. the titelbar i think you mean instead of taskbar is not visible at that time. greetz

        M Offline
        M Offline
        mdrizwan_1
        wrote on last edited by
        #3

        Yep, i do mean the same .I need to Close my Vb app through SystemMenu when the application is minimize.Do u have any soluton for it. thanks in advance.

        D 1 Reply Last reply
        0
        • M mdrizwan_1

          Yep, i do mean the same .I need to Close my Vb app through SystemMenu when the application is minimize.Do u have any soluton for it. thanks in advance.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Uhhh...unless you provide more information about what you're looking for, the answer is not going to change. Right-click the icon on the TaskBar and click Close.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008
          But no longer in 2009...

          M 1 Reply Last reply
          0
          • D Dave Kreskowiak

            Uhhh...unless you provide more information about what you're looking for, the answer is not going to change. Right-click the icon on the TaskBar and click Close.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008
            But no longer in 2009...

            M Offline
            M Offline
            mdrizwan_1
            wrote on last edited by
            #5

            Hi Dave, I am Call a function in my Vb6 application Where i have used the follow Lib function to get the requried option from SystemMenu .But i m unable to get Hexa Code for Close option . Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Const WM_CLOSE = ?????? Can u provide any solution on this prob??????

            F 1 Reply Last reply
            0
            • M mdrizwan_1

              Hi Dave, I am Call a function in my Vb6 application Where i have used the follow Lib function to get the requried option from SystemMenu .But i m unable to get Hexa Code for Close option . Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Const WM_CLOSE = ?????? Can u provide any solution on this prob??????

              F Offline
              F Offline
              freakyit
              wrote on last edited by
              #6

              goggle is your friend WM_CLOSE = &H10 in VB

              1 Reply Last reply
              0
              • M mdrizwan_1

                Hello Everybody, I have Search the entire google, for how to close vb application from taskbar when it is minimize. But found nothing can anybody plz help me. Thanks in Advance.

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                mdrizwan_1 wrote:

                I have Search the entire google

                Wow. That's a lot of searching. Why are you using VB6 ?

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                L 1 Reply Last reply
                0
                • C Christian Graus

                  mdrizwan_1 wrote:

                  I have Search the entire google

                  Wow. That's a lot of searching. Why are you using VB6 ?

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  L Offline
                  L Offline
                  Luc Pattyn
                  wrote on last edited by
                  #8

                  Christian Graus wrote:

                  That's a lot of searching

                  And it always ends in frustration[^]. :)

                  Luc Pattyn


                  Local announcement (Antwerp region): Lange Wapper? Neen!


                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups