Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. pop up progress bar

pop up progress bar

Scheduled Pinned Locked Moved C#
graphicsquestion
4 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    S K Y
    wrote on last edited by
    #1

    i wrote the code for progress bar. but i want o pop up my progress bar some thing like message box while progressing. how can i do pop up progress bar in a msg box....

    ProgressBar ProBar = new ProgressBar();

        private void import(object sender, EventArgs e)
        {
            if (listView1.Items.Count == 0)
            {
                this.ProBar = new System.Windows.Forms.ProgressBar();
                this.ProBar.TabIndex = 0;
                this.ProBar.Maximum = dlg.FileNames.Length;
                this.ProBar.Minimum = 1;
                this.ProBar.Step = 1;
                
                foreach (string path in dlg.FileNames)
                {
                    FileInfo fileInfo = new FileInfo(path);
                    listView1.Items.Add(path);//fileInfo.Name
                    imageList.Images.Add(Bitmap.FromFile(path));                    
                    ProBar.PerformStep();
    

    A S E L A

    N 1 Reply Last reply
    0
    • S S K Y

      i wrote the code for progress bar. but i want o pop up my progress bar some thing like message box while progressing. how can i do pop up progress bar in a msg box....

      ProgressBar ProBar = new ProgressBar();

          private void import(object sender, EventArgs e)
          {
              if (listView1.Items.Count == 0)
              {
                  this.ProBar = new System.Windows.Forms.ProgressBar();
                  this.ProBar.TabIndex = 0;
                  this.ProBar.Maximum = dlg.FileNames.Length;
                  this.ProBar.Minimum = 1;
                  this.ProBar.Step = 1;
                  
                  foreach (string path in dlg.FileNames)
                  {
                      FileInfo fileInfo = new FileInfo(path);
                      listView1.Items.Add(path);//fileInfo.Name
                      imageList.Images.Add(Bitmap.FromFile(path));                    
                      ProBar.PerformStep();
      

      A S E L A

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Create a new form, put the progress bar on that and show the form.

      Navaneeth How to use google | Ask smart questions

      S 1 Reply Last reply
      0
      • N N a v a n e e t h

        Create a new form, put the progress bar on that and show the form.

        Navaneeth How to use google | Ask smart questions

        S Offline
        S Offline
        S K Y
        wrote on last edited by
        #3

        hi...thx...please can just explane bit more...thx

        A S E L A

        D 1 Reply Last reply
        0
        • S S K Y

          hi...thx...please can just explane bit more...thx

          A S E L A

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Come on! How hard is it to add a new Form to your project, then drag a ProgressBar from the ToolBox and drop it on the Form??

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups