Click here to Skip to main content
16,011,538 members
Home / Discussions / C#
   

C#

 
GeneralXmlNode.Value Property Pin
eggie511-Aug-04 19:33
eggie511-Aug-04 19:33 
GeneralRe: XmlNode.Value Property Pin
ChrisAdams12-Aug-04 0:00
ChrisAdams12-Aug-04 0:00 
GeneralRe: XmlNode.Value Property Pin
eggie512-Aug-04 7:01
eggie512-Aug-04 7:01 
GeneralRe: XmlNode.Value Property Pin
eggie512-Aug-04 7:10
eggie512-Aug-04 7:10 
GeneralRe: XmlNode.Value Property Pin
ChrisAdams12-Aug-04 9:47
ChrisAdams12-Aug-04 9:47 
QuestionHow to manage DB transaction using MTS Pin
yu-yu11-Aug-04 18:19
yu-yu11-Aug-04 18:19 
GeneralScrollBar Woes... Pin
Anonymous11-Aug-04 17:26
Anonymous11-Aug-04 17:26 
GeneralRe: ScrollBar Woes... Pin
Jay Shankar11-Aug-04 21:10
Jay Shankar11-Aug-04 21:10 
Refer the below code

const int SB_VERT = 1; 
 
const int EM_SETSCROLLPOS = 0x0400 + 222; 



[DllImport("user32", CharSet=CharSet.Auto)] 

public static extern bool GetScrollRange(IntPtr hWnd, int nBar, out int lpMinPos, out int lpMaxPos); 



[DllImport("user32", CharSet=CharSet.Auto)] 

public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, POINT lParam); 



[StructLayout(LayoutKind.Sequential)] 

public class POINT 

{ 

  public int x; 

  public int y; 



  public POINT() 

  { 

  } 



  public POINT(int x, int y) 

  { 

       this.x = x; 

       this.y = y; 

  } 

} 



// Example -- scroll the RTB so the bottom of the text is always visible. 

int min, max; 

GetScrollRange(richTextBox1.Handle, SB_VERT, out min, out max); 

SendMessage(richTextBox1.Handle, EM_SETSCROLLPOS, 0, new POINT(0, max - richTextBox1.Height)); 

Questionhow to capture user input value in UserControl Pin
changcn11-Aug-04 17:03
changcn11-Aug-04 17:03 
AnswerRe: how to capture user input value in UserControl Pin
Jay Shankar11-Aug-04 21:34
Jay Shankar11-Aug-04 21:34 
GeneralConvert vb to C# Pin
tzewei11-Aug-04 16:52
tzewei11-Aug-04 16:52 
GeneralRe: Convert vb to C# Pin
changcn11-Aug-04 17:05
changcn11-Aug-04 17:05 
GeneralRe: Convert vb to C# Pin
sreejith ss nair11-Aug-04 17:21
sreejith ss nair11-Aug-04 17:21 
GeneralRe: Convert vb to C# Pin
tzewei11-Aug-04 17:59
tzewei11-Aug-04 17:59 
GeneralLooking for ideas on how dynamically resize controls Pin
Flack11-Aug-04 16:44
Flack11-Aug-04 16:44 
GeneralRe: Looking for ideas on how dynamically resize controls Pin
Jay Shankar11-Aug-04 21:52
Jay Shankar11-Aug-04 21:52 
QuestionProgramatically browsing a website and keeping a session id? Pin
Carl Mercier11-Aug-04 16:13
Carl Mercier11-Aug-04 16:13 
AnswerRe: Programatically browsing a website and keeping a session id? Pin
Armand du Plessis11-Aug-04 19:45
Armand du Plessis11-Aug-04 19:45 
GeneralRe: Programatically browsing a website and keeping a session id? Pin
Carl Mercier12-Aug-04 3:51
Carl Mercier12-Aug-04 3:51 
QuestionLocalized name of user groups? Pin
Juan Miguel Venturello11-Aug-04 13:58
Juan Miguel Venturello11-Aug-04 13:58 
QuestionConvert -> Long Integer to Char?? Pin
dennis yi11-Aug-04 12:46
dennis yi11-Aug-04 12:46 
AnswerRe: Convert -> Long Integer to Char?? Pin
Werdna11-Aug-04 13:36
Werdna11-Aug-04 13:36 
GeneralRe: Convert -> Long Integer to Char?? Pin
Anonymous11-Aug-04 15:06
Anonymous11-Aug-04 15:06 
GeneralRe: Convert -> Long Integer to Char?? Pin
Werdna11-Aug-04 16:02
Werdna11-Aug-04 16:02 
QuestionDoes C# have the C++ equivalent of a friend class? Pin
Joe Woodbury11-Aug-04 11:53
professionalJoe Woodbury11-Aug-04 11:53 

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.