Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27333

Text property issue with MDI Child form

$
0
0
I recently migrated an application from VB2010 to 2012. The application has a main form which has the isMdiContainer set to true. I have a 2nd form (admin) which I open as a child by using:

Dim adminFrm As New admin
adminFrm.MdiParent = Me
adminFrm.Show()

The admin form has multiple controls on it which all worked fine in VB2010. Now in 2012, when the child form opens, the text is cleared from the labels and from the buttons. Initially some of the labels are on a tabControl which is Enabled=False. The labels appear on the tabControl until it is enabled, then the labels disappear. When the buttons are enabled there is no text shown, but the buttons work fine. When the buttons are disabled, the text is visible. Also, the forms text property gets changed. I have the forms text property set to System Administration, when I open the form during run time, the text is changed to 'admin', the name of the form. Like I said previously, all worked fine with 2010.
One last thing, if I open the form using showDialog, all is fine. Unfortunately, I want this form to be a child of the main form, not a dialog.

Any ideas?

Viewing all articles
Browse latest Browse all 27333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>