Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 244,295 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 879 people online right now. Registration is fast and FREE... Join Now!




how to take full path from text box and assign it to getfullpath

 
Reply to this topicStart new topic

how to take full path from text box and assign it to getfullpath, how to take full path from text box and assign it to getfullpath

radhika2jadhav
3 Dec, 2008 - 11:35 PM
Post #1

New D.I.C Head
*

Joined: 3 Dec, 2008
Posts: 1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
OpenFileDialog1.Title = "Please Select a File"
OpenFileDialog1.InitialDirectory = "D:"

OpenFileDialog1.ShowDialog()


End Sub
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk

Dim strm As System.IO.Stream
strm = OpenFileDialog1.OpenFile()
TextBox1.Text = OpenFileDialog1.FileName.ToString()
If Not (strm Is Nothing) Then
'insert code to read the file data
strm.Close()
MessageBox.Show("file closed")
End If


Dim selectfile
selectfile = TextBox1.Text.ToString()
d = System.IO.Path.GetPathRoot(selectfile)

This post has been edited by radhika2jadhav: 4 Dec, 2008 - 01:14 AM

User is offlineProfile CardPM
+Quote Post


n8wxs
RE: How To Take Full Path From Text Box And Assign It To Getfullpath
3 Dec, 2008 - 11:36 PM
Post #2

--... ...-- -.. . -. ---.. .-- -..- ...
Group Icon

Joined: 6 Jan, 2008
Posts: 1,609



Thanked: 223 times
My Contributions
Welcome!

Please post your code examples using - code.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 04:33PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month