Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > focus problem when re-enter the form


Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2012, 08:50 AM
fibitini fibitini is offline
Newcomer
 
Join Date: Feb 2005
Posts: 24
Default focus problem when re-enter the form


Hello,

I have a problem to re-activate the form 100%
when I re-activate it using different methods,
the form gets on top and all that but its not 100% activated
until i have clicking on the form once or twice.
what i notice is the taskbar, even if i use different apis like
SetActiveWindow, BringWindowToTop, ShowWindow and SetWindowPos or just the me.show the program in taskbar are not pressed down.

is there a way to bring it on top and let the form in taskbar pressed down without clicking on the form?
Reply With Quote
  #2  
Old 06-05-2012, 11:00 AM
gibra's Avatar
gibra gibra is offline
Junior Contributor
 
Join Date: Apr 2008
Location: Italy
Posts: 377
Default

your code ?
Reply With Quote
  #3  
Old 06-05-2012, 11:42 AM
Gruff's Avatar
Gruff Gruff is offline
Bald Mountain Survivor

Super Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA
Posts: 5,877
Default

Your pardon gibra,

fibitini, As gibra says we cannot debug a problem without seeing what code or code snippet you are using.

That said. If you are trying to open a program that has been minimized to your task bar there are API 's to do specifically that. OpenIcon I believe is the one you want. After your app is normal and on top you use VB's AppActivate().
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->