hi, pls sample code for filedialogbox control
Filedialogbox control
Collapse
X
-
or through code(in vb) you could just dim it
Code:Dim mynewopenfiledialog As New OpenFileDialog With mynewopenfiledialog .Title = "Your Title" .Filter = "Filter Whatever extensions you want" .InitialDirectory = "Where to defaultly show the directory" 'at last SHOWWW .ShowDialog() End With 'code to use selected file
Comment
-
Originally posted by joedeeneor through code(in vb) you could just dim it
Code:Dim mynewopenfiledialog As New OpenFileDialog With mynewopenfiledialog .Title = "Your Title" .Filter = "Filter Whatever extensions you want" .InitialDirectory = "Where to defaultly show the directory" 'at last SHOWWW .ShowDialog() End With 'code to use selected file
Code:private void btnBrowse_Click(object sender, EventArgs e) { openFileDialog.ShowDialog(); }
Comment
-
Originally posted by cnixuserC#:
Code:private void btnBrowse_Click(object sender, EventArgs e) { openFileDialog.ShowDialog(); }
Comment
-
Originally posted by joedeenewhy did you put that? i was showing an example of making the openfiledialog through code, all code for at runtime(dynamic ally). that would show the openfiledialog if it were dragged onto the designer ? i wasnt doing thatComment
-
Originally posted by cnixuserI was trying to answer the original posters question, I didn't read yours very thoroughly, sorry.Comment
-
This whol thread should have been answered with a canned message telling the OP to read the posting guidelines and to check msdn, search engines and basic tutorials for the answer to that question.Comment
Comment