Sintoras
Shaaakaa!
- Reaction score
- 45
I'm not sure if there's a place to post this here since theres no Programming forum but I thought someone might be able to help.
I'm a beginner with a little experience in VB. CUreently I'm using Express 2005. Now I have a problem: I made a toolstrip with a textbox which functions as a "console". You can type in different commands and it responds to them. After I added a save/ load function it stopped working, it complains about and illegal converting of the sybols "-string" to type boolean. What am I diong wrong. heres the code:
Thanks!
I'm a beginner with a little experience in VB. CUreently I'm using Express 2005. Now I have a problem: I made a toolstrip with a textbox which functions as a "console". You can type in different commands and it responds to them. After I added a save/ load function it stopped working, it complains about and illegal converting of the sybols "-string" to type boolean. What am I diong wrong. heres the code:
Code:
Private Sub ToolStripButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton1.Click
If ToolStripTextBox1.Text = "-color" Or "-Color" Then
ColorDialog1.ShowDialog()
TextBox1.ForeColor = ColorDialog1.Color
End If
If ToolStripTextBox1.Text = "-Font" Or "-font" Then
FontDialog1.ShowDialog()
TextBox1.Font = FontDialog1.Font
End If
End Sub
Thanks!