StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Getting Instance of child form
Getting Instance of child form
Post Reply
Like
0
Getting Instance of child form
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Wayne Van Rooyen
Wayne Van Rooyen
posted 19 Years Ago
ANSWER
Topic Details
Share Topic
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
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Getting Instance of child form
Wayne Van Rooyen
-
19 Years Ago
Ah, when you call ShowDialog() on the child form dialog, it creates a...
StrataFrame Team
-
19 Years Ago
Hi Ben, I tried what you did ther but where is the constructor for the...
Wayne Van Rooyen
-
19 Years Ago
Sorry, Wayne, I left that part out. What you'll need is a constructor...
StrataFrame Team
-
19 Years Ago
Thanks Ben, its amazing how little things like that can slip the mind...
Wayne Van Rooyen
-
19 Years Ago
Glad I could help, Wayne :) 1) I'm not positive that the...
StrataFrame Team
-
19 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search