Click here to Skip to main content
15,908,013 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow to create a UI in VS 2008 in visual C++ with .Net Compact framework target platform Pin
Member 1053851522-Jan-14 0:55
Member 1053851522-Jan-14 0:55 
AnswerRe: How to create a UI in VS 2008 in visual C++ with .Net Compact framework target platform Pin
Eddy Vluggen22-Jan-14 8:38
professionalEddy Vluggen22-Jan-14 8:38 
Questionque Pin
harshavardhan1234567821-Jan-14 19:40
harshavardhan1234567821-Jan-14 19:40 
AnswerRe: que Pin
Peter Leow21-Jan-14 19:46
professionalPeter Leow21-Jan-14 19:46 
GeneralRe: que Pin
harshavardhan1234567821-Jan-14 19:50
harshavardhan1234567821-Jan-14 19:50 
GeneralRe: que Pin
thatraja21-Jan-14 20:38
professionalthatraja21-Jan-14 20:38 
AnswerRe: que Pin
Richard MacCutchan21-Jan-14 22:57
mveRichard MacCutchan21-Jan-14 22:57 
Questionhttpwebresponse throttled the response Pin
baaroz118-Jan-14 5:51
baaroz118-Jan-14 5:51 
AnswerRe: httpwebresponse throttled the response Pin
Bernhard Hiller20-Jan-14 3:40
Bernhard Hiller20-Jan-14 3:40 
AnswerRe: httpwebresponse throttled the response Pin
Shameel21-Jan-14 2:04
professionalShameel21-Jan-14 2:04 
Questionapplication not running without visual studio Pin
tgkkishore18-Jan-14 3:23
tgkkishore18-Jan-14 3:23 
AnswerRe: application not running without visual studio Pin
Dave Kreskowiak18-Jan-14 4:06
mveDave Kreskowiak18-Jan-14 4:06 
GeneralRe: application not running without visual studio Pin
tgkkishore18-Jan-14 7:15
tgkkishore18-Jan-14 7:15 
GeneralRe: application not running without visual studio Pin
Dave Kreskowiak18-Jan-14 9:57
mveDave Kreskowiak18-Jan-14 9:57 
GeneralRe: application not running without visual studio Pin
Ron Beyer18-Jan-14 10:03
professionalRon Beyer18-Jan-14 10:03 
GeneralRe: application not running without visual studio Pin
tgkkishore19-Jan-14 1:51
tgkkishore19-Jan-14 1:51 
I have used 3 buttons in my form num,caps,scroll to on and off the num,caps,scroll keys from myform
after i compile it works fine.And i copied the exe and executed it in another windows which has no visual studio.the application is not even executing...

The code Follows below:-



Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer)
Private Const VK_NUMLOCK As Integer = &H90
Private Const VK_SCROLL As Integer = &H91
Private Const VK_CAPITAL As Integer = &H14
Private Const KEYEVENTF_EXTENDEDKEY As Integer = &H1
Private Const KEYEVENTF_KEYUP As Integer = &H2

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

' Toggle CapsLock

' Simulate the Key Press
keybd_event(VK_CAPITAL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0)

' Simulate the Key Release
keybd_event(VK_CAPITAL, &H45, KEYEVENTF_EXTENDEDKEY Or KEYEVENTF_KEYUP, 0)
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
keybd_event(VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0)

' Simulate the Key Release
keybd_event(VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or KEYEVENTF_KEYUP, 0)
End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
keybd_event(VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0)
keybd_event(VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY Or KEYEVENTF_KEYUP, 0)
End Sub

Help me friends...
GeneralRe: application not running without visual studio Pin
Ron Beyer19-Jan-14 3:45
professionalRon Beyer19-Jan-14 3:45 
GeneralRe: application not running without visual studio Pin
tgkkishore20-Jan-14 5:35
tgkkishore20-Jan-14 5:35 
GeneralRe: application not running without visual studio Pin
Ron Beyer20-Jan-14 5:41
professionalRon Beyer20-Jan-14 5:41 
GeneralRe: application not running without visual studio Pin
tgkkishore20-Jan-14 6:13
tgkkishore20-Jan-14 6:13 
GeneralRe: application not running without visual studio Pin
Ron Beyer20-Jan-14 7:49
professionalRon Beyer20-Jan-14 7:49 
GeneralRe: application not running without visual studio Pin
tgkkishore21-Jan-14 4:48
tgkkishore21-Jan-14 4:48 
GeneralRe: application not running without visual studio Pin
Ron Beyer21-Jan-14 5:30
professionalRon Beyer21-Jan-14 5:30 
GeneralRe: application not running without visual studio Pin
tgkkishore22-Jan-14 4:26
tgkkishore22-Jan-14 4:26 
GeneralRe: application not running without visual studio Pin
Ron Beyer22-Jan-14 5:01
professionalRon Beyer22-Jan-14 5:01 

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.