Click here to Skip to main content
15,902,938 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow do I use Select Case on checkboxes in a Groupbox control? Pin
Rashar26-Jun-06 6:34
Rashar26-Jun-06 6:34 
AnswerRe: How do I use Select Case on checkboxes in a Groupbox control? Pin
Dave Kreskowiak26-Jun-06 8:45
mveDave Kreskowiak26-Jun-06 8:45 
Questionhow can i convert vb6 source file to vb.net 2003 file Pin
saneng26-Jun-06 6:24
saneng26-Jun-06 6:24 
AnswerRe: how can i convert vb6 source file to vb.net 2003 file Pin
Dave Kreskowiak26-Jun-06 8:35
mveDave Kreskowiak26-Jun-06 8:35 
QuestionHow can I convert VB6 to VB.NET2003 Pin
Adekolurejo26-Jun-06 6:10
Adekolurejo26-Jun-06 6:10 
AnswerRe: How can I convert VB6 to VB.NET2003 Pin
Dave Kreskowiak26-Jun-06 8:30
mveDave Kreskowiak26-Jun-06 8:30 
QuestionVBScript to split file path into 3 bits Pin
mil_an26-Jun-06 5:43
mil_an26-Jun-06 5:43 
AnswerRe: VBScript to split file path into 3 bits [modified] Pin
Dave Kreskowiak26-Jun-06 8:33
mveDave Kreskowiak26-Jun-06 8:33 
This is simple string handling.

You can use the FileSystemObject's GetFilename method to get the last part of the string.

You can use WScript.ExpandEnvironmentStrings to get the path to the Program Files folder (which is NOT always on C:!!). All you need to do is exand the environment variable "ProgramFiles" and it'll usually return C:\Program Files.

After that, it's simple string handling to get the middle part. Hint: What's the length of the strings returned by both of these calls?


Dave Kreskowiak
Microsoft MVP - Visual Basic



-- modified at 14:34 Monday 26th June, 2006
GeneralRe: VBScript to split file path into 3 bits Pin
mil_an28-Jun-06 0:47
mil_an28-Jun-06 0:47 
Questionslovenian codepage Pin
Marc Soleda26-Jun-06 4:46
Marc Soleda26-Jun-06 4:46 
QuestionAvoid Validation while closing the form Pin
nagarajanrj26-Jun-06 4:43
nagarajanrj26-Jun-06 4:43 
AnswerRe: Avoid Validation while closing the form Pin
Dave Kreskowiak26-Jun-06 5:07
mveDave Kreskowiak26-Jun-06 5:07 
QuestionRemoving application from the bottom panel [modified] Pin
mikeskeeter26-Jun-06 4:24
mikeskeeter26-Jun-06 4:24 
AnswerRe: Removing application from the bottom panel Pin
Dave Kreskowiak26-Jun-06 5:01
mveDave Kreskowiak26-Jun-06 5:01 
QuestionHelp required in mdi child form Pin
bzasri26-Jun-06 3:15
bzasri26-Jun-06 3:15 
AnswerRe: Help required in mdi child form Pin
Dave Kreskowiak26-Jun-06 4:59
mveDave Kreskowiak26-Jun-06 4:59 
QuestionTOOLBAR Events Pin
codeadair26-Jun-06 3:06
codeadair26-Jun-06 3:06 
AnswerRe: TOOLBAR Events Pin
Coolesh26-Jun-06 4:02
Coolesh26-Jun-06 4:02 
GeneralRe: TOOLBAR Events Pin
codeadair26-Jun-06 14:58
codeadair26-Jun-06 14:58 
Questionquestion about calling the function OleCreatePictureIndirect in VB.Net Pin
mwolf12226-Jun-06 1:40
mwolf12226-Jun-06 1:40 
AnswerRe: question about calling the function OleCreatePictureIndirect in VB.Net Pin
Dave Kreskowiak26-Jun-06 4:55
mveDave Kreskowiak26-Jun-06 4:55 
GeneralRe: question about calling the function OleCreatePictureIndirect in VB.Net Pin
mwolf12227-Jun-06 22:15
mwolf12227-Jun-06 22:15 
GeneralRe: question about calling the function OleCreatePictureIndirect in VB.Net Pin
Dave Kreskowiak28-Jun-06 1:48
mveDave Kreskowiak28-Jun-06 1:48 
GeneralRe: question about calling the function OleCreatePictureIndirect in VB.Net [modified] Pin
mwolf12228-Jun-06 23:27
mwolf12228-Jun-06 23:27 
QuestionSpeed when Loading Combos Pin
V.26-Jun-06 1:19
professionalV.26-Jun-06 1:19 

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.