Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Form modal property?
 

Form modal property?

Problem: I would like to change the intrinsic VB6 form property from it's "modeless" default" to "modal" at design-time.  Apparently VB6 does not present the mode property for it's forms at design time [curiously VBA under Excel does].  Form modality appears to be only affected at runtime by the SHOW command.  Is there a way to create a design-time mode property for a VB6 form?

If that is not possible is there a Windows API call that can affect the form modality, which I can call after the form is loaded, but before it's displayed (via SHOW) to change the default property from "modeless" to "modal".

There are reasons why I can't use the SHOW command.

Thanks X
MigrationUser 1  Monday, October 27, 2003 2:50 PM
You might want to try the msdn forums, this site is winforms .net.

There is a way, gezz I totally forgot, and I am not at work to look up some of my old code since I haven't touched VB6 (if I can help it) for 3 years.

THoug for some reason I remember it being a paramter in the show
form1.show(modal) or something like that. Of course my memory could be playing tricks on me.

Joe
MigrationUser 1  Tuesday, October 28, 2003 6:33 AM
Thanks Joe,

It's curious, in VBA under Excel the forms do have a design time form property called Show Modal - True/False.

But there is no such propery under VB6.  I even tried to export the version from VBA to VB6, while it brought it's own toolkit, it left it's properties behind and assumed the VB6 properties.

X
MigrationUser 1  Tuesday, October 28, 2003 4:00 PM

You can use google to search for other answers

Custom Search

More Threads

• Custom Collection Editor for assignment, not addition
• custom properties for controls
• using WinFX for a Vista Look??
• DefaultItem Property and ContextMenuToolStrip
• VS2005 RTM - grid/guide toggling broken
• BindingList with Images?
• Custom Controls in Toolbox to be listed in a specific category
• Creating Panels when Items are Added in CollectionBase at Designtime
• TextBox Enter Key
• How to add a button to datagrid column