how to disable docking panes |
Post Reply |
Author | |
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
Posted: 09 December 2004 at 12:43pm |
Is there a way to disable/gray out a docking pane ! In my VB app there are some parts in a docking pane which should be only useable when certain circumstances are given. While not I want to deactivate the pane - but I donīt know how to do this ...
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
You can't grey the pane out, but to disable the pane you can use the
Action event. (I haven't tested this, so it might not work, I am
not at computer with codejock now). In the Action event, try
something like:
If Pane.Id = ID_OF_PANE_TO_DISABLE then Cancel = TRUE ....Then disable the form that is attached to the pane. Else ...... End If IfI am correct, this should disable all pane actions. And disableing the form will make all controls inactive. If that don't work, place the controls on the form in a picturebox, this way you can disable the picturebox along with all the controls within it. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |