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 Renk_Cetveli
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void numericUpDown1_ValueChanged(object sender, EventArgs e)
{
trackBar1.Value = (int)numericUpDown1.Value;
pictureBox1.BackColor = Color.FromArgb((int)numericUpDown1.Value, (int)numericUpDown2.Value, (int)numericUpDown3.Value);
}
private void numericUpDown2_ValueChanged(object sender, EventArgs e)
{
trackBar2.Value = (int)numericUpDown2.Value;
pictureBox1.BackColor = Color.FromArgb((int)numericUpDown1.Value, (int)numericUpDown2.Value, (int)numericUpDown3.Value);
}
private void numericUpDown3_ValueChanged(object sender, EventArgs e)
{
trackBar3.Value = (int)numericUpDown3.Value;
pictureBox1.BackColor = Color.FromArgb((int)numericUpDown1.Value, (int)numericUpDown2.Value, (int)numericUpDown3.Value);
}
private void trackBar1_Scroll(object sender, EventArgs e)
{
numericUpDown1.Value = trackBar1.Value;
}
private void trackBar2_Scroll(object sender, EventArgs e)
{
numericUpDown2.Value = trackBar2.Value;
}
private void trackBar3_Scroll(object sender, EventArgs e)
{
numericUpDown3.Value = trackBar3.Value;
}
}
}
Yazar: TRCodeRooTeR
Tarih: 2022-09-29 04:18:35
Görüntüleme: 803
Yorum: 0