Toolstripbutton not validating textbox.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priyamtheone
    New Member
    • Sep 2007
    • 88

    Toolstripbutton not validating textbox.

    I have a textbox, a standard button and a toolstrip containing a couple of buttons. In the validating event of the textbox i coded to check whether it is blank.
    If yes then it shows a message 'Enter Value'. When the standard button is clicked while the textbox is empty, it's validating properly and showing the message but when the toolstripbutton is clicked it's not not validating the textbox and no message is being
    shown. It seems that I gotto write the validation code explicitly in the toolstripbutton _click event which is too troublesome when there are multiple textboxes
    and toolstripbutton s on a single form. What I want to know is whether the textbox_validat ing can be fired while the toolstripbutton is clicked?
    Handling toolstrips is really a headache.
    Please help. I'm badly in need of it. Regards.
Working...