Heya all, I'm working on a small 'file browser', where the list of files is printed in a console (for now), but where the user inserts the file's path in a GUI. My gui is rather simple: one frame and one panel containing a JTextField and a JButton. I want the JButton to be activated when the user presses enter in the JTextArea (like in any other file browser) to increase useability. In order to do so, i made the button focusable and the default focus, and that works on windows, but not on linux. I know the default look …

Member Avatar
Member Avatar
+0 forum 2

I am using FactoryLink SCADA HMI software and I need to lock the focus on a screen that automatically opens and needs operator to answer before it will close and allow the user to continue on the background screen. If anyone knows where I can find this answer I would appreciate it. I have been all over the internet trying to find the proper forum to no avail. This site has always given me good advice.

Member Avatar
Member Avatar
+0 forum 3

Hi, I have one form with multiple controls (e.g. Button,Textbox, RadioButton, ComboBox, etc.). I want to set the focus dynamically on a control using key F4 to highlight that control. Scenario: 1.Suppose the user clicks on any control 2.Press Key F4 to highlight that control so that the user will know which control was clicked before. Appreciate your suggestions. Thank you.

Member Avatar
Member Avatar
+0 forum 14

I will be focusing on structure, load times, semantic code and schema. What are your SEO plans for 2013?

Member Avatar
Member Avatar
-1 forum 4

Upon resizing an anchored combobox - I noticed the text was always selected. This sparked the initiative to fix this problem. (Microsoft decided not to) So by extending the combobox class we can fix this. The following class can be dropped into a form for designer manipulation or as a user control. This is an extremely simple fix.

Member Avatar
+2 forum 0

Hi i have a form1 and form2 and also a button1 in my button1 i have this code Form2.show now when the Form2 is show and everytime i click a button Private Sub Combo_AM_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)_ Handles Combo_AM.SelectedIndexChanged With Combo_AM If Combo_EBU.Text = "EBU 2" Then If .Text = TonetteA Then EBU2_TonetteA() AMFormat() ElseIf .Text = JennyT Then EBU2_JenniferT() AMFormat() ElseIf .Text = MaricrisB Then EBU2_MaricrisB() AMFormat() ElseIf .Text = NellieR Then EBU2_NellieR() AMFormat() End If ...... the Form2 lost its focus is their a way to do this stuff? like i put something like …

Member Avatar
Member Avatar
+0 forum 4

i am new to html when i try to login i clicked the member login then it shows the login form focused how can i acheive it.

Member Avatar
Member Avatar
+0 forum 1

Hello everyone! I have a rather mysterious problem. I have a mfc dialog based application (running on win xp sp3), and at the same time another mfc app that installs a global keyboard hook capturing the ESC key (this one is always hidden). SOMETIMES when i press ESC key (with the dialog based application on top + focused) the dialog closes normally but it seems like it never returns the focus to the desktop (or any other window that is shown on screen). I realize that because the keyboard hook does not respond to the ESC press after that UNLESS …

Member Avatar
+0 forum 0

Hi everyone, I have 3 forms: main, AdvancedSearchMenu, and FacilitySearch. When the user clicks the AdvancedSearchMenu button on the main form, a new form appears in the style of a popup. This form contains a few different controls, including a button for FacilitySearch. I want the form to change from AdvancedSearchMenu to FacilitySearch when the user clicks the FacilitySearch button, but I don't know how to set focus to this FacilitySearch form when the switch happens. Here is my code: Public Class advSearchMenu Private Sub FacilityButton_Click(sender As System.Object, e As System.EventArgs) Handles FacilityButton.Click Me.Visible = False FacilityAdvSearch.Show() End Sub End …

Member Avatar
Member Avatar
+0 forum 1

Hi, Can anyone tell me alternatives to focus() and blur() events in jquery as they dont work in chrome? On focus I am adding a div and on blur that div is being removed. Thanks, VC

Member Avatar
Member Avatar
+0 forum 2

Hi everybody, How to do the following in java..?? created a frame and one button added to that frame and set the keyboard shortcut to that button.Now my question is how to make that keyboard shortcut will work eventhough focus is not there in that frame? anyone have any idea..

Member Avatar
Member Avatar
+0 forum 2

Hi, I got a strange problem with a TextBox, which is in an Xpander in an XpanderList in a custom UserControl. (Using C#, .NET 4, Visual Studio 2010, WinForms, Windows 7.) I am making a simple "auto-complete", by starting a Timer in my TextBox TextChanged event. If this timer fires a tick before next TextChanged event, I interpret this as the user stopped typing, and I go doing a search in my data. After the search, I do a lot of GUI stuff to display the result. Now, this works fine. But afterwards, my TextBox has not focus anymore! No …

Member Avatar
Member Avatar
+0 forum 3

In Tkinter, I am trying to make the askdirectory menu more user friendly. Is there a way to center the focus of the window on the last folder opened, both vertically and horizontally? I don't want my users to have to scroll right when they get deep into subfolders. def action1(): master.withdraw() dirname = tkFileDialog.askdirectory(parent=master,initialdir='./',title='Please select Lot directory') global dirname master.destroy()

Member Avatar
Member Avatar
+0 forum 2

I need not to focus on readonly input and when user tab it should jump to next write field. <input type="text" name="first"></input> <input type="text" name="second" readonly="readonly"></input> <input type="text" name="third"></input> <input type="text" name="fourth"></input> <input type="text" name="fifth" readonly="readonly"></input> <input type="text" name="sixth"></input> <script> $(document).ready( function(){ $('input').focus(function(e) { var readonly = $(this).attr("readonly"); if (readonly) { $(this).next('input:not([readonly])').focus(); e.preventDefault(); } }); }); </script>

Member Avatar
Member Avatar
+0 forum 1

Hey everybody, I've been scouring the internet and forums for days now trying to solve this issue, that seems to me like it should be pretty simple. Basically I have a multi-step form with multiple tabs in a TabContainer. There are a couple radiobuttonlists that perform autopostbacks, and I want to let the users focus go back on the radiobuttonlist so that they aren't sent back to the top of the page and lose their page state. I have tried all of the usual stuff using SetFocus() on a control, or a certain item in the radiobuttonlist. Have used the …

Member Avatar
+0 forum 0

hello ! look , for example i have 2 textboxes in my vb form, i want that when i press enter key the focus move from 1st textbox to 2nd textbox , i use this code on my every control to move focus [CODE] if e.keychar = chr(keys.enter) then textbox2.focus () endif [/CODE] can any one help me to make a function to do same action when i press enter the focus move on next control , this sort of coding take so much time , :( please help me Best Regards M.Waqas Aslam

Member Avatar
Member Avatar
+0 forum 4

I have seen similar questions which attempt to solve this issue, but none seem to work for me so far... 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 …

Member Avatar
Member Avatar
+0 forum 1

Hi I am developing some items using CustomItem and i am adding those into a Form. Now the problem is that when i add a standard item along with my custom item traversal method of custom item stops working properly. My problem will be solved if one can say me about focussing on current items. Is there any way how to get the current focussed item? Thanks Abhishek

Member Avatar
+0 forum 0

i have two textbox's... these textbox's can have formatting applied etc, but they lose focus when a button is pressed, and the wrong textbox has formatting applied.. is there a way to track the last textbox to have control?. some kind of for each control f type textbox, if mouse.click, this.textbox.focus = true? i've seen examples on the net, but they didnt work for me. any help is appriciated.. thanks.

Member Avatar
Member Avatar
+0 forum 3

Hello everyone! I need to make a simple yet cool program for my professor. The program is this: To get the program to work, the user first presses a button on the form. Then, when the user presses an up arrow on the keyboard, the cursor will change to a custom cursor (a cursor with an image of car {in .ico format} for example), when the user releases the up arrow key, the cursor turns back to default cursor -- which is arrow. When the user presses an up arrow and left arrow at the same time on the keyboard, …

Member Avatar
Member Avatar
+0 forum 15

I hope this hasn't been discussed before. I searched but couldn't find a thread for this. I have an input (type="text") with some default text telling the user to enter something in the box. The input tag includes an onmousedown event which runs javascript function to clear the default text so the user can start entering their own text. This setup behaves in two possible ways, one is good and one is bad: Good: If the user clicks inside the text box, but after the default text, the text gets cleared and the cursor shows up at the beginning of …

Member Avatar
Member Avatar
+0 forum 9

I want to have a real-time validation for the first name & last name to check if user entered the data before submit. Well it's work fine in [COLOR="Red"]Google Chrome[/COLOR]... But in Firefox & Internet Explorer, if user press "Tab" key in [I]"first name"[/I], then the alert message will keep LOOPING between "first name" & "last name" to perform the validation n thus infinite alert message keep pop-up. Same apply when user press "Tab" key in [I]"last name"[/I] & another LOOPING start. Wondering how the "setTimeout" stuff works... Here's my code, thanks a million =) [CODE]<head> <title>Form</title> <script type="text/javascript"> function …

Member Avatar
Member Avatar
+0 forum 3

So, here's the picture: page1 has, at the bottom of it, a frame loading page2. The question is: can use a javascript (how?) in page2, so when the page1 loads, it will focus to the frame loading page2? Thanks!

Member Avatar
Member Avatar
+0 forum 14

Hi ~ I am trying to keep two children windows open at the same time as the parent. Umfortunately while opening the link to the second child window the first one minimizes. Is there a way around this? I have tried focus() on the second and not the first - have also tried focus on both. Neither work. Also I need the first win to be iframe, no scrollbars. Thanks for your help. Code: [CODE]<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>start</title> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> var myWin1; //global scope …

Member Avatar
Member Avatar
+0 forum 1

Hello, I currently have 2 JFrames for my "game" (Not really a good one), one for the actual game and one for a minimap. What I can't figure out is that when you click off the game (for example to a browser or something) the game and minimap loose focus, but when you click on the game again, the minimap may not show or is still not on top. What I want is so that once the game is brought into focus (they are playing the game) the minimap is shown next to it, on top. I hope that makes …

Member Avatar
Member Avatar
+0 forum 2

Hi, I've made a custom month view calendar control but I'm having a problem in my custom day event drag code. I don't use any of the drag and drop in winforms, basically I just override the OnMouseDown, OnMouseUp, OnMouseMove methods and listen for appropriate actions to get my own drag and drop working. It works like a charm but when I implemented something like an expand button that shows all the hidden events and made it to be able to handle drag and drop in the same way as the underlaying calendar control, I found a problem. The [B]hidden …

Member Avatar
+0 forum 0

Hi, Using jQuery 1.4.4 with the Roundabout plugin. Something weird is going on here and I can't put my finger on it. I have a function set up that changes the text of a <span> when a new image is called into focus. It gets called in $(document).ready like so: [CODE] <script> $(document).ready(function() { $('ul#archiveScroll').roundabout({ shape: 'lazySusan', tilt: -5.0, minOpacity: 0.09, maxOpacity: 1.0, reflect: true }); $('ul#archiveScroll li').focus(function(){ var title = $(this).children('.issueTitle').html().toString(); document.getElementById('displayTitle').textContent = title; }); }); </script> [/CODE] I have 7 images in rotation, but for some reason (no matter what order the images are in), the sixth and …

Member Avatar
Member Avatar
+0 forum 15

I can easily hide my form with the event KeyDown, but only by pressing ONE key, and I wanna hide it by pressing CTRL+SHIFT+O, for example. And the biggest problem is when I wanna restore it, because I have to go to the Task Manager, make the aplication has the focus and then press SHIFT. What can I do?

Member Avatar
Member Avatar
+0 forum 6

In MS Access you can set the background to a specific colour when the field has the focus. This is done through "conditional formatting", using the "Field has Focus" feature. How is that done in VB.NET?

Member Avatar
Member Avatar
+0 forum 5

Here is what i want to do : I have a laptop, a LCD TV connected with a DVI cable. I want to set up a loop presentation to run all day. It runs very well, i setup up with dual display, and full screen, and powerpoint has a "play on another display" option. The problem is that when i take the focus from the powerpoint gets paused, is something normal, but i want to disable it. Andi want to use the laptop, and let it run in background. You can test it yourself with alt-tab... Same thing happen with …

Member Avatar
+0 forum 0

The End.