ProgressBar while MDI child form is loading

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas

    ProgressBar while MDI child form is loading

    Hello,

    I don't know if such question was already posted but I didn't find anything
    through different posts.

    I have the Main MDI window with a StatusBar. Inside my StatusBar there is a
    ProgressBar. When I click on the menu in my MDI Parent, a child form is
    loaded. I would like to know if there is a way to increment a progressbar
    value while child form is loading ? I tried to use background worker but i
    had some cross thread access exceptions. any ideas ? Thanks in advance.

    Thomas

  • =?Utf-8?B?anAybXNmdA==?=

    #2
    RE: ProgressBar while MDI child form is loading

    You could expose a public method on your main window that allows you to write
    the percentage to it from the child.

    "Thomas" wrote:
    Hello,
    >
    I don't know if such question was already posted but I didn't find anything
    through different posts.
    >
    I have the Main MDI window with a StatusBar. Inside my StatusBar there is a
    ProgressBar. When I click on the menu in my MDI Parent, a child form is
    loaded. I would like to know if there is a way to increment a progressbar
    value while child form is loading ? I tried to use background worker but i
    had some cross thread access exceptions. any ideas ? Thanks in advance.
    >
    Thomas
    >

    Comment

    • parez

      #3
      Re: ProgressBar while MDI child form is loading

      On Jun 10, 5:45 am, "Thomas" <tjask...@nodev o.comwrote:
      Hello,
      >
      I don't know if such question was already posted but I didn't find anything
      through different posts.
      >
      I have the Main MDI window with a StatusBar. Inside my StatusBar there is a
      ProgressBar. When I click on the menu in my MDI Parent, a child form is
      loaded. I would like to know if there is a way to increment a progressbar
      value while child form is loading ? I tried to use background worker but i
      had some cross thread access exceptions. any ideas ? Thanks in advance.
      >
      Thomas
      Check this out.. this should help you do what you want to do.

      I use the marquee mode in the progress bar. and then hide/unhide it
      as and when needed..

      Comment

      • parez

        #4
        Re: ProgressBar while MDI child form is loading

        On Jun 10, 5:19 pm, parez <psaw...@gmail. comwrote:
        On Jun 10, 5:45 am, "Thomas" <tjask...@nodev o.comwrote:
        >
        Hello,
        >
        I don't know if such question was already posted but I didn't find anything
        through different posts.
        >
        I have the Main MDI window with a StatusBar. Inside my StatusBar there is a
        ProgressBar. When I click on the menu in my MDI Parent, a child form is
        loaded. I would like to know if there is a way to increment a progressbar
        value while child form is loading ? I tried to use background worker but i
        had some cross thread access exceptions. any ideas ? Thanks in advance.
        >
        Thomas
        >
        Check this out.. this should help you do what you want to do.
        >
        I use the marquee mode in the progress bar. and then hide/unhide it
        as and when needed..
        i meant
        check this out

        Comment

        • =?Utf-8?B?anAybXNmdA==?=

          #5
          Re: ProgressBar while MDI child form is loading

          LOL

          "parez" wrote:
          On Jun 10, 5:19 pm, parez <psaw...@gmail. comwrote:
          On Jun 10, 5:45 am, "Thomas" <tjask...@nodev o.comwrote:
          Hello,
          I don't know if such question was already posted but I didn't find anything
          through different posts.
          I have the Main MDI window with a StatusBar. Inside my StatusBar there is a
          ProgressBar. When I click on the menu in my MDI Parent, a child form is
          loaded. I would like to know if there is a way to increment a progressbar
          value while child form is loading ? I tried to use background worker but i
          had some cross thread access exceptions. any ideas ? Thanks in advance.
          Thomas
          Check this out.. this should help you do what you want to do.

          I use the marquee mode in the progress bar. and then hide/unhide it
          as and when needed..
          >
          i meant
          check this out

          >

          Comment

          Working...