5 Replies - 2249 Views - Last Post: 07 July 2012 - 08:10 AM Rate Topic: -----

#1 bolamalli   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 05-July 12

I want always inactive my windows form.

Posted 05 July 2012 - 09:42 AM

i want always inactive my windows form (like a on screen keyboard). how can i do it.
Is This A Good Question/Topic? 0
  • +

Replies To: I want always inactive my windows form.

#2 DarenR   User is offline

  • D.I.C Lover

Reputation: 793
  • View blog
  • Posts: 5,089
  • Joined: 12-January 10

Re: I want always inactive my windows form.

Posted 05 July 2012 - 09:44 AM

I have no idea what your asking
Was This Post Helpful? 0
  • +
  • -

#3 bolamalli   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 05-July 12

Re: I want always inactive my windows form.

Posted 06 July 2012 - 11:39 PM

please open on screen keyboard and notepad

then click on screen keyboard button.
check activated window on your desktop
i think note pad window is the activated window.
if you click on the on screen key board again
it's not activated.

i want always inactive my windows form like on screen key board.

how can i do it.

please help me.
Was This Post Helpful? 0
  • +
  • -

#4 trevster344   User is offline

  • The Peasant
  • member icon

Reputation: 225
  • View blog
  • Posts: 1,526
  • Joined: 16-March 11

Re: I want always inactive my windows form.

Posted 07 July 2012 - 07:49 AM

I have no clue what you're asking for, I'm sorry.
Was This Post Helpful? 0
  • +
  • -

#5 Ionut   User is offline

  • D.I.C Lover
  • member icon

Reputation: 386
  • View blog
  • Posts: 1,057
  • Joined: 17-July 10

Re: I want always inactive my windows form.

Posted 07 July 2012 - 08:03 AM

I think you have to do some nasty stuff with your operating system. And by this I mean you have to load some hooks into your system(or target OS) and manipulate the ZOrder of the windows. This is quite tricky and depending on the purpose of the application it might be to much(installing a hook requires administrator privileges). Also you have to use unmanaged code (WinApi)
Now some helpful links to get you started for research
Windows hooks
Windows features
Using hooks
About WinApi/ P/Invoke
P/Invoke description and examples(wiki)
Was This Post Helpful? 0
  • +
  • -

#6 drec   User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 42
  • Joined: 06-July 12

Re: I want always inactive my windows form.

Posted 07 July 2012 - 08:10 AM

I think he wants to keep his app window deactivated but always on top.

1. To keep d app window deactivated when u start d app
I would find d last active window, then when I start my app activate last active window.

I dont know how to get d last active window (guys help!).

d alternative is to switch the focus to another application. D SetActiveWindow dll function can do that ...
http://stackoverflow...her-application

2. To keep d app window always on top
I would set d form property TopMost to True.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1