Add RadWaitingBar to RadStatusStrip Q3 2009

4 posts, 1 answers
  1. Dieter
    Dieter avatar
    9 posts
    Member since:
    Feb 2009

    Posted 06 Jan 2011 Link to this post

    Hi,
    I am using a trail version.

    I try to add a WaitingBar to a StatusStrip. I use following code to archive this :

                waitingBar = new RadWaitingBar();
                waitingBar.BeginInit();
                Size waitingBarSize = new Size(this.radLabelElement2.Size.Width, this.radLabelElement2.Size.Height);
                waitingBar.MinimumSize = waitingBarSize;
                waitingBar.MaximumSize = waitingBarSize;
                waitingBar.EndInit();
                host = new RadHostItem(waitingBar);
                this.radLabelElement2.Margin = new Padding(0);
                this.radLabelElement2.Children.Add(host);

    I just add a radLabel to the StatusStrip named radLabelElement2 and it worked but the appearence look a little bit strange :

    http://h-4.abload.de/img/unbenannt1oi3.png

    I use the Desert Theme but the WaitingBar got a white border. I want is transparant. How can I archive this ?

    Thanks
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 06 Jan 2011 Link to this post

    Hello,

    the following seems to help, though I can still see a tiny area of white space. Please can you try this

    radLabelElement2.BackColor = Color.Transparent 
    waitingBar.RootElement.BackColor = Color.Transparent

    You could also change the theme of the actual waiting bar too, back to the Default theme which doesn't show any whitespace
    Hope that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 07 Jan 2011 Link to this post

    Hello,

    How did this go? If it helped, please remember to mark as answer. If you need more assistance, please let me know
    thanks
    Richard
  5. Dieter
    Dieter avatar
    9 posts
    Member since:
    Feb 2009

    Posted 10 Jan 2011 Link to this post

    Thanks! This really worked out for me :)
Back to Top