CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2010
    Posts
    1

    How to Sync GroupBox and ListBox?

    Hello, I'm very new at C # and have to come up with a pizza shop application. The pizza pies have different prices based on the size you want. The best I've come up with for a layout was to have the pizza types in a listbox and then have a groupbox with radio buttons for the size. They can only choose one pizza and radio button. I am not sure how to compute the costs. For example a Plain pie costs 1.50 a slice, 8.00 medium, 10.00 large. There are 7 types of pizza and the 3 size types. I'm thinking of using if..else statements but not sure how to do it and it's driving me crazy. I don't have any hard code just the windows form layout done. If there are any suggestions I'd really appreciate it. Thanks a Lot.

  2. #2
    Join Date
    Oct 2008
    Location
    Cologne, Germany
    Posts
    756

    Re: How to Sync GroupBox and ListBox?

    Quote Originally Posted by mistnicgy View Post
    I'm thinking of using if..else statements but not sure how to do it and it's driving me crazy. I don't have any hard code just the windows form layout done. If there are any suggestions I'd really appreciate it.
    in my view you should read a book first or a tutorial to grasp the basics
    win7 x86, VS 2008 & 2010, C++/CLI, C#, .NET 3.5 & 4.0, VB.NET, VBA... WPF is comming

    remeber to give feedback you think my response deserves recognition? perhaps you may want to click the Rate this post link/button and add to my reputation

    private lessons are not an option so please don't ask for help in private, I won't replay

    if you use Opera and you'd like to have the tab-button functionality for the texteditor take a look at my Opera Tab-UserScirpt; and if you know how to stop firefox from jumping to the next control when you hit tab let me know

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured