Since you posted in the Windows forum and not the C# forum, I'll assume you want to simulate a left mouse button using Win32 API.
With that said, give the following a try to see if it works:
Code:INPUT Input={0}; // left MB down Input.type = INPUT_MOUSE; Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN; SendInput(1,&Input,sizeof(Input)); // lef MB up ZeroMemory(&Input,sizeof(INPUT)); Input.type = INPUT_MOUSE; Input.mi.dwFlags = MOUSEEVENTF_LEFTUP; SendInput(1,&Input,sizeof(Input));