hi..
I am using visual basic component in C#, now I want to set error provider message when input length is greater that four digits..
string str;
str = Interaction.InputBox("Please Enter Invoice No.", "Measurement Info", "", 260, 0xeb).Trim();
if (str.Length > 4)
{
// errorProvider1.SetError(str.ToString(), "Values is Greater");
}
please help me..
Loading
VulpesPosted Jun 3, 2011, 11:46 AM
Kanhialal kkPosted Jun 3, 2011, 11:22 AM
thanks sir
But my requirement is some thing different.. as I click on button than
Interaction.InputBox("msg"+box);
will appear and no doubt it appears but now if i put more than 4 digits in the box than set the error on that box of Interaction.InputBox(); by using visual studio component.
Suthish NairPosted Jun 3, 2011, 6:19 AM
VulpesPosted Jun 3, 2011, 6:11 AM
It's normally used with textboxes and the like to indicate that the input is wrong.
Check out the MSDN docs (http://msdn.microsoft.com/en-us/library/system.windows.forms.errorprovider.aspx).
Suthish NairPosted Jun 3, 2011, 6:08 AM
VulpesPosted Jun 3, 2011, 6:06 AM