Errorprovider in Tabcontrol

Krijn

Newcomer
Joined
Jan 16, 2003
Messages
14
Hello,

Has anyone tried to use the errorprovider in a tabcontrol using columnerrors in datarows ? I think I doesn't work.

Is it because Tabcontrol doesn't implement Icontainercontrol ?

I've created a custom tabcontrol witch implements Icontainercontrol but when I set the property .net gives errors.


Greetings

Krijn
 
Yes,

but the only components that implement icontainercontrol are Form, Usercontrol.

Errorprovider.containercontrol = Tabpage gives following error:

' Tabpage cannot be converted to containercontrol '


Greetings

Krijn
 
Huh.
It never happened to me that I had to set the ContainerControl property manually.

I just dragged to ErrorProvider on to the form an the used. . .
(Phew, sorry try to recall this from heart, no code access ...)

errorprovider.seterror (contol, msg)
 
Hi,

For heiko : i use SetColumnError on the datarow. But you are right: the problem was somewhere else.

I've set databindings manually with something like next line :

textBox1.databindings.add("Text",Me.dataSet1.Table1,"Column_name")

This works.., but not for an errorprovider.

Solution :

Textbox1.databindings.add("Text",Me.dataSet1,"Table1.column_name")


Think there is still work to do for microsoft !

Thanks all

Greetings

Krijn
 
Back
Top