K
Ken Powers
Hello Everyone,
I need help on a small problem I'm working with. VB.NET
I have an array of child forms
Public frmChild(10) as form
I uses the array of child forms with a toolbar on the parent.
Now when a menu item on the parent was click it would use the array of forms
like this.
Private Sub miUAEDUtility_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles miUAEDUtility.Click
frmChild(1) = New frmUtility
frmChild(1).MdiParent = Me
frmChild(1).Show()
End Sub
In each form that use the child form is a Public Writeonly Property called
Navigate
Public WriteOnly Property Navigate()
Set(ByVal Value)
Select Case Value
Case "Print"
Case "First"
Case "Previous"
Case "Next"
Case "Last"
Case "Add"
Case "Update"
Case "Delete"
Case "Close"
End Select
End Set
End Property
Now what I want is when a button on the toolbar is clicked to send a string
to the navigate property of the child form. In vb it work like this.
ActForm being an integer that the child form insert thier id
frmChild(ActForm).Count
If ActForm > 0 Then
frmChild(ActForm).Navigate = Button.Key
End If
Hope everyone understands
Ken
I need help on a small problem I'm working with. VB.NET
I have an array of child forms
Public frmChild(10) as form
I uses the array of child forms with a toolbar on the parent.
Now when a menu item on the parent was click it would use the array of forms
like this.
Private Sub miUAEDUtility_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles miUAEDUtility.Click
frmChild(1) = New frmUtility
frmChild(1).MdiParent = Me
frmChild(1).Show()
End Sub
In each form that use the child form is a Public Writeonly Property called
Navigate
Public WriteOnly Property Navigate()
Set(ByVal Value)
Select Case Value
Case "Print"
Case "First"
Case "Previous"
Case "Next"
Case "Last"
Case "Add"
Case "Update"
Case "Delete"
Case "Close"
End Select
End Set
End Property
Now what I want is when a button on the toolbar is clicked to send a string
to the navigate property of the child form. In vb it work like this.
ActForm being an integer that the child form insert thier id
frmChild(ActForm).Count
If ActForm > 0 Then
frmChild(ActForm).Navigate = Button.Key
End If
Hope everyone understands
Ken