Como convertir caracter de mayuscula a minuscula y viseversa usando un boton
Publicado por Dennys Saul (1 intervención) el 01/03/2021 23:06:04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
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 RAMP3PP
{
public partial class Form1 : Form
{
AgregarMp3 l = new AgregarMp3();
public string ARCHIVO = "";
int i = 1;
int posicion;
public Form1()
{
InitializeComponent();
limpiar();
}
private void btnAgregar_Click(object sender, EventArgs e)
{
cargarArchivo();
}
void limpiar()
{
btnEliminar.Enabled = false;
btnEditar.Enabled = false;
txtAutor.Text = "";
txtnArchivo.Text = "";
txtSize.Text = "";
txtTitulo.Text = "";
}
private void Form1_Load(object sender, EventArgs e)
{
}
public void cargarArchivo()
{
try
{
this.openFileDialog1.ShowDialog();
if (!string.IsNullOrEmpty(this.openFileDialog1.FileName))
{
ARCHIVO = this.openFileDialog1.FileName;
l.lecturaArchivo(dtgv, ',', ARCHIVO);
}
}catch(Exception ex)
{
MessageBox.Show("Error: " + ex.ToString());
}
limpiar();
}
private void openFileDialog2_FileOk(object sender, CancelEventArgs e)
{
}
private void btnEliminar_Click(object sender, EventArgs e)
{
dtgv.Rows.Remove(dtgv.CurrentRow);
txtnArchivo.Focus();
limpiar();
}
private void btnEditar_Click(object sender, EventArgs e)
{
string NombreDelArchivo, Titulo, Autor, Tamaño;
NombreDelArchivo = txtnArchivo.Text;
Titulo = txtTitulo.Text;
Autor = txtAutor.Text;
Tamaño = txtSize.Text;
dtgv[0, posicion].Value = txtnArchivo.Text;
dtgv[1, posicion].Value = txtTitulo.Text;
dtgv[2, posicion].Value = txtAutor.Text;
dtgv[3, posicion].Value = txtSize.Text;
}
private void dtgv_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
posicion = dtgv.CurrentRow.Index;
txtnArchivo.Text = dtgv[0, posicion].Value.ToString();
txtTitulo.Text = dtgv[1, posicion].Value.ToString();
txtAutor.Text = dtgv[2, posicion].Value.ToString();
txtSize.Text = dtgv[3, posicion].Value.ToString();
btnAgregar.Enabled = false;
btnEditar.Enabled = true;
btnEliminar.Enabled = true;
}
private void btnUpperCase_Click(object sender, EventArgs e)
{
}
}
}
Este es el codigo que tengo en la ventana de windows form
Valora esta pregunta


-1