Questions tagged as 'vb.net'

2
answers

How to get the number of records in a DataReader?

I'm doing a query in a database, however I need to know how many records I'll get from this query, before I even start the loop.    Note: I do not want to put a counter inside the mesh, I need the value   before * cmd = New OleDbCommand(sq...
asked by 09.03.2016 / 15:43
2
answers

Insert CSV file data into pl / sql database using VB.NET

I am reading a csv file through a Console Application, and to this point it is returning me correctly. Now I'm having trouble understanding how to include each field in a Bank column. This is the code I have so far. Public Function LerC...
asked by 09.11.2015 / 11:11
1
answer

How to erase information in DB using DataGridView?

Can anyone tell me what command I should put to delete the database using the selected cell information? I put it like this: SQLcmd.CommandText = ("DELETE FROM usuario WHERE nome = '" & DataGridView3.IsCurrentCellInEditMode & "' ")...
asked by 06.12.2015 / 19:41
1
answer

How do you deactivate a key in a complete Form?

How can I disable the program's TAB or ALT key? Example: Clicking TAB does not make any changes. Is it possible in KeyDown ?     
asked by 31.08.2015 / 01:36
1
answer

How to add these references in VB.NET?

I'm not finding these references with the exclamation in Add Reference, does anyone know how to add it?     
asked by 12.05.2015 / 14:04
1
answer

How to reference a DLL using DllImport and a variable in the path?

I have a problem at the moment of reference a dll using <DllImport> , because in the place where I put the path of dll <DllImport("C:\MinhaDll.dll")> , I would like to use a variable, and it is not possible, it returns th...
asked by 03.06.2015 / 15:03
1
answer

Cut an image every 300 pixel height

I'm developing a Clipping report generator where I need to insert captured images from internet pages. Most of the time it is necessary to cut them and distribute them in the PDF pages. How do I crop an image programmatically every 300 pixels in...
asked by 20.02.2015 / 14:06
2
answers

Format date (dd / MM / yyyy)

I have here a column in a DataGridview with the name "DBO" (date of birth) that is in the month / day / year format, I wanted to change the date style to dd-MM-yyyy but I can not. myCommand = "UPDATE DoctorBasic SET " & _ "DOB = '"...
asked by 22.01.2015 / 13:36
1
answer

Multiple Line Comments in Visual Basic

How can I put multiple-line comments in Visual Basic?     
asked by 30.05.2015 / 23:54
1
answer

Listbox Index Error

My application has the following start code: BuscaDiretorioPastaOriginal("Diretorio") // isso seria uma função **recursiva** de diretorios BuscaDiretorioPastaPath("Diretorio") // isso seria uma função **recursiva** de diretorios This functi...
asked by 13.11.2014 / 21:23