Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
UltraListView and UltraExplorer Objects go Black
posted

Hi, I'm using Infragistics Appstyling 13.1 (2060). VB.NET Visual Studio 2010. CLR 4.0

I have experenced for sometime some of my Infragistics Control Objects like the UltraListView, UltraToolbar and UltraExplorerBar flashing black or remaining black at certain time.

I have a AppStyle isl file that I have created and I'm using my own Images for Headers, Progressbar and other areas so I need to have 'All Components' UseOSThemes set to False so my own graphics show.

For test purposes I have created an empty style isl file and have changed the All Components - UseOSThemes to False and have changed nothing else. I have created a Form1 and have created an empty UltraListView, a in a UltraExplorerBar I have created One group and have entrered 3 Items and also added two buttons, one labled Block and the other UnBlock, all from the form nothing special. In the Form Load of have entered the following Infragistics.Win.AppStyling.StyleManager.Load(Application.StartupPath & "\NewStyleSet.isl") to start the StyleApp.

In the Block button _Click I have entered UltraListView.Enabled = False and UltraListView.BeginUpdate, the same for the ExploreBar, in the UnBlock button _Click, Enabled = True and EndUpdate.

Now when I click on the Block button the Two controls turn black until I UnBlock. If I use Only Enabled = False or BeginUpdate and not both together the controls draw correctly. So it seems that you cannot use the both together.  If you have UseOSThemes = Default then there is no problem but I cannot use my own Images.

So could somebody please help me in what I need to do to get this to work correctly.

Thank you for your time.

-Paul

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Paul,

    The BeginUpdate method is specifically designed to prevent the control from painting. So if something tries to paint the form while you are in a BeginUpdate and EndUpdate block, the control will not paint and it will show nothing (a big black box).

    So what you are describing here seems like correct behavior.

Children