Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange UI problem
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Strange UI problem
Divers
Thread ID:
00877964
Message ID:
00877964
Vues:
49
I was messing around with opacity and transparency features on one of my maintenance forms and somehow I've fouled up my mmMainAppForm. I accidently set the AllowTransparency field to true through the UI somehow and the only way to correct it was set it in code to false because I could not find that property anymore in the UI.

This fixed the problem however my mmMainAppForm always starts as if the width and height are 0. The only thing I see is the control box.

I tried setting windowstate to maximize and starting position to centerscreen, but it always starts at random positions with only the control box showing.

Can anyone help me with this.



public MainForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
// Make sure the application configuration file exists
if (!mmAppSettingsManager.ConfigFileExists)
{
throw new mmAppConfigNotFoundException(
"The application configuration file '" +
mmAppSettingsManager.ConfigFileName +
"' was not found.");
}
this.AllowTransparency=false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.WindowState=System.Windows.Forms.FormWindowState.Maximized;
}
--------------------------
Clay Angelly
cangelly@ie-inc.com
Never argue with an idiot. They drag you down to their level and beat you with experience.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform