![]() |
Another VB 2005 bug? |
Post Reply ![]() |
Author | |
Majek ![]() Groupie ![]() Joined: 20 November 2006 Status: Offline Points: 24 |
![]() ![]() ![]() ![]() ![]() Posted: 02 December 2006 at 6:45pm |
For some reason I can't use the Resize event on CommandBars in VB 2005, perhaps i'm doing something wrong?
(CB = CommandBars, PL = ListView)
Private Sub CB_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles CB.Resize
Dim left, top, right, bottom As Integer CB.GetClientRect(left, top, right, bottom) PL.SetBounds(left, top, right - left, bottom - top) End Sub That works fine in VB 2003, but in 2005 i receive this error:
Method 'GetClientRect' cannot be invoked at this time.
Is this another 200 bug or is there a way to fix it? |
|
![]() |
|
Majek ![]() Groupie ![]() Joined: 20 November 2006 Status: Offline Points: 24 |
![]() ![]() ![]() ![]() ![]() |
2005*
|
|
![]() |
|
Majek ![]() Groupie ![]() Joined: 20 November 2006 Status: Offline Points: 24 |
![]() ![]() ![]() ![]() ![]() |
Wow sorry I feel dumb now
![]() |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |