aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-04-29 12:10:34 -0400
committerlempamo <[email protected]>2017-04-29 12:10:34 -0400
commit7f780587c46e9bd5ef1764d18285c8bc47003802 (patch)
tree850d95ba58f67e415edc6ada51bcf6dfb0f69583 /TimeHACK.Main/OS/Win95
parent18b10c1d62896c67e82e4a358f9ccfb45c32b5dc (diff)
downloadhistacom2-7f780587c46e9bd5ef1764d18285c8bc47003802.tar.gz
histacom2-7f780587c46e9bd5ef1764d18285c8bc47003802.tar.bz2
histacom2-7f780587c46e9bd5ef1764d18285c8bc47003802.zip
fixed crashing apps
Diffstat (limited to 'TimeHACK.Main/OS/Win95')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs6
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs2
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWordPad.cs2
3 files changed, 5 insertions, 5 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index e70d90e..194815f 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -178,7 +178,7 @@ namespace TimeHACK.OS.Win95
private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
{
if (ie != null) { wm.startInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
- ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", (Image)resources.GetObject("InternetExplorerToolStripMenuItem.Image"), true, true);
+ ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
ie.BringToFront();
ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
startmenu.Hide();
@@ -197,7 +197,7 @@ namespace TimeHACK.OS.Win95
if (objListViewItem.Text == "Internet Explorer")
{
if (ie != null) { wm.startInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
- ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", (Image)resources.GetObject("InternetExplorerToolStripMenuItem.Image"), true, true);
+ ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
ie.BringToFront();
ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
startmenu.Hide();
@@ -236,7 +236,7 @@ namespace TimeHACK.OS.Win95
private void WordPadToolStripMenuItem_Click(object sender, EventArgs e)
{
WinClassicWordPad wp = new WinClassicWordPad();
- WinClassic app = wm.startWin95(wp, "Wordpad", null, true, true);
+ WinClassic app = wm.startWin95(wp, "Wordpad", Properties.Resources.Win95IconWordpad, true, true);
app.BringToFront();
startmenu.Hide();
}
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs
index 6ff7833..390614d 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95Notepad.cs
@@ -21,7 +21,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
item.BackColor = Color.Silver;
item.BackgroundImage = Properties.Resources.sliversilver;
- item.BackgroundImageLayout = ImageLayout.None;
+ item.BackgroundImageLayout = ImageLayout.Center;
item.DisplayStyle = ToolStripItemDisplayStyle.Text;
}
}
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWordPad.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWordPad.cs
index f270eac..217de42 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWordPad.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWordPad.cs
@@ -30,7 +30,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
item.BackColor = Color.Silver;
item.BackgroundImage = Properties.Resources.sliversilver;
- item.BackgroundImageLayout = ImageLayout.None;
+ item.BackgroundImageLayout = ImageLayout.Center;
item.DisplayStyle = ToolStripItemDisplayStyle.Text;
}