View Full Version : need help

04-21-2012, 04:03 PM
Hi guys i am coding in visual basic (i know this is wrong but you know only place where i can find good helpful people) so how do i save multiple combo boxes using this code? because adding a cmma doesn't work

Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click
Dim Save As New SaveFileDialog
Save.Filter = "Text Files (*.txt)|*.txt|ALL FILES (*.*)|*.*"
Save.Title = "Save File"
Save.CheckPathExists = True
My.Computer.FileSystem.WriteAllText(Save.FileName, ComboBox1.Text, False)
Catch ex As Exception
End Try
End Sub

05-01-2012, 01:38 AM
I am a little unsure what it is you are trying to do- it seems like you are trying to do a file upload or something- but it seems to have gone wrong :|

the short answer is you need to take each item and cast it as a file and then save it- but I am not sure 'what' it is you are doing or 'how' you are going about doing so.

I requested this thread be moved to either computer programming or at the least asp.net- when posting VB Q's I don't know 'where' to throw it- since it kinda hits ASP/ASP.NET but it falls more in line to computer programming- I assume that is where it will end up- It will probably get more hit's there as well- feel free to PM me if no responses