Click to See Complete Forum and Search --> : Is there no solution for this problem ?
Braulio
April 26th, 1999, 04:28 AM
Hi,
How can I do that when the user presses on the "show dropdown box "button of a combobox, check for somethings and avoid to show the dropdown box if something is wrong ?
I have tried with ShowDropDown(FALSE), but with this things don't works, please, any idea ?
Thanks, Bye !
Braulio
M.Anand
April 26th, 1999, 05:07 AM
What is the Como-Box Style ?
M.Anand
Development - Lead ,
Satyam Infoway Limited,
Chennai - 600034
India
Braulio
April 26th, 1999, 05:42 AM
Combo box Style ? -> Simple list box, DropDown List, and editable DropDown list...
And... ???
M.Anand
April 26th, 1999, 05:49 AM
If it is Simple Combo Box then ShowDropDown doesn't work.
See the Styles property of the combo box in the resource
M.Anand
Development - Lead ,
Satyam Infoway Limited,
Chennai - 600034
India
Braulio
April 26th, 1999, 06:03 AM
Thanks but...,
Is not simple list box, is a combo box that makes dropdown when the dropdown button is pressed, and is editable.
The problem is when the user presses the "dropdown" button check for somethings ( for example ask to save datas) and then if this check was failed then cancel the selection proccess ( hide the dropdown box).
How can I do this ?
Thanks, Bye !
Braulio
M.Anand
April 26th, 1999, 06:42 AM
I think it may not be possible for you to hide the Listbox in "OnDropDown" Message since the event has already finished occurring. May be I will try out and let you know.
Can I know why you want to hide the list itself ? May be you can prevent the user from selecting the item after showing the List box.Let me know if you have a query
Anand
M.Anand
Development - Lead ,
Satyam Infoway Limited,
Chennai - 600034
India
Braulio
April 26th, 1999, 07:01 AM
The problem is that I have a list of users in the combo box ( the first user is the "< New User>"), and the user can modify names as he want ( for example to add new users modify on "< New User String>", or to modify the name of one user that his name is "Pepe" the user only has to type on the combo box the new name ( the I keep the rest of the datas ( permissions, ...), but I change the name.
The problem comes when the user press on the "dropdown" button of the combo box, then if the old value was "Pepe", and the new value is "Pep", then when the "Save changes" question appear, the selected name has changed from "Pep" to "Pepe" because the combo box looks for a nearest string...
The problem is if I do the question in the DropDown and the "save" fail, then I would like to show the register that was tried to save...
Buff..., a lot of problems for a silly thing ( you can try just have an item called "Pepe" and modify it to "Pep" and put a break point OnSelEndOk, you will see... ;-) ), I have found one posible solution and is to use a cool combo box, but my boss don't wants it...
By now, I don't know what to do...
Thanks, Bye !
Braulio
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.