Search:

Type: Posts; User: Whoisit

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    0
    Views
    9,034

    Snake Eyes (Dice Game)

    This is the game Snake Eyes, it is my first attempt at coding with C#.
    Comments and constructive criticism welcome.
    There is more I could do yet ie: have a play again and quit button, set up the...
  2. Replies
    1
    Views
    983

    [RESOLVED] Where to post?

    The game that I've been working on is now up to a point where I am happy with it.
    I would like to zip it up and have others look at it to get some feedback (good or bad) but mainly constructive....
  3. Replies
    2
    Views
    795

    Re: Location of controls in code.

    Thank you for the explanation, you are right in my last thread I kept using the word panel and not TableLayoutPanel.
    Another lesson learned for future questions I will no doubt have.
  4. Replies
    2
    Views
    795

    [RESOLVED] Location of controls in code.

    Following on from the last thread.

    If I place all controls where I want them in the designer, some on top of the TableLayoutPanel, when I want them to be visible in the game they don't appear.
    If...
  5. Re: [RESOLVED] One question, two pieces of information.

    Definitely did not do that. Maybe I did something in properties that caused it.
    Will go and place things where I want them on the form in designer using z-order as you have suggested and remove the...
  6. Re: [RESOLVED] One question, two pieces of information.

    Thanks for both answers, I will pop across and join code guru the more help and information the better.
    I think the problem I had with the panel location was that there was another panel already...
  7. Re: One question, two pieces of information.

    Thanks again for the reply, I feel like it's a private forum for just you and I ! Is C# not a popular language anymore?



    Noted for future questions. :blush:
  8. [RESOLVED] One question, two pieces of information.

    Hi All and thanks for looking.
    I have one question.



    pnlRollDice.Location = new Point(11,237);


    No matter what numbers I enter the panel remains in the same position, I've looked in...
  9. Replies
    2
    Views
    2,441

    Re: DataGridView still not sorting!

    Thanks JMC for advice.


    Will go away again and try again with your suggestion.
    EDIT:
    Finally understood what you were suggesting. I was updating the score label then at the end of the game...
  10. Replies
    2
    Views
    2,441

    [RESOLVED] DataGridView still not sorting!

    Below is the code, I'm sure that it is correct. Should I be setting something in properties as well?



    //Using DataGridView
    ...
  11. Re: Filling DataGrid Rows with fir loop

    Hi JMC,
    Thanks for the clear and concise answer, I'll go away and try again to place the text from the label into the DGV remembering what you have written.

    Now this line made me smile.
    If I can...
  12. [RESOLVED] Filling DataGrid Rows with fir loop

    Below are two ways that I have tried in code and the result as a screen capture.
    The code shows no errors in design mode but doesn't do what I expect when run.
    Thanks for looking.

    Code One:This...
  13. Replies
    7
    Views
    2,418

    Re: DataGridView Imge

    I didn't take JMC's comments to heart, he has helped me in the past and will again in the future, I hope.
    I do read the manual even if I don't always understand it. I also look at similar questions...
  14. Replies
    7
    Views
    2,418

    Re: DataGridView Imge

    Thanks for the answer, will look at both of those and see what I come up with. :)
  15. Replies
    7
    Views
    2,418

    Re: DataGridView Imge

    JMC,
    Not sure if such a caustic reply was necessary, I did read the help menu first but as I have only been learning C# for about 2 weeks now I didn't really understand it completely. I have also...
  16. Replies
    7
    Views
    2,418

    [RESOLVED] DataGridView Imge

    Below is the code I have so far.
    It shows a column with images in the rows (square with a redcross) but doesn't show the icon image that I have in resources?



    dgvScore.Rows.Clear(); // Clear...
  17. Replies
    7
    Views
    6,047

    Re: Sorting a listbox descending

    I've tried all suggestions and the code below shows what I ended up with (It might help other beginners) I have all of them working at the same time.
    It' a simple dice game where each player rolls...
  18. Replies
    7
    Views
    6,047

    Re: Sorting a listbox descending

    NSA,
    Thanks again, I see your location is Manchester I'm a stones throw away in Warrington.

    Pradeep,
    Thanks for the clear explanation and sample code.

    I will go away and try all suggestions...
  19. Replies
    7
    Views
    6,047

    Re: Sorting a listbox descending

    Thanks to you both for looking and answering.
    NSA,

    Because I'm only just starting to get into c# and don't know any better. :)
    I'll read up on grids and give them a go, it's all learning.
    ...
  20. Replies
    7
    Views
    6,047

    [RESOLVED] Sorting a listbox descending

    Hi All,
    I feel like I'm the only one here trying to learn c# as I'm always asking the questions!
    Any way I want to sort a listbox descending I';ve looked everywhere I can think of and nearly all...
  21. Replies
    5
    Views
    5,664

    Re: Selecting image from piture box

    Finally figured it out. the full code is below for any one else trying to do a similar thing.
    Thanks to JMC for help and advice.


    using System;
    using System.Collections.Generic;
    using...
  22. Replies
    5
    Views
    5,664

    Re: Selecting image from piture box

    Thanks for the detailed reply and explanation I'll red it through a couple of times then see if I can implement it in to my code so that it works, if not at least I can come back here knowing that...
  23. Replies
    5
    Views
    5,664

    Re: Selecting image from piture box

    Thanks for the detailed reply, but at this stage of learning I don't fully understand it. I have tried to look online to see if there were any examples of your reply but they are all old or not...
  24. Replies
    5
    Views
    5,664

    [RESOLVED] Selecting image from piture box

    Hi again,
    I am getting there, I have 14 picture boxes that load into a TableLayoutPanel each picturebox has an image from the resource file.
    How do I make it so that when a player clicks on one of...
  25. Re: Adding picture boxes in a panel at runtime

    Thanks to you both, sometimes you look so close at your code that you miss the obvious!
    Have tried both flow and table layout and have decided to go with table as I only want one row and one scroll...
  26. [RESOLVED] Adding picture boxes in a panel at runtime

    Hi,
    I'm trying to populate a panel with picture boxes at runtime
    This is the code I have, I see one picbox or it could be five on top of each other. I want them in a line.
    What am I doing wrong?
    ...
  27. Replies
    2
    Views
    1,881

    Re: Button click event

    Thanks for that will give one of those a try and see how I go.

    Edit:

    Now working as I wanted,thanks for the advice and help.
    On to the next step.
  28. Replies
    2
    Views
    1,881

    [RESOLVED] Button click event

    Hi,
    Below is the code.
    I know why it doesn't work but I can't figure how to make it work.
    The idea is you enter your name in a textbox when you press the button it places the text from the textbox...
  29. Replies
    5
    Views
    2,440

    Re: For Loop

    Thanks Funky and Sitten,
    Once again differing viewpoints, at this stage of my C# experience I'll stick with the array idea, as I half understand arrays.
    I only have one form and everything is...
  30. Replies
    5
    Views
    2,440

    Re: For Loop

    Thanks KGC,
    Will go and give it a go, maybe back later.
    Only recently started C# after many years playing with VB6 then .net.
    Would not be as enjoyable as it is without people like yourself...
  31. Replies
    5
    Views
    2,440

    [RESOLVED] For Loop

    Below is the code I have in a for loop, my question is how can I get each picturebox. visible to false as it loops around.
    At the moment picPlay5.visible changes to false, I had this just for...
  32. Thread: WFA or WPF?

    by Whoisit
    Replies
    15
    Views
    2,909

    VS 2015 Re: WFA or WPF?

    Thanks for the further input.
    Time to get started!
  33. Thread: WFA or WPF?

    by Whoisit
    Replies
    15
    Views
    2,909

    VS 2015 Re: WFA or WPF?

    Well I've been looking around at the various WPF tutorials, which are few and far between.
    Most are back in time and not really relevant to VB community 2015. Those that are worth looking at use C#....
  34. Thread: WFA or WPF?

    by Whoisit
    Replies
    15
    Views
    2,909

    VS 2015 Re: WFA or WPF?

    Once again thanks to all who have contributed, there is plenty of food for thought.
    I'll read through the tutorial that I have found, you never know, I might take to WPF like a duck to water.


    ...
  35. Thread: WFA or WPF?

    by Whoisit
    Replies
    15
    Views
    2,909

    VS 2015 Re: WFA or WPF?

    Thanks to all, you've convinced me to take a look at WPF/XAML.
    Just be ready for all the questions that will be coming your way. :)

    This site seems to be a good place to start learning WPF ...
  36. Thread: WFA or WPF?

    by Whoisit
    Replies
    15
    Views
    2,909

    VS 2015 Re: WFA or WPF?

    Thank you both I think I'll stick with what I half know.
    I'm too old now to worry about what will happen in 10yrs.
    I code as a pastime, for me it's relaxing, like some people do crosswords,...
  37. Thread: WFA or WPF?

    by Whoisit
    Replies
    15
    Views
    2,909

    VS 2015 WFA or WPF?

    Hi,
    I am about to start a new project and when the dialog opened it had,
    Windows Forms Application and WPF Application.
    What's the difference and when would you use one over the other?

    In my...
  38. VS 2015 Re: Label text appearing before progress bar finished

    Thanks Sitten,
    For a well detailed, well explained explanation and code example.
    As you may have guesse,d way back I used vb6 and the program I have written is just to get me started again.
    I've...
  39. VS 2015 Re: Label text appearing before progress bar finished

    Thanks to both of you for looking and offering advice.
    One follow up
    So what are we using now?


    Well 14yrs later is better than never! :)

    Sitten,
    Just tried your solution and it works...
  40. VS 2015 Label text appearing before progress bar finished

    Hi Last time I was here was back in 2002! Still waiting for an answer to that question :rolleyes: LOL
    Anyway I've started to code again and I have a problem with the code below.
    I want the...
Results 1 to 40 of 41
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width