473,470 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

NumLock, CapsLock, Inset/Overwrite

Hi All,

In VB.Net how do I determine if CapsLock is on/off (same for NumLock) and
whether the input mode is set to Insert or Overwrite (Insert Key). I just
added a status bar to my app, and I want to reflect the state of these three
items (similar to Word, Excel, etc.) I've found the key enumerator value for
each key, but I don't know how to tell if the state is on/off, etc.

TIA
Lee
Nov 21 '05 #1
10 7772
Hi,

http://groups.google.be/groups?hl=nl...&meta=group%3D
microsoft.public.dotnet.languages.vb.*

Mind that the .* als need to be included in the link when you copy paste it,
but oe won't do this

hth Peter

"lgbjr" <lg***@online.nospam> schreef in bericht
news:uR**************@TK2MSFTNGP14.phx.gbl...
Hi All,

In VB.Net how do I determine if CapsLock is on/off (same for NumLock) and
whether the input mode is set to Insert or Overwrite (Insert Key). I just
added a status bar to my app, and I want to reflect the state of these three items (similar to Word, Excel, etc.) I've found the key enumerator value for each key, but I don't know how to tell if the state is on/off, etc.

TIA
Lee

Nov 21 '05 #2
Peter,

Thanks for the link. I found the info I was looking for (actually more than
what I really wanted!). I've added the code to look at the state of the keys
that I want. and temporarily, I've created a button and put the code in the
button click event. So, when I click the button, the status bar shows the
state of each of the keys. All good so far.

Now, how do I, or where do I, put the code so that it continually checks for
the state of these keys. Obviously I don't want to click a button to see the
state. If the user turns on NumLock, I want the event captured and displayed
in the status bar.

I thought I could just use the status bar keypress event, but that doesn't
seem to work, or at least I'm not doing it properly.

TIA
Lee

"Peter Proost" <pp*****@nospam.hotmail.com> wrote in message
news:OU**************@TK2MSFTNGP10.phx.gbl...
Hi,

http://groups.google.be/groups?hl=nl...&meta=group%3D
microsoft.public.dotnet.languages.vb.*

Mind that the .* als need to be included in the link when you copy paste
it,
but oe won't do this

hth Peter

"lgbjr" <lg***@online.nospam> schreef in bericht
news:uR**************@TK2MSFTNGP14.phx.gbl...
Hi All,

In VB.Net how do I determine if CapsLock is on/off (same for NumLock) and
whether the input mode is set to Insert or Overwrite (Insert Key). I just
added a status bar to my app, and I want to reflect the state of these

three
items (similar to Word, Excel, etc.) I've found the key enumerator value

for
each key, but I don't know how to tell if the state is on/off, etc.

TIA
Lee


Nov 21 '05 #3
Hi,

you could set the form's keypreview to true and then always run your code
in the forms keydown or keyup event

hth

Greetz Peter

"lgbjr" <lg***@online.nospam> schreef in bericht
news:#I*************@TK2MSFTNGP14.phx.gbl...
Peter,

Thanks for the link. I found the info I was looking for (actually more than what I really wanted!). I've added the code to look at the state of the keys that I want. and temporarily, I've created a button and put the code in the button click event. So, when I click the button, the status bar shows the
state of each of the keys. All good so far.

Now, how do I, or where do I, put the code so that it continually checks for the state of these keys. Obviously I don't want to click a button to see the state. If the user turns on NumLock, I want the event captured and displayed in the status bar.

I thought I could just use the status bar keypress event, but that doesn't
seem to work, or at least I'm not doing it properly.

TIA
Lee

"Peter Proost" <pp*****@nospam.hotmail.com> wrote in message
news:OU**************@TK2MSFTNGP10.phx.gbl...
Hi,

http://groups.google.be/groups?hl=nl...&meta=group%3D microsoft.public.dotnet.languages.vb.*

Mind that the .* als need to be included in the link when you copy paste
it,
but oe won't do this

hth Peter

"lgbjr" <lg***@online.nospam> schreef in bericht
news:uR**************@TK2MSFTNGP14.phx.gbl...
Hi All,

In VB.Net how do I determine if CapsLock is on/off (same for NumLock) and whether the input mode is set to Insert or Overwrite (Insert Key). I just added a status bar to my app, and I want to reflect the state of these

three
items (similar to Word, Excel, etc.) I've found the key enumerator
value for
each key, but I don't know how to tell if the state is on/off, etc.

TIA
Lee



Nov 21 '05 #4
Would you be so kind as to post the code you use to check the state of the
Numlock, Caplock, and Scrolllock keys. Thanks.

"lgbjr" wrote:
Peter,

Thanks for the link. I found the info I was looking for (actually more than
what I really wanted!). I've added the code to look at the state of the keys
that I want. and temporarily, I've created a button and put the code in the
button click event. So, when I click the button, the status bar shows the
state of each of the keys. All good so far.

Now, how do I, or where do I, put the code so that it continually checks for
the state of these keys. Obviously I don't want to click a button to see the
state. If the user turns on NumLock, I want the event captured and displayed
in the status bar.

I thought I could just use the status bar keypress event, but that doesn't
seem to work, or at least I'm not doing it properly.

TIA
Lee

"Peter Proost" <pp*****@nospam.hotmail.com> wrote in message
news:OU**************@TK2MSFTNGP10.phx.gbl...
Hi,

http://groups.google.be/groups?hl=nl...&meta=group%3D
microsoft.public.dotnet.languages.vb.*

Mind that the .* als need to be included in the link when you copy paste
it,
but oe won't do this

hth Peter

"lgbjr" <lg***@online.nospam> schreef in bericht
news:uR**************@TK2MSFTNGP14.phx.gbl...
Hi All,

In VB.Net how do I determine if CapsLock is on/off (same for NumLock) and
whether the input mode is set to Insert or Overwrite (Insert Key). I just
added a status bar to my app, and I want to reflect the state of these

three
items (similar to Word, Excel, etc.) I've found the key enumerator value

for
each key, but I don't know how to tell if the state is on/off, etc.

TIA
Lee



Nov 21 '05 #5
Dennis,

This is the code I use to check the status of NumLock, CapsLock, ScrollLock,
and Insert/OverWrite. In this code, the status is checked when I click
Button1. what I can't figure out is how to setup the event to check any
keypress without user interaction (without clicking a button). I've set the
form keypreview property to true and tried using the following sub, but it
doesn't work:

Private Sub My_Key_Press(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs)

code to check key status

End Sub

Here's the code to check the key status:

Private Declare Function GetKeyboardState Lib "user32" (ByRef pbKeyState
As Byte) As Integer
Private Declare Function SetKeyboardState Lib "user32" (ByRef
lppbKeyState As Byte) As Integer

' Constant declarations:

Const VK_NUMLOCK As Short = &H90S
Const VK_SCROLL As Short = &H91S
Const VK_CAPITAL As Short = &H14S
Const VK_INS As Short = &H2DS

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

Dim NumLockState As Boolean
Dim ScrollLockState As Boolean
Dim CapsLockState As Boolean
Dim InsState As Boolean
Dim keys(255) As Byte

GetKeyboardState(keys(0))

' NumLock handling:

NumLockState = keys(VK_NUMLOCK)
If NumLockState <> True Then
StatusBar.Panels(1).Text = ""
Else
StatusBar.Panels(1).Text = "NUM"
End If

' CapsLock handling:

CapsLockState = keys(VK_CAPITAL)
If CapsLockState <> True Then
StatusBar.Panels(2).Text = ""
Else
StatusBar.Panels(2).Text = "CAP"
End If

' ScrollLock handling:

ScrollLockState = keys(VK_SCROLL)
If ScrollLockState <> True Then
StatusBar.Panels(3).Text = ""
Else
StatusBar.Panels(3).Text = "SCR"
End If

' Insert handling:

InsState = keys(VK_INS)
If InsState <> True Then
StatusBar.Panels(4).Text = ""
Else
StatusBar.Panels(4).Text = "INS"
End If

End Sub

If you know how to make this work without using a control to fire this
event, please let me know.

thanks
Lee
"Dennis" <De****@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
Would you be so kind as to post the code you use to check the state of the
Numlock, Caplock, and Scrolllock keys. Thanks.

"lgbjr" wrote:
Peter,

Thanks for the link. I found the info I was looking for (actually more
than
what I really wanted!). I've added the code to look at the state of the
keys
that I want. and temporarily, I've created a button and put the code in
the
button click event. So, when I click the button, the status bar shows the
state of each of the keys. All good so far.

Now, how do I, or where do I, put the code so that it continually checks
for
the state of these keys. Obviously I don't want to click a button to see
the
state. If the user turns on NumLock, I want the event captured and
displayed
in the status bar.

I thought I could just use the status bar keypress event, but that
doesn't
seem to work, or at least I'm not doing it properly.

TIA
Lee

"Peter Proost" <pp*****@nospam.hotmail.com> wrote in message
news:OU**************@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> http://groups.google.be/groups?hl=nl...&meta=group%3D
> microsoft.public.dotnet.languages.vb.*
>
> Mind that the .* als need to be included in the link when you copy
> paste
> it,
> but oe won't do this
>
> hth Peter
>
>
>
> "lgbjr" <lg***@online.nospam> schreef in bericht
> news:uR**************@TK2MSFTNGP14.phx.gbl...
>> Hi All,
>>
>> In VB.Net how do I determine if CapsLock is on/off (same for NumLock)
>> and
>> whether the input mode is set to Insert or Overwrite (Insert Key). I
>> just
>> added a status bar to my app, and I want to reflect the state of these
> three
>> items (similar to Word, Excel, etc.) I've found the key enumerator
>> value
> for
>> each key, but I don't know how to tell if the state is on/off, etc.
>>
>> TIA
>> Lee
>>
>>
>
>


Nov 21 '05 #6
Hi

I think the controls keys will fire the key_press event, we need to handle
the KeyUp event and form_active event, so that when we press the key or
switch from another window, the key will be updated.

Private Sub UpdateKeyState()
Dim NumLockState As Boolean
Dim ScrollLockState As Boolean
Dim CapsLockState As Boolean
Dim InsState As Boolean
Dim keys(255) As Byte

GetKeyboardState(keys(0))

' NumLock handling:

NumLockState = keys(VK_NUMLOCK)
If NumLockState <> True Then
StatusBar1.Panels(1).Text = ""
Else
StatusBar1.Panels(1).Text = "NUM"
End If

' CapsLock handling:

CapsLockState = keys(VK_CAPITAL)
If CapsLockState <> True Then
StatusBar1.Panels(2).Text = ""
Else
StatusBar1.Panels(2).Text = "CAP"
End If

' ScrollLock handling:

ScrollLockState = keys(VK_SCROLL)
If ScrollLockState <> True Then
StatusBar1.Panels(3).Text = ""
Else
StatusBar1.Panels(3).Text = "SCR"
End If

' Insert handling:

InsState = keys(VK_INS)
If InsState <> True Then
StatusBar1.Panels(4).Text = ""
Else
StatusBar1.Panels(4).Text = "INS"
End If
End Sub
Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
UpdateKeyState()
End Sub
Private Sub Form1_Activated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Activated
UpdateKeyState()
End Sub

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #7
Peter,

Thanks!! I've got 99% of what I need. when the form has focus, the status
bar updates whenever one of the Lock keys is pressed. And when the app
loads, it gets the state of the keys and updates the status bar.

Now, if the form loses focus, when I go back to the form, the status bar has
not been updated As an example: my app has focus, NumLock is off, I focus on
another app and turn NumLock on. when I go back to my app, the status bar
does not show Num Lock on unless I change the NumLock state when the form
has focus.

so, I need one more event handler for when the form gets focus (after the
activated event).

TIA
Lee

""Peter Huang" [MSFT]" <v-******@online.microsoft.com> wrote in message
news:ZE*************@TK2MSFTNGXA02.phx.gbl...
Hi

I think the controls keys will fire the key_press event, we need to handle
the KeyUp event and form_active event, so that when we press the key or
switch from another window, the key will be updated.

Private Sub UpdateKeyState()
Dim NumLockState As Boolean
Dim ScrollLockState As Boolean
Dim CapsLockState As Boolean
Dim InsState As Boolean
Dim keys(255) As Byte

GetKeyboardState(keys(0))

' NumLock handling:

NumLockState = keys(VK_NUMLOCK)
If NumLockState <> True Then
StatusBar1.Panels(1).Text = ""
Else
StatusBar1.Panels(1).Text = "NUM"
End If

' CapsLock handling:

CapsLockState = keys(VK_CAPITAL)
If CapsLockState <> True Then
StatusBar1.Panels(2).Text = ""
Else
StatusBar1.Panels(2).Text = "CAP"
End If

' ScrollLock handling:

ScrollLockState = keys(VK_SCROLL)
If ScrollLockState <> True Then
StatusBar1.Panels(3).Text = ""
Else
StatusBar1.Panels(3).Text = "SCR"
End If

' Insert handling:

InsState = keys(VK_INS)
If InsState <> True Then
StatusBar1.Panels(4).Text = ""
Else
StatusBar1.Panels(4).Text = "INS"
End If
End Sub
Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
UpdateKeyState()
End Sub
Private Sub Form1_Activated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Activated
UpdateKeyState()
End Sub

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 21 '05 #8
I would have thought that the Activate event would have fired but guess not.
You might check the WinProc form method that is called whenever the form
receives a message.

"lgbjr" wrote:
Peter,

Thanks!! I've got 99% of what I need. when the form has focus, the status
bar updates whenever one of the Lock keys is pressed. And when the app
loads, it gets the state of the keys and updates the status bar.

Now, if the form loses focus, when I go back to the form, the status bar has
not been updated As an example: my app has focus, NumLock is off, I focus on
another app and turn NumLock on. when I go back to my app, the status bar
does not show Num Lock on unless I change the NumLock state when the form
has focus.

so, I need one more event handler for when the form gets focus (after the
activated event).

TIA
Lee

""Peter Huang" [MSFT]" <v-******@online.microsoft.com> wrote in message
news:ZE*************@TK2MSFTNGXA02.phx.gbl...
Hi

I think the controls keys will fire the key_press event, we need to handle
the KeyUp event and form_active event, so that when we press the key or
switch from another window, the key will be updated.

Private Sub UpdateKeyState()
Dim NumLockState As Boolean
Dim ScrollLockState As Boolean
Dim CapsLockState As Boolean
Dim InsState As Boolean
Dim keys(255) As Byte

GetKeyboardState(keys(0))

' NumLock handling:

NumLockState = keys(VK_NUMLOCK)
If NumLockState <> True Then
StatusBar1.Panels(1).Text = ""
Else
StatusBar1.Panels(1).Text = "NUM"
End If

' CapsLock handling:

CapsLockState = keys(VK_CAPITAL)
If CapsLockState <> True Then
StatusBar1.Panels(2).Text = ""
Else
StatusBar1.Panels(2).Text = "CAP"
End If

' ScrollLock handling:

ScrollLockState = keys(VK_SCROLL)
If ScrollLockState <> True Then
StatusBar1.Panels(3).Text = ""
Else
StatusBar1.Panels(3).Text = "SCR"
End If

' Insert handling:

InsState = keys(VK_INS)
If InsState <> True Then
StatusBar1.Panels(4).Text = ""
Else
StatusBar1.Panels(4).Text = "INS"
End If
End Sub
Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
UpdateKeyState()
End Sub
Private Sub Form1_Activated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Activated
UpdateKeyState()
End Sub

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.


Nov 21 '05 #9
Hi

Based on my test, we need to use GetKeyState to update the key state.

BTW: Based on the KB below, if we have datagrid on the form, even if
KeyPreview is set to true, the KeyUp event will not fire, this is by design.
So we need to subclass by override the wndproc of the datagrid to send the
key_up message back to the form.
PRB: Form Key Events Are Not Raised When You Type in a DataGrid Cell with
the KeyPreview Property Set to True
http://support.microsoft.com/default...B;EN-US;815252

Private Declare Function GetKeyboardState Lib "user32" (ByRef
pbKeyState As Byte) As Integer
Private Declare Function SetKeyboardState Lib "user32" (ByRef
lppbKeyState As Byte) As Integer
Private Declare Function GetKeyState Lib "user32" Alias "GetKeyState"
(ByVal nVirtKey As Integer) As Short
Private Declare Function GetAsyncKeyState Lib "user32" Alias
"GetAsyncKeyState" (ByVal vKey As Integer) As Short

' Constant declarations:

Const VK_NUMLOCK As Short = &H90S
Const VK_SCROLL As Short = &H91S
Const VK_CAPITAL As Short = &H14S
Const VK_INS As Short = &H2DS
Private Sub UpdateKeyState()
Trace.WriteLine("UpdateKeyState called")
Dim NumLockState As Boolean
Dim ScrollLockState As Boolean
Dim CapsLockState As Boolean
Dim InsState As Boolean
Dim keys(254) As Byte

GetKeyboardState(keys(0))

' NumLock handling:

NumLockState = GetKeyState(VK_NUMLOCK)
Trace.WriteLine(NumLockState)
If NumLockState <> True Then
StatusBar1.Panels(1).Text = ""
Else
StatusBar1.Panels(1).Text = "NUM"
End If

' CapsLock handling:

CapsLockState = GetKeyState(VK_CAPITAL)
Trace.WriteLine(CapsLockState)

If CapsLockState <> True Then
StatusBar1.Panels(2).Text = ""
Else
StatusBar1.Panels(2).Text = "CAP"
End If

' ScrollLock handling:

ScrollLockState = GetKeyState(VK_SCROLL)
Trace.WriteLine(ScrollLockState)
If ScrollLockState <> True Then
StatusBar1.Panels(3).Text = ""
Else
StatusBar1.Panels(3).Text = "SCR"
End If

' Insert handling:

InsState = GetKeyState(VK_INS)
If InsState <> True Then
StatusBar1.Panels(4).Text = ""
Else
StatusBar1.Panels(4).Text = "INS"
End If
End Sub
Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
Trace.WriteLine("Form1_KeyUp")
UpdateKeyState()
End Sub
Private Sub Form1_Activated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Activated
Trace.WriteLine("Form1_Activated")
UpdateKeyState()
End Sub

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #10
Hi

Based on my test, we need to use GetKeyState to update the key state.

BTW: Based on the KB below, if we have datagrid on the form, even if
KeyPreview is set to true, the KeyUp event will not fire, this is by design.
So we need to subclass by override the wndproc of the datagrid to send the
key_up message back to the form.
PRB: Form Key Events Are Not Raised When You Type in a DataGrid Cell with
the KeyPreview Property Set to True
http://support.microsoft.com/default...B;EN-US;815252

Private Declare Function GetKeyboardState Lib "user32" (ByRef
pbKeyState As Byte) As Integer
Private Declare Function SetKeyboardState Lib "user32" (ByRef
lppbKeyState As Byte) As Integer
Private Declare Function GetKeyState Lib "user32" Alias "GetKeyState"
(ByVal nVirtKey As Integer) As Short
Private Declare Function GetAsyncKeyState Lib "user32" Alias
"GetAsyncKeyState" (ByVal vKey As Integer) As Short

' Constant declarations:

Const VK_NUMLOCK As Short = &H90S
Const VK_SCROLL As Short = &H91S
Const VK_CAPITAL As Short = &H14S
Const VK_INS As Short = &H2DS
Private Sub UpdateKeyState()
Trace.WriteLine("UpdateKeyState called")
Dim NumLockState As Boolean
Dim ScrollLockState As Boolean
Dim CapsLockState As Boolean
Dim InsState As Boolean
Dim keys(254) As Byte

GetKeyboardState(keys(0))

' NumLock handling:

NumLockState = GetKeyState(VK_NUMLOCK)
Trace.WriteLine(NumLockState)
If NumLockState <> True Then
StatusBar1.Panels(1).Text = ""
Else
StatusBar1.Panels(1).Text = "NUM"
End If

' CapsLock handling:

CapsLockState = GetKeyState(VK_CAPITAL)
Trace.WriteLine(CapsLockState)

If CapsLockState <> True Then
StatusBar1.Panels(2).Text = ""
Else
StatusBar1.Panels(2).Text = "CAP"
End If

' ScrollLock handling:

ScrollLockState = GetKeyState(VK_SCROLL)
Trace.WriteLine(ScrollLockState)
If ScrollLockState <> True Then
StatusBar1.Panels(3).Text = ""
Else
StatusBar1.Panels(3).Text = "SCR"
End If

' Insert handling:

InsState = GetKeyState(VK_INS)
If InsState <> True Then
StatusBar1.Panels(4).Text = ""
Else
StatusBar1.Panels(4).Text = "INS"
End If
End Sub
Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
Trace.WriteLine("Form1_KeyUp")
UpdateKeyState()
End Sub
Private Sub Form1_Activated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Activated
Trace.WriteLine("Form1_Activated")
UpdateKeyState()
End Sub

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: George | last post by:
Every time I used the Sendkeys command in my application the "Numlock" turned off and I couldn't use the keypad to hit numbers...... The old code was: Private Sub Command1_Click() SendKeys...
5
by: James Kirkup | last post by:
Hello, Does anyone know in code how to turn the NumLock key on in C#? with regards James *** Sent via Developersdex http://www.developersdex.com ***
2
by: Chris | last post by:
can anyone out there tell me how do u check the state of these keys in vb.net? or is there any components in the .NET Framework that supports doing so? any help is appreciated. Thanks.
2
by: Woody Splawn | last post by:
Could someone tell me what code I run to determine if the user's numlock is on? Is there code I can run to set the numlock to on?
5
by: Stan Sainte-Rose | last post by:
Hi I saw a post about numlock but I can't not read it. I would like to check the state of the numlock key and if it's not active, set its status on active. How can I accomplish that in vb ? ...
1
by: nTn | last post by:
I'd like show in my status bar, status of NumLock, CapsLock and ScrollLock. How I do? Thx
1
by: Bob | last post by:
Using the standard login form of VB.Net in VS2005. When I have capslock On and enter in the passwordtextbox control I get a tooltip that says Capslock is on etc... , Looking at the events of that...
0
by: =?Utf-8?B?Q29tcHV0ZXJfRW5naW5lZXJfU3R1ZGVudA==?= | last post by:
I'm locking for an C# equivalent to the VBS code On Error Resume Next Set objWord = CreateObject("Word.Application", "" & txtPCName.Value & "") strCapsLock = objWord.CapsLock strNumLock =...
3
by: Z.K. | last post by:
I am trying to detect if the Numlock is pressed. I can do it okay with the CapsLock or the ScrLk, but not with NumLock. The code for all three checks is exactly the same, but for some reason...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.