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 2 2344
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***@discussi ons.microsoft.c om> wrote in message
news:38******** *************** ***********@mic rosoft.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
What about RichTextBox.Scr ollToCaret()
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 )? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
implementation one only has to change a few lines, possibly just the
one line above. Thus the code becomes more flexible.
Is it right to say that there is no way to do this in PHP? I've taken
|
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 as:
- = \ ; ' , . /
I am trying to grab the character by using VkKeyScan( '=' ). If I use
either VK_OEM_2 or VK_COMMA, they are not recognized. If I pass their
value as the input it simulates other input (opening different
applications as it...
|
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 simulation.
|
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 subform that is a list of, say, 2,000
people's names. The first name is "Aardvark, John", and the last name
is "Zero, James".
Instead of scrolling, the user types "S" and is jumped to "Sammons".
Then, on the next keystroke as they type "m", it...
|
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
| |
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 key-stroke event from the DTE????
ThanX
Nadav.
|
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 this purpose?
A code snippet will really help.
Thanks in advance
Omkar
|
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.
Thanks
C Novice.
|
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 ?
|
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 character is now a shape, but it will not let me apply a stroke to the text.
Any help would be much appreciated.
Thanks,
Greg
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |