Click here to Skip to main content
15,900,818 members
Home / Discussions / C#
   

C#

 
AnswerRe: Logon/Logout Methods? Pin
Dave Kreskowiak2-Feb-05 1:55
mveDave Kreskowiak2-Feb-05 1:55 
GeneralRe: Logon/Logout Methods? Pin
spacebass50002-Feb-05 2:20
spacebass50002-Feb-05 2:20 
GeneralRe: Logon/Logout Methods? Pin
spacebass50002-Feb-05 3:41
spacebass50002-Feb-05 3:41 
GeneralRe: Logon/Logout Methods? Pin
Dave Kreskowiak2-Feb-05 4:34
mveDave Kreskowiak2-Feb-05 4:34 
GeneralRe: Logon/Logout Methods? Pin
spacebass50002-Feb-05 5:10
spacebass50002-Feb-05 5:10 
GeneralText Editing Pin
dcrewes1-Feb-05 12:02
dcrewes1-Feb-05 12:02 
GeneralRe: Text Editing Pin
Christian Graus1-Feb-05 17:04
protectorChristian Graus1-Feb-05 17:04 
GeneralRe: Text Editing Pin
Robert Rohde1-Feb-05 20:46
Robert Rohde1-Feb-05 20:46 
As Christian said Regular Expressions would be the best way, but if you (like me) dont know how to build those here another straightforward solution:
private static string Format(string text) 
{
	System.Text.StringBuilder b = new System.Text.StringBuilder();
	int counter = 0;
	for (int i = 0; i < text.Length; i++) 
	{
		b.Append(text[i]);
		if (char.IsNumber(text[i])) 
		{
			counter++;
			if (counter == 6) 
			{
				b.Append(' ');
				counter = 0;
			}
		}
	}
	return b.ToString();
}

GeneralDisplay a presentation on TV Pin
SquallBlade1-Feb-05 11:38
SquallBlade1-Feb-05 11:38 
GeneralRe: Display a presentation on TV Pin
Christian Graus1-Feb-05 17:06
protectorChristian Graus1-Feb-05 17:06 
GeneralRe: Display a presentation on TV Pin
SquallBlade1-Feb-05 21:53
SquallBlade1-Feb-05 21:53 
GeneralRe: Display a presentation on TV Pin
Dave Kreskowiak2-Feb-05 1:51
mveDave Kreskowiak2-Feb-05 1:51 
GeneralRe: Display a presentation on TV Pin
SquallBlade2-Feb-05 3:52
SquallBlade2-Feb-05 3:52 
GeneralRe: Display a presentation on TV Pin
Heath Stewart2-Feb-05 6:34
protectorHeath Stewart2-Feb-05 6:34 
GeneralRe: Display a presentation on TV Pin
Christian Graus2-Feb-05 9:03
protectorChristian Graus2-Feb-05 9:03 
Generalsynthesize mouse click Pin
Some Idiot1-Feb-05 11:05
Some Idiot1-Feb-05 11:05 
GeneralRe: synthesize mouse click Pin
Christian Graus1-Feb-05 11:21
protectorChristian Graus1-Feb-05 11:21 
GeneralRe: synthesize mouse click Pin
Heath Stewart1-Feb-05 15:33
protectorHeath Stewart1-Feb-05 15:33 
GeneralRe: synthesize mouse click Pin
Some Idiot2-Feb-05 1:12
Some Idiot2-Feb-05 1:12 
GeneralRe: synthesize mouse click Pin
Heath Stewart2-Feb-05 6:17
protectorHeath Stewart2-Feb-05 6:17 
GeneralRe: synthesize mouse click Pin
Heath Stewart1-Feb-05 15:34
protectorHeath Stewart1-Feb-05 15:34 
Generalmultiple tables binding to a grid Pin
cuah1-Feb-05 10:46
cuah1-Feb-05 10:46 
GeneralRe: multiple tables binding to a grid Pin
Heath Stewart1-Feb-05 15:16
protectorHeath Stewart1-Feb-05 15:16 
GeneralHyperlink Value Pin
myousufq1-Feb-05 10:12
myousufq1-Feb-05 10:12 
GeneralRe: Hyperlink Value Pin
Heath Stewart1-Feb-05 10:20
protectorHeath Stewart1-Feb-05 10:20 

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.