Questions tagged as 'vb.net'

1
answer

2 filters on BindingSource no vb

I have a datagridview of officials and can filter them through the name of each official through this code: FuncionariosBindingSource.Filter = "nome like'%" & TextBox1.Text & "%'" In this same datagridview I have a "year" column tha...
asked by 23.04.2018 / 14:38
2
answers

String handling in VB.Net

Hello, in the code I'm developing I need to get a file name. I used an OpenFileDialog for the user to select a file, and after selecting, the system returns the directory of this file within a string. Example: "C: \ Users \ Lucas \ Documents \ I...
asked by 03.09.2017 / 20:50
1
answer

Index and length should refer to a location within the sequence

I need to break a variable to get the value of the database. Today my full return would be "2017-09-15T14: 01: 46" I only need 2017-09-15 and 14:01, I tried to do .Substring (0.10) for the date and worked, already for the time I tried Substri...
asked by 15.09.2017 / 19:19
1
answer

How do I put properties inside another property? VB.net

I would like to know how I can put properties within another property, as in the example below. Example: Open / Expanded Font Property I tried to do many times in many ways, but the closest I got was the one below: Imports System.Wi...
asked by 02.07.2017 / 14:32
1
answer

How to split the string after counting 50 characters

I have to count 50 characters and make a split in two variables. The ideal would be to split in the last space before 50 characters. This is to be able to put the address on two lines in the database. I have this like this: Dim Morada As...
asked by 19.06.2017 / 23:33
1
answer

How to create property for an Array? VB.NET

I have a question in Arrays, I do not know if I wrote right if what I'm referring to is really a property, I'll explain in detail what I want to do. For example: I want to create an array with multiple names = dim nomes() as string Af...
asked by 11.06.2017 / 20:05
1
answer

Help with Regex in VB.Net

I'm trying to set up an expression to run in VB.Net that finds in the contents of a file the text GO . The text is always on a new line and may or may not contain spaces or tabs. I got the expression GO|\t\s\n but it identifies the...
asked by 09.06.2017 / 21:18
1
answer

Capturing a keystroke in the background

Hello, I would like to make my application detect when a certain key is pressed, but in the background, ie there will be no form in view. I can make the detection of the keys in the form with the code (Ctrl + L): If e.Control AndAlso e.KeyC...
asked by 18.02.2017 / 02:54
1
answer

What is "-1. # IND" in VB.NET

I have a variable that is receiving this value, which is not a STRING, so what is this? And is there any way to detect if the variable is equal to this through an IF?     
asked by 08.02.2017 / 12:27
1
answer

Reboot a variable, or re-create it?

In terms of performance, which is more preferable? Are there other differences between the two modes, other than performance? Reboot a variable multiple times? Private Sub Metodo() Dim MeuTipo As Tipo For i As Integer = 0 To 100...
asked by 20.12.2016 / 22:42