Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to run App from stream ? Pin
Stephan Samuel8-Jun-06 12:56
Stephan Samuel8-Jun-06 12:56 
Questionhow to perform mouse click on forms applications? Pin
smr858-Jun-06 12:33
smr858-Jun-06 12:33 
AnswerRe: how to perform mouse click on forms applications? Pin
OrlandoCurioso8-Jun-06 16:05
OrlandoCurioso8-Jun-06 16:05 
GeneralRe: how to perform mouse click on forms applications? Pin
smr858-Jun-06 21:05
smr858-Jun-06 21:05 
AnswerRe: how to perform mouse click on forms applications? Pin
rah_sin8-Jun-06 21:03
professionalrah_sin8-Jun-06 21:03 
GeneralRe: how to perform mouse click on forms applications? Pin
smr858-Jun-06 21:12
smr858-Jun-06 21:12 
GeneralRe: how to perform mouse click on forms applications? Pin
rah_sin8-Jun-06 21:21
professionalrah_sin8-Jun-06 21:21 
AnswerRe: how to perform mouse click on forms applications? Pin
suguimoto8-Jun-06 21:10
suguimoto8-Jun-06 21:10 
Hi!

for a left click I used SendMessage
Example:
public enum Button_Messages
{
BM_CLICK = 245,
BM_GETCHECK = 240,
BM_GETIMAGE = 246,
BM_GETSTATE = 242,
BM_SETCHECK = 241,
BM_SETIMAGE = 247,
BM_SETSTATE = 243,
BM_SETSTYLE = 244,
}
if you create the application, you have the proccess and the handle,
otherwise you can find it with FindWindow then you can find wihch control to Left click.
Button is the Class name, Import Option is the Text of the control.
hControl = FindWindowEx(windowHandle, IntPtr.Zero, "Button", "Import Options");
Once you have the Control´s handle you can simulate the left click, if SendMessage returns True it was successful, if False it was not possible to perform the click.
SendMessage(hControl, (int)Button_Messages.BM_CLICK, (uint)0, (int)0);
GeneralRe: how to perform mouse click on forms applications? Pin
smr858-Jun-06 21:25
smr858-Jun-06 21:25 
QuestionDrawing Frameworks for C#? Pin
tansey48-Jun-06 12:12
tansey48-Jun-06 12:12 
AnswerRe: Drawing Frameworks for C#? Pin
stancrm8-Jun-06 20:03
stancrm8-Jun-06 20:03 
QuestionRetrieving connection string from app.config Pin
IMC20068-Jun-06 12:03
IMC20068-Jun-06 12:03 
AnswerRe: Retrieving connection string from app.config Pin
Colin Angus Mackay8-Jun-06 12:28
Colin Angus Mackay8-Jun-06 12:28 
QuestionWhy do the GNU/Linux users recommend C#? Pin
X.Cyclop8-Jun-06 11:38
X.Cyclop8-Jun-06 11:38 
AnswerRe: Why do the GNU/Linux users recommend C#? Pin
Colin Angus Mackay8-Jun-06 12:20
Colin Angus Mackay8-Jun-06 12:20 
GeneralRe: Why do the GNU/Linux users recommend C#? Pin
X.Cyclop8-Jun-06 12:27
X.Cyclop8-Jun-06 12:27 
GeneralRe: Why do the GNU/Linux users recommend C#? Pin
Colin Angus Mackay8-Jun-06 12:33
Colin Angus Mackay8-Jun-06 12:33 
QuestionDatabind xml to a treeview Pin
eggie58-Jun-06 10:58
eggie58-Jun-06 10:58 
AnswerRe: Databind xml to a treeview Pin
Koushik Biswas9-Jun-06 7:19
Koushik Biswas9-Jun-06 7:19 
QuestionC# speed vs unmanaged C++ Pin
sjdevo3gsr8-Jun-06 10:58
sjdevo3gsr8-Jun-06 10:58 
AnswerRe: C# speed vs unmanaged C++ Pin
Stephan Samuel8-Jun-06 11:31
Stephan Samuel8-Jun-06 11:31 
AnswerRe: C# speed vs unmanaged C++ Pin
leppie8-Jun-06 20:42
leppie8-Jun-06 20:42 
AnswerRe: C# speed vs unmanaged C++ Pin
Robert Rohde8-Jun-06 20:55
Robert Rohde8-Jun-06 20:55 
GeneralRe: C# speed vs unmanaged C++ Pin
Guffa9-Jun-06 3:10
Guffa9-Jun-06 3:10 
QuestionDataGridView grid lines??? Pin
Small Rat8-Jun-06 10:47
Small Rat8-Jun-06 10:47 

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.