Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
AnswerRe: Virus Pin
lost in transition 5-Jan-07 4:06
lost in transition 5-Jan-07 4:06 
Questionend of line character Y position Pin
netJP12L4-Jan-07 11:15
netJP12L4-Jan-07 11:15 
AnswerRe: end of line character Y position Pin
Christian Graus4-Jan-07 11:30
protectorChristian Graus4-Jan-07 11:30 
QuestionEmbedded Progressbar Problem Pin
slugonamission4-Jan-07 10:28
slugonamission4-Jan-07 10:28 
AnswerRe: Embedded Progressbar Problem Pin
Judah Gabriel Himango4-Jan-07 11:32
sponsorJudah Gabriel Himango4-Jan-07 11:32 
QuestionASCII Code Pin
CodeItWell4-Jan-07 10:10
CodeItWell4-Jan-07 10:10 
AnswerRe: ASCII Code [modified] Pin
Nader Elshehabi4-Jan-07 10:33
Nader Elshehabi4-Jan-07 10:33 
AnswerRe: ASCII Code Pin
slugonamission4-Jan-07 10:38
slugonamission4-Jan-07 10:38 
You would just need to use the "TextChanged" event of the textbox, then if the entered number(s) fall within the range for an ASCII character, cast the integer to char.

Something like this would work.

private void textBox1_TextChanged(object sender, EventArgs e)
        {
            textBox2.Text = string.Empty;
            
            string text = string.Empty;

            string[] chars = textBox1.Text.Split(' ');

            foreach (string str in chars)
            {
                //First, convert it to int
                if (str.Length > 0)
                {
                    int num = Convert.ToInt32(str);
                    textBox2.Text += (char)num + " ";
                }
            }
        }

GeneralRe: ASCII Code Pin
CodeItWell4-Jan-07 11:04
CodeItWell4-Jan-07 11:04 
GeneralRe: ASCII Code Pin
Christian Graus4-Jan-07 14:27
protectorChristian Graus4-Jan-07 14:27 
Questionhow to sent the cursor from one textbox to another textbox by pressing enter key(in vb we may use keypress event) Pin
zelane4-Jan-07 8:15
zelane4-Jan-07 8:15 
AnswerRe: how to sent the cursor from one textbox to another textbox by pressing enter key(in vb we may use keypress event) Pin
Nader Elshehabi4-Jan-07 8:20
Nader Elshehabi4-Jan-07 8:20 
GeneralRe: how to sent the cursor from one textbox to another textbox by pressing enter key(in vb we may use keypress event) Pin
zelane4-Jan-07 8:40
zelane4-Jan-07 8:40 
GeneralRe: how to sent the cursor from one textbox to another textbox by pressing enter key(in vb we may use keypress event) Pin
Nader Elshehabi4-Jan-07 8:44
Nader Elshehabi4-Jan-07 8:44 
GeneralRe: how to sent the cursor from one textbox to another textbox by pressing enter key(in vb we may use keypress event) Pin
gnadeem4-Jan-07 8:52
gnadeem4-Jan-07 8:52 
Questionproblem with progressbar Pin
suck1234-Jan-07 8:07
suck1234-Jan-07 8:07 
AnswerRe: problem with progressbar Pin
Nader Elshehabi4-Jan-07 8:18
Nader Elshehabi4-Jan-07 8:18 
QuestionADO.NET help, editing data in a database Pin
Blekk4-Jan-07 7:59
Blekk4-Jan-07 7:59 
AnswerRe: ADO.NET help, editing data in a database Pin
Nader Elshehabi4-Jan-07 8:25
Nader Elshehabi4-Jan-07 8:25 
AnswerRe: ADO.NET help, editing data in a database Pin
led mike4-Jan-07 8:26
led mike4-Jan-07 8:26 
QuestionMagnify function Pin
Gywox4-Jan-07 7:26
Gywox4-Jan-07 7:26 
AnswerRe: Magnify function Pin
Nader Elshehabi4-Jan-07 7:50
Nader Elshehabi4-Jan-07 7:50 
QuestionStarting WMP Control from System.IO.Stream Pin
EddieRich4-Jan-07 7:15
EddieRich4-Jan-07 7:15 
AnswerRe: Starting WMP Control from System.IO.Stream Pin
Judah Gabriel Himango4-Jan-07 7:34
sponsorJudah Gabriel Himango4-Jan-07 7:34 
QuestionUnwanted changes to designer file Pin
ndoran4-Jan-07 6:22
ndoran4-Jan-07 6:22 

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.