1
Answer

How to seperate a group of buttons on the toolbar ?

Administrator

Administrator

22y
1.3k
1
I tried seperating a group of buttons on the toolbar by clicking on the seperator but that only seperates them by a very little space.I need to seperate them with a gap of a large space and adding buttons and then setting its style property to "seperator" looks like such a bad programming technique. Does anybody have any idea of how can I set the "Rectangle" property to position the buttons on the toolbars by setting the values for X or Y ? or else any other idea that you guys may have? Thanks and any help wud greatly be appreciated..! vspv
Answers (1)
0
Techy Wizard
NA 58 0 16y

You can use the Masked Textbox control. Set the mask property to '?'.

Accepted
0
Ryan Alford
NA 2.3k 891.7k 16y
am I missing something?  did he state that this was a web page?
0
Niradhip Chakraborty
NA 6.5k 527k 16y

Call this javascript function on onkeypress of textbox.

 

function isNumberKey(evt){

     var charCode = (evt.which) ? evt.which : event.keyCode

     if (charCode > 31 && (charCode < 48 || charCode > 57)){

     alert("Please enter digits");

          return false;

      }

      else{   

          return true;

      }   

}


 

0
Sivangari Vytheswaran
NA 26 64.5k 16y

Hi

 

using Onkeypress event ,u can solve ur problem.

write the code in java script

1.First find the keyboard event code.

     var key=e.keycode;

2.convert to this code to char and compare this char with ur string(if u give integers in this string ,u allow integer only.otherwise if u give a to z,u  allow only char)

3.if condition satisfy, return true,otherwise return false.

4.above funtion called in textbox onkeypress event.