How do you change the color of a drop down combo box button

Hello!

For unknown reason we have thousands of objects in finalization queue:
0:002> !FinalizeQueue
SyncBlocks to be cleaned up: 0
MTA Interfaces to be released: 0
STA Interfaces to be released: 0
———————————-
generation 0 has 1 finalizable objects (0000000047160bd8->0000000047160be0)
generation 1 has 0 finalizable objects (0000000047160bd8->0000000047160bd8)
generation 2 has 371 finalizable objects (0000000047160040->0000000047160bd8)
Ready for finalization 710207 objects (0000000047160be0->00000000476cbdd8)
Statistics:
              MT    Count    TotalSize Class Name
000007feed51f960        1           24 System.Management.IWbemClassObjectFreeThreaded
000007fef3e85270     3150       201600 System.Drawing.SolidBrush
000007fef3e858f8     5763       276624 System.Drawing.Bitmap
000007fef3e83108     7374       530928 System.Drawing.Font
000007fef3e83790   679426     27177040 System.Drawing.FontFamily
Total 710579 objects
Threads shows that almost all objects (including Finalizer) are waiting for objects.
0:001> !threads
ThreadCount: 12
UnstartedThread: 0
BackgroundThread: 7
PendingThread: 0
DeadThread: 3
Hosted Runtime: no
                                              PreEmptive                                                Lock
       ID OSID        ThreadOBJ     State   GC     GC Alloc Context                  Domain           Count APT Exception
   0    1 15dc 0000000002313bd0   201a220 Enabled  0000000000000000:0000000000000000 000000000230b9a0     0 MTA
   2    2 13a4 00000000023b3b40      b220 Enabled  0000000000000000:0000000000000000 000000000230b9a0     0 MTA (Finalizer)
   5    3 151c 000000001c270460       220 Enabled  0000000000000000:0000000000000000 000000000230b9a0     0 Ukn
XXXX    4    0 000000001c28ac30      9820 Enabled  0000000000000000:0000000000000000 000000000230b9a0     0 MTA
XXXX    5    0 000000001c2a50c0      9820 Enabled  0000000000000000:0000000000000000 000000000230b9a0     0 MTA
   8    6 196c 000000001c2af380      b020 Enabled  0000000000000000:0000000000000000 000000000230b9a0     0 MTA
   9    7 1918 000000001c28a2b0      b220 Enabled  0000000000000000:0000000000000000 000000000230b9a0     0 MTA
  11    8 1908 000000001c2dac90      7020 Disabled 0000000000000000:0000000000000000 000000000230b9a0     2 STA (GC)
  12    9 1858 0000000002310020   180b220 Enabled  0000000000000000:0000000000000000 000000000230b9a0     0 MTA (Threadpool Worker)
  13    a 12a8 000000001c2bca50   200b220 Enabled  0000000000000000:0000000000000000 000000000230b9a0     0 MTA
XXXX    b    0 000000001c2f4400      9820 Enabled  0000000000000000:0000000000000000 000000000230b9a0     0 Ukn
XXXX    c 1998 000000001c2fcee0  80010220 Enabled  0000000000000000:0000000000000000 000000000230b9a0     0 Ukn
0:002> ~*kb
   0  Id: 1668.15dc Suspend: 1 Teb: 000007ff`fffde000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`7798bc03 : 000007fe`f440c360 000007fe`f4cd55c8 00000000`00000002 00000000`00000000 : ntdll!NtWaitForMultipleObjects+0xa
000007fe`f460f595 : 00000000`02313bd0 00000000`00000000 00000000`00000000 000007fe`f48ca8bb : KERNEL32!FlsSetValue+0x7b3
   1  Id: 1668.1450 Suspend: 1 Teb: 000007ff`fffdc000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`7798bc03 : 00000002`000003f0 00000000`000003f0 00000000`0429b950 00000000`0047ff68 : ntdll!NtWaitForMultipleObjects+0xa
00000000`77981aa1 : 00000000`02311780 00000000`ffffffff 0000b05e`00000000 00000000`00000200 : KERNEL32!FlsSetValue+0x7b3
   2  Id: 1668.13a4 Suspend: 1 Teb: 000007ff`fffda000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`7799c0b0 : 00000000`00000fa0 00000000`00000000 00000000`1c2db740 000007fe`fe2db680 : ntdll!NtWaitForSingleObject+0xa
000007fe`fe3086b2 : 00000000`000006cc 00000000`1c1e3300 00000000`00000000 00000000`000006cc : KERNEL32!WaitForSingleObjectEx+0xa0
   3  Id: 1668.15b0 Suspend: 1 Teb: 000007ff`fffd8000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`77ab7e6e : 00000000`023cec70 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!ZwWaitForWorkViaWorkerFactory+0xa
00000000`7798be3d : 00000000`023cec70 00000000`00000000 00000000`023cec70 00000000`00000000 : ntdll!RtlRealSuccessor+0x35e
   4  Id: 1668.1034 Suspend: 1 Teb: 000007ff`fffd4000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`77ab879d : 00000000`00000000 00000000`00000101 00000000`00000000 00000000`77b87e60 : ntdll!NtWaitForMultipleObjects+0xa
00000000`7798be3d : 00000000`00000000 00000000`00000000 00000000`00000000 000000af`fd5c4e57 : ntdll!RtlCleanUpTEBLangLists+0x45d
   5  Id: 1668.151c Suspend: 1 Teb: 000007ff`fffac000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`7798f65c : 00000000`1c59fe38 00000000`00000000 00000000`1c59fd70 000007fe`00000000 : ntdll!NtRemoveIoCompletion+0xa
000007fe`ffbc5d0d : 00000000`ffffffff 00000000`00000012 00000000`00000000 000007fe`ffb9036f : KERNEL32!GetQueuedCompletionStatus+0x4c
   6  Id: 1668.1920 Suspend: 1 Teb: 000007ff`fffaa000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`7799c0b0 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!NtWaitForSingleObject+0xa
000007fe`fe2e771c : 00000000`00000478 00000000`00000000 00000000`00000001 00000000`00000478 : KERNEL32!WaitForSingleObjectEx+0xa0
   7  Id: 1668.1970 Suspend: 1 Teb: 000007ff`fffa8000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`7799c0b0 : 00000000`00000000 00000000`1c298a90 00000000`00000000 00000000`00000200 : ntdll!NtWaitForSingleObject+0xa
000007fe`f4abcf48 : 00000000`000003c0 00000000`00000000 00000000`00000000 00000000`000003c0 : KERNEL32!WaitForSingleObjectEx+0xa0
   8  Id: 1668.196c Suspend: 1 Teb: 000007ff`fffa6000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`7798bc03 : 00000000`00010002 000007fe`f4a66945 00000000`00f9a468 00000000`1cbfede8 : ntdll!NtWaitForMultipleObjects+0xa
00000000`778be2b5 : 00000000`00000001 00000000`02b0d010 00000000`00000000 00000000`00000000 : KERNEL32!FlsSetValue+0x7b3
   9  Id: 1668.1918 Suspend: 1 Teb: 000007ff`fffa4000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`7799c0b0 : 00000000`00000000 00000000`778bc734 ffffffff`fffffffe 00000000`77986e7a : ntdll!NtWaitForSingleObject+0xa
000007fe`f45bdd16 : 00000000`00000114 00000000`00000000 00000000`00000000 00000000`00000114 : KERNEL32!WaitForSingleObjectEx+0xa0
  10  Id: 1668.190c Suspend: 1 Teb: 000007ff`fffa2000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`7798bc03 : ffffffff`ffffffff 00000000`778bd4c3 00000000`778bd55c 00009966`00ff6666 : ntdll!NtWaitForMultipleObjects+0xa
00000000`778be2b5 : 00000000`00000001 00000000`1d33fe88 00000000`00000000 00000050`00000030 : KERNEL32!FlsSetValue+0x7b3
  11  Id: 1668.1908 Suspend: 1 Teb: 000007ff`fffa0000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
000007fe`f4518c93 : 00000000`00000002 00000000`00000000 00000000`00000001 000007fe`f4cceed0 : mscorwks!CompareAssemblyIdentity+0xa2cbe
000007fe`f49fcb2e : 00000102`66d25a55 00000000`1dfbce98 ffffffff`00000000 00000000`00000000 : mscorwks!StrongNameFreeBuffer+0x93a7
  12  Id: 1668.1858 Suspend: 1 Teb: 000007ff`ffefe000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`7799c0b0 : 00000000`00000010 000007fe`f4cd4b7c 00000000`00000000 00000000`00000000 : ntdll!NtWaitForSingleObject+0xa
000007fe`f45bdd16 : 00000000`000004ec 000007fe`f46a75c8 00000000`00000000 00000000`000004ec : KERNEL32!WaitForSingleObjectEx+0xa0
  13  Id: 1668.12a8 Suspend: 1 Teb: 000007ff`ffefc000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`7798bc03 : 000007fe`f440c360 000007fe`f4cd55c8 00000000`000036b7 00000000`00000000 : ntdll!NtWaitForMultipleObjects+0xa
000007fe`f460f595 : 00000000`1c2bca50 00000000`00000000 00000000`00000001 000007fe`f48ca8bb : KERNEL32!FlsSetValue+0x7b3
  14  Id: 1668.1994 Suspend: 1 Teb: 000007ff`ffefa000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`7799c1b8 : 00000000`1f04f808 00000000`000be6e5 00000000`001a2f2b 00000000`00c79856 : ntdll!ZwDelayExecution+0xa
000007fe`f493658d : 00000000`00000000 000000b4`00000000 ffffffff`ffb3b4c0 00000000`00000000 : KERNEL32!SleepEx+0x88
# 15  Id: 1668.1b3c Suspend: 1 Teb: 000007ff`fffae000 Unfrozen
RetAddr           : Args to Child                                                           : Call Site
00000000`77b70038 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!DbgBreakPoint
00000000`7798be3d : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!DbgUiRemoteBreakin+0x38
All of them are Unfrozen.
I wonder how to investigate this issue.
Thanks,
Alex

This seems to apply to your case: http://blogs.msdn.com/tom/archive/2008/04/28/asp-net-tips-looking-at-the-finalization-queue.aspx(First hit in search for: ‘too many objects  in the finalization  queue’)From the article:    … you can add the -detail switch [to !finalizequeue] and see the Freachable Queue which is all of the objects that are ready to be finalized ….    When you see the !finalizequeue list showing thousands of objects, that is usually a sign that too many objects have a finalizer.  The best way to troubleshoot this is to look for objects that are not part of the framework and then make sure that they follow the rules we discussed earlier.-Karel/

Hi Alex,It looks like your application fails to dispose brushes, bitmaps and fonts. using(SolidBrush shadowBrush = new SolidBrush(customColor)){    // use the brush}  // disposeUse the CLR Profiler to precisly get to the source of your problems.Marcel

This seems to apply to your case: http://blogs.msdn.com/tom/archive/2008/04/28/asp-net-tips-looking-at-the-finalization-queue.aspx(First hit in search for: ‘too many objects  in the finalization  queue’)From the article:    … you can add the -detail switch [to !finalizequeue] and see the Freachable Queue which is all of the objects that are ready to be finalized ….    When you see the !finalizequeue list showing thousands of objects, that is usually a sign that too many objects have a finalizer.  The best way to troubleshoot this is to look for objects that are not part of the framework and then make sure that they follow the rules we discussed earlier.-Karel