Click here to Skip to main content
15,905,414 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionChange of text color in PropertyGrid Pin
Member 133012112-Nov-09 0:19
Member 133012112-Nov-09 0:19 
AnswerRe: Change of text color in PropertyGrid Pin
Dave Kreskowiak12-Nov-09 3:42
mveDave Kreskowiak12-Nov-09 3:42 
GeneralRe: Change of text color in PropertyGrid Pin
Member 133012115-Nov-09 18:52
Member 133012115-Nov-09 18:52 
GeneralRe: Change of text color in PropertyGrid Pin
Dave Kreskowiak16-Nov-09 5:12
mveDave Kreskowiak16-Nov-09 5:12 
QuestionProgrammatically Click mouse on specefic location Pin
shaina22317-Nov-09 3:02
shaina22317-Nov-09 3:02 
AnswerRe: Programmatically Click mouse on specefic location Pin
shaina22317-Nov-09 3:24
shaina22317-Nov-09 3:24 
QuestionRe: Programmatically Click mouse on specefic location Pin
Lukas Molnar16-Dec-09 0:34
Lukas Molnar16-Dec-09 0:34 
AnswerRe: Programmatically Click mouse on specefic location Pin
Luc Pattyn7-Nov-09 3:29
sitebuilderLuc Pattyn7-Nov-09 3:29 
Hi,

I'm using the following user32 functions:
- SetCursorPos() to move the mouse
- SendInput() to give a MOUSEEVENTF_LEFTDOWN and MOUSEEVENTF_LEFTUP

IIRC the x,y parameters of mouse_event describe a relative mouse movement, so I keep them at zero.

Here are my P/Invoke prototypes:
[DllImport("user32.dll", CallingConvention=CallingConvention.StdCall, SetLastError=true)]
public static extern IntPtr SendInput(int count, ref INPUT2 input, int size);

[DllImport("user32.dll", CallingConvention = CallingConvention.StdCall, SetLastError = true)]
public static extern IntPtr SetCursorPos(int x, int y);

public struct MOUSEINPUT {
    public int dx;
    public int dy;
    public int mouseData;
    public int dwFlags;
    public int time;
    public IntPtr dwExtraInfo;
}

public struct INPUT2 {
    public uint type1;
    public MOUSEINPUT mi1;
    public uint type2;
    public MOUSEINPUT mi2;
}


Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


QuestionForm Design Error Pin
mirzamujib3-Nov-09 21:21
mirzamujib3-Nov-09 21:21 
AnswerRe: Form Design Error Pin
Richard MacCutchan3-Nov-09 23:39
mveRichard MacCutchan3-Nov-09 23:39 
GeneralRe: Form Design Error Pin
mirzamujib4-Nov-09 2:54
mirzamujib4-Nov-09 2:54 
AnswerRe: Form Design Error Pin
Shameel4-Nov-09 4:09
professionalShameel4-Nov-09 4:09 
QuestionForm Design Error Pin
mirzamujib3-Nov-09 21:21
mirzamujib3-Nov-09 21:21 
Questionwhat are the different manners to run a file auto in WindowsXP Pin
WindowsVsLinux3-Nov-09 19:48
WindowsVsLinux3-Nov-09 19:48 
QuestionProportional Resize of Vertically Stacked Controls on a Resizable Form Pin
User 127823-Nov-09 9:36
User 127823-Nov-09 9:36 
AnswerRe: Proportional Resize of Vertically Stacked Controls on a Resizable Form Pin
User 127823-Nov-09 10:42
User 127823-Nov-09 10:42 
QuestionFont Dialog Box Pin
swapnil_bhanagle3-Nov-09 7:09
swapnil_bhanagle3-Nov-09 7:09 
QuestionRegex Question Pin
Alan Burkhart3-Nov-09 4:31
Alan Burkhart3-Nov-09 4:31 
AnswerRe: Regex Question Pin
Rob Smiley3-Nov-09 5:47
Rob Smiley3-Nov-09 5:47 
GeneralRe: Regex Question Pin
Alan Burkhart3-Nov-09 9:29
Alan Burkhart3-Nov-09 9:29 
GeneralTried NetSpell Pin
Alan Burkhart3-Nov-09 9:51
Alan Burkhart3-Nov-09 9:51 
QuestionDropDownButton Pin
Askold2-Nov-09 22:52
Askold2-Nov-09 22:52 
AnswerRe: DropDownButton Pin
Alan Burkhart4-Nov-09 17:23
Alan Burkhart4-Nov-09 17:23 
Questionenable/disable auto refresh of a web browser control from Win forms? Pin
Member 33656071-Nov-09 14:17
Member 33656071-Nov-09 14:17 
AnswerRe: enable/disable auto refresh of a web browser control from Win forms? Pin
Eddy Vluggen2-Nov-09 10:30
professionalEddy Vluggen2-Nov-09 10:30 

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.