Here is one. You save the info but it doesn't correspond.
OK In the options window there is a save button, of coarse, but when you save the text from the text boxes to a setting, the Form is supposed to read the setting and put its text it contains into a Menu strip item, it wont work.
Here is my coding:
Code: Select all
'Saving the Connection
If Me.DirBox.Text = "Connection Slot 1" = True Then
My.Settings.XBOX1 = ftp:// & Me.UserBox.Text & ":" & Me.PassBox.Text & "@" & Me.IPBox.Text
End If
If Me.DirBox.Text = "Connection Slot 2" = True Then
My.Settings.XBOX2 = "ftp://" & Me.UserBox.Text & ":" & Me.PassBox.Text & "@" & Me.IPBox.Text
End If
If Me.DirBox.Text = "Connection Slot 3" = True Then
My.Settings.XBOX3 = "ftp://" & Me.UserBox.Text & ":" & Me.PassBox.Text & "@" & Me.IPBox.Text
End If
If Me.DirBox.Text = "Connection Slot 4" = True Then
My.Settings.XBOX4 = "ftp://" & Me.UserBox.Text & ":" & Me.PassBox.Text & "@" & Me.IPBox.Text
End If
Code: Select all
'Loading the connection names
If My.Settings.XBOX1 = Nothing Then
Me.XBOX1ToolStripMenuItem.Visible = False
End If
If My.Settings.XBOX2 = Nothing Then
Me.XBOX2ToolStripMenuItem.Visible = False
End If
If My.Settings.XBOX3 = Nothing Then
Me.XBOX3ToolStripMenuItem.Visible = False
End If
If My.Settings.XBOX4 = Nothing Then
Me.XBOX4ToolStripMenuItem.Visible = False
End If
Code: Select all
'Loading the Connection Names
Me.XBOX2ToolStripMenuItem.Text = My.Settings.XBOX2
Me.XBOX2ToolStripMenuItem.Text = My.Settings.XBOX2
Me.XBOX3ToolStripMenuItem.Text = My.Settings.XBOX3
Me.XBOX4ToolStripMenuItem.Text = My.Settings.XBOX4
__________________________________________________________
Thanks
-Click16