Đang chuẩn bị liên kết để tải về tài liệu:
Lập trình C# từ cơ bản đến nâng cao part 8

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

Tham khảo tài liệu 'lập trình c# từ cơ bản đến nâng cao part 8', 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ả | using System.Collections using System.ComponentModel .using System.Windows.Forms using System.Data namespace Calendarpicker public class Forml System.Windows.Forms.Form private System.Windows.Forms.Label labell private System.Windows.Forms.Label labe 2 private System.Windows.Forms.DateTimePicker dateTimePickerl private System.Windows.Forms.DateTimePicker dateTimePicker2 private System.Windows.Forms.Label Ibnumday private System.Windows.Forms.Label Ibnumsunday private System.Windows.Forms.Button butExit private System.Windows.Forms.Button butshow private System.ComponentModel.Container components null public Forml InitializeComponent protected override void Dispose bool disposing if disposing if components null - components.Dispose base.Dispose disposing 175 region Windows Form Designer generated code STAThread static void MainO Application.Run new FormlO private void butExit_Click object sender. System.EventArgs e this. Close 0 private void butShow_Click object sender System.Even tArgs e Timespan t DateTime.Parse dateTimePicker2.Value. ToShortDateString -DateTime.Parse dateTimePickerl.Value. ToShortDateString 0 DateTime ts DateTime.Parse dateTimePickerl.Text int numSunday 0 if ts.DayOfWeek.ToString Sunday numSunday for int i 0 i t.Days i ts ts.AddDays l.O if ts. DayOfWeek. ToString - Sunday numSunday Ibnumday.Text So ngay - t.Days.ToString Ibnumsunday.Text So Chu nhat tnumSunday.ToString0 5 Ví dụ 11.7. Đây là một ví dụ đặc biệt có nhiệm vụ phải tạo một class ví dụ có tên là cStrX trong đó đình nghĩa hai phương thức 176 Phương thức thứ nhất dùng để cắt từ đầu tiên của một chuỗi. Ví dụ có chuỗi nhập vào sl Ha noi Viet Nam thì sau khi phương thức này hoạt động ta chỉ thu được chuỗi con noi Viet Nam . Phương thức thứ hai dùng để cắt từ cuối cùng của chuỗi. Ví dụ chuỗi sl sau khi phương thức này hoạt động ta thu được chuỗi nhỏ Ha Noi Viet . Trên hình 11.9 sau khi nhập Textboxl Ha Noi Viet Nam Sau đó nhấn nút CutLastWord ở Textbox2 hiển thị Ha Noi Viet . Từ cuối cùng Nam

Đã 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.