|
We have a 3rd party control loaded in our C# WinForms app.
When we call a method on this 3rd party ActiveX control, it asynchronously steals focus. For example:
// This call causes 3rd party to spawn a thread and steal focus milliseconds later. foo3rdParty...
Started by Judah Himango on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If....
Make the call to the third-party control's method.
Attach a handler to the active control which gets called when it loses focus .
You could try this rough approach:
Find which control has focus before you make the call, say using Form.ActiveControl .
|
|
Hi, i'm using a Form to show notifications (it appears at the bottom right of the screen) but the problem that i'm having is that when I show this form it steals the main form focus. Is there a way to show this "notification" form without stealing focus...
Started by Matías on
, 11 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Doing this seems like a hack, but it seems to work:
this.TopMost = true; // as a result the form gets thrown to the front this.TopMost = false; // but we don't actually want our form to always be on top
Edit: Note, this merely raises an already created... .
|
|
I have iGoogle as my home page. Every time that I start up Firefox with the intent to go to a specific page, I end up typing half the URL in the Google search box when iGoogle steals focus away from the URL bar. Is there any way to hack Firefox (or iGoogle...
Started by LinkTiger on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
If you.
Whenever you open up Firefox, you'll be greeted by a blank page that doesn't steal your focus.
|
Ask your Facebook Friends
|
Are there any solutions to prevent applications stealing focus from the active window? This is especially annoying when I'm starting an application, switch to do something else and the new application starts receiving half a sentence of text.
Started by Pacifika on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
Checking this option prevents that other applications pop up suddenly and steal the focus.
This can happen for a number focus”.
Applications steal the focus of the active window by popping up.
|
|
This question is little different from preventing an application from stealing focus, rather how can I find out what the heck is stealing focus?
It goes like this. I'll be typing something in Firefox on Vista (as I am now). Every few minutes something...
Started by Bill Reardon on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at superuser):
It's a task manager replacement tool which accurately....
Try Sysinternals ProcessExplorer.
If it's a laptop, maybe you are touching the touchpad by mistake and you click on the desktop .
Maybe you can try to alt+tab and see what is the first icon in the list .
|
|
When I run my VB.NET Winforms app I do not want it to steal the focus from the other open apps. FYI, my app is started from the command line but that shouldn't make a difference. I've seen question 577076 but that doesn't seem to work.
What is the best...
Started by JapNolt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Here is another version that should work for you:
protected CreateParams CreateParams { get { CreateParams baseParams = base.CreateParams; const int WS_EX_NOACTIVATE... .
In the example you linked, some constants are declared outside the scope of the method .
|
|
I am writing an application in Java that places an icon in the system tray (via SWT ). When this icon is clicked, I wish to have it automatically type some keys (via the Robot class) into whatever text field is in focus at the time of clicking (could ...
Started by Adam Paynter on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Robot robot....
Although it cannot be considered an official solution, I have been finding some success by issuing ALT+TAB key strokes immediately before issuing the textual key strokes .
This issue been discussed before.
Probably not, at least not easily.
|
|
I'm using the Excel COM interop to insert images (specifically EPS) into a spreadsheet. The images are inserted fine, but Excel ignores all the visible/background settings and steals the focus the display a dialog box saying something like "importing ...
Started by yoyoyoyosef on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm not sure I have a good answer to your question (I would have left a comment, but apparently I don't have enough reputation yet), but in case it's helpful, I often also disable events
xlApp.EnableEvents = False
Obviously you have to be sensitive to... .
|
|
I have a page on which, periodically, I must change the URL to incorporate some GET parameters in the background using JavaScript, such that the page refreshes using the new GET parameters.
So, for example, I'll periodically do
window.location.href = ...
Started by Kyle on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Does the whole page have to refresh? I would think that if you IFRAMED the content it wouldnt steal.
|
|
I'm using the Qt library to show a slideshow on the second monitor when the user isn't using the second monitor. An example is the user playing a game in the first monitor and showing the slideshow in the second monitor.
The problem is that when I open...
Started by Robbie Groenewoudt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Widgets don't accept focus by default but presumably you haven't created a plain widget? Which subclass was it? QMainWindow or something else?
It's possible the window subclasses default to accepting focus so try explicitly calling QWidget::setFocusPolicy... .
|