-Praveen
visit www.syncfuison.com for .Net Essentials
http://www.syncfusion.com/faq/winforms/
"Claudio" <news.microsoft.com> wrote in message
news:%23DlsYO1...@TK2MSFTNGP10.phx.gbl...
private void button1_Click(object sender, System.EventArgs e)
{
this.dateTimePicker1.Focus();
SendKeys.Send("{F4}");
}
--
Tim Wilson
.Net Compact Framework MVP
{cf147fdf-893d-4a88-b258-22f68a3dbc6a}
"Praveen Ramesh" <rpra...@syncfusion.com> wrote in message
news:%23V6vOP2...@TK2MSFTNGP11.phx.gbl...
using System.Runtime.InteropServices;
private const int WM_KEYDOWN = 0x0100;
private const int VK_F4 = 0x73;
[DllImport("User32.dll")]
private static extern int SendMessage(IntPtr hWnd, int iMsg, int wParam, int
lParam);
private void button1_Click(object sender, System.EventArgs e)
{
this.dateTimePicker1.Focus();
SendMessage(this.dateTimePicker1.Handle, WM_KEYDOWN, VK_F4, 0);
}
--
Tim Wilson
.Net Compact Framework MVP
{cf147fdf-893d-4a88-b258-22f68a3dbc6a}
"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:eLOtUb2I...@TK2MSFTNGP12.phx.gbl...
/claes
"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:elzGel2I...@TK2MSFTNGP09.phx.gbl...