Click here to Skip to main content
15,897,891 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: shut down a program totally command Pin
Dave Kreskowiak8-Mar-07 2:50
mveDave Kreskowiak8-Mar-07 2:50 
QuestionDisplay questions from a table and then capture responses Pin
nforeha7-Mar-07 13:46
nforeha7-Mar-07 13:46 
AnswerRe: Display questions from a table and then capture responses Pin
kubben7-Mar-07 14:22
kubben7-Mar-07 14:22 
GeneralRe: Display questions from a table and then capture responses Pin
nforeha7-Mar-07 14:31
nforeha7-Mar-07 14:31 
QuestionDialog Extension Pin
Anybloodyid7-Mar-07 11:36
Anybloodyid7-Mar-07 11:36 
AnswerRe: Dialog Extension Pin
TwoFaced7-Mar-07 12:19
TwoFaced7-Mar-07 12:19 
GeneralRe: Dialog Extension Pin
Anybloodyid7-Mar-07 22:08
Anybloodyid7-Mar-07 22:08 
GeneralRe: Dialog Extension Pin
TwoFaced7-Mar-07 23:08
TwoFaced7-Mar-07 23:08 
Your right I checked it out. It seems if you have included an extension in the file name it won't append the selected extension. Typically when I save a document the extension will be appended unless I enclose the filename in quotes. I would expect that same behavior from the SaveFileDialog but I guess not. If there is a way to enforce that type of behavior I can't figure it out. However, there is a FilterIndex property. You could use that to figure out which extension was selected. You could just use the number it returns for your select case. Or you could split the filtered string and pick out the selected extension.
Dim exts As String() = SaveFileDialog1.Filter.Split("|")
The above will create an array with the extensions in every odd index. To pick out the right one just use
exts(SaveFileDialog1.FilterIndex * 2 - 1)
This will of course return the extension in your filter string which looks like *.txt so you'll have to take that into account.
GeneralRe: Dialog Extension Pin
Anybloodyid8-Mar-07 0:05
Anybloodyid8-Mar-07 0:05 
GeneralRe: Dialog Extension Pin
Dave Kreskowiak8-Mar-07 2:49
mveDave Kreskowiak8-Mar-07 2:49 
GeneralRe: Dialog Extension [modified] Pin
Anybloodyid8-Mar-07 8:26
Anybloodyid8-Mar-07 8:26 
GeneralRe: Dialog Extension Pin
TwoFaced8-Mar-07 9:56
TwoFaced8-Mar-07 9:56 
GeneralRe: Dialog Extension Pin
Anybloodyid8-Mar-07 10:03
Anybloodyid8-Mar-07 10:03 
GeneralRe: Dialog Extension Pin
TwoFaced8-Mar-07 10:24
TwoFaced8-Mar-07 10:24 
GeneralRe: Dialog Extension Pin
Anybloodyid8-Mar-07 10:40
Anybloodyid8-Mar-07 10:40 
QuestionPolygon GDI+ Pin
dslamb7-Mar-07 10:20
dslamb7-Mar-07 10:20 
AnswerRe: Polygon GDI+ Pin
Dave Kreskowiak15-Mar-07 2:40
mveDave Kreskowiak15-Mar-07 2:40 
QuestionOne more time Pin
cstrader2327-Mar-07 8:31
cstrader2327-Mar-07 8:31 
QuestionImage for a button [modified] Pin
harveyhanson7-Mar-07 6:02
harveyhanson7-Mar-07 6:02 
AnswerRe: Image for a button Pin
CPallini7-Mar-07 8:34
mveCPallini7-Mar-07 8:34 
QuestionDataBound Controls Pin
Cmania7-Mar-07 5:59
Cmania7-Mar-07 5:59 
AnswerRe: DataBound Controls Pin
Dave Kreskowiak7-Mar-07 8:00
mveDave Kreskowiak7-Mar-07 8:00 
QuestionRe: DataBound Controls Pin
Cmania11-Mar-07 23:36
Cmania11-Mar-07 23:36 
AnswerRe: DataBound Controls Pin
Dave Kreskowiak12-Mar-07 3:07
mveDave Kreskowiak12-Mar-07 3:07 
QuestionRe: DataBound Controls Pin
Cmania14-Mar-07 22:21
Cmania14-Mar-07 22:21 

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.