i am trying to create a form that allows me to add teams and the scores and then be able to re-open and view them. i have created a form that will create the team names and save it to a file but i have no idea how to create one that will show the scores with the corresponding teams. i am using visual basic express 2008.
I'm very new to visual basic and I am trying to create a tic tac toe game. I have it working all except a message to say the game has ended in a draw.I just can't work out what to put where. I have looked through the various questions and answers on the forum but can't seem to get any of the coding to work for me.[code]Can anyone point me to what code to use to declare a draw and where should I put it?
I am trying to load a text file that lists the rosters for each team.I would like this file to be read at program start and add each player to an array. During the play of the scoreboard I would like to display the player in a label.So far I have this:
Dim intPlayer As Integer = 0 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
I wanted to draw a chart on a picture box. So I create a form, put a picture box on it, and then in the code of Form_load, I put a handler to the paint event of the picture box. This seems to create an infinite loop, judging from the behavior of the form.
I am trying to create a sports scoreboard that has a game clock. (I am very much a noob at programming)I seem to have a problem with the game clock, I know I am sorry, another timer thread. (Trust me I read through about 50 of the 77 posts with 'countdown' in them)I have two solutions so far, unfortunately neither one are exactly what I am looking for. I want to have a scoreboard that counts down from a set time in the format of 00:00 and allows me to decrease and increase the time if it differs from the official clock.
Under the MouseLeftButtonUp event handker store the first coordinates of the lines second endpoint. Then call the length method to obtain the distance between the two endpoints(the lines length). Fianlly display the line on the canvas and the line's length in the Length=Label. Below is the code I have so far. There are no errors, but when I run the application nothing happens.
Private Sub lineCanvas_MouseLeftButtonUp(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArg... Handles lineCanvas.MouseLeftButtonUp Dim distance As Double endPoint = e.GetPosition(lineCanvas)
what im after is advice on writing a vb app. that compares the difference between two images captured from a cctv camera of a sports shooting target. the difference is a bullet hole in the target. i would also like the program to identify a score the bullet makes in relation to its location on the target and have that as an audio output sound file. the targets will be uniform so the template the program has never changes.
I have an "application" that consists of a form Form1, with the following code behind it:
Public Class Form1 Dim xDown As Integer, yDown As Integer Dim g As Graphics = Me.CreateGraphics Dim p As Pen = New Pen(Color.Black, 1) Dim r As New Rectangle
I want to move cursor with visual basic and it seems I found way how to do that. It is possible even click with Visual Basic whereever on screen. But I cannot check out where on the screen the click was done and so I want to draw two short crossing lines on that point as marker where Visual Basic clicked on screen. If it is possible to move cursor to that position and show it then it is as good as drawing marker.
Can I draw my own shapes (such as a filled circle, square, etc.) on a form?Can it be done from code as well as from the designer?Can I use events such as onClick() on the shapes?
I want to draw a histogram when Form2 is loaded, I load Form2 using button of Form1 It didnt work, Form2 is loaded, but no image...i dont know why here's the code
Private Sub Form2_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint Dim img As Graphics = PictureBox1.CreateGraphics
On Form1 we have: TextBox1 TreeView1 - holds list of customers, is located near the bottom of the form, not visible from the start. Now, when I start typing text in TextBox1 (i need to filter customers), TreeView1 appears and suggest for example 30 customers matching the searched text. I want the program to show the treeview and draw it also outside of the Form1 boundaries.
I am basically teaching my students about OO programming and want them to be able to see the outcomes to methods visually. I want to draw shapes on a form but cant for the life of me get it to work - no errors but no actual shapes are being drawn. So I have created a method called drawFace which is run when a new instance of the object is created. This method has the following code in it Form1.CreateGraphics.DrawEllipse(Pens.Black, 100, 100, 100, 50)
It doesn't cause any errors, but it doesn't seem to do anything. Also tried adding a picture box to the stage and ammending the code as such Form1.PictureBox1.CreateGraphics.DrawEllipse(Pens.Black, 100, 100, 100, 50) But still no joy.
I need to draw a'wave form' in a panel inVB.net, the wave form will be updated once every one second. the problem is the screen blinking whenever it is updated. how can I solve this problem? the paint event code as below.
I have a control that looks similar to the following:
I need to add slightly round ends where all that extra end space is. I'm not sure how to add these. It should look similar to the round ends on this page.
I need to draw free hand on a form i know how i can change the colors buts its just the drawing part. i also need it to save and load how would i do this ive been searching but nothing.
in a ordinary form I added a label (Label1) and a button (Button1) with the followiing handler. Well if I press Button1 my dot dashed line is correctly drawn over Label1, but what I need is that program automatically does it on form load.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Graphic As System.Drawing.Graphics
I treid this code to draw the cells value of DataGridView on the form. but it display the three cells in the same place means: if the cells including A-B-C it didn't showed them like this : A B C
[code]For i As Integer = 0 To 2 Dim g As Graphics g = Me.CreateGraphics()
It seems that my form refuses to draw quickly enough. I am using this
[code]...
This ends with the form freezing for a moment, and then it resizes, but it's not until the end of the resize does it display properly, during the resize, their is a big black bar where the new part of the form is supposed to be.And when it's done resizing, it draws itself correctly.
I need a code that when put in a timer will create a cursor were your cursor is and then leave it there. So its like a place marker to let you know were you were when you clicked.