Glad it's working.
Type: Posts; User: Norm
Glad it's working.
The button you want to change is in the array and has been added to the GUI and is being shown.
Don't add it to the GUI again unless you want to change its position. You can access the button and...
Do you understand what your code was doing?
Are you able to have the program do what you want?
The button at [0][1] has already been added to the GUI and is being shown. Where will adding it again put it?
If you want the button at location [0][1] to show an image you need to set the icon for that button to the image.
What is supposed to happen when the code executes that shows the problem?
When I execute the code a grid is displayed. There are no images shown.
Please post the small test program here on the forum so it can be copied for testing.
So the only button with an image is the last one.
Strange that the location is [7][7] when the array does not have 8 slots. The max index for a 7 element array is 6.
Can you post a small...
Does the image show in any of the buttons? If so, then you need to figure out why the location of the button is not where you want it to be.
How do the locations of the buttons in the 2D array...