Click here to Skip to main content
15,915,600 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem with gacutil Pin
sreejith ss nair13-Sep-04 0:40
sreejith ss nair13-Sep-04 0:40 
GeneralThreadStart Pin
sreejith ss nair12-Sep-04 20:14
sreejith ss nair12-Sep-04 20:14 
GeneralRe: ThreadStart Pin
leppie12-Sep-04 21:40
leppie12-Sep-04 21:40 
GeneralRe: ThreadStart Pin
sreejith ss nair12-Sep-04 22:28
sreejith ss nair12-Sep-04 22:28 
GeneralRe: ThreadStart Pin
Dave Kreskowiak13-Sep-04 5:58
mveDave Kreskowiak13-Sep-04 5:58 
GeneralRe: ThreadStart Pin
sreejith ss nair13-Sep-04 18:22
sreejith ss nair13-Sep-04 18:22 
QuestionWhat´s the best way for validating input data? Pin
markdbd12-Sep-04 20:05
markdbd12-Sep-04 20:05 
AnswerRe: What´s the best way for validating input data? Pin
sreejith ss nair12-Sep-04 20:21
sreejith ss nair12-Sep-04 20:21 
hi,

If you are talking about windows application then you have to write custom functions like what you mentioned.

And you can provide ErrorProvider control for interactive error notification.

You can encapsulate your custom error checking here in Validated event of your textbox controls.

eg.

private void TextBox1_Validated(object sender, System.EventArgs e)
{
if(IsValid())
{
nameErrorProvider.SetError(this.TextBox1, "");
}
else
{
// Set the error if the name is not valid.
nameErrorProvider.SetError(this.TextBox1, "Name is required.");
}
}
Wink | ;)

**************************
S r e e j i t h N a i r
**************************
GeneralRe: What´s the best way for validating input data? Pin
markdbd13-Sep-04 19:52
markdbd13-Sep-04 19:52 
General.NET, Reflection and private members Pin
J. Diamond12-Sep-04 17:43
J. Diamond12-Sep-04 17:43 
GeneralRe: .NET, Reflection and private members Pin
Alex Korchemniy12-Sep-04 20:38
Alex Korchemniy12-Sep-04 20:38 
GeneralRe: .NET, Reflection and private members Pin
J. Diamond13-Sep-04 6:49
J. Diamond13-Sep-04 6:49 
GeneralRe: .NET, Reflection and private members Pin
Alex Korchemniy13-Sep-04 6:55
Alex Korchemniy13-Sep-04 6:55 
GeneralRe: .NET, Reflection and private members Pin
J. Diamond13-Sep-04 7:11
J. Diamond13-Sep-04 7:11 
GeneralRe: .NET, Reflection and private members Pin
sreejith ss nair12-Sep-04 20:44
sreejith ss nair12-Sep-04 20:44 
QuestionWorking with BrowseFolderDialog flawed? Pin
LongRange.Shooter12-Sep-04 15:39
LongRange.Shooter12-Sep-04 15:39 
AnswerRe: Working with BrowseFolderDialog flawed? Pin
Stefan Troschuetz13-Sep-04 0:25
Stefan Troschuetz13-Sep-04 0:25 
Generali see why C# SHOULD have required to catch exceptions now Pin
vista2712-Sep-04 12:00
vista2712-Sep-04 12:00 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Colin Angus Mackay12-Sep-04 13:52
Colin Angus Mackay12-Sep-04 13:52 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Alex Korchemniy12-Sep-04 20:29
Alex Korchemniy12-Sep-04 20:29 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Colin Angus Mackay12-Sep-04 22:20
Colin Angus Mackay12-Sep-04 22:20 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
User 12301612-Sep-04 22:38
User 12301612-Sep-04 22:38 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Christian Graus12-Sep-04 13:52
protectorChristian Graus12-Sep-04 13:52 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Nicholas Cardi12-Sep-04 13:57
Nicholas Cardi12-Sep-04 13:57 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Salil Khedkar13-Sep-04 1:26
Salil Khedkar13-Sep-04 1:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.