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. ComboBox Probs????

ComboBox Probs????

Scheduled Pinned Locked Moved Visual Basic
helpquestion
6 Posts 3 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 used an comboBox in my application and on Edit Cmd i have DropDown list of items for user to select.But now the problem is that When i Click Exit Cmd,the form does not get closed on Single click ,I have to Click CmdExit 2 times to close form.But i wanna close the form on a single click .Kindly help me for the same Thanks in advance Rizwan

    V _ 2 Replies Last reply
    0
    • M mdrizwan_1

      Hello EveryBody I have used an comboBox in my application and on Edit Cmd i have DropDown list of items for user to select.But now the problem is that When i Click Exit Cmd,the form does not get closed on Single click ,I have to Click CmdExit 2 times to close form.But i wanna close the form on a single click .Kindly help me for the same Thanks in advance Rizwan

      V Offline
      V Offline
      Vimalsoft Pty Ltd
      wrote on last edited by
      #2

      can we see the code ?

      Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

      M 1 Reply Last reply
      0
      • M mdrizwan_1

        Hello EveryBody I have used an comboBox in my application and on Edit Cmd i have DropDown list of items for user to select.But now the problem is that When i Click Exit Cmd,the form does not get closed on Single click ,I have to Click CmdExit 2 times to close form.But i wanna close the form on a single click .Kindly help me for the same Thanks in advance Rizwan

        _ Offline
        _ Offline
        _Damian S_
        wrote on last edited by
        #3

        Sounds like your code might be doing something that causes it to eat the first click, for instance, your custom code might be opening the combo, so as you click off it it's then closing the dropped down combo - perhaps you could post your code for us to look at? The other option is that you have it set to double click instead of single click.

        I don't have ADHD, I have ADOS... Attention Deficit oooh SHINY!! Booger Mobile (n) - A bright green 1964 Ford Falcon - our entry into the Camp Quality esCarpade!! Do something wonderful - make a donation to Camp Quality today!!

        M 1 Reply Last reply
        0
        • V Vimalsoft Pty Ltd

          can we see the code ?

          Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

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

          Hi Maseko Thanks for Ur reply >The code Snippets is as follows This is Included in Module ........ DROP-DOWN THE COMBO BOX NAMED CmbSlNo..... Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _ (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Public Const CB_SHOWDROPDOWN = &H14F This code is on Edit Button to Drop-down the List contains Auto....... Call SendMessage(CmbSlNo.hWnd, CB_SHOWDROPDOWN, True, ByVal 0) 'API FUNCTION IS CALLING FOR DROPDOWN THE COMBO BOX NAMED cmbsLNO Now when i click on Edit button the list is drop-down and the cursor is in the combo first list index . But if i click Exit at this instants it Set the combo listindex to 0 on First click Then on next click it Exits the form. But i wanna do the same on single click.Plz help if can.... or any other suggestion? Rizwan

          1 Reply Last reply
          0
          • _ _Damian S_

            Sounds like your code might be doing something that causes it to eat the first click, for instance, your custom code might be opening the combo, so as you click off it it's then closing the dropped down combo - perhaps you could post your code for us to look at? The other option is that you have it set to double click instead of single click.

            I don't have ADHD, I have ADOS... Attention Deficit oooh SHINY!! Booger Mobile (n) - A bright green 1964 Ford Falcon - our entry into the Camp Quality esCarpade!! Do something wonderful - make a donation to Camp Quality today!!

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

            [Message Deleted]

            M 1 Reply Last reply
            0
            • M mdrizwan_1

              [Message Deleted]

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

              Hi Damian s Thanks for Ur reply >The code Snippets is as follows This is Included in Module ........ DROP-DOWN THE COMBO BOX NAMED CmbSlNo..... Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _ (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Public Const CB_SHOWDROPDOWN = &H14F This code is on Edit Button to Drop-down the List contains Auto....... Call SendMessage(CmbSlNo.hWnd, CB_SHOWDROPDOWN, True, ByVal 0) 'API FUNCTION IS CALLING FOR DROPDOWN THE COMBO BOX NAMED cmbsLNO Now when i click on Edit button the list is drop-down and the cursor is in the combo first list index . But if i click Exit at this instants it Set the combo listindex to 0 on First click Then on next click it Exits the form. But i wanna do the same on single click.Plz help if can.... or any other suggestion? Plz Help its urgent?????? Rizwan

              modified on Thursday, August 20, 2009 4:31 AM

              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