GrapeCity.ActiveReports.v11 アセンブリ > GrapeCity.ActiveReports.SectionReportModel 名前空間 > Picture クラス : ResetImage メソッド |
private void groupHeader1_Format(object sender, System.EventArgs eArgs) { if (this.txtCountry.Value.ToString() == "France") { this.picture1.ResetImage(); } else { this.picture1.Image = System.Drawing.Image.FromFile("c:\\DSCF2183.JPG"); } }
Private Sub GroupHeader1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles GroupHeader1.Format If Me.txtCountry.Value.ToString = "France" Then Me.Picture1.ResetImage() Else Me.Picture1.Image = System.Drawing.Image.FromFile("c:\DSCF2183.JPG") End If End Sub