hi all,
Is it possible to set the default focus in cancel button for vbOKCancel to prevent user accidently press enter
thanks
Printable View
hi all,
Is it possible to set the default focus in cancel button for vbOKCancel to prevent user accidently press enter
thanks
hope this link could give u answer
http://www.planetsourcecode.com/URLSEO/vb/scripts/ShowCode!asp/txtCodeId!66704/lngWid!1/anyname.htm
http://groups.google.com/group/micro...5c3651d1dfb462
or
..maybe.. u could try another way.. by creating ur own vbOKCancel msgbox form.
consist of a form, contain two button OK and Cancel.
it will be more flexible i think, since u can customize it by ur own.
hope this gonna help :)
Yes is it pretty easyCode:MsgBox("Are you sure", vbOKCancel + vbDefaultButton2)