Most voted "vb.net" questions
Visual Basic . NET (VB.NET) is an object-oriented computer programming language that can be seen as an evolution of Microsoft Visual Basic 6 (VB6), but applied on the . NET Framework by Microsoft.
Learn more…682 questions
Sort by count of
-
1
votes1
answer517
viewsVisual Studio Form Covering Windows Taskbar or Getting Behind Taskbar
I have an application that uses the property Formborderstyle = None, however this happening that in windows 10 my status bar (statusBar) that is at the bottom is behind the taskbar and windows 7…
-
1
votes1
answer165
viewsreceive date from the datapicker as a Date
I put in my site in Asp.net the datepicker of this website and I want to receive the value as Date instead of String , so that it does not give problems with the date type of other countries. /*…
-
1
votes1
answer168
viewsHow to get the object references in Vb.net or c#?
I have the code to follow: Dim objeto1 as new ClasseTal Dim objeto2 as new SubClasse Dim objeto3 as new SubClasse objeto2.Prop1 = objeto1 objeto3.Prop1 = objeto1 that is, I want to count the…
-
1
votes1
answer460
viewsDatagridview - Sort column through a button
I wonder if there is any way to sort a column, from a datagridview, by clicking a button on the form after Datagridview is already populated.
vb.netasked 6 years, 2 months ago AC San Roman 13 -
1
votes0
answers99
viewsVb . net button action does not work
I want to do a simple action when a button is clicked but nothing happens. Aspx file <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderNormal" runat="server"> <asp:Button…
-
1
votes2
answers1604
viewsServer Did not recognize the value of HTTP Header Soapaction
I am trying to implement a webservice of a software called Smartertrack only that I am not succeeding... give me the following error: Server did not recognize the value of HTTP Header SOAPAction:…
-
1
votes2
answers387
viewsExport Database Table to XLSX without Interop
In the code below was assigned a Query for the variable sQuery. I need to somehow export this Query for Excel using some resource available to C# Webform other than Interop. Dim da = New…
-
1
votes1
answer132
viewsHelp 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 =…
-
1
votes0
answers62
viewsImport text file to listbox (drive)
Hello, I have tried to import a text file to a listbox by reading it row by row though, with the difference that this text file is not anywhere on the pc, but rather on my google drive. I’m using…
-
1
votes1
answer35
viewsConvert Tripledescryptoserviceprovider to javax.crypto.Cipher
I’m needing to convert a VB encryption method to Kotlin, however, the results are giving different. In Vb is implemented as follows: Public Shared Function MD5Hash(ByVal value As String) As Byte()…
-
1
votes1
answer338
viewsScroll bar in incorrect position - Datagridview
I am trying to select the last line in a Datagridview after including a new item. For this I am running the following code: dgwVenda.ClearSelection() dgwVenda.Rows(dgwVenda.Rows.Count - 1).Selected…
-
1
votes1
answer101
viewsHow to open new window only if it is not already open?
The correct question would be: how to Open only one instance of this window. the programme is a WPF and language is VB.NET Currently the following code does not suit me, because if the user clicks…
-
1
votes1
answer259
viewsClose file used by visual basic . net
Guys I’m using the following code to grab images from a directory and put in a Listview: For Each arquivos In FileIO.FileSystem.GetFiles(caminho, FileIO.SearchOption.SearchAllSubDirectories,…
vb.netasked 6 years, 3 months ago Lucas Pedro 297 -
1
votes1
answer77
viewsListbox items out of range
I have a list box on a timer with items and I need to pass all items one by one until the end and then go to the first index and stop the timer. But this gives me out of reach when it passes the…
vb.netasked 6 years, 2 months ago Helder Da Silveira Ventura 125 -
1
votes1
answer95
viewsHow to fix image with "low quality" in Listview
Guys I was using the code below to create video thumbnail and show in a Listview: Dim cont As Integer = 0 Dim thumbnail As New ImageList With {.ImageSize = New Size(200, 200)} Dim caminho_saida As…
vb.netasked 6 years, 1 month ago Lucas Pedro 297 -
1
votes0
answers60
viewsdownload a text separately a text found within a textbox
Picking a given text within another textbox or richtextbox does not matter when there is an incidence of detailed text, e.g.: "text": take out of double quotes when the next sentence is found and…
-
1
votes0
answers20
viewsButton and Text Box prevent the Keypress event from working
I am doing a work in Vb.net and if I put a button or a text box in the form then the keys I set in Keypress stop performing its function. I wish to have both things in my form will be possible?…
vb.netasked 5 years, 7 months ago Rodrigo Tuna 19 -
1
votes2
answers168
viewsAs the value within a <td>text</td>
I’m trying to get the value inside a <table>, because it needed to get the value within a <tr> that is inside the table. I’ve tried it a few ways, but the one I’m using null. In fact I…
vb.netasked 6 years, 1 month ago sonia vasconcelos 11 -
1
votes0
answers33
viewsSend AT commands by VB.NET to Arduino (SIM900)
Good afternoon, I am new in the programming part in Arduino, I am with an SIM900 connected to an Arduino UNO, I am making an application in VB.NET that will communicate by Serialport, which will…
-
1
votes0
answers113
viewsHow to format graphics axes in visual studio
Guys, I’m trying to put together a Payback chart, but it’s really weird. I used the following code (summary of what influences): Public vetor_x(121) As Integer Public vetor_y(121) As Double Private…
-
1
votes0
answers13
viewsIdentification of User Control?
I’m trying to use a User Control with VB and is created as follows: <%@ Control Language="VB" AutoEventWireup="false" CodeFile="SigaFormacao.ascx.vb" Inherits="SigaFormacao" %> Page using User…
-
1
votes3
answers871
viewsUse more than one language in the same project?
I am participating in a project that will need two parts: 1) Extração de dados da internet 2) Criação da Interface Gráfica para Desktop For the first, I thought of using Python for reading that it…
-
1
votes1
answer88
viewsHow do I use threads or something in that code?
Guys I was needing to use the Threads (or something that doesn’t lock the program while the code doesn’t finish running) in that code, but always gives a different error, so I need your help. I was…
-
1
votes1
answer40
viewsHow to check if process is open and if not, open it?
Hello, I am learning VB.net and would like help. I’m doing a little program to check if a process is open and if it’s not, open it. I’ve come this far: Private Sub CheckIfRunning() p =…
-
1
votes0
answers40
viewsHow to open a form in VB.NET even with the minimized main form
Good morning, good afternoon, good evening, person! I am having the following difficulty: I put for a form open when it reaches the 30 and 60 seconds mark. All right, this worked, but only when I…
vb.netasked 6 years ago Lucas Ruas 11 -
1
votes1
answer99
viewsHow to create an extension method for the type of a class in VB.NET
I’m creating a MVC structure that will work similar to the Entity Framework within a VB.NET project where I created an attribute called TableAttribute which will define the table and the schemas to…
-
1
votes1
answer161
viewsHow to access 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, example: Namespace Attributes <AttributeUsage(AttributeTargets.Property)> Public…
-
1
votes0
answers40
viewsHow can I make a monitoring system?
I’m developing a platform for a company, and I’ve come to a question that, if solved, can help me make the platform more robust... How can I make the system (MADE IN VB.NET OR C LANGUAGE#) that…
-
1
votes0
answers35
viewsMysql DUMP COMMAND in VB.NET
Folks good night I need to give this command in VB.NET SHELL but I’m not able to do it I already tried 3 hours I read a lot of things and I can’t think outside the box . Shell("CMD.exe /c cd \ &…
-
1
votes1
answer62
viewsHow to continue code after IF
Hello, in a certain part of my program, I need to search for some keywords in a text file. I’m using the IF and CONTAINS method for this, however, when it finds one of these keywords, it stops…
-
1
votes1
answer40
viewsHow to compare memory used by 2 processes
Hello. I’m developing a Vb.net program that finds some processes, takes their PID, and then collects some information about them. The problem is when you have two equal processes. In that case, I…
-
1
votes0
answers52
viewsHow to resize from a form to the left?
I was needing to change the size of one Form no edges with the mouse, I looked for some ways to do this, but all of them when the mouse left the Form the resize stop. So I decided to do it this way:…
vb.netasked 5 years, 10 months ago Lucas Pedro 297 -
1
votes1
answer59
viewsCOUNT in multiple mysql tables
Good afternoon, someone can inform me that there is wrong in the code below ? Because he just does the Count check on one table the other he ignores. Insert is correct but "Select Count" does not…
-
1
votes1
answer100
viewsFoul Dial
Good afternoon to all, I am once again asking for help from everyone, because I am trying to mark Faults via a VB.NET application that simulates the Processing of a complete company but I am not…
vb.netasked 5 years, 7 months ago João Diniz 181 -
1
votes1
answer3679
viewsConversion of string " to integer type is not valid
I am creating a simple program that records the total sales and the value already earned with sales, however, after the user put the sale value the error program. The error is as follows: Conversion…
vb.netasked 5 years, 7 months ago Murilo Dagustin 45 -
1
votes0
answers30
viewsUpload that data faster?
Hi! What I would like is to display Windows directories on a ListBox. In my Form I have a button just above the ListBox that serves to return (previous directory) and the event SelectedIndexChanged…
vb.netasked 5 years, 7 months ago Lucas Pedro 297 -
1
votes0
answers23
viewsReturn a price list in a VB web service
I have this method within a service(asmx) <WebMethod()> Public Function RetornarPrecoCSP(ByVal CodigoCliente As Long, ByVal CodigoProduto As String, ByVal QtdItem As Long, ByVal TipoVenda As…
-
1
votes1
answer114
viewsFilter words contained in Bindingsource
I need to filter in my DataGridView which has as the datasource one BindingSource (filtro_descricao). I need to search the lines for the text typed in textbox1 regardless of the order they are in…
-
1
votes0
answers29
viewsChange Maximize behavior with Wndproc or Override
I have a form without edge and need to maximize and restore it, but as you already know if I use Me.WindowState = FormWindowState.Maximized He stays on Full Screen. I already have a way: Dim tela As…
vb.netasked 5 years, 5 months ago Lucas Pedro 297 -
1
votes1
answer52
viewsiText - How to Use "For Each" in VB.NET
I’m trying to use the "For Each" to generate multiple PDF’s, such as a Word Direct Mail. My idea is to select several names from Listbox and generate Pdfs with selected items. My code is like this:…
vb.netasked 5 years, 4 months ago DP WS Receptivo -
1
votes1
answer68
viewsHow not to repeat the same code on an overload?
What would be correct technique not to repeat the same code for these two overloads or maybe not to have the overloads? It happens that sometimes I have to pass a parameter that is a string array…
-
1
votes1
answer44
viewsWhy can’t "If" verify equality between Ctype(double, int32) with int32?
I have a function that returns me a Double and need to check if the result is equal to 5000. I am using If CType(resultadoFunção as double, Int32) = 5000 Then, but though he shows 5000, he does not…
-
1
votes0
answers327
viewsError "Cannot send a content-body with this Verb-type"
Guys, I’m having trouble with the mistake "Cannot send a content-body with this Verb-type.". I’ve changed the method to POST, but the API only accepts if the given method is GET. I’ve tried to send…
-
1
votes0
answers36
viewsVB.NET - Changeopacity does not work
When executing my code the following message appears to me: "BC30451 - Changeopacity is not declared. It may be inaccessible due to its level of protection." I’m making an effect on my…
-
1
votes1
answer143
viewsPicturebox with round corners without serration?
What I need to do is a PictureBox that has rounded corners, but the problem is that I can’t make them round without serrations. One of the ways I found it was by using the property Region: Private…
-
1
votes1
answer100
viewsV9 - Problems with the creation of the Gprbeofcomponent object - Production
Good afternoon, I have created a method for creating an OF, all objects associated with OF are well instantiated with the exception of Gprbeofcomponent. Locally I can run the code, but on a…
vb.netasked 5 years, 1 month ago NunoFidalgo 23 -
1
votes1
answer363
viewsSpring V10 - Error in Abreempresa
When I try to open the company using the Abreempresa method, I get the following error 'Object reference is not defined as an instance of an object.' Does anyone know how to solve ? Thank you. The…
-
1
votes0
answers22
viewsVB.NET webserver gets spammando requests
Hello. I’ve just set up a Vb.net webserver to receive requests that arrive on the localhost. This webserver has the role of redirecting these requests to another address. What happens is that it…
-
1
votes0
answers109
viewsHow to download a font for a Zebra printer using ZPL?
I am trying to download a new font for Zebra (Gc420t) using ZPL. This is the code I use for this job .: teste + = "~ DYR: OptimaLTStd, B, T, t, w, dados" and to print with source: teste + = "^ XA"…
-
1
votes2
answers73
viewsError calling webmethod
I’m creating a webmetod that will make the autocomplete of some fields on my screen, however I’m getting error 500 <System.Web.Services.WebMethod>…