Questions tagged as 'vb.net'

1
answer

How to work with dates in dd / mm / yyyy format in vb.net?

I have a text box named txt_cadastro.Text . By using the following command: txt_cadastro.Text = DateString My textbox is populated in the following format: 04-23-2014 What do I do to be presented in the Brazilian format...
asked by 23.04.2014 / 21:17
1
answer

How to create an extension method for the type of a class in VB.NET

I'm creating an MVC framework that will work similar to the Entity Framework inside a VB.NET project where I've created an attribute called TableAttribute that will set the table name and the schemas to the model , like this: Namespa...
asked by 25.10.2018 / 17:06
1
answer

How to access the custom attributes of a property using VB.NET

I have a solution in VB.NET where I am implementing some custom attributes . One of them is for properties, eg: Namespace Attributes <AttributeUsage(AttributeTargets.Property)> Public Class DescriptionAttribute : Inherits Attribute...
asked by 25.10.2018 / 22:20
1
answer

Monitor E-Mail Inbox

I would like a function to monitor the inbox of E-Mail.     
asked by 02.02.2014 / 21:25
1
answer

How to compare memory used by 2 processes

Hello. I am developing a program in vb.net that finds some processes, takes the PID from them, and then collects some information about them. The problem is when you have 2 equal processes. In that case, I would need it to see which one is cu...
asked by 14.11.2018 / 00:12
1
answer

How to open a new window only if it is not already open?

The correct question would be: How to open only one instance of this window. About the program is a WPF and the language is VB.NET Currently the following code does not serve me, because if the user clicks 10 times the button will open 10...
asked by 21.09.2018 / 20:13
1
answer

Help in VB.NET using Newtonsoft.Json

Hello, I have this code: Imports System.IO Imports Newtonsoft.Json.Linq Public Class Form1 Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick Dim channel As JObject = JObject.Parse(File.ReadAllText("C:\s...
asked by 04.09.2018 / 01:44
1
answer

How can I compare two listbox items one by one?

I am developing a new software that verifies digital signatures and I have 2 ListBox . The first one with the hash that is obtained from the files contained in the directory chosen by the user, the second with the known% signatures of%...
asked by 04.08.2018 / 09:02
1
answer

Scroll bar in wrong position - DataGridView

I'm trying to select the last row in a DataGridView after adding a new item. For this I am executing the following code: dgwVenda.ClearSelection() dgwVenda.Rows(dgwVenda.Rows.Count - 1).Selected = True If dgwVenda.Controls(1).Visible = True Th...
asked by 21.06.2018 / 20:23
1
answer

Close file used by Visual Basic .NET

I'm using the following code to grab images from a directory and put it in a ListView: For Each arquivos In FileIO.FileSystem.GetFiles(caminho, FileIO.SearchOption.SearchAllSubDirectories, "*.png") Dim nome_arq As String = System.I...
asked by 25.06.2018 / 23:58