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. Visual Basic
  4. OVERRIDE READONLY PROPERTY OF TEXTBOX

OVERRIDE READONLY PROPERTY OF TEXTBOX

Scheduled Pinned Locked Moved Visual Basic
question
4 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.
  • G Offline
    G Offline
    Greeky
    wrote on last edited by
    #1

    How can i override readonly property of Text Box Public Overrides Property [ReadOnly]() As Boolean -- this doesnt work it says it is not overridable. Is there any other method except controlling keypress,keyup,keydown events?

    J 1 Reply Last reply
    0
    • G Greeky

      How can i override readonly property of Text Box Public Overrides Property [ReadOnly]() As Boolean -- this doesnt work it says it is not overridable. Is there any other method except controlling keypress,keyup,keydown events?

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      Override it to do what exactly? Change the visual look of readonly fields maybe?

      G 1 Reply Last reply
      0
      • J J4amieC

        Override it to do what exactly? Change the visual look of readonly fields maybe?

        G Offline
        G Offline
        Greeky
        wrote on last edited by
        #3

        IF value is TRUE, i'll set TabStop to FALSE.

        J 1 Reply Last reply
        0
        • G Greeky

          IF value is TRUE, i'll set TabStop to FALSE.

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4
          protected override void OnReadOnlyChanged(EventArgs e)
          {
          	this.TabStop = !this.ReadOnly;
          	base.OnReadOnlyChanged (e);
          }
          
          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