Search:

Type: Posts; User: Mallard8

Page 1 of 8 1 2 3 4

Search: Search took 1.23 seconds.

  1. VS 2019 Re: imageName = ImageList1.Images.Keys(x)

    Thanks Paul,
    After all that it turned out to be simples !:D

    I was nearly there with what I had.
  2. VS 2019 Re: imageName = ImageList1.Images.Keys(x)

    John,
    First an apology (But still did not work) pointless statement, a trap I don't normally fall in to.
    Second, forgot to follow the advice on a previous thread take a break, Frequently and...
  3. VS 2019 Re: imageName = ImageList1.Images.Keys(x)

    Imports System.IO
    Did that


    ImageList1.Images.Add(Path.GetFileNameWithoutExtension(Singlefile), Image.FromFile(Singlefile))

    And That
    But still did not work

    |Followed the example in the...
  4. VS 2019 Re: imageName = ImageList1.Images.Keys(x)

    Still didn't work for me? clearly I'm missing something which is obvious to yourself.


    ImageList1.Images.Add(GetFileNameWithoutExtension(Singlefile), Image.FromFile(Singlefile))
  5. VS 2019 Re: imageName = ImageList1.Images.Keys(x)

    Thanks John but can't get either of those suggestions to work Path has a squiggle and not sure how to declare the path even though it is in the singlefile and adding a key value just couldn't figure...
  6. VS 2019 Re: imageName = ImageList1.Images.Keys(x)

    Load Images into ImageList


    Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
    ImageList1.Images.Clear()

    oFD1.InitialDirectory =...
  7. VS 2019 [RESOLVED] imageName = ImageList1.Images.Keys(x)

    How do I get the image name from an ImageList after using OpenFileDialog to load the images in to the image list.
    The images are loaded in to the image list and from the ImageList to the...
  8. Replies
    7
    Views
    333

    VS 2019 Re: OpenDialog (Home and Learn)

    Thanks to you both, another step on the learning ladder.
  9. Replies
    7
    Views
    333

    VS 2019 Re: OpenDialog (Home and Learn)

    Thanks John,
    I did do a step through but thought I had just misread the tutorial at (Home and Learn) so much for that tutorial.
    It's clear now you've highlighted it (counter = 0 so i = 0 to 0 - 1....
  10. Replies
    7
    Views
    333

    VS 2019 [RESOLVED] OpenDialog (Home and Learn)

    In my project I would like the user to be able to select their own images, I looked at the Home and Learn example to load images in to an ImageList and Listview. I copied the example but it is not...
  11. Replies
    1
    Views
    761

    TwoUp a match two game

    This is the start of a match two game. Zip attached so you can down load and run it, all code below.
    I placed it in the code bank as beginners may find bitís they can use in their own projects....
  12. Replies
    2
    Views
    236

    VS 2019 Re: Restart Game Button

    Thanks Si
    Read on the docs, Application.Restart so will give that a go as my game is not played over a network and there is no score or game number to follow through.
    It's just play, End, have...
  13. Replies
    2
    Views
    236

    VS 2019 [RESOLVED] Restart Game Button

    What is the best way to restart the game from scratch?
    I have looked and there are various ways but as I always ask here before doing anything else I thought I'd wait.
  14. Replies
    8
    Views
    340

    VS 2019 Re: Remove item from array

    Had to change Remove to RemoveAt and Range(1, 32) for it to work but that's it all working.
    Thanks again for the help.
  15. Replies
    8
    Views
    340

    VS 2019 Re: Remove item from array

    Delaney,
    I did read that article at stack overflow but it seemed such a long winded way of doing what I wanted and I thought there must be a better way than that, if not I'll look at lists.
    Which...
  16. Replies
    8
    Views
    340

    VS 2019 Re: Remove item from array

    John thank you for a brilliant explanation.
    Hope it helps other who may read this thread.
    I read about arrays in the docs and you can split, join, add to and redim.
    I thought you must be able to...
  17. Replies
    8
    Views
    340

    VS 2019 [RESOLVED] Remove item from array

    In my declarations at start I have


    Dim numbers(32) As Integer


    In form load event I have


    numbers = Enumerable.Range(1, 33).OrderBy(Function(x) r.NextDouble).ToArray
  18. VS 2019 Re: Name property in designer / run time?

    John thanks for all that, I guess it's back to the drawing board. :)
  19. VS 2019 [RESOLVED] Name property in designer / run time?

    I create a set of 16 picture boxes in form load, I give each a tag and name property. but when I come to use the name property I get a squiggly line (pbxFrame is not declared) is not declared when I...
  20. VS 2019 Re: [RESOLVED] Add images from Imagelist in random order

    Thanks passel for further advice and ideas

    Thanks John for link yours is similar to the tutorial I was following.

    Why I can't keep things simple is a mystery?
  21. VS 2019 Re: [RESOLVED] Add images from Imagelist in random order

    Thanks Passel, it's quite funny actually I was just thinking how do I know which picture is in which picture box.
    You're right I am messing about with a matching pair game my grid is 4 x 4 so 8...
  22. Replies
    6
    Views
    346

    VS 2019 Re: [RESOLVED] PicBox Auto-Size

    Very good mark the thread as solved and you are finished
  23. Replies
    6
    Views
    346

    VS 2019 Re: PicBox Auto-Size

    not sure but should it be Imagej.autosize = true
  24. VS 2019 Re: Add images from Imagelist in random order

    Thanks for that, I did notice when looking at my code that there were 3 dots under the N of New Picturebox, so I hovered the mouse over and it suggested using With {} which is much better and easier...
  25. VS 2019 Re: Add images from Imagelist in random order

    Hi Paul,
    Thanks for that, I did change Picturebox to pbxFrame but it still didn't work, I know now that it was because I had given my PB 0 -15 so it was getting Null.
    The thing is I've always...
  26. Thread: Help me code

    by Mallard8
    Replies
    21
    Views
    715

    Re: Help me code

    Goodness this made me smile. He had the answer all along just needed a push.
  27. VS 2019 Re: Add images from Imagelist in random order

    Thanks to both , I have copied and pasted each example in to Notepad++ so that I can read through them both to figure out what is doing what.
    When both codes are copied in to my project I get the...
  28. VS 2019 Re: Add images from Imagelist in random order

    Thanks Paul,
    Got to admit that sure looks a better way than what I came up with. Not tried it yet will do it later.
    One question, was there anything fundamentally wrong with my method? after all it...
  29. VS 2019 [RESOLVED] Add images from Imagelist in random order

    The code below is working it places 16 images from an Image list into 16 Picture boxes (created at runtime)
    But as I look at it I feel there must be a better way than the way I have achieved it.

    ...
  30. VS 2019 Re: Pass a label name to a timer control

    And there you go many ways to solve the same problem.
    I was thinking of boolean but that was all I was thinking, now I have other indicators that will achieve the same thing so I'll give them all a...
  31. VS 2019 Re: Pass a label name to a timer control

    John,
    Thanks for a detailed explanation, I had to read through it a couple of times.
    As you probably already know there is a flaw, if a user clicks one Label and then clicks another the first one...
  32. VS 2019 [RESOLVED] Pass a label name to a timer control

    I have a load form event that places 16 picture boxes and 16 Labels on to the form.
    When one of the Labels is clicked a text box shows which label I clicked on in the timer event the label moves up...
  33. Replies
    5
    Views
    336

    VS 2019 Re: Date.Now format

    John,
    Your replies, no matter how caustic but always helpful, never fail to put a smile on a face.
    Thank you
  34. Replies
    5
    Views
    336

    VS 2019 Re: Date.Now format

    Thanks Si,
    Your reply was clear and not at all condescending.

    John,
    As helpful as ever, I did read the documentation in the docs but clearly I was seeing one thing and interpreting another.
    I...
  35. Replies
    5
    Views
    336

    VS 2019 [RESOLVED] Date.Now format

    I am appending a date to the end of a folder, all works fine apart from the fact the date shows
    correct day, wrong month, correct year not sure why?

    21/54/2020



    Dim localDate =...
  36. VS 2019 Re: Buttons created with code and their events

    Well this has been an interesting read, in my project I have some addhandlers but no removehandlers.
    Will go and remedy that now.

    Thanks John
  37. Replies
    5
    Views
    522

    VS 2019 Re: Co-Ordinate points on a grid

    Thanks Passel,
    It works exactly as I want, although I doubt I would have got anywhere near by myself.
    Still going through the explanation I hope it will help others by reading the explanation and...
  38. Replies
    5
    Views
    522

    VS 2019 Re: Co-Ordinate points on a grid

    Hi Passel,
    Thanks for the very detailed explanation and example I'll sit down later and read through it properly no good just doing copy and paste. I was working on positioning labels in place of...
  39. Replies
    5
    Views
    522

    VS 2019 Re: Co-Ordinate points on a grid

    Hi Passel

    The attachment shows for me but then it is on my computer, I guess it must be another glitch like the posting twice.
    I want the user to click on the intersection or to with in a few...
  40. Replies
    5
    Views
    522

    VS 2019 [RESOLVED] Co-Ordinate points on a grid

    Finished the last project, well not quite I need the form dialog to do but thought I'd take a break and move on to another project.
    Image and code below.
    My question is how can I check, when you...
Results 1 to 40 of 284
Page 1 of 8 1 2 3 4



Click Here to Expand Forum to Full Width