Link to home
Start Free TrialLog in
Avatar of Jimbo99999
Jimbo99999Flag for United States of America

asked on

VB.Net - Showing a Form With ContextMenu Selection

Good Day Experts!

I have a ContextMenuStrip selection setup on the right-click of my DataGrid.  I am displaying the detail of the clicked on DataGrid row in a DataGrid on a new Form.  

The problem I am having is that the Form shows the blank DataGrid for a split second before the Load event of the Form loads the data into the DataGrid.

From the ContextMenuStrip click, I have the following:
            Dim frm As New CheckDetails
            frm.StartPosition = FormStartPosition.CenterScreen
            frm.ShowDialog()

In the Load event of that form, I load the DataGrid.  

Did I set this up wrong? Or is there something I need to add so the User doesn't see that "flash" of the empty DataGrid?

Thanks,
jimbo99999
ASKER CERTIFIED SOLUTION
Avatar of TheMozz
TheMozz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jimbo99999

ASKER

Thanks, I appreciate both responses and have it working.

jimbo99999