Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: Encrypting String Pin
V.22-Jan-15 22:39
professionalV.22-Jan-15 22:39 
AnswerRe: Encrypting String Pin
Eddy Vluggen23-Jan-15 0:33
professionalEddy Vluggen23-Jan-15 0:33 
AnswerRe: Encrypting String Pin
GuyThiebaut23-Jan-15 0:43
professionalGuyThiebaut23-Jan-15 0:43 
QuestionHow can I clear a file's content? Pin
kidult22-Jan-15 18:10
kidult22-Jan-15 18:10 
AnswerRe: How can I clear a file's content? Pin
Wendelius22-Jan-15 18:19
mentorWendelius22-Jan-15 18:19 
GeneralRe: How can I clear a file's content? Pin
kidult22-Jan-15 21:06
kidult22-Jan-15 21:06 
GeneralRe: How can I clear a file's content? Pin
Wendelius23-Jan-15 2:42
mentorWendelius23-Jan-15 2:42 
Questionc# validation Pin
Member 1135438622-Jan-15 13:51
Member 1135438622-Jan-15 13:51 
validation sending me loopy this is the code but it returns any string i need to set the string value (Length) to >= to 3 and only monday to friday am I reaching ??

C#
specDay = Microsoft.VisualBasic.Interaction.InputBox("What Day Would You Like To Check:");// to find specific toys made on a specific day
 string sPattern = "^(Mon|(T(ues|hurs))|Fri)(day|\\.)?$|Wed(\\.|nesday)?$|T((ue?)|(hu?r?))\\.?$";//checks the entered data is a viable string(\\Length{3}?$)

 int result = Array.BinarySearch(dayNameArray, specDay, StringComparer.OrdinalIgnoreCase);
 
     if (System.Text.RegularExpressions.Regex.IsMatch(specDay, sPattern, System.Text.RegularExpressions.RegexOptions.IgnoreCase))
     {
 
         for (int dayCounter = 0; dayCounter < dayNameArray.GetLength(0); dayCounter++)//start loop number daycounter at 0 ,day counter of the length of array which will be 4(0-4) then add one to the count
         {
             if (dayNameArray[dayCounter] == specDay) // Compare specDay to the current index of the dayNameArray.If it finds a match
             {
                 Days = dayCounter;//finds  the count and declares it as an int(eg. monday matches 0)
             }
         }
 
 }
 else
 {
     MessageBox.Show("Not A valid Day Of Week");
     specDay = Microsoft.VisualBasic.Interaction.InputBox("What Day Would You Like To Check:");
 }


modified 22-Jan-15 20:33pm.

GeneralRe: c# validation Pin
PIEBALDconsult22-Jan-15 14:33
mvePIEBALDconsult22-Jan-15 14:33 
GeneralRe: c# validation Pin
Member 1135438622-Jan-15 17:17
Member 1135438622-Jan-15 17:17 
AnswerRe: c# validation Pin
Mycroft Holmes22-Jan-15 15:51
professionalMycroft Holmes22-Jan-15 15:51 
GeneralRe: c# validation Pin
Member 1135438622-Jan-15 17:15
Member 1135438622-Jan-15 17:15 
GeneralRe: c# validation Pin
PIEBALDconsult22-Jan-15 18:42
mvePIEBALDconsult22-Jan-15 18:42 
GeneralRe: c# validation Pin
Member 108362351-Feb-15 20:05
Member 108362351-Feb-15 20:05 
QuestionGiving a property a value when it lacks set-method? Pin
Member 1139440322-Jan-15 2:09
Member 1139440322-Jan-15 2:09 
AnswerRe: Giving a property a value when it lacks set-method? Pin
OriginalGriff22-Jan-15 2:51
mveOriginalGriff22-Jan-15 2:51 
GeneralRe: Giving a property a value when it lacks set-method? Pin
Member 1139440322-Jan-15 3:55
Member 1139440322-Jan-15 3:55 
GeneralRe: Giving a property a value when it lacks set-method? Pin
Richard Deeming22-Jan-15 4:25
mveRichard Deeming22-Jan-15 4:25 
GeneralRe: Giving a property a value when it lacks set-method? Pin
Member 1139440324-Jan-15 3:29
Member 1139440324-Jan-15 3:29 
GeneralRe: Giving a property a value when it lacks set-method? Pin
BillWoodruff22-Jan-15 5:11
professionalBillWoodruff22-Jan-15 5:11 
Questioni want code for read data from hyperterminal Pin
Member 1135275122-Jan-15 1:09
Member 1135275122-Jan-15 1:09 
AnswerRe: i want code for read data from hyperterminal Pin
Manfred Rudolf Bihy22-Jan-15 1:33
professionalManfred Rudolf Bihy22-Jan-15 1:33 
AnswerRe: i want code for read data from hyperterminal Pin
OriginalGriff22-Jan-15 2:53
mveOriginalGriff22-Jan-15 2:53 
QuestionDefragmentor in c# Pin
Anoop Mishra21-Jan-15 23:42
Anoop Mishra21-Jan-15 23:42 
AnswerRe: Defragmentor in c# Pin
harold aptroot21-Jan-15 23:46
harold aptroot21-Jan-15 23:46 

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.