How can i Disable a Textbox or Combobox in Runtime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

From a combo box Before_Update Event I want to disable some textbox and combo
box.
I wrote the code Like
Mytxtbox.Enabled = false
Mycombo.Enabled = false
But it is showing a error "You can't disable a control while its having the
focus"

so how can i disable that field?
anybody can help me..?
Thanks in advance..
 
Back
Top