ImageBoxSample/Program.cs

Download

imageboxsample-part3.zip

(443.55 KB | 23 August 2010 )

Sample project showing how to create an image viewer that supports scrolling with the mouse and keyboard, and panning with the mouse.

Donate

Contents of imageboxsample-part3.zip/ImageBoxSample/Program.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace ImageBoxSample
{
  static class Program
  {
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main()
    {
      Application.EnableVisualStyles();
      Application.SetCompatibleTextRenderingDefault(false);
      Application.Run(new MainForm());
    }
  }
}

Files