Click here to Skip to main content
15,906,106 members
Home / Discussions / C#
   

C#

 
GeneralRe: switch statemeent. Am I missing someting Pin
PIEBALDconsult19-Jun-08 15:15
mvePIEBALDconsult19-Jun-08 15:15 
GeneralRe: switch statemeent. Am I missing someting Pin
Ed.Poore19-Jun-08 21:21
Ed.Poore19-Jun-08 21:21 
AnswerRe: switch statemeent. Am I missing someting Pin
Guffa21-Jun-08 6:35
Guffa21-Jun-08 6:35 
GeneralRe: switch statemeent. Am I missing someting Pin
TheFoZ19-Jun-08 22:13
TheFoZ19-Jun-08 22:13 
GeneralRe: switch statemeent. Am I missing someting Pin
Ed.Poore19-Jun-08 22:36
Ed.Poore19-Jun-08 22:36 
GeneralRe: switch statemeent. Am I missing someting Pin
Guffa19-Jun-08 14:15
Guffa19-Jun-08 14:15 
GeneralRe: switch statemeent. Am I missing someting Pin
Mark Churchill19-Jun-08 18:53
Mark Churchill19-Jun-08 18:53 
QuestionTele-type screen saver Pin
Elvis_Pretzelator19-Jun-08 9:32
Elvis_Pretzelator19-Jun-08 9:32 
So I've been trying to create a screen saver where the contents of a file will be read and displayed on the screen - but not having much success.

I want the text to appear one character at a time (like a typewriter) but the problem is the flicker! I've tried labels, multi-line textboxes and richtextboxes and they all have ridiculous amounts of flicker. Labels are better if I don't set the FlatStyle to System but then I can't see the tabs, so I don't want that.

Another issue is I'm not able to scroll along with the text as it progresses down the control. I tried the ScrollToCaret trick and that works but first it has to jump to the start of the control which causes another undesirable effect.

Here's the method that does the typewriter thing:

public void TW()
{
try
{
char[] myChars = msg.ToCharArray();
lbl.Text = "";
for(int i = 0; i < myChars.Length; i++)
{
lbl.Text += myChars[i].ToString();
System.Threading.Thread.Sleep(0);
}

}
catch(Exception)
{

}
}
AnswerRe: Tele-type screen saver Pin
Spacix One19-Jun-08 9:42
Spacix One19-Jun-08 9:42 
GeneralRe: Tele-type screen saver Pin
Elvis_Pretzelator19-Jun-08 9:47
Elvis_Pretzelator19-Jun-08 9:47 
GeneralRe: Tele-type screen saver Pin
Spacix One19-Jun-08 10:19
Spacix One19-Jun-08 10:19 
GeneralRe: Tele-type screen saver Pin
Elvis_Pretzelator25-Jun-08 10:02
Elvis_Pretzelator25-Jun-08 10:02 
GeneralRe: Tele-type screen saver Pin
Elvis_Pretzelator26-Jun-08 5:39
Elvis_Pretzelator26-Jun-08 5:39 
QuestionC# Thread termination issue Pin
Merlock219-Jun-08 8:39
Merlock219-Jun-08 8:39 
QuestionHelp: I'm new to C#: I want to make a global function Pin
TheFoZ19-Jun-08 8:27
TheFoZ19-Jun-08 8:27 
AnswerRe: Help: I'm new to C#: I want to make a global function Pin
Judah Gabriel Himango19-Jun-08 8:56
sponsorJudah Gabriel Himango19-Jun-08 8:56 
GeneralRe: Help: I'm new to C#: I want to make a global function Pin
TheFoZ19-Jun-08 9:03
TheFoZ19-Jun-08 9:03 
GeneralRe: Help: I'm new to C#: I want to make a global function Pin
Guffa19-Jun-08 11:20
Guffa19-Jun-08 11:20 
QuestionRadioButtonList Pin
john3419-Jun-08 7:59
john3419-Jun-08 7:59 
QuestionBuilding a System.Uri with a query string Pin
Spacix One19-Jun-08 7:40
Spacix One19-Jun-08 7:40 
AnswerRe: Building a System.Uri with a query string Pin
Judah Gabriel Himango19-Jun-08 8:24
sponsorJudah Gabriel Himango19-Jun-08 8:24 
GeneralRe: Building a System.Uri with a query string Pin
Spacix One19-Jun-08 9:06
Spacix One19-Jun-08 9:06 
GeneralRe: Building a System.Uri with a query string Pin
Judah Gabriel Himango19-Jun-08 11:05
sponsorJudah Gabriel Himango19-Jun-08 11:05 
GeneralRe: Building a System.Uri with a query string Pin
Spacix One19-Jun-08 13:00
Spacix One19-Jun-08 13:00 
QuestionOver ride GetReaderFromMessage method Pin
Toms Edison19-Jun-08 7:23
Toms Edison19-Jun-08 7:23 

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.