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

C#

 
GeneralRe: suspending layout, useragents, and creating shortcuts... Pin
dkarlton14-Jan-05 14:44
dkarlton14-Jan-05 14:44 
GeneralRe: suspending layout, useragents, and creating shortcuts... Pin
dkarlton29-Mar-05 5:14
dkarlton29-Mar-05 5:14 
GeneralNo ToolBarButton images in runtime Pin
Skynyrd23-Dec-04 13:30
Skynyrd23-Dec-04 13:30 
GeneralRe: No ToolBarButton images in runtime Pin
Heath Stewart23-Dec-04 20:49
protectorHeath Stewart23-Dec-04 20:49 
GeneralRe: No ToolBarButton images in runtime Pin
Skynyrd24-Dec-04 0:54
Skynyrd24-Dec-04 0:54 
GeneralSendMessage issue Pin
Aviv Halperin23-Dec-04 10:32
Aviv Halperin23-Dec-04 10:32 
GeneralRe: SendMessage issue Pin
Matt Gerrans23-Dec-04 11:30
Matt Gerrans23-Dec-04 11:30 
GeneralRe: SendMessage issue Pin
Aviv Halperin23-Dec-04 13:12
Aviv Halperin23-Dec-04 13:12 
Thanks for the answer.

I tried PostMessage as well. It does not work.
I do not do it in an event handler of a menu.

My goal is to create a more robust editor then TextBox(that’s all there is in the .net CF, no RichTextBox). Therefore I build an extended TextBox with cut,copy,paste and more.

My other problem is that when I try to add text programmatically:
int len = textBoxTerminal.Text.Length;
textBoxTerminal.SelectionStart = len;
textBoxTerminal.SelectionLength = len;
textBoxTerminal.SelectedText = (string)StringToAdd;

the caret always positions itself in the beginning of the TextBox's Text.
I can reposition it to the end and scroll, but this causes the TextBox to flicker. I thought PostMessage will help solving this, but I cannot test it for the Since PostMesage does not work for me.

Hope you have an answer for this...

Thanks.


avivhal
GeneralRe: SendMessage issue Pin
Heath Stewart23-Dec-04 20:57
protectorHeath Stewart23-Dec-04 20:57 
GeneralRe: SendMessage issue Pin
Aviv Halperin24-Dec-04 4:02
Aviv Halperin24-Dec-04 4:02 
GeneralRe: SendMessage issue Pin
Heath Stewart27-Dec-04 10:12
protectorHeath Stewart27-Dec-04 10:12 
GeneralRe: SendMessage issue Pin
Aviv Halperin27-Dec-04 20:41
Aviv Halperin27-Dec-04 20:41 
GeneralRe: SendMessage issue Pin
Heath Stewart28-Dec-04 5:01
protectorHeath Stewart28-Dec-04 5:01 
GeneralPrinting RichText text and image Pin
srunion23-Dec-04 9:53
srunion23-Dec-04 9:53 
GeneralRe: Printing RichText text and image Pin
Jay Shankar23-Dec-04 14:20
Jay Shankar23-Dec-04 14:20 
General.NET CF and SendMessage Pin
Aviv Halperin23-Dec-04 9:18
Aviv Halperin23-Dec-04 9:18 
GeneralXP Style problem Pin
Stanciu Vlad23-Dec-04 8:31
Stanciu Vlad23-Dec-04 8:31 
GeneralRe: XP Style problem Pin
Heath Stewart23-Dec-04 9:08
protectorHeath Stewart23-Dec-04 9:08 
GeneralSpellcheck in C#.NET Pin
saptarishi200123-Dec-04 8:26
saptarishi200123-Dec-04 8:26 
GeneralRegex problem Pin
Yaakov Davis23-Dec-04 7:09
Yaakov Davis23-Dec-04 7:09 
GeneralRe: Regex problem Pin
leppie23-Dec-04 7:41
leppie23-Dec-04 7:41 
GeneralRe: Regex problem Pin
Yaakov Davis23-Dec-04 7:56
Yaakov Davis23-Dec-04 7:56 
GeneralRe: Regex problem Pin
TyronX23-Dec-04 8:09
TyronX23-Dec-04 8:09 
GeneralRe: Regex problem Pin
leppie23-Dec-04 8:10
leppie23-Dec-04 8:10 
GeneralRe: Regex problem Pin
Yaakov Davis23-Dec-04 8:50
Yaakov Davis23-Dec-04 8:50 

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.