whoops, pressed enter to quickly.
here is the code for q 1)
VB Code:
  1. Private Sub cmdbgbrowse_Click()
  2.     diabox.DialogTitle = "Browse"
  3.     diabox.Filter = "All Formats|*.BMP;*.RLE;*.DIB;*.GIF;*.JPG;*.JPEG;*.JPE;*.PNG;*.TIF;*.TIFF|BMP (*.BMP;*.RLE;*.DIB)|*.BMP;*.RLE;*.DIB|GIF (*.GIF)|*.GIF|JPEG (*.JPG;*.JPEG;*.JPE)|*.JPG;*.JPEG;*.JPE|PNG (*.PNG)|*.PNG|TIFF (*.TIF;*.TIFF)|*.TIF;*.TIFF|"
  4.     diabox.ShowOpen
  5.     picturepreview = diabox.FileName
  6.     imgpic.Picture = picturepreview
  7. End Sub
but that doesnt work right.

2) i call the dialog in the Save As menu thing, but i dont know how to make it so if a file already exists then you have the msgbox to either overwrite or to exit.
here is my code so far:
[Highlight=VB]
Private Sub saveas_Click()
diabox.DialogTitle = "Save Scene As"
diabox.Filter = "Scene Files (*.tsn)|*.tsn|"
diabox.ShowSave
'save the file
Open App.Path & "\Demo\Scenes\" & diabox.FileTitle For Output As #1
Print #1, diabox.FileTitle & vbNewLine & txtscenetext.Text & vbNewLine & txtnorth.Text & vbNewLine & txtsouth.Text & vbNewLine & txteast.Text & vbNewLine & txtwest.Text
Close #1
done:
End Sub

3) how do i make it so if the user clicks cancel it just quits the dialog? because what i have at the moment, is that it saves weather i click save or cancel.

4) how do i erase what is in the FileName box of the dialog? because when i close a dialog is has something in it, so next time i open the dialog it already has that in it. and this code doesnt work:
VB Code:
  1. diabox.FileTitle = ""

thanks