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
H

henrikqwerty321

@henrikqwerty321
About
Posts
6
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • You know it's time to go home...
    H henrikqwerty321

    This is SO much going into my code, one way or another... Epic win!

    The Weird and The Wonderful

  • Please laugh at me so I never do this again...
    H henrikqwerty321

    Yeah sorry still trying to get the naming conventions -.-' (PHP and C++ is messing around with my head)... But about the part of looping trough the form I don't think it's the right solution as the majority of controls must remain unchanged.

    The Weird and The Wonderful

  • May be bad code or May not be!!!
    H henrikqwerty321

    Woaw that code definitely sucks! And I'm not sure if you are being serious about this so I will put this explanation anyway... But it's testing if A equals B and afterwards if B equals C (and that means both A and B equals C)... And then it only calls DoABC if A don't equals C...

    The Weird and The Wonderful help

  • Please laugh at me so I never do this again...
    H henrikqwerty321

    Haha and thanks. But I still committed the crime too :S

    The Weird and The Wonderful

  • Please laugh at me so I never do this again...
    H henrikqwerty321

    You could short it down to something like:

    Private Sub SetUIActivated(ByBal Active As Boolean)
    control1.Enabled = Active
    control2.Enabled = Active
    //Continues like hell...
    End Sub

    The Weird and The Wonderful

  • Please laugh at me so I never do this again...
    H henrikqwerty321

    This is actually an epic fail I did myself, just yesterday... I believe I should be punished for this horrible act against humanity so please laugh at me so I never do it again...

    Private Sub enableControls()
            txtDbHost.Enabled = True
            txtDbName.Enabled = True
            txtDbPass.Enabled = True
            //Continues all the way down....
    End Sub
    Private Sub disableControls()
            txtDbHost.Enabled = False
            txtDbName.Enabled = False
            txtDbPass.Enabled = False
           //Continues all the way down....
    End Sub
    

    Worst thing is that it is part of a project I send into Codecanyon, I really think it's going to get rejected for that blunder.

    Henrik Pedersen - HSP Software - www.hsp.dk

    The Weird and The Wonderful
  • Login

  • Don't have an account? Register

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