i tried to slide a picture on a panel and draw line after move.
but i couldnt do that at realtime because i cant refresh the panel after draw.only after hiding and reopening the window i can see the last situation but i see the last drawed line and picture at new position.
so what's the method of drawing line at realtime and carrying the a bitmap from Point1 to Point2?

Then call the panels Update method - this forces a redraw

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.