Questions tagged as 'vb.net'

1
answer

How to list static properties (shared property) equal to System.Drawing.Color

I have a structure called Servicos and in it I have some static properties. Public Structure Servico Public Shared ReadOnly Property Instalacao As Servico Get Return New Servico(ServicesType.Instalac...
asked by 12.04.2016 / 21:41
1
answer

Get all console buffer

How can I get all of the Console text ( System.Console ) to a String , without redirecting console output to a process , for example, I want to get what is in Console through the Console itself. It is possible? If so, how do I do th...
asked by 08.05.2016 / 04:53
1
answer

How to pass listView items to text

I have a listView with some items and columns, I would like to know how to pass everything to a textBox, in the form of text itself. Example: The table: ID NOME IDADE 0 Luis 47 1 Juca 69 In the TextBox: 0 Luis...
asked by 24.01.2016 / 17:41
1
answer

How to download a simple text file?

How do I get and get the String contained in an online file in Windows Phone 8.1 SDK?     
asked by 23.01.2016 / 08:09
1
answer

How to compare two dates in DatagridView and change color when VB.Net expires

My codes Private Sub CadastroDataGridView_CellFormatting(sender As Object, e As DataGridViewCellFormattingEventArgs) Handles CadastroDataGridView.CellFormatting If Me.CadastroDataGridView.Columns(e.ColumnIndex).Name = "DataGridViewTextBoxColum...
asked by 28.01.2016 / 13:05
1
answer

How to get these lines and blocks?

I'm creating a parser of a language I'm developing, I'm having trouble separating lines and blocks from code, here's the code I use to return the lines: Friend Class Splitter Public Itens As New List(Of String) Private CurrentIndex As...
asked by 13.02.2016 / 01:58
1
answer

Incorrect syntax near '-' in Insert

I developed an application for registration of Transport Clients linked to an "MDF" database, trying to save to the database gives the error:    "Incorrect syntax near '-'" I have tried everything, changed the codes, changed several thing...
asked by 24.10.2015 / 16:32
1
answer

___ ___ erkimt manage Multiple WindowsForm SplitContainer ______ qstntxt ___

I have multiple windowsforms inside a SplitContainer, one of them, I have a ListBox.

That is, outside the SplitContainer, on Form1, has button, when I click it, I want to add a text in the ListBox inside the SplitContainer on Form2

When I click the button, nothing happens! < Here is the error.

Form1Load:

%pre%

Button1code(ERRORishere):

%pre%    
______azszpr94312___

Of course it will not add, you are using %code% as if it were a static member, when re-creating the object with %code% will appear the item that you defined. It's like a pre-addition.

To solve this you should create a reference to the created member, follow the example below:

%pre%

To add the item to the ListBox, do the following:

%pre%     

___
I have multiple windowsforms inside a SplitContainer, one of them, I have a ListBox. That is, outside the SplitContainer, on Form1, has button, when I click it, I want to add a text in the ListBox inside the SplitContainer on Form2 When I...
asked by 23.10.2015 / 21:26
1
answer

Get all connections related to an IP

Is it possible to get all the ips that are connected to an IP in Visual Basic? For example, I get the IP of all players who are connected to a server in a game. I tried the variable System.NET.IPHostEntry.Aliases but it did not return any...
asked by 26.09.2015 / 08:28
1
answer

VB.Net - Null Import for System.Byte

I'm not able to return the SQL Server NULL value that is in a byte-type column. Message:    {"Can not convert an object of type 'System.DBNull' to type 'System.Byte []'."} Code: Dim ms As New MemoryStream(ObtemImagem(CInt(dgvAgenda.S...
asked by 19.10.2015 / 20:20