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

C#

 
AnswerRe: Heap in C# Pin
PIEBALDconsult8-Feb-15 17:31
mvePIEBALDconsult8-Feb-15 17:31 
AnswerRe: Heap in C# Pin
Richard MacCutchan8-Feb-15 21:40
mveRichard MacCutchan8-Feb-15 21:40 
AnswerRe: Heap in C# Pin
Jim from Indy9-Feb-15 2:26
Jim from Indy9-Feb-15 2:26 
QuestionC# Sendkeys Tilde (~) Sign does not always get written out? Pin
Linus Agren8-Feb-15 0:08
Linus Agren8-Feb-15 0:08 
QuestionRe: C# Sendkeys Tilde (~) Sign does not always get written out? Pin
Richard MacCutchan8-Feb-15 0:37
mveRichard MacCutchan8-Feb-15 0:37 
AnswerRe: C# Sendkeys Tilde (~) Sign does not always get written out? Pin
Linus Agren8-Feb-15 1:18
Linus Agren8-Feb-15 1:18 
GeneralRe: C# Sendkeys Tilde (~) Sign does not always get written out? Pin
Richard MacCutchan8-Feb-15 1:49
mveRichard MacCutchan8-Feb-15 1:49 
AnswerRe: C# Sendkeys Tilde (~) Sign does not always get written out? Pin
OriginalGriff8-Feb-15 4:16
mveOriginalGriff8-Feb-15 4:16 
I just tried it:
I added two textboxes to a form, and a button.
One textbox I called TText as in your example, the other I called OutText.
I then created a button Click handler:
C#
private void button1_Click(object sender, EventArgs e)
    {
    string T = this.TText.Text;
    T = T.Replace("+", "{+}");
    T = T.Replace("~", "{~} ");

    //statusLabel.Text = "Sending Text...";
    //progressbartimer.Start();
    //await Task.Delay(2000);
    OutText.Focus();
    SendKeys.Send(T);
    }

I run it, and put your data in the TText box:
X: 24+/10~ /<12

When I press the button, my OutText contains:
X: 24+/10~ /<12

As I would expect.

So I have to assume that something in your code is filtering out the tilde before it gets to your display control.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: C# Sendkeys Tilde (~) Sign does not always get written out? Pin
Linus Agren8-Feb-15 18:04
Linus Agren8-Feb-15 18:04 
GeneralRe: C# Sendkeys Tilde (~) Sign does not always get written out? Pin
OriginalGriff8-Feb-15 22:06
mveOriginalGriff8-Feb-15 22:06 
GeneralRe: C# Sendkeys Tilde (~) Sign does not always get written out? Pin
Dave Kreskowiak9-Feb-15 2:22
mveDave Kreskowiak9-Feb-15 2:22 
GeneralRe: C# Sendkeys Tilde (~) Sign does not always get written out? Pin
Linus Agren11-Feb-15 5:41
Linus Agren11-Feb-15 5:41 
GeneralRe: C# Sendkeys Tilde (~) Sign does not always get written out? Pin
Dave Kreskowiak11-Feb-15 15:12
mveDave Kreskowiak11-Feb-15 15:12 
Questionfind a row in `datagridview` then do something with it Pin
propguy7-Feb-15 17:26
propguy7-Feb-15 17:26 
SuggestionRe: find a row in `datagridview` then do something with it Pin
Richard MacCutchan7-Feb-15 22:01
mveRichard MacCutchan7-Feb-15 22:01 
GeneralRe: find a row in `datagridview` then do something with it Pin
propguy8-Feb-15 9:21
propguy8-Feb-15 9:21 
Question<dialog></dialog> and <divc></divc> tag in ASP.Net MVC 4 Pin
mbabumca7-Feb-15 5:54
mbabumca7-Feb-15 5:54 
AnswerRe: <dialog></dialog> and <divc></divc> tag in ASP.Net MVC 4 Pin
Erik Funkenbusch7-Feb-15 14:55
Erik Funkenbusch7-Feb-15 14:55 
QuestionMore Explanation??? Pin
Member 111616256-Feb-15 18:54
Member 111616256-Feb-15 18:54 
AnswerRe: More Explanation??? Pin
Afzaal Ahmad Zeeshan6-Feb-15 20:40
professionalAfzaal Ahmad Zeeshan6-Feb-15 20:40 
AnswerRe: More Explanation??? Pin
OriginalGriff6-Feb-15 21:37
mveOriginalGriff6-Feb-15 21:37 
AnswerRe: More Explanation??? Pin
Richard MacCutchan6-Feb-15 22:27
mveRichard MacCutchan6-Feb-15 22:27 
QuestionLearning for intermediate learner Pin
Mohammed A. Elshawaf6-Feb-15 5:55
Mohammed A. Elshawaf6-Feb-15 5:55 
SuggestionRe: Learning for intermediate learner Pin
Richard MacCutchan6-Feb-15 6:03
mveRichard MacCutchan6-Feb-15 6:03 
AnswerRe: Learning for intermediate learner Pin
Ron Nicholson6-Feb-15 6:52
professionalRon Nicholson6-Feb-15 6:52 

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.