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. Visual style and check boxes

Visual style and check boxes

Scheduled Pinned Locked Moved C#
csharpvisual-studiowpfhelp
3 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Ive been fiddling around with c# for a short ammount of time, but im creating a simple application that i need some check boxes to be checked by default, but as soon as i check them in visual studio and compile all the visual styles on all my buttons and other checkboxes dissapear, and i cant figure out why :( any help would be appreciated

    J 1 Reply Last reply
    0
    • L Lost User

      Ive been fiddling around with c# for a short ammount of time, but im creating a simple application that i need some check boxes to be checked by default, but as soon as i check them in visual studio and compile all the visual styles on all my buttons and other checkboxes dissapear, and i cant figure out why :( any help would be appreciated

      J Offline
      J Offline
      Jim Stewart
      wrote on last edited by
      #2

      Can you give a *short* code/procedure example so that we might try to reproduce?

      α.γεεκ

      Fortune passes everywhere.
      Duke Leto Atreides

      U 1 Reply Last reply
      0
      • J Jim Stewart

        Can you give a *short* code/procedure example so that we might try to reproduce?

        α.γεεκ

        Fortune passes everywhere.
        Duke Leto Atreides

        U Offline
        U Offline
        User 1342169
        wrote on last edited by
        #3

        Create a new c# windows application in main add Application.EnableVisualStyles(); before Application.Run(new Form1()); Then add a checkbox to the form, and set FlatStyle to "System" compile the program and the checkbox will have windows xp themes, if you set the checkbox to be checked by default, then compile the xp theme is removed... Do other people get the same problem? The way i have got around it is to set the checkbox defaults when Form1 loads (Load event), but i would be interested in knowing what causes this problem. Cheers

        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