Creating a browser in less than 60 seconds? Impossible? Not in Visual Studio!
Well, I needed to get more screen real estate out of my browser for a project where I needed to view HTML files. But, Firefox, Chrome, IE and Opera just take up too much space. So, I started Visual Studio. Created a Windows Forms project. Dropped in a WebBrowser control. Toggled the border to Sizeable Tool Window. And built it. Done. That was good enough for what I needed. Zero code. None. Here’s what the code looks like:
1: using System;
2: using System.Collections.Generic;
3: using System.ComponentModel;
4: using System.Data;
5: using System.Drawing;
6: using System.Linq;
7: using System.Text;
8: using System.Windows.Forms;
9:
10: namespace MinimalBrowser
11: {
12: public partial class Form1 : Form
13: {
14: public Form1()
15: {
16: InitializeComponent();
17: }
18: }
19: }
