37 Program using Function in VB.NET

Code:

import java.awt.*;
import java.applet.*;
/*
<applet code="First" height=300 width=300>
</applet>
*/
public class First extends Applet
{
public void init()
{
setBackground(Color.cyan);
setForeground(Color.red);
}

public void paint(Graphics g)
{
g.drawRect(20,20,120,100); // (top,left,width,height)

g.setColor(Color.yellow);

g.fillRect(30,30,100,80); // (top,left,width,height)
}
}




Ouput:

Palindrome Function in VB.NET

Function in VB.NET

Previous
Next Post »