Remove Focus From FpSpread?
Dec 8, 2010
I have a problem removing the Focus from FpSpread to any other control in the same Form.The real problem happens when opening another form while the old form is still opened, the focus remains at FpSpread in the old form.
View 1 Replies
ADVERTISEMENT
Aug 28, 2009
I have a tab control and am adding and removing tabs in runtime. I would like to two things. 1) Remove the tab that has focus. 2) Not allow a tab to open if another instance of the tab is already added.
View 9 Replies
Apr 10, 2011
I have a textbox, and I want it so if the user clicks anywhere on the form that is not the textbox itself, such textbox will lose focus
View 2 Replies
Apr 25, 2009
I have 4 Listbox's on a form.
I can click in all 4 and they maintain focus.
How can i remove focus from all the Listbox's except the one i have just selected when i select a Listbox?
I have tried
Me.lstExternalDoors.SelectedIndex = -1
Me.lstInternalDoors.SelectedIndex = -1
Me.lstInternalWindows.SelectedIndex = -1
and
[Code].....
View 3 Replies
Jan 5, 2012
Does anyone know if you can remove focus from all controls on a form so a user doesn't inadvertently cause action on a control when it's unintended such as hitting Enter at the same time your app appears causing some action to occur? Do you have to leave focus on at least one control?
View 12 Replies
May 14, 2010
I am setting my Winforms Button control properties to appear as a hyperlink would on a web page. I've formatted everything fine, except the border in the FlatAppearance object. I have code to act as pseudo-CSS (FormBackColor is a string constant.):
b.FlatStyle = FlatStyle.Flat
b.BackColor = ColorTranslator.FromHtml(FormBackColor)
b.ForeColor = Color.Blue
[code]....
The code removes the border from the flat Button control except on MouseOver, where I add a 1 pixel border. On MouseLeave, I remove the border. This is to show some visual feedback. This works fine when the button does not have the focus. However, if I click on the button, giving the button focus, mousing out and over again now shows a greater than 1 pixel border around the button. I'm imagining it's combining my button's explicit 1 pixel border with the traditional "Winform Button has the focus, so add a border" border around the Button.How can I disable/remove the "Winform Button has the focus, so add a border" border? Or, should I just do a check in ButtonMouseOver to check if the control has the focus, being a condition of adding the border, and just be done with it?
View 2 Replies
Apr 22, 2010
I have a picture box in which I type some letter on capturing keystrokes.The problem is that at Form Load, the focus is on the buttons available on the form. How can I keep the focus on my Picture Box at form load?
View 2 Replies
Jul 18, 2009
Is there any way to remove the textbox's focus when mouse is clicked in the textbox? the blinking focus in the textbox is not needed for kiosk system. so i try remove it with
[Code]...
View 2 Replies
Feb 16, 2011
Is there a more efficient/easier way changing the backcolor of a control when it has focus and lost focus? Let's say I've got 10 text boxes. Right now I would have 20 different events...10 for Enter event and 10 for Leave event. Of course, entering would change the back color to "green" and leaving would change it back to "white".
[Code]....
View 4 Replies
Mar 10, 2009
Here is what I've done:1) Created an Excel COM add-in for Excel 20032) Added a NotifyIcon to the Windows taskbar notification area (aka system tray) during ThisAddIn_Startup3) Added a ContextMenuStrip with a ToolStripButton to the NotifyIconWhy is it when I right click on the NotifyIcon, Excel gains focus? If after clicking on the NotifyIcon to display the ContextMenuStrip I choose not select an option on the ContextMenuStrip and instead click back on the Excel window, I get a weird flashing cell in Excel.I've created a video of the problem to help you see what I [url] anyone know how to prevent this? Ideally, I'd like to be able to click back on Excel and only have the ContextMenuStrip close and Excel regain focus.
View 1 Replies
Nov 26, 2009
I have two forms in an application. One is he background and then I show another keypad form called with the show() method (not showDialog) because I need to perform some validations on btn click.
The kepad has 10 buttons and an Enter Button. The problem is that the form keeps loosing focus (I checked this with a messagebox which keeps poping up once for focus=true and again for focus=false, it continuously keeps losing and gaining focus) so it does not process any keypress events untill i click somewhere on the form. I tried using me.focus() in form load event but to no avail. The forms TopMost property is also set to true.
View 5 Replies
Jul 18, 2010
recommend a book that focuses on the .NET framework in general and isn't too language specific.
View 3 Replies
Mar 21, 2012
I have a textbox on a form that when it loses focus it updates other text boxes on the form. But before it updates the other textboxes I check the input value in the textbox lostfocus event if it is undesired I return focus to the the textbox and alert the the user with a msgbox. However where my problem is, is that when the cancel button is clicked I don't care what the input in the textbox is because the changes are being canceled but if the value is undesired the it keeps returning focus to the textbox instead of canceling the changes. Is there a way to see what control was clicked on before or in the lost focus event? Can't seem to figure it out tried enter and leave events but no luck!
So for example something like this...
Code:
Private Sub TextBox1_LostFocus(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.LostFocus
If Control that was clicked <> btnCancel then
[Code].....
View 2 Replies
Oct 25, 2011
After I did a sendkeys to another program from my form, i wanted to return focus to the form. i tried me.focus = true but that doesn't work.
View 1 Replies
Nov 7, 2009
I am having problem setting focus on specific cell in my Datagridview1 . On Form1 when clicking on cell 3 in any row, I am callig a Dialog1. However, when done working with it, and closing the Dialog1, the focus returns to cell 3 in my Datagridview1 . I like to set the focus on the next cell(4) making it the current cell.
I have tryed :
DataGridView1.SelectionMode = DataGridViewSelectionMode.CellSelect
DataGridView1.CurrentCell = DataGridView1.Item(4, e.RowIndex)
DataGridView1.CurrentCell = DataGridView1.CurrentRow.Cells(4)
And few other things, I am always getting this exception: Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function.
View 2 Replies
Dec 15, 2010
Is it possible to set focus on the keydown event so after the button control, sets the focus into the keydown? although says often control can have focus,.Putting a button and a keydown event on a form...
View 2 Replies
Jan 11, 2011
Just had to remove remove statics and use Delegates refering to class. i have got a little problem in one of my project.I need help to resolve it.My application Connect several FTP server with the same Class.I'm using TCPclient for few specifics Commands.The problem : All threads call the same TCPclient wich can't connect several server at once.I would like to create a New TCPclient for each thread.
[Code]...
View 8 Replies
Oct 10, 2011
I'm trying to remove individual nodes from their parent, I tried the Remove method but it doesn't seem to be working. How is this done? Is this a bug or what?
Sub Main()
Dim xml =
<?xml version="1.0" encoding="utf-8"?>
[Code].....
View 1 Replies
Jul 18, 2012
How can i remove an array item by selecting an item from listobx and press remove/delete button?for an example, if i want remove index 2 from listbox, so the array should remove index 2 item and move the item of index 3 to index 2 and so on.
View 7 Replies
Feb 22, 2009
I'm trying to get a ComboBox to remove the 6th string in the ComboBox or an index of (5) but it doesn't remove it here is the function I am using:
if ComboBox1.items.count = 6 then
ComboBox1.Items.RemoveAt(5)
End If
View 3 Replies
Jun 21, 2010
why the code...
Form1.Controls.Remove(myCustomControl) ...does not remove the control.
Because whenever I remove a control and add it again, it does not Load but rather just changes its visibility from false to true and all the variables are not reloaded.
I tried to use .Dispose() but VB.net tells me thatit can't access a disposed object whenever I try to add the control again.
View 6 Replies
Aug 25, 2011
I am making a keyboard for my program in visual basic. This program is using touchscreen. Here is the idea, when i click the keyboard keys (button serves as my keyboard key) it will display the corresponding letters on a textbox that is on focus. How can I populate those textboxes if they are on focus?
View 2 Replies
Dec 14, 2009
How do you set focus to a specific control in a datagridview row after clicking the edit button? I'm able to do it for a new row when the grid is binding, but not for an existing row. The control doesn't seem to exist yet.[code]
View 1 Replies
Jan 29, 2012
Basically, for my first VB project, I am creating a virtual keyboard where a sound is played from the resources on KeyDown. So far, the program seems to work except for the fact that each key needs to be clicked by the mouse before the sound is played by pressing each key (hence put the object in focus), where I need the key to play the sound without clicking the keyboard key (put the object in focus on KeyDown). Below is an example of my code:
Private Sub C_KeyDown(ByVal sender As System.Object, ByVal e As PreviewKeyDownEventArgs) Handles C.PreviewKeyDown ' C is the label attached to the first 'Rectangle' (Key)
If (e.KeyCode = Keys.A) Then 'The A key should activate the C key on the keyboard
[code]....
I have KeyPreview set to 'True' under the form's properties.
View 1 Replies
Mar 15, 2012
When I enter a vb.net textbox, if there is data in it, I want it to be highlighted. I looked around and couldn't find a property that would do this so I do the following:I built a little subroutine that does the highlighting and then call it from the ENTER and CLICK event on each text box.
[Code]...
View 2 Replies
Dec 17, 2009
how to focus a particular Row in devexpress
View 4 Replies
Oct 2, 2011
it is an on screen keyboard. you press the button with your mouse and it will type in another app you place focus on the bit i am trying to figure is how do i make a windows app using vb that when i do something in it it will register in another app? in other words how do i get the actions in one app to register in another open app?
View 1 Replies
Jul 4, 2009
How can I make it so that if the cursor position is anywhere from 200 to 500, it'll make "Region" = true?
View 3 Replies
Jun 11, 2010
I have a stand alone application that I am writing that has a button to luach a website I am developing.The button checks to see if the website is already open.If it is, the application should set focus to the website in IE8.I am having, is if the website is already open in a tab in a IE8 window, but the focus is on another tab (e.g.url..I can set the focus to the entire IE8 window using the HWND, but not the tab I intend to have focus.Even though they are multiple tabs, they all have the same HWND because they are in the same window.
View 2 Replies
Jul 21, 2010
I want to focus on one column in datagridv
but it doesnt work this is my [cpde]...
View 3 Replies