Sunday 4 January 2015

C# OPEN FILE DIALOG BROWSE FILES

       copy and pest
      inside a method  eg button click
   private void button1_Click(object sender, EventArgs e)
        {
            DialogResult result=dialog.ShowDialog();
            if(result==DialogResult.OK)
            {
                buff=System.IO.File.ReadAllBytes(dialog.FileName);
                labelfilename.Text=dialog.FileName;
            }
        }

otherwise

OpenFileDialog dialog;       
 DialogResult result=dialog.ShowDialog();
            if(result==DialogResult.OK)
            {
                buff=System.IO.File.ReadAllBytes(dialog.FileName);
                labelfilename.Text=dialog.FileName;
            }

26 comments:

  1. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    blockchain Training in chennai

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    java training in chennai | java training in bangalore


    java training in tambaram | java training in velachery

    ReplyDelete
  4. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.


    rpa training in Chennai | rpa training in velachery

    rpa training in tambaram | rpa training in sholinganallur

    ReplyDelete
  5. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    python training in annanagar
    python training in chennai
    python training in chennai
    python training in Bangalore

    ReplyDelete
  6. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.

    Devops training in sholinganallur

    ReplyDelete
  7. I was recommended this web site by means of my cousin. I am now not certain whether this post is written through him as nobody else recognise such precise about my difficulty. You're amazing! Thank you!
    Blueprism training in Pune

    Blueprism training in Chennai

    ReplyDelete
  8. Thank you for this post. Thats all I are able to say. You most absolutely have built this blog website into something speciel. You clearly know what you are working on, youve insured so many corners.thanks

    angularjs Training in bangalore

    angularjs Training in btm

    angularjs Training in electronic-city

    angularjs online Training

    angularjs Training in marathahalli

    ReplyDelete
  9. After seeing your article I want to say that the presentation is very good and also a well-written article with some very good information which is very useful for the readers....thanks for sharing it and do share more posts like this.

    Data Science training in kalyan nagar | Data Science training in OMR
    Data Science training in chennai | Data science training in velachery
    Data science training in tambaram | Data science training in jaya nagar

    ReplyDelete
  10. Excellent blog, I wish to share your post with my folks circle. It’s really helped me a lot, so keep sharing post like this
    java training in omr | oracle training in chennai

    java training in annanagar | java training in chennai

    ReplyDelete
  11. The site was so nice, I found out about a lot of great things. I like the way you make your blog posts. Keep up the good work and may you gain success in the long run.
    python training in tambaram
    python training in annanagar
    python training in jayanagar

    ReplyDelete
  12. I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post I would like to read this
    Microsoft Azure online training
    Selenium online training
    Java online training
    Python online training
    uipath online training

    ReplyDelete