Well, I've got no problem with images and other text control. What I precisely want to do is for example drawing a line or something, and afterward be able to remove it, on top of that image. That' s why I wanted to use forelayer.
here is an example:
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
ongletPrincipal.New1("form1",1,1,480,770)
ongletPrincipal.AddTabPage("Principal")
form1.ForeLayer = True
drawer.New1("forme1",True)
grpAffAiguille (100,100,50,30,cBlack)
Form1.Show
End Sub
Sub grpAffAiguille (pCentreX, pCentreY, pLongueur, pAngle, pCouleur)
penAiguille.new1(pCouleur)
drawer.DrawLine(penAiguille.Value,pCentreX,pCentreY,pCentreX+Cos(DegreeEnRadian(pAngle))*pLongueur,pCentreY+Sin(DegreeEnRadian(pAngle))*pLongueur)
drawer.DrawLine(penAiguille.Value,100,100,50,50)
drawer.Refresh(0,0,300,300)
End Sub
Sub DegreeEnRadian (pDegree)
Return pDegree*cPI/180
End Sub
if I remove the tabcontrol, the program works well.