Picture Box won't show on second form
-
I want to add a PictureBox to another form. But when I go from form1 to form2, the picture in form2 won't show. Why is this? I use this code: dim frmForm2 as new form frmForm2.showdialog I've also tried just frmForm2.show What am I doing wrong? Should I create a new picturebox in code? I need sleep....zzzzzzzzzz:zzz: Thank you The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
I want to add a PictureBox to another form. But when I go from form1 to form2, the picture in form2 won't show. Why is this? I use this code: dim frmForm2 as new form frmForm2.showdialog I've also tried just frmForm2.show What am I doing wrong? Should I create a new picturebox in code? I need sleep....zzzzzzzzzz:zzz: Thank you The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
here ya go : VB:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim frm As New Form2() '/// must say as new Form2() not Form
frm.Show()
End Sub
hope this helps.:)
Private void ExpectingTwins(string twins)
{
switch(twins)
{
Case ("twins on the way"):
MessageBox.Show("for mr and mrs dynamic","twins on the way");
break;
}
}
-
here ya go : VB:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim frm As New Form2() '/// must say as new Form2() not Form
frm.Show()
End Sub
hope this helps.:)
Private void ExpectingTwins(string twins)
{
switch(twins)
{
Case ("twins on the way"):
MessageBox.Show("for mr and mrs dynamic","twins on the way");
break;
}
}
Thanks A Lot The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew