diff options
| author | Jason <[email protected]> | 2017-07-13 22:55:51 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-07-13 22:55:51 +0200 |
| commit | 8f5ced0b128eddaf6656a417097fed13bc9aa2ef (patch) | |
| tree | fe2022380477de70e1612eea0395f1f643337ece /TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs | |
| parent | 80b07723bc8c5a320436a577f2d88ca71f6dc299 (diff) | |
| parent | 7a0939095bb8a68e9b79e5d34284d08e13238ac3 (diff) | |
| download | histacom2-8f5ced0b128eddaf6656a417097fed13bc9aa2ef.tar.gz histacom2-8f5ced0b128eddaf6656a417097fed13bc9aa2ef.tar.bz2 histacom2-8f5ced0b128eddaf6656a417097fed13bc9aa2ef.zip | |
Merge pull request #125 from jayxkanz666/master
More modifications to IE4
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs b/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs index 568749f..d41add1 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs @@ -23,7 +23,7 @@ namespace TimeHACK.OS.Win95.Win95Apps addressbar = _addressbar; } - public static void GoToPage(string url) + public static async void GoToPage(string url) { UserControl uc = new UserControl(); @@ -45,6 +45,9 @@ namespace TimeHACK.OS.Win95.Win95Apps addressbar.Text = url; uc.Dock = DockStyle.Fill; + + await Task.Delay(new Random().Next(500, 1500)); + browsingArea.Controls.Clear(); browsingArea.Controls.Add(uc); } @@ -52,11 +55,22 @@ namespace TimeHACK.OS.Win95.Win95Apps private void TempIE4_Load(object sender, EventArgs e) { GoToPage("www.microsoft.com/windows/ie/default.htm"); + GoButton.Paint += (s, args) => Engine.Paintbrush.PaintClassicBorders(s, args, 2); } private void GoButton_Click(object sender, EventArgs e) { GoToPage(addressbar.Text); } + + private void _addressbar_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + { + GoButton_Click(this, new EventArgs()); + e.SuppressKeyPress = true; + browsingArea.Focus(); + } + } } } |
