473,387 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Simulating a key stroke

Hi,

I am using a rich-edit control, I want the control to adjust so any new text
added to the control will always be shown ( similar to the way VS.NET output
pane works ), in other words: any time a new text is added to the control I
want the control to manually roll down so the added text would always be
shown, achieving that manually require me to press CTRL + END each time I
want to see the last text added, I want to simulate the CTRL + END click, how
can I do that using C#? what is the C# equivalent to the Win32
Post/SendMessage? OR is there a simpler solution to achive this? what is the
best way of causing a rich-edit control to roll to it's last page ( CTRL +
END )?
--
Nadav
http://www.ddevel.com
Nov 16 '05 #1
2 2333
You can always override the scroll messages HScroll, and VScroll, or take
ScrollBars property of RichTextBox control or if it is in MFC still it is
possible, to override the scroll messages.

"Nadav" <Na***@discussions.microsoft.com> wrote in message
news:38**********************************@microsof t.com...
Hi,

I am using a rich-edit control, I want the control to adjust so any new text added to the control will always be shown ( similar to the way VS.NET output pane works ), in other words: any time a new text is added to the control I want the control to manually roll down so the added text would always be
shown, achieving that manually require me to press CTRL + END each time I
want to see the last text added, I want to simulate the CTRL + END click, how can I do that using C#? what is the C# equivalent to the Win32
Post/SendMessage? OR is there a simpler solution to achive this? what is the best way of causing a rich-edit control to roll to it's last page ( CTRL +
END )?
--
Nadav
http://www.ddevel.com

Nov 16 '05 #2
What about RichTextBox.ScrollToCaret()

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
Nadav wrote:
Hi,

I am using a rich-edit control, I want the control to adjust so any new text
added to the control will always be shown ( similar to the way VS.NET output
pane works ), in other words: any time a new text is added to the control I
want the control to manually roll down so the added text would always be
shown, achieving that manually require me to press CTRL + END each time I
want to see the last text added, I want to simulate the CTRL + END click, how
can I do that using C#? what is the C# equivalent to the Win32
Post/SendMessage? OR is there a simpler solution to achive this? what is the
best way of causing a rich-edit control to roll to it's last page ( CTRL +
END )?

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: lawrence | last post by:
In Java one is supposed to upcast an object to its interface whenever appropriate: MyInterface customers = new MySpecificClass(); The idea is that if later one wants to change the specific...
1
by: Barb | last post by:
I'm simulating keyboard input in Visual C++ using the SendInput function. It seems to work fine for all characters (A-Z, 0-9). I am however having real problems trying to read other characters such...
3
by: jimif_fr | last post by:
How is it possible to simulate the keyboard entries (and the mouse events) of one program, from another program. The first program is not written for this purpose and is a not aware of the...
8
by: PeteCresswell | last post by:
I'm looking for some code that makes a list presented in a subform autoscroll in response to the user typing - like a combo box dropdown or a regular ListBox does. I.e. The user is looking at...
6
by: DS | last post by:
Is there a key stroke that you can use to copy the previous record into the new record? This is in Datasheet view. Thanks DS
0
by: Nadav | last post by:
Hi, I am writing a VS.NET AddIn, I wish to get key-stroke events from the IDE e.g. F5, CTRL+F2, ... I didn't find any method/event that provide this kind of functionality... How can I get...
0
by: Omkar Mate | last post by:
I am developing a Win32 console application (VS.NET, VC++) in which I have to demonstrate the API - "WaitForSingleObject". I have to wait on some key stroke "event". Which event should I use for...
4
by: one.creepy | last post by:
What would be the keyboard stroke for EOF? while((c=getchar())!=EOF) printf("%c",c); what would cause the program to come out of the while loop?I am using the compiler that comes with SDK. ...
4
by: giannis | last post by:
How can i bind a keyboard stroke to a form for a specific keyboard key and write code for this event ?
7
gregerly
by: gregerly | last post by:
Hello, I'm just starting to play around with Flash, and I'm wondering how I can apply a stroke color to fonts in flash cs3? I've tried breaking the text apart, then breaking apart again (so each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.