Tutorial: Create UI controls with the visualize viewer Screen Versions app inside the Artwork Business

Tutorial: Create UI controls with the visualize viewer Screen Versions app inside the Artwork Business

Within this number of around three tutorials, possible do a cup Variations app you to plenty a picture and you may screens they. The fresh new Visual Business Provided Build Environment (IDE) has got the units you really need to produce the application. For more information, discover Thank you for visiting the latest Graphic Studio IDE.

This method provides an image container, an excellent checkbox, and several buttons, that you use to handle the program. This session demonstrates how to include such regulation.

  • Add controls into application
  • Include keys into the a composition panel
  • Changes control brands and you will metropolitan areas
  • Add dialogue areas

Requirements

It class builds into earlier class, Perform a picture reader software. For individuals who haven’t complete one to training, go through that one very first.

Incorporate regulation into app

The picture Audience software uses an effective PictureBox handle showing good photo. It uses good checkbox and several keys to cope with the picture and background also to romantic brand new app. You’ll range from the PictureBox and you will a beneficial checkbox about Arsenal in the the Artwork Business IDE.

On the Windows Models Creator, select the TableLayoutPanel your additional in the previous tutorial. Make sure that tableLayoutPanel1 seems about Attributes windows.

Into the kept area of the Artwork Business IDE, discover the Arsenal case. Or even view it, look for Take a look at > Arsenal throughout the selection club otherwise Ctrl+Alt+X. About toolbox, grow Preferred Control.

Double-simply click PictureBox to add an excellent PictureBox manage toward mode. Graphic Business IDE adds this new PictureBox control into very first blank cell of one’s TableLayoutPanel.

Find the the newest PictureBox manage to choose they, following discover black colored triangle towards new PictureBox control to display the task listing.

See Dock during the Parent Basket, and this establishes new PictureBox Dock property so you’re able to Fill. You can see one value from the Qualities screen.

From the Windows Variations Developer, come across TableLayoutPanel. Then, in the Toolbox, double-click on the CheckBox goods to add a separate CheckBox handle. The PictureBox takes up the initial two tissues on the TableLayoutPanel, so the CheckBox handle was set in the low-left cell.

Put buttons for the a composition committee

The fresh regulation at this point was basically added to the TableLayoutPanel. These methods guide you how-to put four keys in order to an excellent the fresh new style committee on TableLayoutPanel.

Discover the TableLayoutPanel toward function. Open this new Arsenal, look for Containers. Double-simply click FlowLayoutPanel to include a special handle towards the history cellphone of your own TableLayoutPanel.

Lay the brand new FlowLayoutPanel’s Dock possessions to help you Complete. You might lay it assets by the selecting the black colored triangle, upcoming in search of Dock inside the moms and dad basket.

Get the the new FlowLayoutPanel, right after which unlock the brand new Arsenal and pick Common Regulation. Double-click the Button goods to incorporate a switch manage titled button1.

Create two more buttons in that way. An alternative choice is to see button2, and come across Change > Duplicate or drive Ctrl+C. Second, like Edit > Insert on the diet plan bar otherwise drive Ctrl+V. To help you insert a duplicate of the option. Now insert they once more. Note that this new IDE adds button3 and you can button4 for the FlowLayoutPanel.

New keys is always to make by themselves on the right section of the mobile, and you may opposite their purchase and so the Inform you a graphic button is found on ideal. You can drag new buttons within the FlowLayoutPanel to set up her or him in almost any order.

Choose the Romantic option to choose they. Next, to find the remaining buttons at the same time, press and contain the Ctrl key and pick him or her, also.

You might run your own program observe the controls browse. Discover F5 trick, come across Debug > Start Debugging, otherwise select the Initiate button. New buttons which you extra dont do just about anything, yet ,.

Alter manage labels

You can find four buttons on your function, titled button1, button2, button3, and you can button4 into the C#. For the Artwork Basic, brand new default first page of every manage name is capitalized, therefore, the keys try entitled Button1, Button2, Button3, and you will Button4. Make use of these tips to give them a great deal more instructional brands.

On mode, purchase the Personal button. For those who continue to https://datingreviewer.net/loveaholics-review/ have all keys selected, like Esc in order to cancel the decision.

Rename the other three keys so you’re able to backgroundButton, clearButton, and you can showButton. You might be sure the latest brands from the choosing the handle selector shed-off number in the Services screen. The button labels are available.

Create dialogue areas

The software can be discover visualize data and pick a background color by using elements. An element is like a control. You use the new Arsenal to incorporate an element to your setting. Your put its services utilising the Properties windows.

Rather than a control, adding a component to your mode doesn’t put an obvious goods. Rather, it offers particular routines as you are able to produce having code. By way of example, it’s a feature that reveals an open File dialog container.

Double-click ColorDialog to incorporate a component entitled colorDialog1. The components arrive towards the bottom out of Window Variations Developer once the signs.

原创文章,作者:xf,如若转载,请注明出处:http://www.daanmi.net/6664.html

发表评论

邮箱地址不会被公开。 必填项已用*标注

联系我们

400-800-8888

在线咨询:点击这里给我发消息

客服微信:kb54100 (请备注)

工作时间:周一至周五,9:30-18:30,节假日休息