Getting Instance of child form


Author
Message
Wayne Van Rooyen
Wayne Van Rooyen
StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)
Group: Forum Members
Posts: 15, Visits: 33
Hi i am trying to set the title and detail text of a header when the form loads, this would normally work in straight vb, i cant see why its not when using the child dialog.

Private Sub GridControl1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridControl1.DoubleClick

    My.Forms.CustomerEditForm.GradientFormHeader1.Title = "Editing Customer..."
    My.Forms.CustomerEditForm.GradientFormHeader1.DetailText = "TEST"
        If Me.ShowCustomerEdit.ShowDialog = Windows.Forms.DialogResult.OK Then
             Try
                  CustomerBO1.Save()
             Catch ex As Exception
                    MessageBox.Show(ex.Message)
               End Try
             Else
          CustomerBO1.RejectChanges()
         End If
CustomerBO1.Refresh()
End Sub

Regards Wyane


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search