Ejemplo n.º 1
0
        private void Browser_Load(object sender, System.EventArgs e)
        {
            hc.Size = this.Size;
            string currPath = AppDomain.CurrentDomain.BaseDirectory;

            hc.Navigate("file:///" + navigateTo);
            hc.Show();
        }
Ejemplo n.º 2
0
        private void Browser_Load(object sender, System.EventArgs e)
        {
            hc.Size = this.ClientSize;

            if (!Path.IsPathRooted(navigateTo))
            {
                string currPath = AppDomain.CurrentDomain.BaseDirectory;
                hc.Navigate("file:///" + currPath + navigateTo);
            }
            else
            {
                hc.Navigate("file:///" + navigateTo);
            }

            hc.Show();
        }