StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
How to show a form that needs to be hidden immediately.
How to show a form that needs to be hidden immediately.
Post Reply
Like
0
How to show a form that needs to be hidden immediately.
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Greg McGuffey
Greg McGuffey
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 2K,
Visits: 6.6K
I have a form that I'd like to load, but have it hidden immediately. I'm currently just setting visible to False after it's done loading, but there is flicker. Is there a suggested way to do this.
Reply
Like
0
Reply
Greg McGuffey
Greg McGuffey
posted 17 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 2K,
Visits: 6.6K
Just noticed that I never let y'all know what I actually did. I ended up adding a method to the form to show the browse dialog, then if the dialog returns OK, show the form. Sort of a combo between what I was trying and what Trent suggested:
' In the form that I wanted hidden...
Public Sub Search()
' Open search form, test for OK
Using myBrw As New MyBrowseDialog()
If myBrw.ShowDialog() = DialogResult.OK Then
Me.Show()
Else
Me.Close
End If
End Using
End Sub
And it is called like this
' To run a search...
Dim frm As New MyForm()
frm.Search()
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
How to show a form that needs to be hidden immediately.
Greg McGuffey
-
17 Years Ago
Hi Greg, How aboutwrapping your code with a LockScreen: [codesnippet]...
Edhy Rijo
-
17 Years Ago
Thanks Edhy. I didn't know that one existed (or forgot about it)....
Greg McGuffey
-
17 Years Ago
Greg, I am a bit confused here, when you create the instance of the...
Edhy Rijo
-
17 Years Ago
Well, I'm probably even more confused. Here's what I'm trying to do:...
Greg McGuffey
-
17 Years Ago
What about something like this: [codesnippet] Public Shared...
Edhy Rijo
-
17 Years Ago
Nope, that won't work as this is being called in a class that isn't a...
Greg McGuffey
-
17 Years Ago
When I have the need for this, I take a different approach. First,...
Trent L. Taylor
-
17 Years Ago
Just noticed that I never let y'all know what I actually did. I ended...
Greg McGuffey
-
17 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