Im currently writing an XML program where you can submit information about a person through comboboxes and textboxes. Im running into problems saving the data to a certain folder.

For Example: Creating Football Player information

- Enter Name of Player (textbox)
- Enter Team Name (choose from combobox)
- Enter Position (choose from combobox)
- etc

I would like to save the data in a file named for the Team Name and Position Name

Example, if the Team Name selected was "Washington Redskins" and the Position selected was "Quarterback", I would like to save the file to C:\Washington Reskins\Quarterback
My Current Code is as follows:

VB Code:
  1. Code:
  2. Public ReadOnly Property DataFilename() As String
  3.         Get
  4.  
  5.             Dim folderpath1 As String = cmbNewTeam.Text
  6.             Dim folderpath2 As String = cmbNewPosition.Text
  7.  
  8.  
  9.             ' get our working folder...
  10.             Dim folder As String
  11.             folder = "c:\" & folderpath1 "\" & folderpath2 "\"
  12.  
  13.  
  14.             ' return the folder with the name "Player Profile.xml"...
  15.             Return folder & "\Player Profile.xml"
  16.         End Get
  17.     End Property




If you look at the "folder =" part, you can see what Im trying to do. I just need the correct format for doing this. I know someone out there can figure this simple problem out. Thanks!!