ComboBox Probs????
-
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
-
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
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/
-
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
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!!
-
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/
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
-
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!!
[Message Deleted]
-
[Message Deleted]
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?????? Rizwanmodified on Thursday, August 20, 2009 4:31 AM