Questions tagged as 'vb.net'

1
answer

Syntax error INSERT INTO OleDB

I am trying to launch the following code from a button and the error in the image jumps to me: Button code sCmd = "INSERT INTO Vendedores (Password,Grupo) VALUES ('151515',0)" GestionSql.Launch(sCmd) GestionSql.Launch code: (line 5...
asked by 02.05.2018 / 20:08
1
answer

Syntax error in the FROM clause

I have 2 questions on a single topic. The following function works on other developments normally. Public Function VerificaUsr(ID As String, Psw As String) As Boolean Dim Rslt As Boolean Rslt = Conectar() If Not Rslt Then Exit Fun...
asked by 21.03.2018 / 04:52
3
answers

How to get data when you go through a GridView For Each vb.net asp.net

I want to get the data that I'm going through in a GridView For Each Fila As GridViewRow In GCURSO.Rows ceEvaluacion.CursoAlumno = Fila.Cells(0).ToString Next But when using Fila.Cells(0).ToString I do not get the data. Thanks....
asked by 17.03.2018 / 15:25
1
answer

Consult mysql and show in a MS Visual Basic listbox?

Cordial greeting colleagues, It turns out that I have a database called quote, a form in MS Visual Basic with a listbox and a button called consult. what I want to do is, by means of the consult button, show in the listbox the information that i...
asked by 09.02.2018 / 17:08
1
answer

Get the value of one column of a GridView for each ROW

I'm trying to get the value of a column of a GridView because I need to validate if a field is empty a checkbox equals Enable=True Protected Sub VALIDAR_CheckBox() Dim nrAs Integer nr= ResultadosBusqueda.Rows.Coun...
asked by 31.01.2018 / 22:33
1
answer

how to make this line read the delete key back

I am using this line so that in a TextBox it is only numbers what it reads but when I make it delete with the back key it reads as if it were a letter; How do I solve it? Private Sub txt_id_KeyPress(sender As Object, e As KeyPressEventArgs) H...
asked by 30.11.2017 / 15:41
1
answer

VB Basic does not run .exe

I have a Launcher made in VB, which has to run an .exe file but it does not. And if I create a shortcut to that .exe and execute it if it works. But it does not work for me because direct access does not work on other computers. This is how I...
asked by 26.10.2017 / 14:05
1
answer

Exception: "Can not convert a DBNull object to other types"

I have the following function that obtains data from a DB in Access. I throw the commented error in the header. I made a stop point, to know more or less in which place the error was occurring and I managed to find it on the next line. p4 =...
asked by 21.09.2017 / 15:45
1
answer

Repetitive cycle in User inactivity

I need every 5 minutes to refresh a ListView that is loaded with a table, it works the first time but it does not work if there is still inactivity. I have tried several things without success. Imports System.Runtime.InteropServices Pu...
asked by 12.09.2017 / 17:06
1
answer

How to make a function return a value in visual basic?

Can someone tell me why this does not return value? I pass you Public Class Form1 Dim peso As Integer Dim altura As Integer Dim imc As Integer Private Sub Calcular_Click(sender As System.Object, e As System.EventArgs) Handles Calcular.Click...
asked by 07.09.2017 / 09:42