Click here to Skip to main content
15,905,566 members
Home / Discussions / C#
   

C#

 
QuestionApplication Updates Pin
Baeltazor11-Jul-09 23:59
Baeltazor11-Jul-09 23:59 
AnswerRe: Application Updates Pin
EliottA12-Jul-09 3:40
EliottA12-Jul-09 3:40 
AnswerRe: Application Updates Pin
Not Active12-Jul-09 4:20
mentorNot Active12-Jul-09 4:20 
GeneralRe: Application Updates Pin
Baeltazor12-Jul-09 8:37
Baeltazor12-Jul-09 8:37 
Question[Urgent] How to detect a timezone observes DST time or not ( .Net Framework 2.0) Pin
senorAli3311-Jul-09 23:29
senorAli3311-Jul-09 23:29 
AnswerRe: [Urgent] How to detect a timezone observes DST time or not Pin
OriginalGriff12-Jul-09 0:12
mveOriginalGriff12-Jul-09 0:12 
GeneralRe: [Urgent] How to detect a timezone observes DST time or not Pin
senorAli3312-Jul-09 0:29
senorAli3312-Jul-09 0:29 
GeneralRe: [Urgent] How to detect a timezone observes DST time or not Pin
dan!sh 12-Jul-09 0:54
professional dan!sh 12-Jul-09 0:54 
GeneralRe: [Urgent] How to detect a timezone observes DST time or not Pin
senorAli3312-Jul-09 2:43
senorAli3312-Jul-09 2:43 
GeneralRe: [Urgent] How to detect a timezone observes DST time or not Pin
dan!sh 12-Jul-09 2:50
professional dan!sh 12-Jul-09 2:50 
GeneralRe: [Urgent] How to detect a timezone observes DST time or not Pin
senorAli3312-Jul-09 3:08
senorAli3312-Jul-09 3:08 
QuestionHow to set title for fixed rows in DataGridView object? Pin
pascal.schwartz11-Jul-09 20:18
pascal.schwartz11-Jul-09 20:18 
AnswerRe: How to set title for fixed rows in DataGridView object? Pin
pascal.schwartz11-Jul-09 21:32
pascal.schwartz11-Jul-09 21:32 
RantIMAPI v2 Pin
Jacob Dixon11-Jul-09 18:49
Jacob Dixon11-Jul-09 18:49 
Questionimport user32.dll in c# [modified] Pin
Vivek Vijayan11-Jul-09 16:54
Vivek Vijayan11-Jul-09 16:54 
AnswerRe: import user32.dll in c# Pin
PIEBALDconsult11-Jul-09 17:54
mvePIEBALDconsult11-Jul-09 17:54 
GeneralRe: import user32.dll in c# Pin
Vivek Vijayan11-Jul-09 18:09
Vivek Vijayan11-Jul-09 18:09 
GeneralRe: import user32.dll in c# Pin
PIEBALDconsult11-Jul-09 18:21
mvePIEBALDconsult11-Jul-09 18:21 
AnswerRe: import user32.dll in c# Pin
dan!sh 11-Jul-09 22:21
professional dan!sh 11-Jul-09 22:21 
GeneralRe: import user32.dll in c# Pin
Vivek Vijayan11-Jul-09 23:09
Vivek Vijayan11-Jul-09 23:09 
GeneralRe: import user32.dll in c# Pin
dan!sh 11-Jul-09 23:41
professional dan!sh 11-Jul-09 23:41 
AnswerRe: import user32.dll in c# [modified] Pin
Lino Chacko12-Jul-09 6:12
Lino Chacko12-Jul-09 6:12 
using System.Runtime.InteropServices;


[DllImport("user32.dll")]
static extern void keybd_event(byte bVk, byte bScan, uint dwFlags,
UIntPtr dwExtraInfo);


 private void btnInvokeStartButton_Click(object sender, EventArgs e)
 {
     const int VK_CONTROL = 17;
     const int VK_ESCAPE  = 27;
     const int VK_LWIN = 91;
     const int VK_RWIN = 92;

     const uint KEYEVENTF_KEYDOWN = 0;
     const uint KEYEVENTF_KEYUP = 2;

//if you just want to invoke Start button use this code

     //    Press the Windows Key
     keybd_event(VK_LWIN, 0, KEYEVENTF_KEYDOWN, (UIntPtr)0);
     // Release the Windows key
     keybd_event(VK_LWIN, 0, KEYEVENTF_KEYUP, (UIntPtr)0);

//if you want to use Ctrl and Esc keys to invoke Start button use

     ////   Press the Ctrl-Esc key
     //keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYDOWN, (UIntPtr)0);
     //keybd_event(VK_ESCAPE, 0, KEYEVENTF_KEYDOWN, (UIntPtr)0);
     //// Release the Ctrl-Esc key
     //keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, (UIntPtr)0);
     //keybd_event(VK_ESCAPE, 0, KEYEVENTF_KEYUP, (UIntPtr)0);

 }


modified on Monday, July 13, 2009 8:38 AM

GeneralRe: import user32.dll in c# Pin
dan!sh 12-Jul-09 7:13
professional dan!sh 12-Jul-09 7:13 
GeneralRe: import user32.dll in c# Pin
Mirko198013-Jul-09 0:20
Mirko198013-Jul-09 0:20 
GeneralRe: import user32.dll in c# Pin
Enver Maroshi13-Jul-09 1:30
Enver Maroshi13-Jul-09 1: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.