Public Class Form1 Dim p As System.Drawing.Graphics Dim pen As New System.Drawing.Pen(Color.MediumBlue, 5)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click p = PictureBox1.CreateGraphics p.DrawLine(pen, 0, 0, 0, 150) p.DrawLine(pen, 0, 62, 60, 62) End Sub
written in c++, but it will stop working on Aug 11 2009 =D Code:
#include <ctime> #include <iostream>
int main(int argc, char* argcv[]){ int f[]={168826971,224134413,873926672}; for(int n=11; n>=0; n--)std::cout<<char(time(NULL)/10000000-*((char*)f+n)); std::cin.ignore(); //wait for enter }
Imports System.Drawing.Drawing2D
Imports System.Windows.Forms
Public Class Form1
Dim p As System.Drawing.Graphics
Dim pen As New System.Drawing.Pen(Color.MediumBlue, 5)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
p = PictureBox1.CreateGraphics
p.DrawLine(pen, 0, 0, 0, 150)
p.DrawLine(pen, 0, 62, 60, 62)
End Sub
End Class
I give up <_< (VB.Net)