Jump to content

Recommended Posts

Posted

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

Posted

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) :

 

code.gif

Posted

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) :

 

code.gif

 

okay, thanks.. appreciated :/

It's not relative to what I asked but oh well..

BUMP

 

Posted

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 :)

Posted

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...

Posted

Well actualy after page load php can't do almost do anything (but invisible actions)... so its javascipt...

 

okay, JS then. No problem

Posted

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.

  • 3 weeks later...
Posted

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

Posted

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 :)

Posted

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

Guest
This topic is now closed to further replies.


×
×
  • Create New...