Click here to Skip to main content
14,635,475 members
Home » Discussions » C#
   

C#

 
GeneralRe: I want minidump info Pin
Richard MacCutchan16-May-12 21:34
mveRichard MacCutchan16-May-12 21:34 
GeneralRe: I want minidump info Pin
Dave Kreskowiak17-May-12 2:04
mveDave Kreskowiak17-May-12 2:04 
Questionrle or huffman c# Pin
mrx10016-May-12 10:35
Membermrx10016-May-12 10:35 
AnswerRe: rle or huffman c# Pin
Richard Andrew x6416-May-12 17:44
professionalRichard Andrew x6416-May-12 17:44 
Questionabout calculator in c# Pin
hanmantkendre16-May-12 10:32
Memberhanmantkendre16-May-12 10:32 
AnswerRe: about calculator in c# Pin
Dave Kreskowiak16-May-12 12:07
mveDave Kreskowiak16-May-12 12:07 
AnswerRe: about calculator in c# Pin
PIEBALDconsult16-May-12 14:08
professionalPIEBALDconsult16-May-12 14:08 
AnswerRe: about calculator in c# Pin
VJ Reddy16-May-12 17:14
MemberVJ Reddy16-May-12 17:14 
If you want to break the text into two parts on entry of + character then I think the KeyPress event of TextBox can be handled to replace the + character with \n as shown below:
TextBox textBox1 = new TextBox();
textBox1.Multiline=true;
textBox1.Height=100;
textBox1.KeyPress += (s, args) => {
	if (args.KeyChar=='+')
		args.KeyChar= '\n';
};
Controls.Add(textBox1);


If you want to retain + and then break the text into next line then replace
args.KeyChar = '\n'; with SendKeys.Send("{ENTER}");

To run the above code, create a Windows Forms application in C#, place the above code in the Form.Load event handler and run the application.

modified 16-May-12 23:21pm.

AnswerRe: about calculator in c# Pin
Abhinav S16-May-12 19:48
MemberAbhinav S16-May-12 19:48 
QuestionArray of Strings.... Pin
glennPattonWork16-May-12 2:00
professionalglennPattonWork16-May-12 2:00 
AnswerRe: Array of Strings.... Pin
Pete O'Hanlon16-May-12 2:03
subeditorPete O'Hanlon16-May-12 2:03 
GeneralRe: Array of Strings.... Pin
glennPattonWork16-May-12 2:13
professionalglennPattonWork16-May-12 2:13 
GeneralRe: Array of Strings.... Pin
Pete O'Hanlon16-May-12 2:38
subeditorPete O'Hanlon16-May-12 2:38 
GeneralRe: Array of Strings.... Pin
glennPattonWork16-May-12 2:47
professionalglennPattonWork16-May-12 2:47 
GeneralRe: Array of Strings.... Pin
Pete O'Hanlon16-May-12 2:52
subeditorPete O'Hanlon16-May-12 2:52 
GeneralRe: Array of Strings.... Pin
glennPattonWork16-May-12 2:56
professionalglennPattonWork16-May-12 2:56 
GeneralRe: Array of Strings.... Pin
JosephvObrien16-May-12 3:47
MemberJosephvObrien16-May-12 3:47 
QuestionRe: Array of Strings.... Pin
Pete O'Hanlon16-May-12 4:00
subeditorPete O'Hanlon16-May-12 4:00 
GeneralRe: Array of Strings.... Pin
glennPattonWork16-May-12 6:09
professionalglennPattonWork16-May-12 6:09 
GeneralRe: Array of Strings.... Pin
Pete O'Hanlon16-May-12 6:11
subeditorPete O'Hanlon16-May-12 6:11 
GeneralRe: Array of Strings.... Pin
glennPattonWork16-May-12 6:18
professionalglennPattonWork16-May-12 6:18 
GeneralRe: Array of Strings.... Pin
PIEBALDconsult16-May-12 3:17
professionalPIEBALDconsult16-May-12 3:17 
GeneralRe: Array of Strings.... Pin
glennPattonWork16-May-12 3:26
professionalglennPattonWork16-May-12 3:26 
GeneralRe: Array of Strings.... Pin
Pete O'Hanlon16-May-12 3:44
subeditorPete O'Hanlon16-May-12 3:44 
AnswerRe: Array of Strings.... Pin
Luc Pattyn16-May-12 4:04
sitebuilderLuc Pattyn16-May-12 4:04 

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.