Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am trying to make the results of what I Browse to show up in a TextBox. I don't want to actually open anything, just have the location of the selected file displayed in a TextBox.

 

VB Code:

 

Dim ofDialog As New OpenFileDialog

 

With ofDialog

.InitialDirectory = "C:\list.txt"

.Filter = "textfiles|*.txt"

 

If .ShowDialog = DialogResult.OK Then

End If

End With

ShowDialog.TextBox2. '(<--- Need this part)

It's not impossible, it's Inevitable.
Posted

Now that the subject is started, I want to basically do the same as PureSc0pe... But, I want to be able for the end-user to be able to select a directory/folder in which he or she reads/writes files from. How can I accomplish this...

 

e.g. "C:\Program Files\MyData\"

 

I want the preferences form to show the current/selected directory in which the files are writtento/read from that particular directory.

Firefighters do it with a big hose...
  • *Experts*
Posted

You can use FolderBrowserDialog class from the Windows.Forms namespace. That dialog lets you select directories.

 

Now that the subject is started, I want to basically do the same as PureSc0pe... But, I want to be able for the end-user to be able to select a directory/folder in which he or she reads/writes files from. How can I accomplish this...

 

e.g. "C:\Program Files\MyData\"

 

I want the preferences form to show the current/selected directory in which the files are writtento/read from that particular directory.

Posted
You can use FolderBrowserDialog class from the Windows.Forms namespace. That dialog lets you select directories.

Thanks Mutant. :)

Firefighters do it with a big hose...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...