468,510 Members | 1,733 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,510 developers. It's quick & easy.

Implement filebrowser dialog box in form

26
Hi All,
I came for one more doubt in dotnet windows application(C#.net or vb.net). how to implement Folderbrowserdialog or Filebrowsedialog box is appeared in form. All are them done in one button in form, if button is clicked the folderbrowserdialog or filebrowserdialog will open, i dont want this, the folderbrowserdialog or filebrowserdialog default loaded in form, i only select in file in filebrowserdialog, i dont want any click event in button to open dialog box.. this is my doubt, is it possible or not. Please give the valuble solution,

Thanks in advance,
Sekar.M
May 14 '07 #1
3 5848
dip_developer
648 Expert 512MB
Hi All,
I came for one more doubt in dotnet windows application(C#.net or vb.net). how to implement Folderbrowserdialog or Filebrowsedialog box is appeared in form. All are them done in one button in form, if button is clicked the folderbrowserdialog or filebrowserdialog will open, i dont want this, the folderbrowserdialog or filebrowserdialog default loaded in form, i only select in file in filebrowserdialog, i dont want any click event in button to open dialog box.. this is my doubt, is it possible or not. Please give the valuble solution,

Thanks in advance,
Sekar.M
I dont understand your problem....Please be specific and clear...
May 14 '07 #2
sekarm
26
what the problem is,
i write the following code in button click event,
that is

Expand|Select|Wrap|Line Numbers
  1. private void button1_Click(object sender, EventArgs e)
  2.         {
  3.             OpenFileDialog of = new OpenFileDialog();
  4.             DialogResult dt = of.ShowDialog();
  5.         }
the show dialog is open, its ok.. what i am asking is the show dialog box is loaded in form window.Any time the user can selects the file, after select the file then click ok,[IMG]The following box is always appear in form.
May 14 '07 #3
dip_developer
648 Expert 512MB
what the problem is,
i write the following code in button click event,
that is

Expand|Select|Wrap|Line Numbers
  1. private void button1_Click(object sender, EventArgs e)
  2.         {
  3.             OpenFileDialog of = new OpenFileDialog();
  4.             DialogResult dt = of.ShowDialog();
  5.         }
the show dialog is open, its ok.. what i am asking is the show dialog box is loaded in form window.Any time the user can selects the file, after select the file then click ok,[IMG]The following box is always appear in form.

Instead of the click event you can put your code in forms Load event...but I dont think you can make a FileDialog box to remain opened in your form always.....
May 15 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by ronenk | last post: by
2 posts views Thread by Ritu Kachroo | last post: by
14 posts views Thread by Simon Abolnar | last post: by
11 posts views Thread by Zytan | last post: by
1 post views Thread by mikeh3275 | last post: by
3 posts views Thread by Arepi | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.