G
Guest
I'm using Visual Studio 2003. I have a form with the following controls on it:
- a datagrid
- several buttons
On the forms property page, I have set the Background to an image.
The problem:
I observe that the form displays with the datagrid and the buttons
transparent down to the desktop for a significant amount of time.
On event frmMain_load, it takes a bit of code ( read time) to build up the
info for the datagrid. I believe it is during this time that the datagrid and
the buttons remain transparent.
I've tried to begin frmMain_load with a .Hide. Once all the calculations
are complete and as the method exits do a .Show. This works, however the user
it left waiting and wondering. So I started a simple form with a pricturebox.
The same sort of problem occures - form displays with the picturebox empty
and transparent to the desktop. The image finally displays when the main form
completes and displays.
Is there a way to solve this?
- a datagrid
- several buttons
On the forms property page, I have set the Background to an image.
The problem:
I observe that the form displays with the datagrid and the buttons
transparent down to the desktop for a significant amount of time.
On event frmMain_load, it takes a bit of code ( read time) to build up the
info for the datagrid. I believe it is during this time that the datagrid and
the buttons remain transparent.
I've tried to begin frmMain_load with a .Hide. Once all the calculations
are complete and as the method exits do a .Show. This works, however the user
it left waiting and wondering. So I started a simple form with a pricturebox.
The same sort of problem occures - form displays with the picturebox empty
and transparent to the desktop. The image finally displays when the main form
completes and displays.
Is there a way to solve this?