Click here to Skip to main content
16,007,779 members
Home / Discussions / C#
   

C#

 
GeneralRe: Combo Box and refresh/reload data Pin
Saamir20-Jun-06 5:16
Saamir20-Jun-06 5:16 
QuestionHow to Count number of specific day Pin
rockxuyenmandem19-Jun-06 7:36
rockxuyenmandem19-Jun-06 7:36 
AnswerRe: How to Count number of specific day Pin
LongRange.Shooter19-Jun-06 7:51
LongRange.Shooter19-Jun-06 7:51 
AnswerRe: How to Count number of specific day Pin
Tom Delany20-Jun-06 4:49
Tom Delany20-Jun-06 4:49 
QuestionAutomating Word to Fill in a Word Template Pin
vnoga19-Jun-06 7:34
vnoga19-Jun-06 7:34 
AnswerRe: Automating Word to Fill in a Word Template Pin
vnoga19-Jun-06 8:14
vnoga19-Jun-06 8:14 
QuestionTextarea - Multiple data submission Pin
edgtr19-Jun-06 5:59
edgtr19-Jun-06 5:59 
AnswerRe: Textarea - Multiple data submission Pin
LongRange.Shooter19-Jun-06 7:58
LongRange.Shooter19-Jun-06 7:58 
edgtr wrote:
I guess I can't use standard array with split function because there's no numbers declared.


Not sure what you mean by that, but yes you would split the text and (in VS2005) that would give you an array of numbers entered. From there you can use array.Length to validate that they have not exceeded the maximum and then a for loop to trim and convert each item into a number.

The only minimum requirement you would have is that the separator must be consistent and it must be entered for between every number.

string[] enteredList = entry.Text.Split(',');
foreach (string number in enteredList)
{
    try
    {
        int value = Convert.ToInt32( number.Trim() );
    }
    catch
    {
        errorMessage.Text += number + " is not a valid number ";
    }
}

Questionclass to be both marked with the serializable attribute and extend MarshalByRefObject [modified] Pin
Kiran Kumar Singani19-Jun-06 3:14
Kiran Kumar Singani19-Jun-06 3:14 
AnswerRe: class to be both marked with the serializable attribute and extend MarshalByRefObject Pin
Josh Smith19-Jun-06 4:03
Josh Smith19-Jun-06 4:03 
QuestionLooking for C# programming practice questions Pin
antoan19-Jun-06 3:04
antoan19-Jun-06 3:04 
AnswerRe: Looking for C# programming practice questions Pin
Josh Smith19-Jun-06 3:30
Josh Smith19-Jun-06 3:30 
AnswerRe: Looking for C# programming practice questions Pin
Colin Angus Mackay19-Jun-06 4:04
Colin Angus Mackay19-Jun-06 4:04 
GeneralRe: Looking for C# programming practice questions Pin
Josh Smith19-Jun-06 4:30
Josh Smith19-Jun-06 4:30 
GeneralRe: Looking for C# programming practice questions Pin
leckey19-Jun-06 5:12
leckey19-Jun-06 5:12 
AnswerRe: Looking for C# programming practice questions Pin
Daniel Persson19-Jun-06 4:25
Daniel Persson19-Jun-06 4:25 
AnswerRe: Looking for C# programming practice questions Pin
Drew McGhie19-Jun-06 7:27
Drew McGhie19-Jun-06 7:27 
Questionhow to delete entries in HKLM of windows registry Pin
YogeshRT19-Jun-06 2:24
YogeshRT19-Jun-06 2:24 
AnswerRe: how to delete entries in HKLM of windows registry Pin
leppie19-Jun-06 2:56
leppie19-Jun-06 2:56 
QuestionScrolling an image Pin
rheia8419-Jun-06 2:08
rheia8419-Jun-06 2:08 
AnswerRe: Scrolling an image Pin
Judah Gabriel Himango19-Jun-06 6:05
sponsorJudah Gabriel Himango19-Jun-06 6:05 
GeneralRe: Scrolling an image Pin
rheia8420-Jun-06 3:52
rheia8420-Jun-06 3:52 
Questiondisplaying row data into textboxes Pin
iramg19-Jun-06 2:03
iramg19-Jun-06 2:03 
AnswerRe: displaying row data into textboxes Pin
rah_sin19-Jun-06 2:11
professionalrah_sin19-Jun-06 2:11 
QuestionDateTimePicker ValueChanged event fires twice Pin
PaulaM19-Jun-06 1:16
PaulaM19-Jun-06 1:16 

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.