|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Just want to be sure about 2005Application.EnableVisualStyles()
'There is bug in the implementation of EnableVisualStyles that interferes with Images stored in an ImageList component and Window Common Controls, Application.DoEvents() 'Work around I saw an option that makes me think the above is no longer necessary - is that correct?? Same for allowing only one instance of an app - following code no longer required - is that correct?? If Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName).GetLength(0) Show quoteHide quote > 1 Then Hi,
The visual styles are enabled by default in vs 2005 Ken ---------------- Show quoteHide quote " **Developer**" <REMOVEdevelo***@a-znet.com> wrote in message news:%23WfW9SMJGHA.1312@TK2MSFTNGP09.phx.gbl... > Application.EnableVisualStyles() > > 'There is bug in the implementation of EnableVisualStyles that interferes > with Images stored in an ImageList component and Window Common Controls, > > Application.DoEvents() 'Work around > > I saw an option that makes me think the above is no longer necessary - is > that correct?? > > > > Same for allowing only one instance of an app - following code no longer > required - is that correct?? > > If > Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName).GetLength(0) > > 1 Then > > " **Developer**" <REMOVEdevelo***@a-znet.com> schrieb: IIRC the problem has been fixed.> Application.EnableVisualStyles() > > 'There is bug in the implementation of EnableVisualStyles that interferes > with Images stored in an ImageList component and Window Common Controls, > > Application.DoEvents() 'Work around > > I saw an option that makes me think the above is no longer necessary - is > that correct?? > Same for allowing only one instance of an app - following code no longer ACK. You can enable visual styles and single-instance behavior in "My > required - is that correct?? Project". -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Herfried K. Wagner [MVP] wrote:
>> Same for allowing only one instance of an app - following code no Although personally I find it rather irritating that you can't get the >> longer required - is that correct?? > > ACK. You can enable visual styles and single-instance behavior in "My > Project". project to launch from a Sub Main when using that, you're forced to provide a startup form. Which for my project doesn't really work. I tried using the old VS2003 method, and it worked on all the controls except for ComboBoxes, which still had the non-visual-styles appearance and looked particularly out-of-place. Is there a way to work around this? -- (O)enone Thanks
Show quoteHide quote " **Developer**" <REMOVEdevelo***@a-znet.com> wrote in message news:%23WfW9SMJGHA.1312@TK2MSFTNGP09.phx.gbl... > Application.EnableVisualStyles() > > 'There is bug in the implementation of EnableVisualStyles that interferes > with Images stored in an ImageList component and Window Common Controls, > > Application.DoEvents() 'Work around > > I saw an option that makes me think the above is no longer necessary - is > that correct?? > > > > Same for allowing only one instance of an app - following code no longer > required - is that correct?? > > If > Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName).GetLength(0) > > 1 Then > >
User's Mail Editor
Problème data tramsmission from tableadapter to ACCESS database Odd or Even How to: Omit Deafulted Elements from XML When Serializing Class and property question Help with Radio button loop Darn, still does not work! convert rtf to html Can't get a value from my app.config file Playing sounds from resources in VB2005 |
|||||||||||||||||||||||