Click here to Skip to main content
15,915,600 members
Home / Discussions / C#
   

C#

 
GeneralRe: TextBox Pin
Heath Stewart22-Dec-04 12:11
protectorHeath Stewart22-Dec-04 12:11 
GeneralRe: TextBox Pin
Aviv Halperin22-Dec-04 12:17
Aviv Halperin22-Dec-04 12:17 
GeneralRe: TextBox Pin
Heath Stewart22-Dec-04 12:40
protectorHeath Stewart22-Dec-04 12:40 
GeneralRe: TextBox Pin
Aviv Halperin22-Dec-04 12:20
Aviv Halperin22-Dec-04 12:20 
GeneralRe: TextBox Pin
Skynyrd22-Dec-04 12:29
Skynyrd22-Dec-04 12:29 
GeneralRe: TextBox Pin
Aviv Halperin22-Dec-04 12:39
Aviv Halperin22-Dec-04 12:39 
GeneralRe: TextBox Pin
Skynyrd22-Dec-04 12:46
Skynyrd22-Dec-04 12:46 
GeneralRe: TextBox Pin
Heath Stewart22-Dec-04 12:50
protectorHeath Stewart22-Dec-04 12:50 
The SelectedText, SelectionStart, and SelectionLength properties are defined for TextBoxBase (from which TextBox derives) for the .NET CF, so you can mimic what AppendText does.

What does it do? Use ildasm.exe if you know how to read IL or get a decompiler like .NET Reflector and find out.

Basically, you're looking for something like this:
public class MyTextBox : TextBox
{
  public void AppendText(string text)
  {
    int len = TextLength;
    SelectionStart = len;
    SelectionLength = len;
    SelectedText = text;
  }
}


This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: TextBox Pin
Aviv Halperin22-Dec-04 13:13
Aviv Halperin22-Dec-04 13:13 
GeneralRe: TextBox Pin
Heath Stewart22-Dec-04 13:18
protectorHeath Stewart22-Dec-04 13:18 
GeneralRe: TextBox Pin
Aviv Halperin22-Dec-04 13:20
Aviv Halperin22-Dec-04 13:20 
GeneralRe: TextBox Pin
Matt Gerrans22-Dec-04 12:31
Matt Gerrans22-Dec-04 12:31 
GeneralRe: TextBox Pin
Aviv Halperin22-Dec-04 12:41
Aviv Halperin22-Dec-04 12:41 
GeneralRe: TextBox Pin
Heath Stewart22-Dec-04 12:43
protectorHeath Stewart22-Dec-04 12:43 
GeneralRe: TextBox Pin
Aviv Halperin22-Dec-04 12:49
Aviv Halperin22-Dec-04 12:49 
GeneralRe: TextBox Pin
Aviv Halperin22-Dec-04 12:51
Aviv Halperin22-Dec-04 12:51 
GeneralRe: TextBox Pin
Skynyrd22-Dec-04 12:56
Skynyrd22-Dec-04 12:56 
GeneralRe: TextBox Pin
Aviv Halperin22-Dec-04 13:04
Aviv Halperin22-Dec-04 13:04 
GeneralFile.Copy question Pin
Marius Schumann22-Dec-04 9:39
Marius Schumann22-Dec-04 9:39 
GeneralRe: File.Copy question Pin
Heath Stewart22-Dec-04 12:06
protectorHeath Stewart22-Dec-04 12:06 
GeneralRe: File.Copy question Pin
Salil Khedkar22-Dec-04 19:32
Salil Khedkar22-Dec-04 19:32 
GeneraltextBox vs. richtextBox and savefiledialog controls Pin
Pyro Joe22-Dec-04 8:42
Pyro Joe22-Dec-04 8:42 
GeneralRe: textBox vs. richtextBox and savefiledialog controls Pin
Dave Kreskowiak22-Dec-04 9:53
mveDave Kreskowiak22-Dec-04 9:53 
Generalgetting html stored in xml using XmlTextReader() Pin
HudsonKane22-Dec-04 8:23
HudsonKane22-Dec-04 8:23 
GeneralPassing data from ASPX to ASCX Pin
Tony Nero22-Dec-04 8:22
Tony Nero22-Dec-04 8: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.