I have two windows, Window1 with TextField and Window 2. Window1 is main application window and Window2 is floating window supposed to be an advertisment banner activated by the timer (it check text every 3 sec.) once in the runtime when in the textfield user writes "banner".

Problem is in the focus!

When Window2 (advertisment) is showed I loose focus on TextField on the Window1. Window2 is correctly showed but user must manually click on textfield to get focus again.

Yes, I know that.. But I need to preserve Window2 opened while user enterning text in TextField. Idea is just to show advert in new advert windows (Window2) when user enter target text, without user interaction and without stopping him in enterning text.

A few things come to mind;1) What OS are you on? Knowing this is important when answering questions. Focus behavior varies between OSes.

2) How are you initiating the new window?

If you're using implicit initialization:

Window2.show

Then try initializing it like this instead and see if it makes a difference:

dim w as Windoww=new Window2

3) Does it need to be a floating window? From a user standpoint, more windows = more clutter. If you can, I'd encourage you to move to an elastic interface where you have the banner embedded within your main window, and when the user does whatever is needed to eliminate the banner, you hide it and resize the interface to fill that space.

Hope that helps.

_________________ImagePlay Effects Library (40+ image effects in one open source module. No plugins, no dependencies, no restrictions.)http://imageplay.sourceforge.net/