Click here to Skip to main content
16,007,610 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How can I build a String by reading through a Data Grid? Pin
Trupti Mehta9-Sep-07 23:01
Trupti Mehta9-Sep-07 23:01 
QuestionTrimming a String Pin
Ravi Mahavrathayajula7-Sep-07 9:35
Ravi Mahavrathayajula7-Sep-07 9:35 
AnswerRe: Trimming a String Pin
Dave Kreskowiak7-Sep-07 9:36
mveDave Kreskowiak7-Sep-07 9:36 
AnswerRe: Trimming a String Pin
Kschuler7-Sep-07 9:39
Kschuler7-Sep-07 9:39 
GeneralRe: Trimming a String Pin
Dave Kreskowiak7-Sep-07 9:45
mveDave Kreskowiak7-Sep-07 9:45 
GeneralRe: Trimming a String Pin
Ravi Mahavrathayajula7-Sep-07 10:04
Ravi Mahavrathayajula7-Sep-07 10:04 
GeneralRe: Trimming a String Pin
Ravi Mahavrathayajula7-Sep-07 10:04
Ravi Mahavrathayajula7-Sep-07 10:04 
AnswerRe: Trimming a String Pin
nishkarsh_k8-Sep-07 9:23
nishkarsh_k8-Sep-07 9:23 
You can use “split” to split the string at desired character and then use mid to get the desired result

A sample code is written bellow.

You have to tweak the codes for exact requirements

Just create a Project on the form create a button named button1 and past the code in the form1 class

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim str_temp As String
Dim str_spliter As Object

str_temp = "F:\folder1\aaaa.exe"

str_spliter = Split(str_temp, "\")

MsgBox(Mid(str_spliter(2), 1, (Len(str_spliter(2)) - 4)))


End Sub


Good luck...
QuestionPrinting a bound datagrid usint new DataGridViewPrint class Pin
2wit2woo7-Sep-07 8:03
2wit2woo7-Sep-07 8:03 
AnswerRe: Printing a bound datagrid usint new DataGridViewPrint class Pin
Dave Kreskowiak7-Sep-07 8:32
mveDave Kreskowiak7-Sep-07 8:32 
GeneralRe: Printing a bound datagrid usint new DataGridViewPrint class Pin
2wit2woo7-Sep-07 8:54
2wit2woo7-Sep-07 8:54 
GeneralRe: Printing a bound datagrid usint new DataGridViewPrint class Pin
Dave Kreskowiak7-Sep-07 9:30
mveDave Kreskowiak7-Sep-07 9:30 
Questiondatagrid cell focus Pin
ggreekggod7-Sep-07 6:49
ggreekggod7-Sep-07 6:49 
AnswerRe: datagrid cell focus Pin
Dave Kreskowiak7-Sep-07 9:35
mveDave Kreskowiak7-Sep-07 9:35 
QuestionWhat is Wrong with the Following Code.Adding records in DB Pin
Vimalsoft(Pty) Ltd7-Sep-07 6:36
professionalVimalsoft(Pty) Ltd7-Sep-07 6:36 
AnswerRe: What is Wrong with the Following Code.Adding records in DB Pin
Manuel F. Hernandez7-Sep-07 6:55
Manuel F. Hernandez7-Sep-07 6:55 
GeneralRe: What is Wrong with the Following Code.Adding records in DB Pin
Vimalsoft(Pty) Ltd7-Sep-07 7:41
professionalVimalsoft(Pty) Ltd7-Sep-07 7:41 
GeneralRe: What is Wrong with the Following Code.Adding records in DB Pin
Manuel F. Hernandez7-Sep-07 8:02
Manuel F. Hernandez7-Sep-07 8:02 
AnswerRe: What is Wrong with the Following Code.Adding records in DB Pin
Christian Graus7-Sep-07 6:56
protectorChristian Graus7-Sep-07 6:56 
Questionchoose first field of repeating data and write to a text file Pin
samme7127-Sep-07 6:21
samme7127-Sep-07 6:21 
AnswerRe: choose first field of repeating data and write to a text file Pin
Dave Kreskowiak7-Sep-07 9:27
mveDave Kreskowiak7-Sep-07 9:27 
GeneralRe: choose first field of repeating data and write to a text file Pin
samme7127-Sep-07 10:12
samme7127-Sep-07 10:12 
GeneralRe: choose first field of repeating data and write to a text file Pin
Dave Kreskowiak7-Sep-07 12:59
mveDave Kreskowiak7-Sep-07 12:59 
GeneralRe: choose first field of repeating data and write to a text file Pin
samme71211-Sep-07 7:16
samme71211-Sep-07 7:16 
GeneralRe: choose first field of repeating data and write to a text file Pin
Dave Kreskowiak11-Sep-07 12:50
mveDave Kreskowiak11-Sep-07 12:50 

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.