Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.ComponentModel;
- using System.Windows.Forms;
- using R706GuardarConfiguracion.Properties;
- namespace R706GuardarConfiguracion
- {
- public partial class Principal : Form
- {
- public Principal()
- {
- InitializeComponent();
- }
- private void btnCambiarConfiguracion_Click(object sender, EventArgs e)
- {
- Button btnPresionado = sender as Button;
- if (btnPresionado != null)
- {
- txtCampoTexto.BackColor = btnPresionado.BackColor;
- Settings.Default.ColorTexto = txtCampoTexto.BackColor;
- }
- }
- protected override void OnClosing(CancelEventArgs evt)
- {
- base.OnClosing(evt);
- Settings.Default.UbicacionVentana = this.Location;
- Settings.Default.Save();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement