Hi there,
I assume you are talking about MDI child, kindly refer to below code segment, hope it helps you to get started with.
-
Option Explicit
-
'Array of the Child Form
-
'I used a child form with the name frmRe
-
' port
-
Public Reports(0 To 5) As frmReport
-
'The Cap is a String Variable I use to S
-
' et
-
'the Caption of the Form
-
-
-
Public Sub NewReport(Cap As String,)
-
'Creates an instances of the frmReport C
-
' hild
-
Set Reports(0) = New frmReport
-
'Sets the Caption
-
Reports(0).Caption = Cap
-
'Shows the Form
-
Reports(0).Show
-
End Sub
-
-
-
Private Sub Command1_Click()
-
Dim Cap as String
-
Cap = "New Members Report"
-
call NewReport(Cap)
-
End Sub
-
'If you Child Form(s) has a Text Box nam
-
' ed Text1 then you
-
'can print to it
-
'From anywhere in you program with this
-
' code
-
Reports(0).Test1.Text = "Hi "
-
Reports(0).Text1.Text = Reports(0).Text1.Text & "There!!"
-
'You get the Idea
-
Hi..
In an MDI Application, how to check whether a particular form is active or hidden??
Thnks & Rgds,
Rahna