Search:

Type: Posts; User: PlaystationMasterBoy

Search: Search took 0.03 seconds.

  1. VS 2010 Re: Count number of object instances in a list

    Thanks.

    I'll give it a whirl!
  2. VS 2010 [RESOLVED] Count number of object instances in a list

    Hi,

    Is there an easier, or cleaner, way to count the number of object in a list than:


    For Each bk As Book In bookList
    If TypeOf bk Is ChildrensBook Then
    ...
  3. VS 2010 [RESOLVED] Reading collection class properties into Word table

    Hi Guys,

    I'm having trouble converting a collection class into a word table. The problem is, I have a class called "Book" which has to properties "Title", "ISBN" and "Author" - and I want to copy...
  4. VS 2010 Re: Error in UPDATE SQL Syntax

    Yes, it's Access.

    The Session variable works fine on other pages.
    And they all have values as I displayed each in a messagebox to verify :/
  5. VS 2010 Re: Error in UPDATE SQL Syntax

    I get the error "No value given for one or more required parameters."
  6. VS 2010 [RESOLVED] Error in UPDATE SQL Syntax

    Heyy,

    I am trying to update the row where [UserID] = Session.Item("UserID") and I get error each time.. This is my code.


    Dim conn As New...
  7. VS 2010 Re: Concentration game 2D picturebox array

    Apologies for the slow understanding but I am not an avid user of VB.NET or Visual Studio 2010 - this task is an assignment at College.

    I have located the 100 pictureboxes to the panel also -...
  8. VS 2010 Re: Concentration game 2D picturebox array

    I've successfully managed to randomize the cards, using this code:

    Dim Cards() As Integer

    Private Sub shuffle()
    Dim numberOfCards = 52
    Cards = Enumerable.Repeat(0,...
  9. VS 2010 Re: removing control array controls

    Solved. I implemented a panel, and then used the following code.

    panel1.controls.clear()
  10. VS 2010 Re: removing control array controls

    Thanks for the reply, I'll give that a go.

    Cheers.
  11. VS 2010 Re: removing control array controls

    apologies, when I researched it I didn't take note that it was for VB6, on this site: http://msdn.microsoft.com/en-us/library/aa261332(v=vs.60).aspx
  12. VS 2010 Re: removing control array controls

    The last, I don't close the form. Simply click "New Game" in a menu at the top.

    It's a setting whereby the user can alter the amount of pictureboxes - either 8x8, 10x10, 12x12 or 16x16. It's a...
  13. VS 2010 Re: removing control array controls

    OK. What I am trying to say is that I have declared a 2D array of pictureboxes. I've managed to get them located on the form, in a 10x10 grid.

    Now, when I reset the game the first 100 boxes stay...
  14. VS 2010 Re: removing control array controls

    Using a for loop, for rows and columns then placing them on the form.

    I tried the "unload" with no success.
  15. VS 2010 [RESOLVED] removing control array controls

    Hello, I have added controls to the form using a control array.. However, when I re-run it they stay and more appear. How do I get rid of the first set?

    Thanks
    PMB
  16. VS 2010 Re: Concentration game 2D picturebox array

    Thanks for your reply.

    Will this method allow me to somehow shuffle the cards, randomly, so that they're not in the same lcoation each time a New Game is selected?

    I need to have a deck of 52...
  17. VS 2010 [RESOLVED] Concentration game 2D picturebox array

    Hello,

    I am required to make a game of concentration, whereby cards are shown for x amount of seconds and then truned over. The user then needs to remember where the cards were and pick two at a...
  18. VS 2008 Re: Randomize() function

    Thanks a lot!

    Both explanations are very good.
  19. VS 2008 [RESOLVED] Randomize() function

    Hi, please can some explain to me in plain English what this piece of code is doing? I can't work it out.


    Randomize()
    Dim bingo1 As Integer = Int((49 * Rnd()) + 1)

    Thanks
  20. VS 2010 Re: Writing a forecolor value to a string

    Thanks. That's a lifesaver. :D
  21. VS 2010 Re: Writing a forecolor value to a string

    How would I then set the forecolor of a different control to equal that that I have written to the varialble. For example, I have written:



    ColorDialog1.ShowDialog()
    label1.ForeColor =...
  22. VS 2010 Re: Writing a forecolor value to a string

    Fabulous. A*

    Thanks a lot.
  23. VS 2010 [RESOLVED] Writing a forecolor value to a string

    Hey,

    I've set the colour of a label using the ColorDialog and I want to read the chosen colour value into a string, using the following code:


    ColorDialog1.ShowDialog()
    label1.ForeColor =...
  24. VS 2010 Re: Context menu when right clicking on a list view item only, not anywhere in listvi

    Private Sub lstView_Mousedown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
    If e.Button = Keys.RButton Then
    'code here to GetItemAt. I am...
  25. VS 2010 Re: Context menu when right clicking on a list view item only, not anywhere in listvi

    Thank-you for your reply, but is there any chance you could break that down into a little more detail as I am new to VB and haven't quite grasped it yet.

    Thanks again,
    PlaystationMasterBoy
  26. VS 2010 [RESOLVED] Context menu when right clicking on a list view item only, not anywhere in listview

    Hi,

    Is it possible to be present a context menu when an item, any item, is right clicked in the ListView control? - If so, how?

    Thanks in advance,
    PlaystationMasterBoy
  27. Replies
    2
    Views
    684

    VS 2010 Re: ListView Box

    Thank-you. Worked very well.
  28. Replies
    2
    Views
    684

    VS 2010 [RESOLVED] ListView Box

    How would I go about disabling a button while the ListView is empty?
  29. VS 2010 Re: Outputting listview to text file?

    Thanks. Works a treat, also got it printing and then closing automatically.
    Thanks again. (:
  30. VS 2010 [RESOLVED] Outputting listview to text file?

    How would I go about outputting a listview control with 4 columns and x amount of rows to a text file so that it can be printed?
    Or how would I go about adding it to a database and printing it?
    ...
Results 1 to 30 of 31



Click Here to Expand Forum to Full Width