//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;
            }
        }
Esempio n. 2
0
 public static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption, IntPtr lpBuffer, int dwBufferLength);
Esempio n. 3
0
 public static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption, IntPtr lpBuffer, int dwBufferLength);
Esempio n. 4
0
 private static extern bool InternetSetOption(IntPtr hInternet,
                                              InternetOption dwOption,
                                              [In] ref InternetProxyInfo lpBuffer,
                                              int lpdwBufferLength);
Esempio n. 5
0
 public extern static bool InternetQueryOptionList(IntPtr Handle, InternetOption OptionFlag, ref InternetPerConnectionOptionList OptionList, ref int size);
Esempio n. 6
0
 private static extern bool InternetSetOption(IntPtr hInternet,
     InternetOption dwOption,
     string lpBuffer,
     int lpdwBufferLength);
Esempio n. 7
0
 private static extern bool InternetSetOption(IntPtr hInternet,
     InternetOption dwOption,
     [In] ref InternetProxyInfo lpBuffer,
     int lpdwBufferLength);
Esempio n. 8
0
 private static extern bool InternetQueryOption(IntPtr hInternet, InternetOption dwOption,
                                                // ReSharper disable once IdentifierTypo
                                                ref InternetPerConnOptionList optionList, ref int lpdwBufferLength);
Esempio n. 9
0
 private static extern bool InternetSetOption(IntPtr hInternet,
                                              InternetOption dwOption,
                                              string lpBuffer,
                                              int lpdwBufferLength);
Esempio n. 10
0
 private static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption,
                                              IntPtr pBuffer, int dwReserved);
Esempio n. 11
0
 static extern bool InternetQueryOption(IntPtr hInternet, InternetOption dwOption, IntPtr lpBuffer, ref int lpdwBufferLength);