- [C#] Hướng dẫn bảo mật ứng dụng 2FA (Multi-factor Authentication) trên Winform
- [C#] Hướng dẫn convert HTML code sang PDF File trên NetCore 7 Winform
- [C#] Hướng dẫn viết ứng dụng chat với Gemini AI Google Winform
- Hướng dẫn khóa file bằng nhiều process id, không cho xóa tập tin
- Hướng dẫn cách tạo Product Id cho ứng dụng phần mềm XXXXX-XXXXX-XXXXX-XXXXX
- [SQLSERVER] Hướng dẫn tạo script sql từ ứng dụng Sqlserver management Studio
- [C#] Hướng dẫn sử dụng thư viện AutoITx lấy id và password Ultraviewer trên winform
- [VB.NET] Hướng dẫn lấy thông tin tài khoản đăng nhập windows và khởi động lại ứng dụng ở chế độ Administrator
- [C#] Sử dụng thư viện Polly gửi lại request api khi request bị lỗi hay rớt mạng
- [DEVEXPRESS] Chia sẻ source code tạo báo cáo report in tem nhãn label trên C# winform
- [DEVEXPRESS] Hướng dẫn vẽ biểu đồ Bar Chart trên Winform
- [C#] Tạo form đăng nhập và đăng ký với hiệu ứng Sliding Animation Effect
- [C#] Hướng dẫn tạo thanh toán đơn hàng qua mã vạch VietQR sử dụng API PayOS hoàn toàn miễn phí
- [C#] Hướng dẫn ghi log ra RichTextBox giống Console trên Winform sử dụng thư viện Serilog
- [C#] Hướng dẫn cách tạo mã QR Code trên file Excel
- [VB.NET] Gởi tin nhắn và file đính kèm qua ứng dụng gởi tin nhắn Whats App
- [C#] Viết ứng dụng Auto Fill list Textbox from clipboard Winform
- [TOOL] Chia sẻ phần mềm thay đổi thông tin cấu hình máy tính
- [C#] Hướng dẫn Export dữ liệu ra file Microsoft Word Template
- [C#] Chia sẻ source code tool kiểm tra domain website
[DEVEXPRESS] Hướng dẫn sử dụng Popup Gallery Edit trong C#
Xin chào các bạn, bài viết hôm nay mình sẽ tiếp tục hướng dẫn đến các bạn control Popup Gallery Edit Devexpress trong lập trình C#.
[DEVEXPRESS] Sử dụng Popup Gallery Edit C#
Trong bài này, mình sẽ demo load toàn bộ skin của Devexpress để nhúng vào Gallery Combobox Control.
Và khi chúng ta, chọn sẽ thay đổi giao diện Skin hiện tại của Winform.
Dưới đây là hình ảnh demo ứng dụng thay đổi skin giao diện với Gallery Popup Edit control C#:
Đầu tiên, từ thanh công cụ toolbox các bạn lấy ra công cụ Popup Gallery Edit như hình bên dưới:
Và tiếp theo chúng ta sẽ code cho popup Edit này load dữ liệu tất cả các skin của Devexpress c# vào:
using DevExpress.XtraBars.Helpers;
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Gallery_Combobox
{
public partial class Form1 : DevExpress.XtraEditors.XtraForm
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
SkinHelper.InitSkinGallery(popupGalleryEdit1);
popupGalleryEdit1.Properties.Gallery.ColumnCount = 10;
popupGalleryEdit1.Properties.Gallery.ColumnCount = 6;
popupGalleryEdit1.Properties.Gallery.ShowItemText = true;
popupGalleryEdit1.Properties.Gallery.DistanceItemImageToText = 25;
popupGalleryEdit1.Properties.Gallery.ImageSize = new Size(32, 32);
}
}
}
Các bạn có thể download đoạn source code này ở bên dưới về để tích hợp vào thay đổi giao diện cho ứng dụng của mình.
Thanks for watching!