User Profile

Collapse

Profile Sidebar

Collapse
Michelle Monty
Michelle Monty
Last Activity: Mar 3 '10, 06:08 PM
Joined: Oct 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks for your help. I coded it like this:
    Code:
    Timer1.Enabled = True
            Dim time_elapsed As Integer
            time_elapsed = 24
            time_elapsed = time_elapsed - 1
            Label80.Text = time_elapsed.ToString()
            If time_elapsed = 0 Then Timer1.Enabled = False
    It's immediately going to 0 though instead of counting down. Sorry for all the questions, I've never used the timer...
    See more | Go to post

    Leave a comment:


  • How do you set a textbox to timer tick? I'm looking in the properties box and I don't see that option....
    See more | Go to post

    Leave a comment:


  • Ok, I have the timer on the form and I've set it at 24000 for 24 seconds. Is there any way to get a countdown actually to show when I run the program though? I don't necessary have to show it but I'd like to if there is a way. Thanks for your help!...
    See more | Go to post

    Leave a comment:


  • Is that the same as a timer? I tried using the timer but I can't place it on the form....
    See more | Go to post

    Leave a comment:


  • Michelle Monty
    started a topic VB.NET App: Shot Clock in Basketball Game
    in .NET

    VB.NET App: Shot Clock in Basketball Game

    Hello all, I'm trying to get a shot clock to work in my basketball game program. I've read a couple of tutorials but I'm still not getting it. I need it to start at 24 and go down to 0. As it is right now, it goes automatically to 0. Can anyone offer some advice? Thanks!

    Code:
    Timer1.Enabled = True
            Label78.Text = 24
            Do Until Label78.Text = 0
                If Label78.Text = 0 Then Timer1.Enabled
    ...
    See more | Go to post

  • Deciding offense and defense in a basketball game

    Hello all,

    I'm creating a basketball game with two teams of five players. I need to code the program to randomly pick one player from each team to match up. I've set my teams up but I can't figure out how to randomly pick the players. Can someone point me in the right direction? Thanks for your help. Here's my code for the teams:

    Code:
    Dim homeplayers(4) As String
            homeplayers(0) = "Michelle Johnson"
    ...
    See more | Go to post

  • Thanks but nope, still getting the same error....
    See more | Go to post

    Leave a comment:


  • Michelle Monty
    started a topic Padleft is not a member of char error
    in .NET

    Padleft is not a member of char error

    Hello, I'm creating a program that will allow the user to enter payment information on the form and it will save that information to a sequential file. I'm getting an error that says 'padleft is not a member of char' on the line that I have *** in front of below. Can someone help me fix this error? I don't know what that error means. Thanks!!

    [CODE=vbnet]Public Class Form1
    Private Const paymentfile As String = "C:\checkfile.t xt"...
    See more | Go to post
    Last edited by Shashi Sadasivan; Dec 5 '07, 04:42 AM. Reason: adding code tags

  • Thanks. I fixed that line but I'm getting the same error....
    See more | Go to post

    Leave a comment:


  • Saving data to a sequential access file - Visual Basic 2005 Express

    Hi, I'm trying to create a program where the user can enter check information and the information is saved to a sequential access file. I'm getting an error when I run the program. The error is "Object reference not set to an instance of an object" and I'm getting it on the line that I have the ***** in front of below. Can anyone help me figure out how to fix this error? Thanks for your help. Here's my code:


    Code:
    
    
    ...
    See more | Go to post

  • Saving data to a sequential access file

    Hi, I'm trying to create a program where the user can enter check information and the information is saved to a sequential access file. I'm getting an error when I run the program. The error is "Object reference not set to an instance of an object" and I'm getting it on the line that I have the ***** in front of below. Can anyone help me figure out how to fix this error? Thanks for your help. Here's my code:

    Code:
    
    
    ...
    See more | Go to post

  • Michelle Monty
    replied to C# Application: NullReferenceException
    in .NET
    Thanks for your help. While double checking my file, I noticed that I had typed shoes instead of shoe so that was the problem. Duh. It's working now! Thanks again....
    See more | Go to post

    Leave a comment:


  • Michelle Monty
    started a topic C# Application: NullReferenceException
    in .NET

    C# Application: NullReferenceException

    I've created a program that will allow a user to choose a shoe style from a listbox and the program will return a price in a textbox. I have the code finished but I'm getting an error when I try to run the program. Can anyone give me an idea of how to fix it? The code is below. I've bolded the line where I'm getting the error. The error is "NullReferenceE xception was unhandled"

    [CODE=vbnet]Option Explicit On
    Option...
    See more | Go to post
    Last edited by Shashi Sadasivan; Nov 21 '07, 03:31 AM. Reason: placing vbnet code tags, adding comment where error occoured

  • Thanks. I was hoping to avoid typing it out like that but that's the only way I can think of to do it too. Thanks again!...
    See more | Go to post

    Leave a comment:


  • Michelle Monty
    started a topic Deciding the winner in Tic-Tac-Toe

    Deciding the winner in Tic-Tac-Toe

    I'm creating a two-player Tic-Tac-Toe game. I have the game programmed up until the point that someone wins. I'm not sure how to code this. My board is set as an array - board(2,2). My code is below. Can anyone give me an idea of how to proceed? I'm sure I probably need to set a loop in the code somehow but unsure of where and how to do it. Thanks!!!
    [code=vbnet]
    Public Class Form1
    Public player1 As Boolean
    ...
    See more | Go to post
    Last edited by debasisdas; Nov 15 '07, 04:42 AM. Reason: Formatted using code tags.

  • Michelle Monty
    replied to Tic-Tac-Toe
    Worked perfectly, thanks!!...
    See more | Go to post

    Leave a comment:


  • I am new to VB and found some books at the local library today to help. One I picked up but haven't looked at yet is "From VBA to VSTO, Is Excel's New Engine Right For You?" Author is Dr. Gerard M Verschuuren and the ISBN is 1-932802-14-2. This might help you. It looks like it has a lot of info in it....
    See more | Go to post

    Leave a comment:


  • Michelle Monty
    started a topic Tic-Tac-Toe

    Tic-Tac-Toe

    I'm sure this is a basic idea that I'm just not getting but.... I'm creating a two-player Tic-Tac-Toe game. I have my interface set up and a few of the functions finished. My question is how do I go about writing the code to decide whether to put an X or an O in the box based upon whose turn it is? I've used textboxes and set the control for click, I'm just not sure how to tell the program which player is clicking the box. I'm new to VB and...
    See more | Go to post

  • Michelle Monty
    replied to Function procedures
    in .NET
    Thanks, that helped a lot....
    See more | Go to post

    Leave a comment:


  • Michelle Monty
    started a topic Function procedures
    in .NET

    Function procedures

    I'm creating an application where a user creates a cable bill. The application calculates the bill based on whether the customer is a residential or business customer. I've finished the interface and all of the calculations. However, the assignment is to use one or more sub or function procedures. I have several sub procedures but I don't have any function procedures and I'm not sure how to include one in my program without messing up what I've...
    See more | Go to post
    Last edited by debasisdas; Nov 4 '07, 10:34 AM. Reason: Formatted using code tags.
No activity results to display
Show More
Working...