Codigo

Fecha: el 29 de Septiembre
Categoria: General
Descargas: 16
Descripción:
Resumen (Extraido del documento):
Public Class Form1

Private Sub btnPago_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPago.Click
Dim C, i, n, p As Double

C = txtCapital.Text
i = txtInteres.Text / 100
n = txtPeridos.Text
'p = C * ((i * Math.Pow((1 + i), n) / (Math.Pow((1 + i), n) - 1)))
'txtPago.Text = p.ToString("#,##0.00")
'btnTabla.Enabled = True

End Sub

Private Sub btnTabla_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTabla.Click

'Disparar la funcion CalcularCelda al cambiar el valor de la celda
DataGridView1.ColumnCount = 8 'Tres Columnas
DataGridView1.RowCount = txtPeridos.Text ' Numero de Periodos

DataGridView1.AllowUserToAddRows = False 'Sin opcion añadir filas

For i = 0 To (CInt(txtPeridos.Text) - 1)
With DataGridView1

If i = 0 Then
'Columna Cuotas
.Rows(i).Cells(0).Value = i + 1
'Columna Fecha de Pago
.Rows(i).Cells(1).Value = Format(CDate(DateTimePicker1.Text), "Short Date")
'Columna Numeros de días
.Rows(i).Cells(5).Value = DateDiff(DateInterval.Day, CDate(DateTimePicker2.Value.ToString("dd/MM/yy")), CDate(DataGridView1.Rows(i).Cells(1).Value))
'Columna Deslizamiento
.Rows(i).Cells(3).Value = Format(CDbl(txtCapital.Text) * (0.06 / 12 / 30) * CDbl(.Rows(i).Cells(5).Value), "#,##0.00")
'Columna Interes
.Rows(i).Cells(4).Value = Format(((CDbl(txtCapital.Text) + CDbl(.Rows(i).Cells(3).Value)) * (CDbl(txtInteres.Text) / 100) * CDbl(.Rows(i).Cells(5).Value)) / 30, "#,##0.00")
'Total a Pagar
.Rows(i).Cells(6).Value = Format(CDbl(txtPago.Text), "#,##0.00")
'Columna Abono
compartir

1 opinión

Oruro, Bolivia
Escrito por Eddson el 3 de Noviembre

GRACIAS
aunque aun no lo leo, pero bueno cualquier tipo de ayuda es útil.

 
Páginas internacionales: España  |  Italia  |  Francia  |  México  |  Alemania  |  Reino Unido  |  Argentina  |  Chile  |  Colombia  |  USA

Búsquedas frecuentes: solidworks 2007 vestidos de 15 años estado de situacion inicial conejo toy los numeros en italiano

Emagister cumple la Ley Orgánica 15/1999 de 13 de diciembre, de Protección de datos de Carácter Personal, y posee el código de inscripción nº 2002010053 del Registro General de la Agencia de Protección de Datos. Copyright © 1999/2000 - Grupo Intercom - Todos los derechos