pictureBox1 と label1 は設置した時の名前。
pictureBox1.Controls.Add( label1 );
と
label1.BackColor = Color.Transparent;
が必要。
Form 上の label
Form の BackgroundImage に画像を指定してその上に label を設置した場合は、
label1.BackColor = Color.Transparent;
と書けば label の背景は透明になる。
デザインのプロパティからも指定可能。
pictureBox 上の label
pictureBox の上に label を設置して背景を透明にするには、
pictureBox1.Controls.Add(label1);
も必要。
このコードで、label の親コントロー ルを PictureBox にしている。
これは親コントロー ルが Form であり、Form に合わせて label の背景が
設定されるため。
+α
Form -> pictreBox -> label の順に設置。
デザインで Form の背景 ( BackColor ) を変えると、
pictreBox と label の背景も Form と同色になり、
pictreBox の背景を変えても label 背景に変化なかった。
こちらから。
https://dobon.net/vb/dotnet/control/labelonpicturebox.html
http://www.itlab51.com/?p=2686
以上。