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

.NET (Core and Framework)

 
AnswerRe: FileWtacher stop working after 300 Pin
Kornfeld Eliyahu Peter21-Oct-13 3:53
professionalKornfeld Eliyahu Peter21-Oct-13 3:53 
GeneralRe: FileWtacher stop working after 300 Pin
byka21-Oct-13 4:47
byka21-Oct-13 4:47 
AnswerRe: FileWtacher stop working after 300 Pin
Kornfeld Eliyahu Peter21-Oct-13 5:43
professionalKornfeld Eliyahu Peter21-Oct-13 5:43 
QuestionDisabling Keyboard,vb.net Pin
srinivasankrishnaa20-Oct-13 3:25
srinivasankrishnaa20-Oct-13 3:25 
AnswerRe: Disabling Keyboard,vb.net Pin
Dave Kreskowiak20-Oct-13 8:58
mveDave Kreskowiak20-Oct-13 8:58 
AnswerRe: Disabling Keyboard,vb.net Pin
Marco Bertschi21-Oct-13 22:24
protectorMarco Bertschi21-Oct-13 22:24 
GeneralRe: Disabling Keyboard,vb.net Pin
srinivasankrishnaa22-Oct-13 0:36
srinivasankrishnaa22-Oct-13 0:36 
GeneralRe: Disabling Keyboard,vb.net Pin
Marco Bertschi22-Oct-13 1:16
protectorMarco Bertschi22-Oct-13 1:16 
You have to change the following function:

VB
Private Function HookCallback(ByVal nCode As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr
        ' we check keyup for standard printscreen, and syskeyup incase it is alt+printscreen
        ' we aren't checking keydown, as that fires before the screenshot is taken.
        If nCode >= 0 AndAlso (wParam.ToInt32 = WM_KEYUP OrElse wParam.ToInt32 = WM_SYSKEYUP) Then
            Dim vkCode As Integer = Marshal.ReadInt32(lParam)
            If vkCode = Keys.PrintScreen Then
                Dim data As IDataObject = Clipboard.GetDataObject()
                If data.GetDataPresent(GetType(Bitmap)) Then
                    Me.BackgroundImage = DirectCast(data.GetData(GetType(Bitmap)), Bitmap)
                End If
            End If
        End If
        Return CallNextHookEx(hookID, nCode, wParam, lParam)
    End Function


instead of "If vkCode == Keys.PrintScreen Then"... you have to check wether your application is active, and forward the pressed key to it.
People becoming wiser in order to notice the stupid things they did back in the young days. This doesn't mean that they really stop doing those things. Wise people still do stupid things, only on purpose.

GeneralRe: Disabling Keyboard,vb.net Pin
srinivasankrishnaa22-Oct-13 1:28
srinivasankrishnaa22-Oct-13 1:28 
AnswerRe: Disabling Keyboard,vb.net Pin
Eddy Vluggen22-Oct-13 2:59
professionalEddy Vluggen22-Oct-13 2:59 
QuestionFailed User Instance of SQL Server Pin
Member 813497919-Oct-13 1:42
Member 813497919-Oct-13 1:42 
AnswerRe: Failed User Instance of SQL Server Pin
thatraja19-Oct-13 1:49
professionalthatraja19-Oct-13 1:49 
GeneralRe: Failed User Instance of SQL Server Pin
Member 813497919-Oct-13 2:06
Member 813497919-Oct-13 2:06 
GeneralRe: Failed User Instance of SQL Server Pin
thatraja19-Oct-13 2:10
professionalthatraja19-Oct-13 2:10 
GeneralRe: Failed User Instance of SQL Server Pin
Member 813497919-Oct-13 2:10
Member 813497919-Oct-13 2:10 
QuestionHow To Get Time of " When User Closing The Browser"..? Pin
Member 813497918-Oct-13 0:31
Member 813497918-Oct-13 0:31 
AnswerRe: How To Get Time of " When User Closing The Browser"..? Pin
Eddy Vluggen18-Oct-13 3:00
professionalEddy Vluggen18-Oct-13 3:00 
AnswerRe: How To Get Time of " When User Closing The Browser"..? Pin
Marco Bertschi18-Oct-13 3:36
protectorMarco Bertschi18-Oct-13 3:36 
AnswerRe: How To Get Time of " When User Closing The Browser"..? Pin
Abhinav S18-Oct-13 22:43
Abhinav S18-Oct-13 22:43 
Question[VB.NET 2008] SerialPort and UART framing error Pin
steve_949661317-Oct-13 23:29
professionalsteve_949661317-Oct-13 23:29 
AnswerRe: [VB.NET 2008] SerialPort and UART framing error Pin
Marco Bertschi18-Oct-13 0:05
protectorMarco Bertschi18-Oct-13 0:05 
GeneralRe: [VB.NET 2008] SerialPort and UART framing error Pin
steve_949661318-Oct-13 2:25
professionalsteve_949661318-Oct-13 2:25 
QuestionDiscussion C# / VB.NET: Short-Circuit Evaluation Is Required Pin
Suamere Scalar17-Oct-13 10:06
Suamere Scalar17-Oct-13 10:06 
QuestionFind Out Installed Browser List in .net Pin
Member 813497916-Oct-13 20:50
Member 813497916-Oct-13 20:50 
AnswerRe: Find Out Installed Browser List in .net Pin
Eddy Vluggen17-Oct-13 0:28
professionalEddy Vluggen17-Oct-13 0:28 

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.