Am developing a two screen application where first screen resides in the user system and other screen in extended mode is directed towards a projector or another monitor. They all are working perfectly. Now my client asked me if I can preview the secondary screen onto the primary screen. I tried to display the form inside a group box using:
Dim f1 As New Form2 f1.TopLevel = False f1.Visible = True groupBox1.Controls.Add(f1)
and successfully displayed the form. But the problem is that whenever I make changes in the Form2 from main form, I couldn't update the form f1. I tried to place the above code inside a timer control. But the original form keeps on flickering every second (as time interval is set to 1000) and now I couldn't access the main form.
Then I tried to place the code inside a datagridview_selectionChanged event and added
but still the f1 does not update with the form2.
I am stuck here and couldn't find a way to preview a second form inside a first form. Is there any alternative?