mdi child

Joined
Nov 26, 2006
Messages
9
Programming Experience
Beginner
I wrote this code for opening a mdi child but it is now showing
VB.NET:
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
frmname = GetItemText(IIf(ListBox1.SelectedIndex < 0, 1, ListBox1.SelectedIndex))
If StrConv(frmname, VbStrConv.Lowercase) = "flvcmdepartment" Then
Dim NewMDIChild As New flvcmdepartment()
'Set the Parent Form of the Child window.
NewMDIChild.MdiParent = Me
'Display the new form.
NewMDIChild.Show()
'hcms.flvcmdepartment.Show()
End If
End Sub
but if i write the last commented line it shows. am i doing nayhting wrong
 
insteaed of the commented line put newMDIChild.activate ()
see wut is going on ... i guess there is nothing wrong with the code ...
i'm not sure i'm a newbie too .. but i guess that it's ok ..
i work with something like that and it shows ... my problem was in putting the new child in the center of the parent ... although there is a property for that ... but it always start in the most top left of the parent ...
 
Back
Top