Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 30th, 2007, 04:34 PM
Registered User
 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Form lost focus color change

I have two forms that make up a single screen. The first form acts as a menu and the second acts as a display area for whatever was selected (actually it does a form.show of what was selected). My first form has a menu on it plus a few other fields.

When an option is selected and focus is moved to the second form the first menu form becomes grayed out until someone clicks on it to regain focus.

Is there any way to stop this color change?
 
Old March 30th, 2007, 10:41 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey,

according to my knowledge, there is no way to activate two forms at a same time. So when the other form is focused, automatically the menu form loses the focus and its deactivated until you focus it on back...

I don't know what was the logic you have behind this approach of having menu form and showing the content in another form. YOu could have used MDI style and create a main menu and when you click and of the sub menu items its shows inside the parent MDI form. In this case you do not lose focus on main menu and the child form...

(well it was just a thought) hope this helps...

With Regards,
Raghavendra Mudugal





Similar Threads
Thread Thread Starter Forum Replies Last Post
change form color when minimized maricar C# 3 September 10th, 2008 07:34 PM
Lost Focus of Dynamic Textfield dpkbahuguna Beginning VB 6 8 November 27th, 2007 01:03 AM
Tell me following problem of lost focus amit_mande@yahoo.com VB.NET 2002/2003 Basics 1 November 13th, 2006 12:42 PM
re: color change jack_in_black ASP.NET 2.0 Professional 0 July 11th, 2006 07:24 AM
calculate value on Lost Focus of text field creative_eye General .NET 1 April 12th, 2004 08:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.