[]
You can get the associated C1Zoom by a specific form programmatically by using the GetC1Zoom static method of C1ApplicationZoom class. It always works even if the current application has a C1ApplicationZoom instance or not.
[C#]
using C1.Win.TouchToolKit;
private void button1_Click(object sender, EventArgs e)
{
Form2 subForm = new Form2();
C1Zoom c1Zoom = C1ApplicationZoom.GetC1Zoom(subForm);
if (c1Zoom == null)
{
MessageBox.Show("There is no C1Zoom.");
}
else
{
MessageBox.Show("There is a C1Zoom.");
c1Zoom.AboutBox();
}
subForm.Show();
}
[Visual Basic]
Imports C1.Win.TouchToolKit
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim subForm As New Form2()
Dim c1Zoom As C1Zoom = C1ApplicationZoom.GetC1Zoom(subForm)
If c1Zoom Is Nothing Then
MessageBox.Show("There is no C1Zoom.")
Else
MessageBox.Show("There is a C1Zoom.")
c1Zoom.AboutBox()
End If
subForm.Show()
End Sub