Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: bitmap constructor throws InvalidArgumentException Pin
Dave Kreskowiak6-Jul-04 5:50
mveDave Kreskowiak6-Jul-04 5:50 
QuestionHow to Hide ScrollBar of RichtextBox Pin
Jay Shankar5-Jul-04 22:30
Jay Shankar5-Jul-04 22:30 
AnswerRe: How to Hide ScrollBar of RichtextBox Pin
Stefan Troschuetz5-Jul-04 22:59
Stefan Troschuetz5-Jul-04 22:59 
GeneralRe: How to Hide ScrollBar of RichtextBox Pin
Jay Shankar5-Jul-04 23:30
Jay Shankar5-Jul-04 23:30 
GeneralRe: How to Hide ScrollBar of RichtextBox Pin
Heath Stewart6-Jul-04 5:45
protectorHeath Stewart6-Jul-04 5:45 
GeneralRe: How to Hide ScrollBar of RichtextBox Pin
Jay Shankar6-Jul-04 18:04
Jay Shankar6-Jul-04 18:04 
GeneralRe: How to Hide ScrollBar of RichtextBox Pin
Heath Stewart7-Jul-04 3:29
protectorHeath Stewart7-Jul-04 3:29 
GeneralRe: How to Hide ScrollBar of RichtextBox Pin
Jay Shankar12-Jul-04 22:54
Jay Shankar12-Jul-04 22:54 
I tried getting the Handle of richTextBox's scrollBar using the following code, but could not succeed. Can you please point out where am I going wrong?

public class ScrollBarHiddenRTB : System.Windows.Forms.RichTextBox
{

	[System.Runtime.InteropServices.DllImport("user32.dll")]
	public static extern IntPtr FindWindowEx(IntPtr parent, IntPtr next, string sClassName, IntPtr sWindowTitle);

	[System.Runtime.InteropServices.DllImport("user32.dll")]
	public static extern int SetWindowLongPtr( IntPtr hWnd, int nIndex, int dwNewLong);

	private  const int WS_VISIBLE = 0x10000000;

	public ScrollBarHiddenRTB() : base()
	{
		this.HandleCreated += new EventHandler(CreateRTBHandle);

	}


	private void CreateRTBHandle(object sender, EventArgs e) 
	{
		ScrollBarHiddenRTB self = sender as ScrollBarHiddenRTB;
		System.Diagnostics.Debug.Assert(self != null);
		IntPtr scrollHandle = FindWindowEx(self.Handle, IntPtr.Zero, "ScrollBar", IntPtr.Zero);
		if(scrollHandle != IntPtr.Zero)
		{
			MessageBox.Show(scrollHandle.ToString());
		}

	}

}


Regards,

Jay.
GeneralRe: How to Hide ScrollBar of RichtextBox Pin
Heath Stewart13-Jul-04 3:26
protectorHeath Stewart13-Jul-04 3:26 
GeneralRe: How to Hide ScrollBar of RichtextBox Pin
Jay Shankar21-Jul-04 18:27
Jay Shankar21-Jul-04 18:27 
GeneralC#, XML, XPath problem Pin
velincho5-Jul-04 22:23
velincho5-Jul-04 22:23 
GeneralRe: C#, XML, XPath problem Pin
leppie6-Jul-04 7:26
leppie6-Jul-04 7:26 
GeneralRe: C#, XML, XPath problem Pin
velincho6-Jul-04 22:23
velincho6-Jul-04 22:23 
QuestionHOW TO CREATE IMAGE FRAMES FROM METAFILES Pin
gayathri_gopi5-Jul-04 22:22
gayathri_gopi5-Jul-04 22:22 
GeneralDllImport Pin
Anonymous5-Jul-04 22:12
Anonymous5-Jul-04 22:12 
GeneralRe: DllImport Pin
Anonymous5-Jul-04 22:26
Anonymous5-Jul-04 22:26 
GeneralRe: DllImport Pin
Stefan Troschuetz5-Jul-04 22:43
Stefan Troschuetz5-Jul-04 22:43 
GeneralDirectX Pin
Anonymous6-Jul-04 3:16
Anonymous6-Jul-04 3:16 
GeneralRe: DirectX Pin
Stefan Troschuetz6-Jul-04 3:48
Stefan Troschuetz6-Jul-04 3:48 
QuestionIs it possible to edit a bitmap programmatically? Pin
Pain_Elemental5-Jul-04 21:14
Pain_Elemental5-Jul-04 21:14 
AnswerRe: Is it possible to edit a bitmap programmatically? Pin
Dave Kreskowiak6-Jul-04 5:17
mveDave Kreskowiak6-Jul-04 5:17 
GeneralRe: Is it possible to edit a bitmap programmatically? Pin
Pain_Elemental6-Jul-04 19:50
Pain_Elemental6-Jul-04 19:50 
GeneralWanna Disscussion Forum Pin
RadhaKrishan5-Jul-04 21:14
RadhaKrishan5-Jul-04 21:14 
GeneralRe: Wanna Disscussion Forum Pin
Dave Kreskowiak6-Jul-04 4:57
mveDave Kreskowiak6-Jul-04 4:57 
QuestionList of installed fonts ? Pin
sachinkalse5-Jul-04 20:34
sachinkalse5-Jul-04 20:34 

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.