Skip to main content

All Questions

Tagged with
0 votes
0 answers
7 views

how to update a VS2022 form from another namesapace

i am a relatively inexperienced/casual VS2022 programmer. i know enough to get into problems. i have a windows form application that is part of a calibration system. The main form that starts has ...
MarkBar's user avatar
  • 11
0 votes
0 answers
10 views

C# Winform PostMessage doesn't work specific process

My Program's PostMessage confirmed that key inputs are sent without focus. However, certain processes cannot be sent, but when focus on, the key input starts. Is this not possible for security reasons ...
zeros's user avatar
  • 1
0 votes
0 answers
58 views

How can I create a Form that doesn't get to front or that doesn't get focus, if i active him

I want make a Form in Visual Basic, that can't get focus and can't be brought to front from another windows I have searched a lot but I haven't found anything. I tried this code, that make for me ...
KRR1751's user avatar
0 votes
1 answer
66 views

How do I fix my Visual Studio forms not focusing?

I have a button which opens a new form, but every time I press it I have to click my app from the taskbar to open it because it doesn't focus, my form border style is set to none. This is the code I ...
ProgrammerApe's user avatar
1 vote
1 answer
128 views

How to use the KeyUp event in a UserControl to move the focus

I want to preview Keys directed to child Controls of my UserControl. Actually what I want is to press the F8 key, to move the focus to a child Control (a TextBox named BtxtBarcode here) Is there ...
roy's user avatar
  • 729
-1 votes
1 answer
131 views

How to remove focus from a button

I have a panel on which there is a button.But there is a problem. I need to use KeyEventHandler to catch the Enter press, the button is pressing, and the event is not processed. I tried artificially ...
Adarchenko Daniil's user avatar
0 votes
2 answers
130 views

WinForms: topmost form loses focus on hiding dialog called from it

I have a WinForms project with a main topmost form from which a non-modal dialog is displayed. I need to hide (not close) the dialog if it loses the input focus - no matter what was the reason (the ...
TecMan's user avatar
  • 2,919
0 votes
2 answers
123 views

How to detect a mouse click on an MDI child?

I use the code down below to start notepad and move it into panel1 on my form. When another application (running outside my project) is positioned in front of my form, I can click my form's title bar ...
Eric van Loon's user avatar
0 votes
1 answer
266 views

WinForms UserControl can't Focus properly

I have a WinForms UserControl that accepts keyboard input, and had a Scrollbar for scrolling, and everything was fine. Recently I swapped the Scrollbar control out for a custom scrollbar (also a ...
HypnoToad's user avatar
0 votes
3 answers
90 views

Why I can not change focus?

Im making a calculator.and for the buttons that type numbers, I wrote a condition that if the focus was on text box 1, it would enter the text there, if not, it would enter text box 2. But ...
Se Az's user avatar
  • 1
0 votes
0 answers
21 views

How to Set the focus on a keyup event in c#? [duplicate]

I created a game in my form and for restarting the game Enter should be pressed. The problem is when I press Enter to restart the game my form closes or minimizes due to the close button and minimize ...
Linda M's user avatar
0 votes
0 answers
173 views

Change focus on a Button in a Panel using the arrow keys

Assume you have a Form with ten Buttons on it, with the first one having the focus, so that it can be clicked by hitting the Enter key on the keyboard. Now, you can set the focus to the next button ...
Haniff's user avatar
  • 1
1 vote
2 answers
118 views

Focus winform after application.run

I have 2 winforms in an application in visual studio. The first one is kind of a loading screen, making sure there are no connection problems, then a second winforms opens, which would be a login form....
AIT4's user avatar
  • 11
2 votes
1 answer
244 views

Focus a child Control of a User Control when a combination of keys is pressed

I have a Form that contains a Panel where I placed a UserControl. I want that when the Ctrl+F Keys combination is pressed, a TextBox Control, child of my UserControl, gets the Focus. The structure is ...
Gamer In The Game's user avatar
-1 votes
1 answer
65 views

How to set the focus to the form?

When I click a button in my form and call a click event ,if i press the arrows buttons of the keyboard(up,left,right and down) the keydown event is not called What can I do? Sorry for my English😅
Alfredo Montero's user avatar

15 30 50 per page
1
2 3 4 5
20