Questions tagged as 'vb.net'

2
answers

How do I compare values between two tables and send email if I have a new value?

My system imports CSV files from multiple directories every day into a table called TB_ARQUIVO. In this file, it contains the name of the Hotel (Column HOTEL_NOME) and four types of Channels ... SEGMENT, ORIGIN, COMMUNICATION and VEHICLE, outsid...
asked by 27.09.2017 / 17:19
2
answers

Return 2 values in a foreach

I would like to return two values in a foreach , can you help me? For Each item In Funcao() teste1 = gostaria de pegar aqui o resultado 1 teste2 = gostaria de pegar aqui o resultado 2 Next Private Function Funcao...
asked by 04.09.2017 / 21:35
1
answer

VB.NET, Visual Studio, and Namespaces

How to make Visual Studio 2017 + VB.NET create new classes already with the namespace, as it does in C #? I've tried creating and editing item templates using the $itemfolder$ parameter, but it does not seem to work: Template...
asked by 11.07.2017 / 03:44
1
answer

How to perform line breaking of a String inside a cell in Excel with VB.NET?

How can I perform the line break of a String with multiple cities concatenated for each state listed in a cell of an Excel exported in VB.NET and using OfficeOpenXml and OfficeOpenXml.Drawing. Spreadsheet Excerpt: CodeSnippet:Dimnome_cidadeA...
asked by 26.05.2017 / 16:45
2
answers

Problems saving XML file with special character in the database (ç, ã, etc)

My problem is this: I'm issuing an electronic correction letter in C # and at the time of saving the XML of the event returned by SEFAZ, even though all the characters in the file are normal, when saving in the database as blob they get like thi...
asked by 20.02.2017 / 13:18
1
answer

argument out of range exception was unhandled

I'm a beginner in VB.NET and I'm creating a simple simulation game, have hunger, thirst etc, in progressbar hunger the maximum that arrives is 100. When you eat something restores 5, if I'm 98 and how it gives error. I would like to know i...
asked by 09.02.2017 / 20:37
1
answer

Get variable value in another visual basic form

I'm having a problem getting the value of a variável from another form . I tried to follow some macoratti tutorials but none of the 3 that had them worked there. In this case, I have form1 and form2 , the second find...
asked by 19.01.2017 / 17:48
1
answer

Kill external process when closing form [closed]

I created a form that executes an external program when I click on a button load program, but when I close the form I wanted it to give it a kill process in the task manager. But he says he has access denied when I close the form, it seems th...
asked by 13.10.2016 / 22:45
1
answer

Split List with more than a thousand lines - .NET

I'm getting an error while performing this select sb = New StringBuilder sb.Append(" SELECT ") sb.Append(" SE.NU_SERIE_NF, ") sb.Append(" SE.NU_NF, ") sb.Append(" SE.DH_ENTREGA, ") sb.Append(" SE.DH_IMPORTACAO, ") sb.Append(" SE.ARMAZEM, ") s...
asked by 15.08.2016 / 16:44
1
answer

Datagrid for textbox

Good People. I have a DataGridView where I have the id field. The id is currently filled with 10 values, ie the last number to appear in my DataGridView is the number "10", and I want to have a TextBox where...
asked by 28.04.2016 / 13:51