Questions tagged as 'vb.net'

1
answer

Improve code efficiency

Is there any way to improve this code? So you do not make more than one query? Comando = "Select * from TClientes, TContratosClubes, TAgentes where TContratosClubes.idcontrato = '" & idcontrato & "' and TContratosClubes.idCliente = T...
asked by 09.08.2017 / 15:56
0
answers

StatusLabel in StatusStrip that shows a countdown of how much is needed to start the next month

I am trying to make my main form of my project, which is an MDI Container, show me in a StatusLabel, which is contained in its StatusStrip, a countdown of what is needed to start the next month. I have tried to do it but I can not find the resul...
asked by 21.08.2017 / 13:24
0
answers

Error wanting to delete an image in a folder in ASP.NET - VB

--- EDITED I have already corrected some things and now it throws me the following error message .. as if I did not have permissions to access that folder where the images are: Access denied to the path File.Delete(MapPath(e.CommandArg...
asked by 14.08.2017 / 17:00
1
answer

How to ask the user if he wants to consult through messagebuttons

I have this code to perform a search of my database and fill out a textbox the code works but I will tell you in the code that I will read that in a catch block that shows me some messagebuttons YesNo and that it will perform certain actions hap...
asked by 03.08.2017 / 14:45
1
answer

Problem when changing a bindingsource of a datagridview

The problem that arises is the following: When I change the BindingSource of a DataGridView in vb.net in a BackgroundWorker , I get the following error:    system indexoutofrangeexception index 0 does not have a...
asked by 01.08.2017 / 12:29
0
answers

Problems with datagridview Checkbox

I have a DataGridView with columns Illness GrandpaP GrandpaM Father Mother Uncle Brothers Cousins I add diseases to the first column through: objeto.Rows.Add("Hipertensión Arterial") objeto.Rows.Add("Obesidad") o...
asked by 03.08.2017 / 22:04
1
answer

Insert data from Visual Studio to SQL Server

How can I solve this problem when inserting data from Visual Studio.net into SQL? This is my code that I use: Imports System.Data.SqlClient Public Class Form1 Private Sub BtnInsertar_Click(sender As Object, e As EventArgs) Handles BtnInserta...
asked by 23.07.2017 / 22:43
0
answers

Difference between elements of an ArrayList

I tell you that I have a ArrayList as follows: Dim matriz As New ArrayList matriz.Add(5) matriz.Add(2) matriz.Add(4) matriz.Sort Now what I need is to know what the difference between elements is; that is Elemento1 = 5 Elemento2 = 2...
asked by 02.08.2017 / 21:58
0
answers

How to pass the item from a combobox to a table in sql server 2012

I am new to visual and I have a problem when passing a textbox to a table in sql server 2012, it does it correctly, but when sending the content that I select from a combobox, it does not load anything in the database. data, I am sending the dat...
asked by 03.08.2017 / 01:49
1
answer

how to pass a data from a table in sql to a label even if the table is empty in visual basic

I have this code to pass the data: Using Conn As New SqlConnection("Data Source=SAMUELSUSANA; Initial catalog=poovb;integrated security=true") Conn.Open() Dim ConsultaSQL = "SELECT TOP 1 Codigo_venta FROM tblventas ORDER BY...
asked by 02.08.2017 / 22:42