hi
- public void Paint(PaintEventArgs e) //here e is showing null reference in class {"Object reference not set to an instance of an object."}//
- {
- //Graphics g = e.Graphics;
- e.Graphics.DrawRectangle(pen1, rect);
- }
how to avoid this I need to draw a rectangle by using class method but when I call paint method showing null reference exception.
S JPosted Nov 26, 2020, 11:59 PM
S JPosted Nov 26, 2020, 11:55 PM
Sachin SinghPosted Nov 26, 2020, 10:26 AM
Salman BegPosted Nov 26, 2020, 8:05 AM