Furkan Karabudak
Member
I'm working on a drawing program.
If I create a surface in create event then I get an error about "surface not found" when I resize the window. If I create the surface in draw event, when I resize the window the surface is automatically aligned to that size and I am not getting an error, but the paintings on the surface disappear. that is, surface is resetting.
If I create the surface in Create Event :
If I create the surface in Draw Event :
This is what I want; If I resize the window, surface will not reset and I will not get an error about "surface not found". Is there a way I can do that ?
Thanks
If I create a surface in create event then I get an error about "surface not found" when I resize the window. If I create the surface in draw event, when I resize the window the surface is automatically aligned to that size and I am not getting an error, but the paintings on the surface disappear. that is, surface is resetting.
If I create the surface in Create Event :
If I create the surface in Draw Event :
This is what I want; If I resize the window, surface will not reset and I will not get an error about "surface not found". Is there a way I can do that ?
Thanks