Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSFlexGrid problem

User_X1

Technical User
Apr 29, 2025
2
Hi everyone
I am tinkering with a C++ exe file using Visual Studio 2010. I added some images to make it look better.
The exe file's MSFlexGrid originally came with the MSFlexGrid background wider than the grid. I resized the background to be the same size as the MSFlexGrid.
The problem is there is an image next to a MSFlexGrid and when one click a cell on the MSFlexGrid to enter some data the MSFlexGrid
pops out a piece of the MSFlexGrid background (equal to the size of the original background before i resized the background) over the image even though I resized the background to be the same size as the MSFlexGrid but it is not saving the change when I save the exe file after editing the exe file.
When i use the program and scroll down and then up again the piece of the MSFlexGrid background that popped out to the right of the MSFlexGrid over the image next to the MSFlexGrid disappeared and everything looks like it should.
It seems like a refresh problem but I do not know how to make the window refresh itself continuously.
Everytime one clicks on a cell the background (equal to the original size of the background) of the MSFlexGrid pops out to the right over the image next to the MSFlexGrid.
I would be very grateful for any suggestions how to fix this problem🙏🙏🙏
(images attached to show the problem
image 1 is how it looks when opening the program
image 2 is how it looks when clicking a cell on the grid)
 

Attachments

  • 1.jpg
    1.jpg
    306.8 KB · Views: 2
  • 2.jpg
    2.jpg
    271.6 KB · Views: 2
image 3 is how the original version looks.
 

Attachments

  • 3.jpg
    3.jpg
    153.7 KB · Views: 1

Part and Inventory Search

Sponsor

Back
Top