Đang chuẩn bị liên kết để tải về tài liệu:
Buit Windows By C.Net (Phần 3) part 4

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Tham khảo tài liệu 'buit windows by c.net (phần 3) part 4', 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ả | CHƯƠNG 3-4 x y dựng ứng dụng Windows Forms 335 jM 205 f.Controls.Add tb 206 if f.ShowDialog DialogResult.Cancel I I tb.Text.Trim 207 return 208 restname tb.Text.Trim 209 210 211 212 if icon 0 213 214 Listviewitem item new Listviewltem resname ico 215 item.SubItem.Add 8 216 this.listviewl.Items.Add item 217 218 219 220 221 private void buttonl_Click object sender. System.EventAgro e 222 223 if this.listviewl.Items.Count 0 224 225 Kiểm tra tên của tắt cả resource 226 foreach ListViewItem item in this.listviewl.Items 227 228 if item.Text Undefined 229 230 MessageBox.Show All resources must have names 231 return 232 233 234 235 Lấy tên. file resx 236 SavePileDialog dig new SaveFileDialog 237 dig .Title Save .resxfile 238 dig. Filter XML resource files I . resx 239 if dig.ShowDialog DialogResult.Cancel 240 return 241 242 Tạo lớp ghi tài nguyên 243 System.Resources.ResXResourceWriter rw 244 new System.Resources. ResXResourceWriter dig.Filename 245 PHẦN III Windows Foi 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 Duyệt qua các mục trong danh sách foreach Listviewitem item in this.listviewl.Items switch item.ImageIndex case 0 bitmap Images goto case 2 case 1 text files System.10.StreamReader sr new System.IO.StreamReader item.SubItems 1 -Text string inputline do inputline sr.ReadLine if inputline null string splitline inputline . Split new char 1 2 if splitline. Length 2 rw.AddResource tern.Text.TrimEnd .Trimstart . r split line 0 . TrimEnd .Trimstart splitline 1 while inputline null break case 2 icons System.Drawing.Image Im System.Drawing.Image.FromFile item.SubItems 1 .Text rw.AddResource item.Text im break rw. Generate rw.Close CHƯƠNG 3-4 Xây dựng ứng dụng Windows Forms 337g 290 291 292 private void ListViewl_KeyDown object sender 293 System.Windows.Forms.KeyEventAgrs e 294 295 if this.listviewl.Selectedlndices.Count 0 296 return 297 if .

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.