Click here to Skip to main content
15,892,480 members
Home / Discussions / C#
   

C#

 
GeneralRe: Highlighting Text in IE Pin
eliea5-Jan-05 10:30
eliea5-Jan-05 10:30 
QuestionAdd LinkLabel To Richtextbox ? Pin
WDI29-Dec-04 19:50
WDI29-Dec-04 19:50 
AnswerRe: Add LinkLabel To Richtextbox ? Pin
Heath Stewart30-Dec-04 5:49
protectorHeath Stewart30-Dec-04 5:49 
GeneralRe: Add LinkLabel To Richtextbox ? Pin
WDI30-Dec-04 22:57
WDI30-Dec-04 22:57 
GeneralRe: Add LinkLabel To Richtextbox ? Pin
Heath Stewart31-Dec-04 5:57
protectorHeath Stewart31-Dec-04 5:57 
GeneralRe: Add LinkLabel To Richtextbox ? Pin
mav.northwind1-Jan-05 1:14
mav.northwind1-Jan-05 1:14 
GeneralLineScroll Pin
Member 109769929-Dec-04 19:25
Member 109769929-Dec-04 19:25 
GeneralRe: LineScroll Pin
Heath Stewart30-Dec-04 5:42
protectorHeath Stewart30-Dec-04 5:42 
You could implement a similar method using P/Invoke:
public class ExtendedRichTextBox : RichTextBox
{
  // ...
  [DllImport("user32.dll")]
  static extern IntPtr SendMessage(IntPtr hWnd, uint msg,
    IntPtr wParam, IntPtr lParam);
  const uint EM_LINESCOLL 0x00B6;
  public void ScrollToLine(int line)
  {
    IntPtr lParam = new IntPtr(line);
    SendMessage(Handle, EM_LINESCOLL , IntPtr.Zero, lParam);
  }
}
This will not extend past the last line. Read in the Platform SDK about the EM_LINESCROLL message for more information.

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]
Generalextensible fields data schema Pin
ppp00129-Dec-04 19:11
ppp00129-Dec-04 19:11 
GeneralRe: extensible fields data schema Pin
Heath Stewart30-Dec-04 5:45
protectorHeath Stewart30-Dec-04 5:45 
GeneralRe: extensible fields data schema Pin
ppp00130-Dec-04 15:22
ppp00130-Dec-04 15:22 
GeneralRe: extensible fields data schema Pin
Heath Stewart30-Dec-04 19:59
protectorHeath Stewart30-Dec-04 19:59 
GeneralRegional Setting Pin
Kyaw Soe Khaing29-Dec-04 18:48
Kyaw Soe Khaing29-Dec-04 18:48 
GeneralRe: Regional Setting Pin
Paul Watson29-Dec-04 21:42
sitebuilderPaul Watson29-Dec-04 21:42 
Generalsetting a font Pin
Tyrus18229-Dec-04 18:27
Tyrus18229-Dec-04 18:27 
GeneralRe: setting a font Pin
leppie29-Dec-04 23:21
leppie29-Dec-04 23:21 
General.net Remoting Pin
Anil_gupta29-Dec-04 18:21
Anil_gupta29-Dec-04 18:21 
GeneralRe: .net Remoting Pin
leppie29-Dec-04 23:22
leppie29-Dec-04 23:22 
GeneralRe: .net Remoting Pin
Adam Goossens30-Dec-04 1:13
Adam Goossens30-Dec-04 1:13 
GeneralRe: .net Remoting Pin
Adam Goossens30-Dec-04 16:48
Adam Goossens30-Dec-04 16:48 
Generalobject and layers design question Pin
ppp00129-Dec-04 17:50
ppp00129-Dec-04 17:50 
GeneralOverrated Pin
Paul Watson29-Dec-04 21:45
sitebuilderPaul Watson29-Dec-04 21:45 
Generala small doubt ,pls urgent Pin
dhol29-Dec-04 17:12
dhol29-Dec-04 17:12 
GeneralRe: a small doubt ,pls urgent Pin
Paul Watson29-Dec-04 21:52
sitebuilderPaul Watson29-Dec-04 21:52 
GeneralRe: a small doubt ,pls urgent Pin
dhol30-Dec-04 1:42
dhol30-Dec-04 1:42 

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.