TAILIEUCHUNG - Wrox Professional Web Parts and Custom Controls with ASP.NET 2.0 phần 4

Microsoft cho biết những người sử dụng đã đăng ký của Visual Studio .NET sẽ có thể mua "Everett" với giá 29 USD, bao gồm cả đĩa và tài liệu cũng như phí vận chuyển và giao hàng. Các chi tiết về giá và thời điểm phát hành của Visual Studio "Everett" sẽ được công bố trong thời gian tới. | Chapter 3 Dim txtl As Dim txt2 As Dim stl As New stl New True l2 txtl New Textl stl Hello txtl txt2 New Text2 World stl txt2 In C txtl txt2 stl stl new true 12 txtl new Text1 Hello stl txt1 txt2 new Text2 World stl txt2 The very unattractive results can be seen in Figure 3-10. If style values have already been set on a control the MergeStyle method integrates the Style object s properties with the already existing style settings. Settings in the Style object will not override the style settings already on the control. This makes the MergeStyle method a very useful tool for integrating style settings made by the developer with style settings that you want to maintain as part of your custom control s design. 108 Creating Custom Controls Figure 3-10 This Visual Basic 2005 code retrieves the control s Style object using the Controlstyle method. The code then sets the Borderstyle property of the Style object to Inset and sets the ForeColor property on a TextBox and a Button object. Finally the code uses the Style object with the constituent controls through the MergeStyle method to apply the style to the text box without overriding their individual ForeColor settings. Only controls that don t have an explicit ForeColor setting will pick up the new .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.