Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. OnPaintBackground does not fire!!

OnPaintBackground does not fire!!

Scheduled Pinned Locked Moved C#
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rnvrnv
    wrote on last edited by
    #1

    hi, i am creating a class that inherits LinkLabel. I am trying to override the method OnPaintBackground to make it transparent but it seems it is not fired. any idea why or how can i make my LinkLabel transparent? regards, rnv

    L 1 Reply Last reply
    0
    • R rnvrnv

      hi, i am creating a class that inherits LinkLabel. I am trying to override the method OnPaintBackground to make it transparent but it seems it is not fired. any idea why or how can i make my LinkLabel transparent? regards, rnv

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Not sure, but add this to your constructor. SetStyles(ControlStyles.Opaque, false);

      xacc.ide-0.1.3.2

      R 1 Reply Last reply
      0
      • L leppie

        Not sure, but add this to your constructor. SetStyles(ControlStyles.Opaque, false);

        xacc.ide-0.1.3.2

        R Offline
        R Offline
        rnvrnv
        wrote on last edited by
        #3

        thanks but i should have mentioned that i am doing this for my Smart phone application (using Compact Framework 2.0). and it does not have SetStyle method.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups