Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29282 Discussions

Beginner- how to add a windows form and add a command button

Robert_H_1
Beginner
891 Views

I am an absolute beginner with Visual Studio.

In Visual Studio 2010, how do I bring up a windows form that command buttons and number input boxes can be added to.   Once a command button is on the form, how to I attach it to a particular subroutine so that the code is run when the button is pressed? 

I can run the sample program WHIZZY, but I have no idea how to edit or add any controls on the form.  When I click on Toolbox in Visual Studio it says there are no usable controls in this group.

Thanks for your help.

0 Kudos
3 Replies
Steven_L_Intel1
Employee
891 Views

You need to read Creating Fortran Applications that use Windows API, QuickWin or dialog features

Note that the Resource Editor, which is used to create the buttons, isn't available for use with the Visual Studio 2010 Shell - if you are using the Shell you'll need an external resource editor such as the one from www.resedit.net

0 Kudos
Robert_H_1
Beginner
891 Views

Hi Steve-

Thanks for taking the time to reply.   I did not realize that Visual Studio Shell is different than Visual Studio -  one word makes a big difference.   I will look into ResEdit; it looks very useful. 

Does a windows style graphical user interface slow down the execution speed of numerically intensive software, such as triple nested for loops with lengthy math in the inner loop?   (The interface would only be some input boxes to enter numbers and a Go button to start the computation).

Thanks again for your help.

0 Kudos
Steven_L_Intel1
Employee
891 Views

No, having a GUI does not, on its own, slow down execution. However, if you do a poor job of implementing the message loop, you could burn CPU cycles. If you follow examples you should be fine.

0 Kudos
Reply