示例#1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     VForm = new ViewerForm();
     Application.Run(VForm);
 }
 //if the filenamescroll is initialized with the viewerform creating it, you can get the form data without a nullref
 //doing this with pointers in c++ seems like it would be much safer
 public FilenameScroll(ViewerForm f)
 {
     displaylength = 50;
     lblLength = f.panel1Tagging.Size.Width;
     fancypants = "";
     int x = displaylength;
     while (x > 0)
     {
         fancypants += " ";
         --x;
     }
 }