CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Location
    Blue Springs, MO
    Posts
    43

    Resize MSFlexGrid columns with Slider

    I have an MSFlexGrid that I need to resize the columns on. I have a Slider, and it works.

    Problem is this: The width does not change until I let go of the Slider. I'd like to see the width change smoothly as I was adjusting the Slider.

    Anyone know how to do this?


  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Resize MSFlexGrid columns with Slider

    use the sliders "Scroll" event to resize your FlexGrid and remember to do a FlexGrid.Refresh after every change. .Refresh will force VB to update the control. Without the Refresh, nothing will appear to happen until the slider is let go.

    John G

  3. #3
    Join Date
    Aug 1999
    Location
    Blue Springs, MO
    Posts
    43

    Re: Resize MSFlexGrid columns with Slider

    Thank you!

    I had not considered any event besides "Change"

    This worked very well, thank you!

    Morgan


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured