Friday 28 September 2012

How to make Numeric,String textbox and many more on a webpage using java script

Here i'm showing code which help you to make
a textbox which can only accept number.
This is helpful when you're making texbox which takes number as input
This solution works in both IE and Mozilla.
Numeric  Textbox..
HTML Code :
<html>
<head >
    <title>Girfa Numeric Textbox Demo</title>
   
    <script language="javascript">
        function validatenumber(evt)
        {
           
          var ch = (evt.which) ? evt.which : event.keyCode
          if(ch > 31 && (ch < 48 || ch > 57))         
            return false;
                   
          return true;                     
            
        }

Thursday 27 September 2012

How to make popup menu in VB 6.0

Hi...
Popup menu is menu which appeared when we right click from mouse
on a form. You can see it when you right click on desktop a menu appeared
which is pop menu.
There're many uses of popup menu in windows development
Popup menu provide many flexible option front of user its really make
an application more user friendly because user choose their option frequently


   as you can see in image that you must make a menu and make it visible property false
otherwise it'll not appear on form.
You have to visible it on mouse right click . So we can use form mouse up event.
For Detect right click button of mouse you can use Button value which initialize by event handler
if button value is 2 then its rdenotes right click otherwise 1 if user clicked on left button
Now you can make its visibility true as in code....

Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = 2 Then
        PopupMenu mnedit
    End If
 
End Sub

How to print background color and image on paper in word 2003 and 2007

In default setting of word you can't print background color and image of
a page on a paper.But you can do it by changing some property take a look

Print Background color,image in word 2007
  • Select word option from Office button
  • Select Display
  • Check Print background colors and images
  • Click ok

Change case of text in Excel 2003 and Excel 2007

There'are many situation when we want change case of text in excel after data entry.
There may a huge amount of text within a column which you want to  change.
you can use excel function upper,lower and proper how? Take a look..

Change Text Case in excel 2007




  • Enter your text As in image
  • select column near of your text cell as in image
  •  If There is not  space for a column then right click select insert and add entire column
  • Enter Formula as you want apply
      e.g. =upper(b1) 
      drag it down side
  • Now Select change text and copy it
  • Click on cell where actual change has to be done
  • Highlight Home from ribbon control select paste and pick paste values
  • Now you can delete column which had add...