Questions tagged as 'vb.net'

2
answers

Trim string with vb.net

could someone tell me how to cut out a string of characters by getting the number X of characters and adding ... to the end of the string in ASP.net Dim cadenaOriginal As String = "Anita lava la tina." Dim cadenaRecortada As String = "A...
asked by 23.05.2018 / 14:44
2
answers

how to update a crystal report report in visual basic

I have a customer list report to call the display of the data in the report I use this code: Dim crystalrpt As New ReportDocument() crystalrpt.Load("C:\Users\Samuel Susana\Documents\Visual Studio 2015\Projects\SistemadeventaPOO\Sistema...
asked by 04.08.2017 / 14:04
1
answer

SqlBulcopy WriteToServer method takes too long vb.net

When creating an object of the class sqlBulkCopy and sending the method writeToServer , passing it as parameter a OracleDataReader this delay more than 15 minutes, the number of rows that I want to copy are close to 140000, I...
asked by 25.10.2017 / 23:36
1
answer

Converting Collection from VB to C #

In a conversion from vb.net to C# I have the following Line: Public Function getImageData(ByVal sImageID As String, ByVal rutaConfiguracionImagenes As String) Dim caracteristicasImagenes As New ArrayList Try Dim datosImagenes...
asked by 04.12.2018 / 13:27
1
answer

Add ComboBox inside ListView

I would like to be supported to be able to add a ComboBox control inside a ListView. The image shows the Listview, I want to add a comboBox in the second column for each item that exists in the first column.     
asked by 16.02.2017 / 16:45
1
answer

Error inserting data in MySql database

I get the following error Column 'Nombre' cannot be null when trying to save a record in the database Private sub Create(ByVal cliente As Cliente) Using cn = New MySqlConnection(ConfigurationManager.ConnectionStrings("default").ToSt...
asked by 13.06.2017 / 13:19
1
answer

Call Last ID VB.NET SQL SERVER

I am developing a window to insert data into sqlserver2008 from vb.net, my query is, how to call the maximum id after having saved it Private Sub btnGuardar_Click(sender As Object, e As EventArgs) Handles btnGuardar.Click Try Dim c...
asked by 21.09.2017 / 15:06
1
answer

Can I compare two lists in vb .net? [closed]

When loading my form, I bring information from the database and insert it in a list, through a timer I go to consult possible changes, it is possible to compare the two lists to determine the changes included if it increases or decreases the siz...
asked by 22.11.2016 / 21:42
1
answer

Optimization in Visual Basic

For my work, I created the following code (and it works! - although it takes a while). Unfortunately, it is anything but practical. Can you tell me a more pro-elbow way? This is my code: For 21 different scenarios that can take values from 1...
asked by 18.12.2018 / 16:53
1
answer

Calculate percentages in Visual Basic

I have a problem trying to calculate a percentage. I have a form with a maskedtextbox with this format 00% and a textbox to enter a quantity and another to receive the calculation textbox1 maskedtextbox re...
asked by 23.07.2017 / 15:13