Click here to Skip to main content
16,005,682 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Big Bug in ComboBox control Pin
rushing25-May-05 19:36
rushing25-May-05 19:36 
GeneralRe: Big Bug in ComboBox control Pin
Christian Graus25-May-05 19:38
protectorChristian Graus25-May-05 19:38 
GeneralRe: Big Bug in ComboBox control Pin
rushing25-May-05 21:24
rushing25-May-05 21:24 
GeneralRe: Big Bug in ComboBox control Pin
J4amieC25-May-05 22:09
J4amieC25-May-05 22:09 
GeneralRe: Big Bug in ComboBox control Pin
rushing25-May-05 22:39
rushing25-May-05 22:39 
GeneralRe: Big Bug in ComboBox control Pin
rushing25-May-05 22:41
rushing25-May-05 22:41 
GeneralRe: Big Bug in ComboBox control Pin
Christian Graus26-May-05 11:35
protectorChristian Graus26-May-05 11:35 
GeneralReading a txt file in textbox from listview Pin
WetRivrRat25-May-05 17:26
WetRivrRat25-May-05 17:26 
Hey, I'm trying to display the contents of a text file that I've selected from a ListView in a RichTextBox. So far I've found that I can't get the file name from the ListView, and I'm having extreme difficulty in finding a way to pull the PIDL instead.
My current code doesn't show that I'm trying to read the file inside the RichTextBox yet, as I work in steps confirming everything individually, and currently I can't validate the file name requested. So my MAIN concern is getting the file to open based on the selected item from the ListView. (anybody willing to help with the stream reader or other means to read in the text box will be happily accepted.)
When I select an Item from the ListView I get an exception / error stating : "The system can't find the file specified "........ any ideas?
current code is as follows:
p.s. if i change to the "'("c:\test.txt")" the code works as requested and opens the specific file (note, this is not a file listed in the ListView, only a test subject file)


Private Sub ListView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.DoubleClick
Dim ListViewItem As New ListViewItem
Try
System.Diagnostics.Process.Start(ListViewItem.Selected) '("c:\test.txt")
MsgBox("help me", , MessageBoxButtons.OK)
Catch ex As Exception
MsgBox(Err.Description, vbCritical, "Error " & CStr(Err.Number))
End Try

End Sub


Why is common sense such an un-common comodity?
GeneralRe: Reading a txt file in textbox from listview Pin
Christian Graus25-May-05 17:38
protectorChristian Graus25-May-05 17:38 
GeneralRe: Reading a txt file in textbox from listview Pin
WetRivrRat26-May-05 2:53
WetRivrRat26-May-05 2:53 
GeneralRe: Reading a txt file in textbox from listview Pin
Dave Kreskowiak26-May-05 3:45
mveDave Kreskowiak26-May-05 3:45 
GeneralRe: Reading a txt file in textbox from listview Pin
Christian Graus26-May-05 11:39
protectorChristian Graus26-May-05 11:39 
GeneralRe: Reading a txt file in textbox from listview Pin
WetRivrRat26-May-05 13:05
WetRivrRat26-May-05 13:05 
GeneralRe: Reading a txt file in textbox from listview Pin
Christian Graus26-May-05 14:14
protectorChristian Graus26-May-05 14:14 
GeneralRe: Reading a txt file in textbox from listview Pin
WetRivrRat26-May-05 15:02
WetRivrRat26-May-05 15:02 
GeneralRe: Reading a txt file in textbox from listview Pin
Christian Graus26-May-05 15:07
protectorChristian Graus26-May-05 15:07 
GeneralRe: Reading a txt file in textbox from listview Pin
WetRivrRat26-May-05 15:31
WetRivrRat26-May-05 15:31 
GeneralRe: Reading a txt file in textbox from listview Pin
Christian Graus26-May-05 15:33
protectorChristian Graus26-May-05 15:33 
GeneralRe: Reading a txt file in textbox from listview Pin
Dave Kreskowiak27-May-05 2:14
mveDave Kreskowiak27-May-05 2:14 
GeneralRe: Reading a txt file in textbox from listview Pin
Dave Kreskowiak27-May-05 2:15
mveDave Kreskowiak27-May-05 2:15 
GeneralRe: Reading a txt file in textbox from listview Pin
Christian Graus27-May-05 2:45
protectorChristian Graus27-May-05 2:45 
GeneralConnect to MS Outlook Pin
dw192825-May-05 16:01
dw192825-May-05 16:01 
GeneralRe: Connect to MS Outlook Pin
pfalco26-May-05 10:48
pfalco26-May-05 10:48 
GeneralImages in a Usercontrol Pin
tibmark25-May-05 15:57
tibmark25-May-05 15:57 
GeneralRe: Images in a Usercontrol Pin
Christian Graus25-May-05 16:05
protectorChristian Graus25-May-05 16:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.