This is SO much going into my code, one way or another... Epic win!
henrikqwerty321
Posts
-
You know it's time to go home... -
Please laugh at me so I never do this again...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.
-
May be bad code or May not be!!!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...
-
Please laugh at me so I never do this again...Haha and thanks. But I still committed the crime too :S
-
Please laugh at me so I never do this again...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 -
Please laugh at me so I never do this again...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