![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I don't know where to report a bug to MS. Here is the bug description: I have an activeX created by ATL/C++, which shows a tree view with multiple state checkboxes and icons. It works fine to embed the activeX to the main form of a C# form application. If I create another subform to host the activeX, let the main form calls the subform.ShowDialog() when a button on the main form is clicked. The activeX's tree view in the subform does not show any icon and checkbox at all. If I call Application.Run(subform) in the Main method, the tree view's icon and checkbox are all showed just fine. I believe this is a bug of .Net Framework 2.0. Thanks, Shangwu |
#3
| |||
| |||
|
|
Hi This doesn't sound like a bug with the framework. I can't follow your problem totally and I have some ActiveX or native DLL to managed form experience. In my experience, I've never seen a problem. When mixing native and managed code on a form, dynamically creating native portions, best to maintain singularity of your forms. .NET can actually create multiple separate instances of your forms if you're not careful, which can cause oddness. Google .NET WinForm or Form Singularity. My guess is this would solve your issue. Be sure to destroy native portions when your form closes, best to do this explicitly and not rely on garbage collection when mixing native/managed code. best regards, Robert Dede Gigasoft, Inc. www.gigasoft.com "Shwu" <shwu (AT) nospam (DOT) net> wrote in message news:eKnPzrzFIHA.3848 (AT) TK2MSFTNGP05 (DOT) phx.gbl... I don't know where to report a bug to MS. Here is the bug description: I have an activeX created by ATL/C++, which shows a tree view with multiple state checkboxes and icons. It works fine to embed the activeX to the main form of a C# form application. If I create another subform to host the activeX, let the main form calls the subform.ShowDialog() when a button on the main form is clicked. The activeX's tree view in the subform does not show any icon and checkbox at all. If I call Application.Run(subform) in the Main method, the tree view's icon and checkbox are all showed just fine. I believe this is a bug of .Net Framework 2.0. Thanks, Shangwu |
#4
| |||
| |||
|
|
I don't know where to report a bug to MS. Here is the bug description: I have an activeX created by ATL/C++, which shows a tree view with multiple state checkboxes and icons. It works fine to embed the activeX to the main form of a C# form application. If I create another subform to host the activeX, let the main form calls the subform.ShowDialog() when a button on the main form is clicked. The activeX's tree view in the subform does not show any icon and checkbox at all. If I call Application.Run(subform) in the Main method, the tree view's icon and checkbox are all showed just fine. I believe this is a bug of .Net Framework 2.0. Thanks, Shangwu |
#5
| |||
| |||
|
|
Here is the bug description: The activeX's tree view in the subform does not show any icon and checkbox at all. |
#6
| |||
| |||
|
|
Thanks Robert for the response. I am not mixing native code and managed code in my C# project. The ActiveX control is a third party DLL. My .Net project is pure C#, nothing with native code. |
#7
| |||
| |||
|
|
"Shwu" wrote: Here is the bug description: The activeX's tree view in the subform does not show any icon and checkbox at all. This generally means that the application is using a comctl32 v5 ImageList with a comctl32 v6 TreeView. Applications need to use matched versions. To fix this, turn off EnableVisualStyles until you can get a version of the ActiveX control which directly supports comctl32 v6. Vista also makes the two versions compatible so this won't repro there. --Rob |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |