dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: how to show multiform calculator with fix size in c# winform?

  1. #1
    Join Date
    Aug 2014
    Posts
    13

    Question how to show multiform calculator with fix size in c# winform?

    i am trying to make a windows 7 look like calculator i have done the making of basic calculator functions and now i am trying to include scientific and trigonometry functions in calculator and i am trying to do it by making multiple form now here comes the problem
    what i am trying to do is when i click on scientific button the form1(main form) change its size and show form2 with no border an attach it self with form1 basic functions and if i click on trigonometry button the form2 (scientific) go and form3(trigonometry) attach it self just like it happen when you change the view of win 7 calculator it expand and show other buttons and when click on standard view it show only basic buttons

    how i can do that????
    Name:  calculator.png
Views: 1538
Size:  8.9 KB

    you can see that i attach scientific button to form1 but i want to but them into form2 and show them only when they needed

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: how to show multiform calculator with fix size in c# winform?

    You could put them into a FRAME and hide it when necessary http://msdn.microsoft.com/en-us/libr...(v=vs.90).aspx
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Aug 2014
    Posts
    13

    Re: how to show multiform calculator with fix size in c# winform?

    Quote Originally Posted by dglienna View Post
    You could put them into a FRAME and hide it when necessary http://msdn.microsoft.com/en-us/libr...(v=vs.90).aspx
    can explain i dont understand the frame thing

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: how to show multiform calculator with fix size in c# winform?

    Put the buttons into one sub-frame, and you can place that INTO the bigger framer. Once you set it's size, you can HIDE the sub-form when you want the regular calc, and the SHOW it when it's not.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Tags for this Thread

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)