Hi! Now that I got all the details straight, I can attack the main feature of the software I'm designing. I want to draw a rectangle on the "main" form, when a button is clicked on the frm. I have this function in a module:

VB Code:
  1. Public Function drawDesignArea()
  2.  
  3.         Dim myGraphics As Graphics
  4.         Dim myRectangle As Rectangle
  5.         Dim myPen As New Pen(Color.Red)
  6.  
  7.  
  8.         main.Height = 100
  9.         myGraphics = Graphics.FromHwnd(hwnd:=main.Handle)
  10.  
  11.         myRectangle = New Rectangle(x:=5, y:=5, Width:=10, Height:=40)
  12.  
  13.         myGraphics.DrawRectangle(Pen:=myPen, rect:=myRectangle)
  14.  
  15.     End Function

and I call it when the button on the "wizard" form is pressed. But nothing happens. The rectangle doesnt draw, neither does the form resize to height =100... The "main" form is the drawing surface, but I need some setting (i.e. the size of the rectangle to draw, and other settings), and I'm using a wizard for this. Thats why I want to call the function from another form where it is meant to draw. I hope I made myself clear. Thank you in advance!¸
Jean Christophe Avard