wichawd Posted September 29, 2003 Posted September 29, 2003 Hi. I have a form which loads another form. When the second form is shown, the first form naturally is deactivated. Is there anything I can do to make the two forms appear active at the same time. I don't know if this has something to do with the WndProc... I hope you could help me guys. Thanks in advance. Quote
Administrators PlausiblyDamp Posted September 29, 2003 Administrators Posted September 29, 2003 Not really sure if I understand - why would you want both forms to appear active when only one is. What are you trying to do - there may be a better way. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
*Experts* mutant Posted September 29, 2003 *Experts* Posted September 29, 2003 Only one form can be focused at one time. Quote
wichawd Posted September 29, 2003 Author Posted September 29, 2003 I'm creating a custom combobox control which shows a datagrid(located on a form) as its dropdown. The parent form, where my control is located is deactivated everytime the dropdown is shown. I want the parent form to appear (not really activated per say) active while the dropdown is shown. Quote
*Gurus* divil Posted September 29, 2003 *Gurus* Posted September 29, 2003 Try using the AddOwnedForm method of the parent form on the secondary form. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
wichawd Posted September 30, 2003 Author Posted September 30, 2003 Actually what I'm trying to do is to prevent the form from being grayed out when it is deactivated. Is this possible? Quote
*Gurus* divil Posted September 30, 2003 *Gurus* Posted September 30, 2003 Not that I know of, but I could be wrong. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
wichawd Posted October 7, 2003 Author Posted October 7, 2003 Hmmm. Let's put it this way. If a form is deactivated the color of the form's caption bar becomes gray...right? How can I prevent it from changing its color? Hope you get it guys....:) Quote
*Gurus* divil Posted October 8, 2003 *Gurus* Posted October 8, 2003 We get it, but that doesn't mean it's possible - it's not the way Windows works. The only way around would be to draw your own titlebar, and that's never a good solution. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.