Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Another VB 2005 bug?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Another VB 2005 bug?

 Post Reply Post Reply
Author
Message
Majek View Drop Down
Groupie
Groupie


Joined: 20 November 2006
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Majek Quote  Post ReplyReply Direct Link To This Post Topic: Another VB 2005 bug?
    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?
Back to Top
Majek View Drop Down
Groupie
Groupie


Joined: 20 November 2006
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Majek Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2006 at 6:46pm
2005*
Back to Top
Majek View Drop Down
Groupie
Groupie


Joined: 20 November 2006
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Majek Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2006 at 6:54pm
Wow sorry I feel dumb now  It was CB_ResizeEvent not CB_Resize
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.