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
Hi Mike
Thank you for reply. I Totally agree with you it is just strange that this Black Box only appears if using a isl file. If no App Styling is selected then there is no problem? I would like to use App styling without the Black Box appearing as it looks messy.
I'm trying to change my code to get around this. What options do I have?
Kind Regards
Paul
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.