Click here to Skip to main content
16,016,864 members
Home / Discussions / C#
   

C#

 
QuestionHighlight office area in the map? Pin
BEXPERT29-Aug-05 5:12
BEXPERT29-Aug-05 5:12 
AnswerRe: Highlight office area in the map? Pin
Dave Kreskowiak29-Aug-05 13:22
mveDave Kreskowiak29-Aug-05 13:22 
GeneralRe: Highlight office area in the map? Pin
BEXPERT29-Aug-05 20:00
BEXPERT29-Aug-05 20:00 
GeneralRe: Highlight office area in the map? Pin
Dave Kreskowiak30-Aug-05 2:21
mveDave Kreskowiak30-Aug-05 2:21 
QuestionSystem.Net.Sockets class delay Pin
Jason Weibel29-Aug-05 4:54
Jason Weibel29-Aug-05 4:54 
QuestionHow to send clicks Pin
Dario Solera29-Aug-05 4:52
Dario Solera29-Aug-05 4:52 
AnswerRe: How to send clicks Pin
Daniel Turini29-Aug-05 7:53
Daniel Turini29-Aug-05 7:53 
AnswerRe: How to send clicks Pin
Mohamad Al Husseiny29-Aug-05 8:21
Mohamad Al Husseiny29-Aug-05 8:21 
You can also use SendMessage API Function
This Example will Click Backspace Button in Calculator
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
[DllImport("user32.dll")]
static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);

private void btnClickBack_Click(object sender, System.EventArgs e)
{
 //Pointer to Calculator window
	 IntPtr calcPtr=IntPtr.Zero;
 //Search For the Calculator Window SciCalc is Windows class
 calcPtr=FindWindow("SciCalc","Calculator");
 //If  Found it
 if(!calcPtr.Equals(IntPtr.Zero))
 {
   IntPtr backSpaceButton=IntPtr.Zero;
//Search For Backspace Button
 backSpaceButton=FindWindowEx(calcPtr,IntPtr.Zero,"Button","Backspace");
 //If Found it
 if(!backSpaceButton.Equals(IntPtr.Zero))
 {
   // 0x00F5 is BM_Click Message
  SendMessage(backSpaceButton,0x00F5,IntPtr.Zero,IntPtr.Zero);
 }
 }
}


MCAD
GeneralRe: How to send clicks Pin
Dario Solera29-Aug-05 8:55
Dario Solera29-Aug-05 8:55 
QuestionDetermining Enter events cause Pin
Member 197725229-Aug-05 3:39
Member 197725229-Aug-05 3:39 
AnswerRe: Determining Enter events cause Pin
Dave Kreskowiak29-Aug-05 4:50
mveDave Kreskowiak29-Aug-05 4:50 
QuestionString Size Problem Pin
wasife29-Aug-05 3:21
wasife29-Aug-05 3:21 
AnswerRe: String Size Problem Pin
occcy29-Aug-05 3:46
occcy29-Aug-05 3:46 
QuestionDocumentation Pin
Anonymous29-Aug-05 1:33
Anonymous29-Aug-05 1:33 
AnswerRe: Documentation Pin
Dario Solera29-Aug-05 4:09
Dario Solera29-Aug-05 4:09 
Questionhelp Pin
ravimohan1629-Aug-05 1:29
ravimohan1629-Aug-05 1:29 
AnswerRe: help Pin
Daniel Turini29-Aug-05 1:38
Daniel Turini29-Aug-05 1:38 
AnswerRe: help Pin
SeMartens29-Aug-05 1:38
SeMartens29-Aug-05 1:38 
QuestionHtml to DataTable or DataGrid Pin
Canastro29-Aug-05 1:03
Canastro29-Aug-05 1:03 
QuestionTabControl BackColor - can it be done and how? Let's settle it once and for all Pin
misterbear29-Aug-05 0:33
misterbear29-Aug-05 0:33 
AnswerRe: TabControl BackColor - can it be done and how? Let's settle it once and for all Pin
sreejith ss nair29-Aug-05 1:08
sreejith ss nair29-Aug-05 1:08 
GeneralRe: TabControl BackColor - can it be done and how? Let's settle it once and for all Pin
misterbear29-Aug-05 1:32
misterbear29-Aug-05 1:32 
QuestionDataview help! Pin
pokabot29-Aug-05 0:19
pokabot29-Aug-05 0:19 
QuestionProblem related to Tablet PC Pin
deldeep28-Aug-05 23:55
deldeep28-Aug-05 23:55 
QuestionApplication version Pin
rmedo28-Aug-05 23:47
rmedo28-Aug-05 23: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.