tailieunhanh - Visual Basic .NET The Complete Reference phần 10

Bạn có thể chọn nhiều hơn một loại hình kiểm soát và chỉ định cùng một giá trị cho tất cả các điều khiển. Kỹ thuật này có thể hữu ích, ví dụ, nếu bạn thêm một số nút điều khiển để tạo thành một và bạn muốn chắc chắn rằng tất cả chúng đều có cùng kích thước, hoặc tất cả các liên kết bên trái hoặc phải, và vì vậy. | Setting a Single Property for Multiple Controls of the control. Setting a Single Property for Multiple Controls You can select more than one type of control and specify the same value for all the controls. This technique can be useful for example if you add several Button controls to a form and you want to make sure they are all the same size or all aligned left or right and so on. You can select multiple controls of different types but the Properties window displays only the properties that are common to all the selected controls such as Width and Height. To select all the controls at the same time hold down the CTRL key and click each control once. You can also click the left mouse button and drag it over the group of controls as you do when selecting files in an Explorer window. Complex Property Pages Some controls like HTML tables are complex and require the services of advanced property pages for interactive manipulation. Some maintain collections of objects such as ListBoxes. The property pages are represented in custom dialog boxes. To access the property page for a control select the control whose property page you want to access. Then in the Properties window click the button of the Property that indicates a Property Pages button. The Property Pages dialog box for the control is displayed. You can however still provide the data in code and for complex property pages I prefer to set my own properties in code. For example providing a large collection of values for a DropDown list is much easier and quicker to do in code. Setting up an HTML table for the most part is far too complex and buggy to set up via its property pages. The following code shows how to generate a search results HTML table in code a task that is very frustrating to do interactively. Frankly the property pages for HTML controls are nearly useless in my opinion and you need to just get down to typing it all out as the following example demonstrates. Public Sub CreateTable ByVal cursor As .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.