Ich habe ein Problem mit der Klasse System.Windows.Forms.PictureBox in delphi8.
der Code lautet:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9:
| mypicture:=picturebox.create; with mypicturebox do begin left:=10; top:=10; height:=50; width:=50; backgroundimage:=bitmap.fromfile('bild.bmp'); end; |
'bild.bmp' ist ein passendes Bild. mypicture ist global als Picturebox deklariert.
Aber trotzdem wird das Bild nicht angezeigt.
Welchen Denkfehler habe ich begangen?
Moderiert von Christian S.: Code- durch Delphi-Tags ersetzt