Home>
public partial class form1:form
{
  public form1 ()
  {
   initializecomponent ();
  }
  private void form1_resize (object sender, eventargs e)
  {
   type (this, 25, 0.1);
  }
  private void type (control sender, int p_1, double p_2)
  {
   graphicspath opath=new graphicspath ();
   opath.addclosedcurve (new point [] {new point (0, sender.height/p_1), new point (sender.width/p_1, 0), new point (sender.width-sender.width/p_1, 0), new point (sender.width, sender.height/p_1), new point (sender.width, sender.height-sender.height/p_1), new point (sender.width-sender.width/p_1, sender.height), new point (sender.width/p_1, sender.height), new point (0, sender.height-sender.height/p_1)}, (float) p_2);
   sender.region=new region (opath);
  }
  private void form1_paint (object sender, painteventargs e)
  {
   type (this, 25, 0.1);
  }
}
c
  • Previous Servlet usage analysis of JSP learning
  • Next Analysis of AnalogClock and DigitalClock usage examples for Android controls