Click here to Skip to main content
15,914,323 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: calling back a previous form.. Pin
lespaul3621-Jun-05 11:24
lespaul3621-Jun-05 11:24 
GeneralColumn Color Change Pin
lespaul3620-Jun-05 9:31
lespaul3620-Jun-05 9:31 
GeneralRe: Column Color Change Pin
lespaul361-Aug-05 11:38
lespaul361-Aug-05 11:38 
GeneralSearch Record Pin
ADY00720-Jun-05 8:45
ADY00720-Jun-05 8:45 
GeneralRe: Search Record Pin
Christian Graus20-Jun-05 14:52
protectorChristian Graus20-Jun-05 14:52 
GeneralRe: Search Record Pin
Het210921-Jun-05 2:02
Het210921-Jun-05 2:02 
GeneralString Manipulation: Insert a character (or two...) Pin
Brad Fackrell20-Jun-05 7:59
Brad Fackrell20-Jun-05 7:59 
GeneralRe: String Manipulation: Insert a character (or two...) Pin
Dave Kreskowiak20-Jun-05 9:24
mveDave Kreskowiak20-Jun-05 9:24 
You could split the filename up into substrings using the .Split() method. Then just modify the individual substring however you want, then paste them back together again:
Dim myFile As New FileInfo("filename.jpg.lnk")
Dim filenameParts As String() = myFile.Name.Split(".")
Dim newFilename As String = filenameParts(0) & "_t." & filenameParts(1)

It's up to you to add an error checking code you want and conditional statements to make sure that it is, indeed, OK to modify the supplied filename the way you want.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: String Manipulation: Insert a character (or two...) Pin
Brad Fackrell20-Jun-05 10:07
Brad Fackrell20-Jun-05 10:07 
GeneralDataGrid Question Pin
directred20-Jun-05 5:24
directred20-Jun-05 5:24 
GeneralRe: DataGrid Question Pin
toxcct20-Jun-05 6:11
toxcct20-Jun-05 6:11 
QuestionHow to draw lines then undo ??? Pin
Ray Guan20-Jun-05 4:48
Ray Guan20-Jun-05 4:48 
AnswerRe: How to draw lines then undo ??? Pin
Anonymous20-Jun-05 9:03
Anonymous20-Jun-05 9:03 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:00
Ray Guan20-Jun-05 15:00 
AnswerRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 14:55
protectorChristian Graus20-Jun-05 14:55 
GeneralRe: How to draw lines then undo ??? Pin
lespaul3620-Jun-05 15:12
lespaul3620-Jun-05 15:12 
GeneralRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 15:22
protectorChristian Graus20-Jun-05 15:22 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:36
Ray Guan20-Jun-05 15:36 
GeneralRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 15:39
protectorChristian Graus20-Jun-05 15:39 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:56
Ray Guan20-Jun-05 15:56 
GeneralRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 16:08
protectorChristian Graus20-Jun-05 16:08 
GeneralRe: How to draw lines then undo ??? Pin
lespaul3620-Jun-05 18:57
lespaul3620-Jun-05 18:57 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:29
Ray Guan20-Jun-05 15:29 
GeneralRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 15:41
protectorChristian Graus20-Jun-05 15:41 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:18
Ray Guan20-Jun-05 15:18 

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.