Nemam ideju a plus sam totalni pocetnik pa stoga POMOC!!!!!
evo i primer koda:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
My.Computer.Audio.Play(My.Resources.zvono, AudioPlayMode.Background)
'Initiate graphics. Command below draws text on the main form 'Me'. If you want to draw on top of a panel, groupbox etc: use groupbox1.CreateGraphics()
Dim g As Graphics = Me.CreateGraphics()
'Call sub. Specify x and y coordinates (in this case 10 and 50) and the text to draw
markInvalid(New System.Windows.Forms.PaintEventArgs(g, New Rectangle(0, 0, Me.Width, Me.Height)), 1450, 550, "A")
End Sub
'This sub does the actual drawing
Private Sub markInvalid(ByVal e As System.Windows.Forms.PaintEventArgs, ByVal xco As Single, ByVal yco As Single, ByVal drawString As String)
'Specify text parameters, like font, size, color and location
Dim drawFont As New Font("Comic Sans MS", 300)
Dim drawBrush As New SolidBrush(Color.White)
Dim drawPoint As New PointF(xco, yco)
'Execute DrawString
e.Graphics.DrawString(drawString, drawFont, drawBrush, drawPoint)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
My.Computer.Audio.Play(My.Resources.zvono, AudioPlayMode.Background)
Dim g As Graphics = Me.CreateGraphics()
markInvalid(New System.Windows.Forms.PaintEventArgs(g, New Rectangle(0, 0, Me.Width, Me.Height)), 1450, 550, "B")
End Sub
[Ovu poruku je menjao Shadowed dana 18.11.2012. u 16:18 GMT+1]