Click here to Skip to main content
15,900,668 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralInherited ComboBox Pin
Brady Kelly23-Feb-08 23:26
Brady Kelly23-Feb-08 23:26 
GeneralRe: Inherited ComboBox Pin
darkelv24-Feb-08 6:49
darkelv24-Feb-08 6:49 
GeneralRe: Inherited ComboBox Pin
Brady Kelly24-Feb-08 7:19
Brady Kelly24-Feb-08 7:19 
GeneralRe: Inherited ComboBox Pin
Brady Kelly26-Feb-08 1:48
Brady Kelly26-Feb-08 1:48 
GeneralRe: Inherited ComboBox Pin
Ed.Poore24-Feb-08 7:26
Ed.Poore24-Feb-08 7:26 
Generalrichtextboxes Pin
jazy121-Feb-08 21:29
jazy121-Feb-08 21:29 
GeneralRe: richtextboxes Pin
Christian Graus21-Feb-08 23:42
protectorChristian Graus21-Feb-08 23:42 
GeneralRe: richtextboxes [modified] Pin
jazy127-Feb-08 14:36
jazy127-Feb-08 14:36 
thanks for you reply, but can you tell me what particular method to use....

i was trying to use invoke methods and here is my code:

#define SB_VERT 1
#define SB_THUMBPOSITION 4
#define WM_VSCROLL 0x0115

[DllImport("User32",EntryPoint = "SendMessage")]
static bool SendMessage(IntPtr hwnd, UInt32 Msg, Int32 wParam, Int32 lPAram);
[DllImport("User32",EntryPoint = "GetScrollPos")]
static int GetScrollPos(IntPtr hwnd, int nBar);


private: System::Void richTextBox1_VScroll(System::Object^ sender, System::EventArgs^ e) {


int a;

a = GetScrollPos(richTextBox1->Handle,SB_VERT);

SendMessage(richTextBox2->Handle,WM_VSCROLL, 0x1000 + SB_THUMBPOSITION * a, 0);
}
I can't determine if the message is really being posted in the message queue is there any way to see that?
The program compiles and run, but they still won't scroll simultaneously.

modified on Wednesday, February 27, 2008 8:43 PM

GeneralWinforms GUI / Design Guidelines Pin
James Spibey18-Feb-08 5:28
James Spibey18-Feb-08 5:28 
GeneralRe: Winforms GUI / Design Guidelines Pin
Brady Kelly18-Feb-08 6:02
Brady Kelly18-Feb-08 6:02 
GeneralRe: Winforms GUI / Design Guidelines Pin
N a v a n e e t h21-Feb-08 21:50
N a v a n e e t h21-Feb-08 21:50 
GeneralDeselecting ComboBoxes Pin
Brady Kelly18-Feb-08 2:21
Brady Kelly18-Feb-08 2:21 
GeneralRe: Deselecting ComboBoxes Pin
darkelv18-Feb-08 5:16
darkelv18-Feb-08 5:16 
GeneralRe: Deselecting ComboBoxes Pin
Brady Kelly18-Feb-08 5:24
Brady Kelly18-Feb-08 5:24 
GeneralRe: Deselecting ComboBoxes Pin
darkelv18-Feb-08 5:41
darkelv18-Feb-08 5:41 
GeneralRe: Deselecting ComboBoxes Pin
Brady Kelly18-Feb-08 6:00
Brady Kelly18-Feb-08 6:00 
GeneralRe: Deselecting ComboBoxes Pin
Patrick Etc.18-Feb-08 7:30
Patrick Etc.18-Feb-08 7:30 
QuestionHow to create a new text filename if it exists in window forms using C#net Pin
sivaram praveen17-Feb-08 19:59
sivaram praveen17-Feb-08 19:59 
GeneralRe: How to create a new text filename if it exists in window forms using C#net Pin
Miss Maheshwari17-Feb-08 20:04
Miss Maheshwari17-Feb-08 20:04 
GeneralRe: How to create a new text filename if it exists in window forms using C#net Pin
Patrick Etc.18-Feb-08 7:25
Patrick Etc.18-Feb-08 7:25 
GeneralRe: How to create a new text filename if it exists in window forms using C#net Pin
Christian Graus20-Feb-08 13:39
protectorChristian Graus20-Feb-08 13:39 
QuestionThreadStateException Pin
johland16-Feb-08 22:47
johland16-Feb-08 22:47 
GeneralRe: ThreadStateException Pin
Patrick Etc.17-Feb-08 5:39
Patrick Etc.17-Feb-08 5:39 
GeneralRe: ThreadStateException Pin
johland18-Feb-08 0:29
johland18-Feb-08 0:29 
GeneralProblem with Parent Child Data Binding Pin
Brady Kelly16-Feb-08 7:52
Brady Kelly16-Feb-08 7:52 

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.