Click here to Skip to main content
15,846,571 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Saving PDF on local hard disk which is read by browser control Pin
jzonthemtn29-May-08 2:40
jzonthemtn29-May-08 2:40 
GeneralRe: Saving PDF on local hard disk which is read by browser control Pin
Sunil Shindekar29-May-08 4:21
Sunil Shindekar29-May-08 4:21 
QuestionNeed help with a project, I am really stumped! Pin
Ogre72228-May-08 21:04
Ogre72228-May-08 21:04 
AnswerRe: Need help with a project, I am really stumped! Pin
Eduard Keilholz28-May-08 21:42
Eduard Keilholz28-May-08 21:42 
GeneralRe: Need help with a project, I am really stumped! Pin
Ogre72229-May-08 3:44
Ogre72229-May-08 3:44 
AnswerRe: Need help with a project, I am really stumped! Pin
Sam Xavier29-May-08 0:26
Sam Xavier29-May-08 0:26 
GeneralRe: Need help with a project, I am really stumped! Pin
Ogre72229-May-08 3:41
Ogre72229-May-08 3:41 
GeneralRe: Need help with a project, I am really stumped! Pin
Chinners29-May-08 4:14
Chinners29-May-08 4:14 
Could you not create your own class with your overloaded "ToString" function... e.g.:

Public Class MyFileName
   Public FileName As String
   Public Overrides Function ToString() As String
      Return System.IO.Path.GetFileName(FileName)
   End Function
End Class


Then, when you add one of these items to a listbox, it will only display the filename, however, when you access the object, you can use the Filename string:

MessageBox.Show(DirectCast(ListBox1.Items(0), MyFileName).FileName)
GeneralRe: Need help with a project, I am really stumped! Pin
Ogre72229-May-08 5:26
Ogre72229-May-08 5:26 
GeneralRe: Need help with a project, I am really stumped! Pin
Chinners29-May-08 5:57
Chinners29-May-08 5:57 
GeneralRe: Need help with a project, I am really stumped! Pin
Ogre72229-May-08 6:22
Ogre72229-May-08 6:22 
GeneralRe: Need help with a project, I am really stumped! Pin
Ogre72229-May-08 16:47
Ogre72229-May-08 16:47 
GeneralRe: Need help with a project, I am really stumped! Pin
Chinners29-May-08 23:35
Chinners29-May-08 23:35 
GeneralRe: Need help with a project, I am really stumped! Pin
Steven J Jowett29-May-08 5:07
Steven J Jowett29-May-08 5:07 
QuestionCheck tinytext column in MySQL Database with VB.NET Pin
drexler_kk28-May-08 16:17
drexler_kk28-May-08 16:17 
AnswerRe: Check tinytext column in MySQL Database with VB.NET Pin
jzonthemtn29-May-08 3:36
jzonthemtn29-May-08 3:36 
QuestionTrouble with VB.NET and XPath Pin
Dominick Marciano28-May-08 10:45
professionalDominick Marciano28-May-08 10:45 
AnswerRe: Trouble with VB.NET and XPath Pin
MidwestLimey28-May-08 14:26
professionalMidwestLimey28-May-08 14:26 
GeneralRe: Trouble with VB.NET and XPath Pin
Dominick Marciano29-May-08 7:43
professionalDominick Marciano29-May-08 7:43 
GeneralRe: Trouble with VB.NET and XPath Pin
MidwestLimey29-May-08 9:19
professionalMidwestLimey29-May-08 9:19 
QuestionbackgroundWorker Help Pin
Cory Kimble28-May-08 8:35
Cory Kimble28-May-08 8:35 
AnswerRe: backgroundWorker Help Pin
Kschuler28-May-08 9:30
Kschuler28-May-08 9:30 
GeneralRe: backgroundWorker Help Pin
Cory Kimble28-May-08 11:47
Cory Kimble28-May-08 11:47 
GeneralRe: backgroundWorker Help Pin
Kschuler28-May-08 11:57
Kschuler28-May-08 11:57 
AnswerRe: backgroundWorker Help Pin
Chinners29-May-08 0:05
Chinners29-May-08 0: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.