Results 1 to 2 of 2

Thread: The Downside of Application.EnableStyles [RESOLVED]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304

    The Downside of Application.EnableStyles [RESOLVED]

    Am I going mad!!!

    I am using Application.enablestyles and therefore have a sub Main and an application.run to show my first form

    Some of the forms have toolbars (with images), now my forms don't show the toolbars and when you mouse over just show a blank button without the image.

    I definitely know it is Application.Enablestyles becuse if I comment that line they show as expected.

    Has anyone else experienced this problem and did they come up with a solution. I can't believe this is a bug and there must be something I am doing wrong but I can't figure it out.

    Any and all comments and suggestions welcomed

    Try it yourself and if you get a different result, then please let me know
    Last edited by RichardAtherton; Sep 24th, 2003 at 03:57 PM.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    Thanks to an ealier posting by DEVGRP I have resolved this problem.

    If you put

    Appplication.DoEvents()

    after Application.EnableStyles()

    everything works fine, obvious when you think about it! - Not

    However that does raise one point back in VB3 I made extensive use of the DoEvents but have dropped it's use in VB .Net as I could not see why I should use from the reading I did on consuming events.

    Has anyone come up with a policy or general rule as to why and when to apply it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width