Hello,
I mastered drawing to a bitmap & then copying straight to the form & got all that working. However, I need to be able to scroll.
I created a picturebox (is this the way to go?) which got me scoll bars & added code to its ondraw which sort of works when you scroll but misses bits out & doesnt seem to work when you click on the 'background' to the scroll bar to page down - it doesnt refresh at all. My code:
private void map_Paint(object sender, PaintEventArgs e)
{
Graphics g = map.CreateGraphics();
g.DrawImageUnscaled(db, 0, 0);
}
map is my picturebox. db is the bitmap with the image (that I draw to).
Should I be using a picturebox? If so, how come the scroll bars are not making it redraw correctly?
Many thanks for reading this.
Dan
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks