示例#1
0
 private void PictureButton_MouseEnter(object sender, EventArgs e)
 {
     this.BackgroundImage = this.ImageMouseHower;
     this.Height         += this.MouseHowerSize;
     this.Width          += this.MouseHowerSize;
     this.Left           -= this.MyHalfStretchSize1;
     this.Top            -= this.MyHalfStretchSize1;
     try { (new SoundPlayer(My.ResourcesStream("hower.wav"))).Play(); }
     catch (Exception) { }
 }
示例#2
0
 private void PictureButton_MouseDown(object sender, MouseEventArgs e)
 {
     this.BackgroundImage = this.ImageMouseDown;
     this.Height         -= this.MouseDownSize;
     this.Width          -= this.MouseDownSize;
     this.Left           += this.MyHalfStretchSize2;
     this.Top            += this.MyHalfStretchSize2;
     try { (new SoundPlayer(My.ResourcesStream("down.wav"))).Play(); }
     catch (Exception) { }
 }