Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » MDI Parent and Child(s) Collapse All
Subject Author Date
Roland v.’t Kruys Apr 17, 2014 - 10:00 AM

Hi,

I having the following issue. I have a main form (MDI Parent) set up with the Elegant Ribbon and three MDI Children. On the Elegant Ribbon, I have one button to clear any contents of the TextBox component. On one MDI Child, I have a Elegant Ribbon TextBox component. When I click the button, it does nothing. The content in the TextBox still remains.

Now, I wanted to check if the MDI Child is active or not. But this does not work either.

Private Sub btnNew_Click(sender As Object, e As EventArgs) Handles btnNew.Click
Dim NewMDIChild As New frmCLA()
Dim activeChild As Form = Me.ActiveMdiChild

If (Not activechild Is Nothing) Then
MsgBox("No active MDI Child", MsgBoxStyle.Exclamation)
Else
MsgBox("Active MDI Child: " & NewMDIChild.Name, MsgBoxStyle.Information)
End If
End Sub

The source code shows whether or not the MDI Child is active and it gives constantly "No active MDI Child".

What am I doing wrong or missing?

Roland

Roland v.’t Kruys Apr 19, 2014 - 3:48 AM

Update: found the solution... problem solved...