N1nj4Styl3 Posted July 30, 2013 Posted July 30, 2013 Yo, I would like to ask you how can I "Say" in Virtual Basic's language that: If CheckBox1 is not checked Then MessageBox.Show ("You have to check the box before pressing generate!") How can I say this ? :poker face: I only want the checkbox1.. if it isn't checked then it should show the message. Thanks for reading^^ Any help, appreciated! EDIT: If you could help me with something else.. also.. If Textbox1.Text isn't filled Then MessageBox.Show ("You have to fill the required info in the boxes before pressing generate!") End if
Stewie Posted July 30, 2013 Posted July 30, 2013 Since i'm not related with those languge i google a bit and here is what i found. Events are responses to actions performed on controls. For example, in the "Hello world" program sample on this page, when you click on the command button on our form the event that is triggered is the output of the message "Hello world" to the screen. Code must be written to create an event. You can do this in Visual Basic's code window. Yours will look similar to this ( except of course, the body of the sub-procedure where the actions are specified) :
N1nj4Styl3 Posted July 30, 2013 Author Posted July 30, 2013 Since i'm not related with those languge i google a bit and here is what i found. Events are responses to actions performed on controls. For example, in the "Hello world" program sample on this page, when you click on the command button on our form the event that is triggered is the output of the message "Hello world" to the screen. Code must be written to create an event. You can do this in Visual Basic's code window. Yours will look similar to this ( except of course, the body of the sub-procedure where the actions are specified) : okay, thanks.. appreciated :/ It's not relative to what I asked but oh well.. BUMP
Stewie Posted July 30, 2013 Posted July 30, 2013 okay, thanks.. appreciated :/ It's not relative to what I asked but oh well.. BUMP I always give my best to do w/e ... But truth is that i don't know this languge :)
N1nj4Styl3 Posted July 30, 2013 Author Posted July 30, 2013 I always give my best to do w/e ... But truth is that i don't know this languge :) yeah I know :p relax dude
N1nj4Styl3 Posted July 31, 2013 Author Posted July 31, 2013 If someone could post what I said above but in java/php language.. it might be useful, ty.
Stewie Posted July 31, 2013 Posted July 31, 2013 If someone could post what I said above but in java/php language.. it might be useful, ty. Well actualy after page load php can't do almost do anything (but invisible actions)... so its javascipt...
N1nj4Styl3 Posted July 31, 2013 Author Posted July 31, 2013 Well actualy after page load php can't do almost do anything (but invisible actions)... so its javascipt... okay, JS then. No problem
Stewie Posted July 31, 2013 Posted July 31, 2013 okay, JS then. No problem <script type="text/javascript"> // <![CDATA[ function testing(val,x){ maxlen = x; if(val.length > maxlen) { alert('Limit of characters is ' maxlen); document.chars.tests.value = val.substring(0,maxlen); } } function Minimum(obj,min){ if (obj.value.length<min) alert('The code must be 16 letters!'); } // ]]> </script> If the input letters are lower then 16: error box appears with text alert.
MikeJ Posted August 15, 2013 Posted August 15, 2013 The first one: If CheckBox1.Checked = False Then MessageBox.Show("You have to check the box before pressing generate!") End If And the second one: If TextBox1.Text.Length < 1 Then MessageBox.Show("You have to fill the required info in the boxes before pressing generate!") End If
N1nj4Styl3 Posted August 15, 2013 Author Posted August 15, 2013 The first one: If CheckBox1.Checked = False Then MessageBox.Show("You have to check the box before pressing generate!") End If And the second one: If TextBox1.Text.Length < 1 Then MessageBox.Show("You have to fill the required info in the boxes before pressing generate!") End If Hey, Thanks for the help but it was already solved by me :P Kept trying for 1 hour till i found them xD A moderator can lock it :)
CryStaliN Posted August 15, 2013 Posted August 15, 2013 Hey, Thanks for the help but it was already solved by me :P Kept trying for 1 hour till i found them xD A moderator can lock it :) ok
Recommended Posts