//internet options
        private void internetOptionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InternetOption intOp = new InternetOption(getCurrentBrowser().Url.ToString());

            if (intOp.ShowDialog() == DialogResult.OK)
            {
                if (!intOp.homepage.Text.Equals(""))
                {
                    homePage = intOp.homepage.Text;
                    settings.DocumentElement.ChildNodes[5].InnerText = intOp.homepage.Text;
                }
                if (intOp.deleteHistory.Checked == true)
                {
                    File.Delete(historyXml);
                    historyTreeView.Nodes.Clear();
                }
                settings.DocumentElement.ChildNodes[6].InnerText = intOp.num.Value.ToString();
                ActiveForm.ForeColor = intOp.forecolor;
                ActiveForm.BackColor = intOp.backcolor;
                linkBar.BackColor    = intOp.backcolor;
                adrBar.BackColor     = intOp.backcolor;
                ActiveForm.Font      = intOp.font;
                linkBar.Font         = intOp.font;
                menuBar.Font         = intOp.font;
            }
        }
Ejemplo n.º 2
0
 public static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption, IntPtr lpBuffer, int dwBufferLength);
Ejemplo n.º 3
0
 public static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption, IntPtr lpBuffer, int dwBufferLength);
Ejemplo n.º 4
0
 private static extern bool InternetSetOption(IntPtr hInternet,
                                              InternetOption dwOption,
                                              [In] ref InternetProxyInfo lpBuffer,
                                              int lpdwBufferLength);
Ejemplo n.º 5
0
 public extern static bool InternetQueryOptionList(IntPtr Handle, InternetOption OptionFlag, ref InternetPerConnectionOptionList OptionList, ref int size);
Ejemplo n.º 6
0
 private static extern bool InternetSetOption(IntPtr hInternet,
     InternetOption dwOption,
     string lpBuffer,
     int lpdwBufferLength);
Ejemplo n.º 7
0
 private static extern bool InternetSetOption(IntPtr hInternet,
     InternetOption dwOption,
     [In] ref InternetProxyInfo lpBuffer,
     int lpdwBufferLength);
Ejemplo n.º 8
0
 private static extern bool InternetQueryOption(IntPtr hInternet, InternetOption dwOption,
                                                // ReSharper disable once IdentifierTypo
                                                ref InternetPerConnOptionList optionList, ref int lpdwBufferLength);
Ejemplo n.º 9
0
 private static extern bool InternetSetOption(IntPtr hInternet,
                                              InternetOption dwOption,
                                              string lpBuffer,
                                              int lpdwBufferLength);
Ejemplo n.º 10
0
 private static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption,
                                              IntPtr pBuffer, int dwReserved);
Ejemplo n.º 11
0
 static extern bool InternetQueryOption(IntPtr hInternet, InternetOption dwOption, IntPtr lpBuffer, ref int lpdwBufferLength);