- [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
- [C#] Hướng dẫn tạo file PDF sử dụng thư viện QuestPDF
- [C#] Hướng dẫn tạo ứng dụng dock windows giống Taskbar
- [C#] Chia sẻ source code sử dụng Object Listview trên Winform
- [VB.NET] Chia sẻ source code quản lý thu chi mô hình 3 lớp Winform
- [DATABASE] Xóa lịch sử danh sách đăng nhập tài khoản trên SMSS Sqlserver Management Studio
- [C#] Sử dụng FolderBrowserDialog Vista trên Winform
- [DEVEXPRESS] Chia sẻ tool Winform UI Templates Early Access Preview (EAP)
- [C#] Chia sẻ source code Spin Content (Trộn nội dung văn bản theo từ đồng nghĩa) trên Winform
- [VB.NET] Chia sẻ source code lịch âm dương và hẹn lịch nhắc việc
- [C#] Hướng dẫn đọc thông số thiết bị Thiết bị kiểm tra Pin (HIOKI BATTERY HiTESTER BT3562)
- [VB.NET] Hướng dẫn giải captcha sử dụng dịch vụ AZCaptcha API trên winform
- [C#] Hướng dẫn chứng thực đăng nhập ứng dụng bằng vân tay (Finger Print) trên máy tính
- [C#] Color Thief cách xuất màu sắc thiết kế từ hình ảnh
- [C#] Cách tạo bản quyền và cho phép dùng thử ứng dụng Winform
- [C#] Hướng dẫn sử dụng trình duyệt web Chrome convert HTML sang tập tin file PDF
- [C#] Kết nôi điện thoại Android, IOS với App Winform via Bluetooth
[C#] Hướng dẫn tạo hiệu ứng ẩn hiện ctrol trên Winform sử dụng Bunifu Animation Framework
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 các bạn cách tạo hiệu ứng khi ẩn hoặc hiện thị control sử dụng Bunifu Animation Framwork.
Nếu bạn nào chưa có biết về FrameWork Bunifu thì có thể tìm đọc những bài trước.
Trong bài viết này, mình sẽ sử dụng Component Bunifu Animation để tạo hiệu ứng.
Để sử dụng được Bunifu Framework, các bạn có thể download file dll ở source code của mình để tích hợp vào project nhé
Giao diện demo Animation C#:
Source code C#:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace BinifuAnimation
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if(panel1.Visible == false)
{
bunifuTransition1.ShowSync(panel1);
}
else
{
bunifuTransition1.HideSync(panel1);
}
}
private void Rotate_Click(object sender, EventArgs e)
{
if (panel1.Visible == false)
{
bunifuTransition2.ShowSync(panel1);
}
else
{
bunifuTransition2.HideSync(panel1);
}
}
private void button2_Click(object sender, EventArgs e)
{
if (panel1.Visible == false)
{
bunifuTransition3.ShowSync(panel1);
}
else
{
bunifuTransition3.HideSync(panel1);
}
}
private void button3_Click(object sender, EventArgs e)
{
if (panel1.Visible == false)
{
bunifuTransition4.ShowSync(panel1);
}
else
{
bunifuTransition4.HideSync(panel1);
}
}
private void button5_Click(object sender, EventArgs e)
{
if (panel1.Visible == false)
{
bunifuTransition5.ShowSync(panel1);
}
else
{
bunifuTransition5.HideSync(panel1);
}
}
private void button6_Click(object sender, EventArgs e)
{
if (panel1.Visible == false)
{
bunifuTransition6.ShowSync(panel1);
}
else
{
bunifuTransition6.HideSync(panel1);
}
}
private void button8_Click(object sender, EventArgs e)
{
if (panel1.Visible == false)
{
bunifuTransition7.ShowSync(panel1);
}
else
{
bunifuTransition7.HideSync(panel1);
}
}
private void button9_Click(object sender, EventArgs e)
{
if (panel1.Visible == false)
{
bunifuTransition8.ShowSync(panel1);
}
else
{
bunifuTransition8.HideSync(panel1);
}
}
private void button10_Click(object sender, EventArgs e)
{
if (panel1.Visible == false)
{
bunifuTransition9.ShowSync(panel1);
}
else
{
bunifuTransition9.HideSync(panel1);
}
}
private void button4_Click(object sender, EventArgs e)
{
if (panel1.Visible == false)
{
bunifuTransition10.ShowSync(panel1);
}
else
{
bunifuTransition10.HideSync(panel1);
}
}
}
}
HAVE FUN :)