5
Answers

windows forms

Photo of phil67rpg

phil67rpg

14y
1.9k
1
I am using c# and the windows application forms to create a little childrens game. I am currently drawing multiple windows to the screen. However I would like to display only one window and redraw it several times in the same place.  The screen gets kind of cluttery with several windows being displayed several times.

Answers (5)

0
Photo of Sam Hobbs
NA 28.7k 1.3m 14y
Thank you, phil67rpg; that clarification helps and I hope Frogleg's suggestion works for you.
0
Photo of Frogleg
NA 7.9k 33k 14y

put a picturebox on your form
In button click event = picturebox1.Image= Image.FromFile(your image);
0
Photo of phil67rpg
NA 5 0 14y

I would like a button to change a picture on a window.I have only one window but change the picture posted dynamically depending on which button is pressed.
0
Photo of Frogleg
NA 7.9k 33k 14y
I think phil67rpg means he only needs a single instance of second form ?
0
Photo of Sam Hobbs
NA 28.7k 1.3m 14y
In what way does the window vary? You say you want to redraw the same window several times in the same place. I assume there is a good reason why you need to do that, but the literal interpretation of what you said makes it seem useless.