JTV77
Guest
|
Hi,
I have two Outlook forms and one controls the visibility of the other. When I click on a button in the first form it will hide/show the other form. Currently upon the first click I can make the second form hide. However, upon trying to un-hide the form, it does not re-appear. I was using the following code to control the visibility:
bool isFormShowing = adxOlFormsCollectionItem2.Enabled;
if (isFormShowing == false)
{
adxOlFormsCollectionItem2.RestoreFromMinimizedState = true;
adxOlFormsCollectionItem2.Enabled = true;
}
else{
adxOlFormsCollectionItem2.Enabled = false;
}
I did originally just use .Enabled = !isFormShowing, but this did not work and so I also tried using RestoreFromMinimizedState[/CODE] |
|
Andrei Smolin
Add-in Express team
Posts: 18830
Joined: 2006-05-11
|
|