Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
QuestionRouteCollection.Ignore doesn't work Pin
Member 1162251320-Apr-15 4:07
Member 1162251320-Apr-15 4:07 
AnswerRe: RouteCollection.Ignore doesn't work Pin
Dave Kreskowiak20-Apr-15 5:32
mveDave Kreskowiak20-Apr-15 5:32 
GeneralRe: RouteCollection.Ignore doesn't work Pin
Member 1162251320-Apr-15 5:42
Member 1162251320-Apr-15 5:42 
GeneralRe: RouteCollection.Ignore doesn't work Pin
Dave Kreskowiak20-Apr-15 9:17
mveDave Kreskowiak20-Apr-15 9:17 
QuestionChange Frame Rate of IP CAM Using C# Pin
Django_Untaken20-Apr-15 3:10
Django_Untaken20-Apr-15 3:10 
AnswerRe: Change Frame Rate of IP CAM Using C# Pin
Richard MacCutchan20-Apr-15 3:37
mveRichard MacCutchan20-Apr-15 3:37 
AnswerRe: Change Frame Rate of IP CAM Using C# Pin
Pete O'Hanlon20-Apr-15 3:42
mvePete O'Hanlon20-Apr-15 3:42 
QuestiontextBox TextChanged method Pin
DPaul199420-Apr-15 0:40
DPaul199420-Apr-15 0:40 
I have a textBox where i want to insert a string in a licence model (fdsf-dfss-fdfd-fdhd). I tried to select first 4 char and when I have 4 chars, is inserted "-". But it starts from the beginning when "-" is inserted after first 4 chars. This is how I tried:
C#
private void textBox4_TextChanged(object sender, EventArgs e)
        {
            for (int i=0;i<=textBox4.Text.Length;i++) 
            {
                while (textBox4.Text.Length == 4)
                {
                    textBox4.Text += "-";
                }
            }
        }

How can I make like after I have 4 chars and "-" is inserted, to be able to continue inserting the text after "-" ?
AnswerRe: textBox TextChanged method Pin
Kenneth Haugland20-Apr-15 0:45
mvaKenneth Haugland20-Apr-15 0:45 
GeneralRe: textBox TextChanged method Pin
DPaul199420-Apr-15 0:56
DPaul199420-Apr-15 0:56 
AnswerRe: textBox TextChanged method Pin
Sascha Lefèvre20-Apr-15 0:48
professionalSascha Lefèvre20-Apr-15 0:48 
GeneralRe: textBox TextChanged method Pin
DPaul199420-Apr-15 0:56
DPaul199420-Apr-15 0:56 
GeneralRe: textBox TextChanged method Pin
Sascha Lefèvre20-Apr-15 1:01
professionalSascha Lefèvre20-Apr-15 1:01 
GeneralRe: textBox TextChanged method Pin
Sascha Lefèvre20-Apr-15 1:19
professionalSascha Lefèvre20-Apr-15 1:19 
GeneralRe: textBox TextChanged method Pin
DPaul199420-Apr-15 3:13
DPaul199420-Apr-15 3:13 
GeneralRe: textBox TextChanged method Pin
Sascha Lefèvre20-Apr-15 3:22
professionalSascha Lefèvre20-Apr-15 3:22 
GeneralRe: textBox TextChanged method Pin
DPaul199420-Apr-15 3:20
DPaul199420-Apr-15 3:20 
GeneralRe: textBox TextChanged method Pin
Sascha Lefèvre20-Apr-15 3:23
professionalSascha Lefèvre20-Apr-15 3:23 
QuestionRe: textBox TextChanged method Pin
Arkadeep De20-Apr-15 0:49
professionalArkadeep De20-Apr-15 0:49 
AnswerRe: textBox TextChanged method Pin
DPaul199420-Apr-15 0:55
DPaul199420-Apr-15 0:55 
GeneralRe: textBox TextChanged method Pin
Arkadeep De20-Apr-15 1:15
professionalArkadeep De20-Apr-15 1:15 
GeneralRe: textBox TextChanged method Pin
Simon_Whale20-Apr-15 3:21
Simon_Whale20-Apr-15 3:21 
QuestionC# Pin
Member 1121840320-Apr-15 0:05
Member 1121840320-Apr-15 0:05 
AnswerRe: C# Pin
Sascha Lefèvre20-Apr-15 0:10
professionalSascha Lefèvre20-Apr-15 0:10 
QuestionBinary tree and BTree are not same Pin
Tridip Bhattacharjee19-Apr-15 23:00
professionalTridip Bhattacharjee19-Apr-15 23:00 

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.