Form.Show doesn't show controls on the Form - TechRepublic
Question
March 6, 2012 at 01:24 PM
sankulpune

Form.Show doesn’t show controls on the Form

by sankulpune . Updated 14 years, 3 months ago

VB.Net Express 2008. Windows forms application. Application frame work disabled.

Following is my code:

Module Module1

Sub main()

Dim frm1 As New Form1

frm1.Show()

Dim xl As Microsoft.Office.Interop.Excel.Application

xl = CreateObject(“Excel.Application”)

xl.Visible = True

frm1.Hide()

End Sub

End Module

I want to show a Wait message while Excel is being opened.

The form does not show properly. All the labels and text boxes show as ‘holes’ displaying the desktop instead of text inside it.

This discussion is locked

All Comments