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

VulpesRank #55 · 29.2K reputationPosted Jun 3, 2011, 2:06 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Jun 3, 2011, 2:08 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jun 3, 2011, 2:11 AM EDT
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 NairRank #92 · 22.8K reputationPosted Jun 3, 2011, 2:19 AM EDT
Kanhialal kkRank #8,477 · 221 reputationPosted Jun 3, 2011, 7:22 AM EDT
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.
VulpesRank #55 · 29.2K reputationPosted Jun 3, 2011, 7:46 AM EDT