Error Provider Control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sbandalli
    New Member
    • Feb 2009
    • 53

    Error Provider Control

    Hello All,

    I am trying to drag and drop an errorprovider control to my Winform application next to the textbox1, But when I drag and drop it sits on the bottom of my form1.cs[Design]. How do I make it to drag next to the textbox1 and also error proivder should display message (eg: The category name should be entered) when the user points to it.How do I do this?? ( I am using VS 2008)

    Thank You all....
  • nukefusion
    Recognized Expert New Member
    • Mar 2008
    • 221

    #2
    The error provider control derives from component, which is why it sits at the bottom of the designer, rather than on your form.

    To get a message to display next to a control you will have to write some code using the SetError method. There is some good example code here

    Comment

    Working...