StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Odd ThemedSplitContainer Behavior
Odd ThemedSplitContainer Behavior
Post Reply
Like
0
Prev
1
2
Jump To Page
Odd ThemedSplitContainer Behavior
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Bill Cunnien
Bill Cunnien
posted 16 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 785,
Visits: 3.6K
What version are you using when you run the project?
Reply
Like
0
Bill Cunnien
Bill Cunnien
posted 16 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 785,
Visits: 3.6K
I added the Try-Catch block as Trent suggested. The form is behaving better. Since the try-catch block basically is doing nothing but bypassing the bad code, may I ask what is the code supposed to be doing? Just trying to understand why things work the way they do.
Private
Sub
RenderHorizontalBar(
ByVal
DrawObj
As
Graphics)
'-- Establish Locals
Try
Dim
loRect
As
New
Rectangle(0,
Me
.SplitterDistance,
Me
.Width,
Me
.SplitterWidth)
<---this is the line that bombs, Me.Width = 0
Dim
loBar
As
New
LinearGradientBrush(loRect, _DrawGradientBegin, _DrawGradientEnd, _DrawHorizontalGradientDirection)
[ CODE SNIPPED ]
Catch
ex
As
Exception
End
Try
End
Sub
Thanks!
Bill
Reply
Like
0
Trent Taylor
Trent Taylor
posted 16 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
Just add a test that if the WIdth is <= 0 then bail...there is nothing to render.
Reply
Like
0
Bill Cunnien
Bill Cunnien
posted 16 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 785,
Visits: 3.6K
Will do. Thanks.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Prev
1
2
Jump To Page
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search