How can i Disable a Textbox or Combobox in Runtime

  • Thread starter Karthikeyan Periasamy
  • Start date
K

Karthikeyan Periasamy

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..
 
Top