TAILIEUCHUNG - Manning Windows Forms Programming (phần 9)

Tham khảo tài liệu 'manning windows forms programming (phần 9)', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Replace the GroupBox with a TabPage continued Action Result 8 Manually reestablish the event handlers for the controls. This includes the DoubleClick DrawItem MeasureItem and SelectedIndexChanged event handlers for the list box and the Click handlers for each of the four button controls. How-to Use the Events listing in the Properties window and select the existing methods from the appropriate dropdown lists. The event handlers for the controls are assigned to the appropriate events. Note This step is required whenever a control is cut from one location and pasted into another. The event handlers are not preserved although the properties of the controls are. The Photographs group box is now replaced with a Photos tab page. This tab is aligned on the left side of the tab control. The Alignment property uses the TabAlignment enumeration with possible values Top Bottom Left and Right. As you may have noticed when the Alignment property for a tab control is Left or Right the Multiline property is automatically set to true. Compile and run the application to make sure the controls still behave as expected including multiple selection and the owner-drawn list feature via the Thumbnails menu. We will add a second TabPage later in the chapter to display the set of dates associated with the album in a calendar format. This will enable a discussion of the MonthCalendar class. Before we can do this we will first provide the appropriate support for the DateTaken property of the Photograph class. Dates and Times We will return to tab pages and our MyAlbumEditor application in a moment. In this section we finally preserve the Date Taken value entered by the user in our Pho-toEditDlg form. As you may recall in chapter 9 we intentionally ignored this value to avoid converting the user-entered string value into a date. At the time we said there was a better way to deal with date constructs. In this section we finally see exactly what this looks like. Dealing with dates and .

TỪ KHÓA LIÊN QUAN
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.