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

.NET (Core and Framework)

 
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 
AnswerRe: application not running without visual studio Pin
Shameel27-Jan-14 4:22
professionalShameel27-Jan-14 4:22 
QuestionWebService Problem Pin
angelo8714-Jan-14 12:24
angelo8714-Jan-14 12:24 
AnswerRe: WebService Problem Pin
Dave Kreskowiak14-Jan-14 14:09
mveDave Kreskowiak14-Jan-14 14:09 
AnswerRe: WebService Problem Pin
Bernhard Hiller14-Jan-14 20:54
Bernhard Hiller14-Jan-14 20:54 
SuggestionRe: WebService Problem Pin
Richard Deeming15-Jan-14 0:49
mveRichard Deeming15-Jan-14 0:49 
GeneralRe: WebService Problem Pin
Dave Kreskowiak15-Jan-14 3:34
mveDave Kreskowiak15-Jan-14 3:34 
GeneralRe: WebService Problem Pin
Eddy Vluggen15-Jan-14 5:01
professionalEddy Vluggen15-Jan-14 5:01 
GeneralRe: WebService Problem Pin
Dave Kreskowiak15-Jan-14 6:52
mveDave Kreskowiak15-Jan-14 6:52 

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.