Search:

Type: Posts; User: knightsoluck

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. VS 2010 Re: Background Image not appearing.

    Try switching it to PNG also make sure image is set to stretch
  2. VS 2010 Re: Background Image not appearing.

    if you change background here after adding to resources also i think 2010 only takes jpeg
    158999
  3. Replies
    2
    Views
    574

    Card game score problem

    Public Class FrmGame
    Dim score As Integer = 0
    Dim CardNum As Integer
    Dim CardFirst As Integer
    Private Sub Options_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    ...
  4. VS 2017 [RESOLVED] Unmute and play current music

    Public Class FrmOptions
    Private Sub MainMenuToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles MainMenuToolStripMenuItem.Click
    Me.Close()
    End Sub
    Private Sub...
  5. Replies
    22
    Views
    1,564

    VS 2017 Re: Number to images

    Public Class Game
    Private images As Image() = {My.Resources._1,
    My.Resources._2,
    My.Resources._3,
    ...
  6. Replies
    22
    Views
    1,564

    VS 2017 Re: Number to images

    i cant seem to get it to see values of each card just adds score nomatter value of card in picbox
  7. Replies
    22
    Views
    1,564

    VS 2017 Re: Number to images

    ok i seem to still have problems getting it to recognize the values of cards it seems to think all cards are higher
    Public Class Game
    Private images As Image() = {My.Resources._1,
    ...
  8. Replies
    22
    Views
    1,564

    VS 2017 Re: Number to images

    I have set option strict on started new fresh form
    however still no idea how to get the value of image for olddicethrow

    this is my new cleaner code


    Public Class Game
    Private images...
  9. Replies
    22
    Views
    1,564

    VS 2017 Re: Number to images

    CURRENT CODE


    Public Class Game
    Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    lblLife.Text = lives
    lblscore.Text = score
    ...
  10. Replies
    22
    Views
    1,564

    VS 2017 Re: Number to images

    i tried putting
    picRandom.Image = images(dicethrow - 1)

    but get
    Error BC31429 'picRandom' is ambiguous because multiple kinds of members with this name exist in class...
  11. Replies
    22
    Views
    1,564

    VS 2017 Re: Number to images

    not sure how to make image match dice


    Public Class Game
    Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    lblLife.Text = lives
    lblscore.Text =...
  12. Replies
    22
    Views
    1,564

    VS 2017 Re: Number to images

    I have most of the code working now but ive hit a snag

    Public Class Game
    Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    lblLife.Text = lives
    ...
  13. Replies
    22
    Views
    1,564

    VS 2017 Re: Number to images

    i tried inserting PictureBox1.Image = images(randomNumber - 1) but no idea where


    Public Class Game
    Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    ...
  14. Replies
    22
    Views
    1,564

    VS 2017 Re: Number to images

    OK so i have declared the images in an array just need help changing from seeing the number on label to the value of the image and randomizing it each click

    Public Class Game
    Public Sub...
  15. Replies
    22
    Views
    1,564

    VS 2017 Number to images

    ok so i finally coded my we high low card game at present it uses 1-13 (1 deck of cards) and i was wondering how would i go about changing this code to display card images instead of numbers

    My...
  16. Replies
    5
    Views
    769

    VS 2017 Re: stuck on error for time

    i tried that but it wants

    Error BC30451 'Interval' is not declared. It may be inaccessible due to its protection level.

    however if i declare it as integer an it stopped work
  17. Replies
    5
    Views
    769

    VS 2017 [RESOLVED] stuck on error for time

    Public Class Splash
    Private tmrSplash As Object

    Private Sub Splash_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Timer1_Tick(sender As...
  18. Replies
    2
    Views
    573

    VS 2017 Re: music

    ty it worked i just had the stop code in wrong place
  19. Replies
    2
    Views
    573

    VS 2017 [RESOLVED] music

    so i know how to add music to a programme but im not sure how to restrict the music to only play in certain forms of the programme

    Public Class Options
    Private Sub Button3_Click(sender As...
  20. Replies
    28
    Views
    3,167

    VS 2017 Re: [RESOLVED] plz help fix code

    Thankyou for the help
  21. Replies
    28
    Views
    3,167

    VS 2017 Re: [RESOLVED] plz help fix code

    nm i got it working even added background music/image just need to work out how to have the music only play one 2 of the forms instead of all the time
  22. Replies
    28
    Views
    3,167

    VS 2017 Re: [RESOLVED] plz help fix code

    thanks that worked is there any to have starting lives shown at form launch coz when form launches i see following158419
  23. Replies
    28
    Views
    3,167

    VS 2017 Re: [RESOLVED] plz help fix code

    it was the code he told me to put in on line 22 as error show If lblLife.Text = 0 Then
  24. Replies
    28
    Views
    3,167

    VS 2017 Re: [RESOLVED] plz help fix code

    showed error
  25. Replies
    28
    Views
    3,167

    VS 2017 Re: [RESOLVED] plz help fix code

    System.InvalidCastException
    HResult=0x80004002
    Message=Conversion from string "lives4" to type 'Double' is not valid.
    Source=Microsoft.VisualBasic
    StackTrace:
    at...
  26. Replies
    28
    Views
    3,167

    VS 2017 Re: [RESOLVED] plz help fix code

    Public Class Game
    Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    score = score + 1
    lblNumber.Text = dicethrow
    End Sub

    Dim dice As New...
  27. Replies
    28
    Views
    3,167

    VS 2017 Re: plz help fix code

    Basically I've got it to stage where score adds up just need to work out how to make them lose lives for incorrect guess results in them losing life from 5-0 then they get a game over message box...
  28. Replies
    28
    Views
    3,167

    VS 2017 Re: plz help fix code

    Public Class Game
    Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    score = score + 1
    lblNumber.Text = dicethrow
    End Sub

    Dim dice As New...
  29. Replies
    28
    Views
    3,167

    VS 2017 Re: plz help fix code

    ive tried that but score doesn't seem to remember and increase with each correct guess

    Public Class Game
    Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    ...
  30. Replies
    28
    Views
    3,167

    VS 2017 Re: plz help fix code

    System.InvalidCastException
    HResult=0x80004002
    Message=Conversion from string "X" to type 'Double' is not valid.
    Source=Microsoft.VisualBasic
    StackTrace:
    at...
  31. Replies
    28
    Views
    3,167

    VS 2017 Re: plz help fix code

    if i move it outside programme doesn't run at all

    Error BC30188 Declaration expected. 9 Active
    Error BC30188 Declaration expected. 10 Active
  32. Replies
    28
    Views
    3,167

    VS 2017 Re: plz help fix code

    ublic Class Game
    Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    End Sub

    Dim dice As New Random
    Dim dicethrow As Integer = dice.Next(1, 101)
    Dim...
  33. Replies
    28
    Views
    3,167

    VS 2017 Re: plz help fix code

    Public Class Game
    Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim dice As New Random
    Dim dicethrow As Integer = dice.Next(1, 101)
    Dim...
  34. Replies
    28
    Views
    3,167

    VS 2017 Re: plz help fix code

    then where do i put them i tried mobing them but it didnt work outside i need some 1 to show me
  35. Replies
    28
    Views
    3,167

    VS 2017 [RESOLVED] plz help fix code

    Public Class Game
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim dice As New Random
    Dim dicethrow As Integer = dice.Next(1, 101)
    Dim...
  36. Replies
    12
    Views
    838

    VS 2017 Re: Adding score and lives

    i have declared them outside i thought at top
  37. Replies
    12
    Views
    838

    VS 2017 Re: Adding score and lives

    Public Class Game
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim dice As New Random
    Dim dicethrow As Integer = dice.Next(1, 101)
    Dim...
  38. Replies
    12
    Views
    838

    VS 2017 Re: Adding score and lives

    so far this is what i got but its not working

    Public Class Game
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim dice As New Random
    Dim...
  39. Replies
    12
    Views
    838

    VS 2017 Re: Adding score and lives

    still need help im only a beginner
  40. Replies
    12
    Views
    838

    VS 2017 Re: Adding score and lives

    can u help me with the code then
Results 1 to 40 of 45
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width