Saturday 18 April 2015

Captcha Using ASP.Net

There is much technical logic to make captcha I am not expert and deep technical but I have tricks that make me able to make captcha. My logic is simple; Make some static image with alphanumeric character. You can change the text shape using photoshop. After creating image add image text into database with an id, generate random number and match it with database id field then fetch image text value and matched its value form user value provide by text box. Following images and code are example of my logic. Enjoy it !

    




Tuesday 3 March 2015

Connect Microsoft Excel 2003,Excel 2007 with VB6.0

Thursday 26 February 2015

VB 6.0 Tutorial

Numeric Text Box in VB6.0

Private Sub Text1_KeyPress(KeyAscii As Integer)
    Select Case KeyAscii
      Case vbKey0 To vbKey9
      Case vbKeyBack, vbKeyClear, vbKeyDelete
      Case vbKeyLeft, vbKeyRight, vbKeyUp, vbKeyDown, vbKeyTab
      Case Else
        KeyAscii = 0
        Beep
    End Select
End Sub

Wednesday 11 February 2015

Java Script Ineresting Programming

Divison Movement using Java Script

Divison is HTML tag which we used as an accumulater for other HTML control. We can apply many thing dynamicaly on a webpage using divison. Here I have write some text in divison and some css which made my divison more attractive . I have made display propety absolute which make me able to change its position using java script function, for implement timer like functionality which calls function continously using setTimeOut function and result is front of you.


<html>
<title>Girfa : Student Help</title>
<head>
<script language="javascript">  
    var i=0;
    function img_move()
    {                        
         var ob=document.getElementById('s1');
         i=parseInt(ob.style.top);
         i=i+5;
         ob.style.top=i+'px';       
         if(s1.style.top=='100px')
         {
        
            i=10;
             ob.style.top=i+'px';
         }
         s=setTimeout("img_move()",100);
     }
</script>
</head>
<body onload="img_move()">