Skip to main content

All Questions

Tagged with
1 vote
2 answers
58 views

Setting Focus on next item becoming visible while leaving ComboBox

I have a ComboBox with AutoCompleteMode set to Suggest. The next control in sequence is a TextBox. Depending on the selected item of the ComboBox the TextBox is visible or not visible. Furthermore ...
UHM's user avatar
  • 382
-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
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
1 answer
36 views

Why MainWindow doesn't take the focus from a Popup child

I have a problem when I'm using a Textbox in a Popup, opened from the MainWindow: if the MainWindow doesn't have the focus after the Popup has been opened, I'm not able to write something in the ...
Valentin Marie's user avatar
0 votes
1 answer
497 views

WPF application raises Activated event, but the application is not shown and not in focus

I have two applications. One of them is 3rd party, which sends messages to my WPF app. There are two types of messages: "hide" and "show". On "hide", my app hides itself ...
Ksice's user avatar
  • 3,317
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 vote
0 answers
30 views

Overwrite a Combobox style in an ItemTemplate to get rid of the focus grabbing

Let's have a TextBox which purpose is to open a ComboBox if it is not already opened instantly filter the content of the ComboBox It works a bit, but the problem is the ComboBox gets the focus when ...
lolveley's user avatar
  • 1,689
0 votes
0 answers
37 views

Arrowkey input vs focus on objects

I'm currently programming my own Tetris in C# and the input with W,A,S,D works. My problem is that I can't use the arrow keys because of the focus on objects (I mean the blue highlighting on the ...
New_Dev's user avatar
  • 11
0 votes
0 answers
88 views

.NET Focus() on WinForm control makes scrollbar move down

The link to the code is here on my github (was too long to post here): https://github.com/alpizano/UI-Scrollbar/blob/master/ScreenLogic.vb I also added a README.md that has the Controls labeled on ...
XxAemaethxX's user avatar
  • 1,947
0 votes
0 answers
200 views

Update Viewmodel prop when the user control lost focus

<UserControl UIHelper:FocusExtension.IsFocused="{Binding FocusUserControl,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Focusable="True" IsTabStop="True"> here I added an IsFocused prop to ...
Avinash Reddy's user avatar
0 votes
1 answer
508 views

Recognizing the last button that was clicked C#

I have 3 buttons btn1 btn2 btn3 and a textbox when i click any button it will focus on the textbox, my problem is that when I will press the escape I want to focus on the last button that was clicked....
EmmFil's user avatar
  • 1
0 votes
1 answer
30 views

How do I keep a textbox scrolled to the end even after I switch focus to another textbox?

I have two textboxes, textboxB copies from textboxA every time the text is changed but textboxA doesn't keep scrolling to the end. They're both one line textboxes that must have the cursor at the end ...
NingaMEW's user avatar
1 vote
2 answers
336 views

How may I automatically change focus from textBox1 to textBox2 after populating textBox1?

I've created a stock locater/mover program. The scenario sequence is as follows: First, the user will scan a QR code into textBox1 and then scan a location into textBox2. Next, an update statement ...
Will Howard's user avatar
1 vote
0 answers
114 views

Embedding AxAcroPDF into my form causes it to load in the background randomly

I just wanted to use a simple PDF viewer for a company application. I decided on AxAcroPDF for this. It works well enough. The problem I can't seem to fix is that the form will sometimes, actually a ...
Keith's user avatar
  • 1,321
0 votes
2 answers
153 views

How to influence keyboard focus traversal policy in WPF?

Let's say there are two WPF lists. I'd like to be able to iterate seamlessly through items it both lists using just keyboard arrow keys. By default focus scope is limited to iteration within a single ...
kane's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
9