private void button1_Click(object sender, EventArgs e) { AlertInfo info = new AlertInfo("Caption", "Text"); info.Image = imageCollection1.Images[0]; alertControl1.Show(this, info); }
图片的大小可以在imageCollection中改变
效果图如下