![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#11
| |||
| |||
|
|
Hi Richard, I have received a reply from our internal discussion group. The reply said that this is an issue of common control v6 issue in .NET 1.1 applications. Since calling Application.DoEvents after calling Application.EnableVisualStyles could solve the problem, a hot fix request would likely be rejected. Thank you for sharing the workaround in the community. It will definitely benefit all of us! If you have any other questions in the future, please don't hesitate to contact us. It's always our pleasure to be of assistance! Have a nice weekend! Sincerely, Linda Liu Microsoft Online Community Support |
#12
| |||
| |||
|
#13
| |||
| |||
|
|
Hi Richard, Thank you for your feedback! If an application is enabled visual styles by calling the Application.EnableVisualStyles, .NET Framework will draw controls with visual styles. If there's a problem in drawing controls with visual styles, e.g. in our case, the icons don't appear in the ListView when the visual styles is enabled for the application, calling the Application.DoEvents can always solve the problem. If you have any question, please feel free to let me know. Sincerely, Linda Liu Microsoft Online Community Support |
#14
| |||
| |||
|
#15
| |||
| |||
|
|
Hi Richard, I performed a test on this issue and did reproduce the problem on my side. I searched in our internal data base and found that this is a known issue. Unfortunately, there's no workaround so far. I suggest that you use the Panel and Button to mimic the ToolBar, i.e. add some Buttons on a Panel and dock the Panel to the top of the form. If you don't like the Button to be rendered with visual styles, you may set the FlatStyle property of the Button to a value other than System. Hope this helps. If you have any concern, please feel free to let me know. Sincerely, Linda Liu Microsoft Online Community Support |
#16
| |||
| |||
|
#17
| |||
| |||
|
|
Hi Richard, Thank you for your feedback! As we all know, to erase the flickering of the ListView in .NET 1.1, we have to use the version 6 ListView in the comctl6.dll(to do this, call the Application.EnableVisualStyles method). However, the version 6 ToolBar has an problem that the ButtonSize property doesn't work and unfortunately there's no workaround so far. IMO, even if there's a workaround for the ToolBar issue, your customer still need to modify their applications to apply this workaroud. In additon, I don't think it needs much modifications or efforts to use a Panel with some Buttons to replace the ToolBar. Thank you for your understanding! Sincerely, Linda Liu Microsoft Online Community Support |
#18
| |||
| |||
|
|
Well, our framework "owns" the message loop creation (application.run) |
|
thereby we do the enablevisualstyles, which break their applications. |
#19
| |||
| |||
|
|
Hi Richard, Well, our framework "owns" the message loop creation (application.run) What's the "framework" you mentioned in the above sentence? What do you mean by "owns the message loop creation"? thereby we do the enablevisualstyles, which break their applications. Do you mean that you couldn't enable visual styles in the application because that would break the application? Sincerely, Linda Liu Microsoft Online Community Support |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |