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
votes0
answers715
viewsHow to sign PDF with A3 digital certificate in C#?
I need to sign a PDF file with A3 digital certificate. It can be in C# or VB.NET.
-
1
votes0
answers39
viewsWhen is it necessary to use GC.Collect()?
I know that in . NET/CLR, the Garbage Collector acts alone, without it being necessary to call him manually. There are cases where the Garbage Collector does not "collect" automatically? When it is…
-
1
votes1
answer9606
viewsString or binary data would be truncated
This error occurs when I try to run my trial, I don’t know why it happens. my code: Dim con As SqlConnection = New SqlConnection() Dim cmd As SqlCommand = New SqlCommand() Try con.ConnectionString =…
-
1
votes1
answer95
viewsPopulating Textbox in different form with Datagridview data
I am trying to add the data from one line of a Datagridview from one form to another by clicking on a "confirmation button", but by the searches I did in other similar cases, the code is correct.…
-
1
votes2
answers2794
viewsMaximize screen without edge without hiding the Windows taskbar
When I put the window to FormBorderStyle = None and maximize it, it sits in full screen, hiding the taskbar. I’d like to know how to make it maximized, but without hiding the taskbar.…
-
1
votes0
answers90
viewsReceive table content by Webbrowser?
I have the following table. <table class="table1"> <tbody> <tr> <th></th> <th>SEQ</th> <th>LOGIN</th> <th>WHATSAPP</th>…
-
1
votes1
answer42
viewsHow to make a button addition system with unique events for Launch?
I would like to know how to make a system in which automatically adds in a Flowlayoutpanel, for each file of a folder, a button with a specific event that, when clicking, starts the application. The…
-
1
votes0
answers36
viewsNewtonsoft.Json 'Jarray.Cs' does not exist
Using VB.NET and Newtonsoft.Json usually... from time to time presented the following error: Locating source for 'C: Development Releases Json Working Newtonsoft.Json Working-Signed Src…
-
1
votes0
answers220
viewsBreak page in Printdocument in VB.Net
I need a simple help I’m making a simple report with PrintDocument, however I am having difficulty to do so that it visualizes several pages. According to the record that is displayed in my…
vb.netasked 7 years, 2 months ago user72767 -
1
votes1
answer726
viewsHow to use getElementsByClassName on an Internet Explorer object in VB.Net?
I’m trying to use a getElementsByClassName in an Access macro. You are showing line error: If ie.Document.GetElementsByClassName("msgErroAdic").Length > 1 Then Being Dim ie as Object and Set ie =…
-
1
votes1
answer26
viewsHelp with Regex in VB.Net
I’m trying to mount an expression to run in VB.Net that finds in the contents of a file the text GO. Text is always on a new line and may or may not contain spaces or tabs. I’ve come to the…
-
1
votes1
answer239
viewsHow 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 am referring is really a property, I will explain in detail what I want to do. For example: I want to create an array with…
-
1
votes2
answers72
viewsHow to use an Array to draw elements?
I have this code With SerialPort1 .Write("AT" & vbCrLf) Threading.Thread.Sleep(1000) .Write("AT+CMGF=1" & vbCrLf) Threading.Thread.Sleep(1000) .Write("AT+CMGS=" & Chr(34) &…
-
1
votes1
answer265
viewsHow 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 the last space before 50 characters. This is to be able to put the address in two lines in the database.…
-
1
votes0
answers248
viewsRun application in background
I have an application developed in VB.NET that has several routines that are started with a timer. It is available in the console application. User does not interact with console. What is the…
vb.netasked 6 years, 11 months ago Vande Cavassin 11 -
1
votes1
answer142
viewsHow to put properties inside another property? VB.net
I would like to know how I can place properties within another property, as in the example below. Example: Open/Expanded Font Property I tried to do many times in various ways, but the closest I…
-
1
votes1
answer224
viewsGoogle Maps api Vb.net
I’m working with the API of Googlemaps, and I have the following problem. I have a map that works correctly on IE: Changing browser, for example Chrome the map looks like this: Does anyone have any…
-
1
votes1
answer522
viewsThe index and length shall 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 need only 2017-09-15 and 14:01, tried to do .Substring(0,10) for the date and…
-
1
votes0
answers29
viewsAdd Number to Right
Today my select returns me a letter, A, B, C for example. I would like to add two zeros to the right of the letter, how can I do this? Return example: "To" How I’d like it to stay "00A"…
-
1
votes0
answers14
viewsQuery error using Entity Framework with Mysql and VB.net
I have developed a method to do with simple query provided by the Changed textbox event and the query returns the right values the first time. When I change the value of the component and the query…
-
1
votes0
answers73
viewsCall procedure in the Onclick of <area> in the Image Map in ASP.NET
Good afternoon, I have this code: <img src="../Image/sala.png" USEMAP="#sala" BORDER=0> <area name="window" shape="poly" coords="633,82,631,117,627,145,625,160,644,162,671" href=""…
-
1
votes0
answers48
viewsGetting data from a JSON Api to a Data View Grid
I am using an Api (Json): API And I would like that when I open the program I automatically obtain the data of the api, in Dataviewgrid, as I can solve? PS: I have already used newsoftjson…
-
1
votes1
answer127
viewsProblem with "Else if" and "<" ">" in VB.NET
I’m setting up a small system that if the number entered in the textbox3 is less than 3, appears in the textbox4 an "8%" message, and if it is a number between 4 and 6, it appears in textbox4 "9%".…
-
1
votes1
answer89
viewsProblem numbers after the comma
Hello I have this code on a button. txtresultado.Text = Math.Round(txtsalmin.Text * 0.2, 2).ToString Where it takes the value of salmin.text and multiplies poe 0.2 and appears in txtresultado.text…
vb.netasked 6 years, 7 months ago Mateus Justino 93 -
1
votes0
answers223
viewsVB.NET + Powershell
I would like to create a program in VB.NET that runs the following code in Powershell Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register…
-
1
votes2
answers245
viewsString Manipulation in VB.Net
Hello, in the code I’m developing I need to get the name of a file. I used an Openfiledialog for the user to select a file and, after selecting, the system returns the directory of this file within…
-
1
votes2
answers61
viewsProcedure sql server 2012 + java
I want to structure an INSERT using JAVA in the same way that INSERT is structured in VB .NET. It follows how the code is in VB . NET: Const _spName = "dbo.MEJT_SP_CAD_PRODUTOS" Public Function…
-
1
votes1
answer969
viewsManipulating Excel in Visual Studio
I’m doing an application in Visual Studio with Visual Basic. This application will serve to consume data from a Webservice. I have a problem with one of these Webservices, what happens is this: I…
-
1
votes1
answer1072
viewsHow to take the Text of a Div Class and Put it inside a Label?
I’m trying to take the "value" inside the div to put inside a label. Div: <div class="info">valor</div> First Attempt Variavel1 =…
-
1
votes1
answer235
viewsFill combobox, and pick up value menber Vb.net and mysql
I need to fill a combobox with my mysql database, and then take the value menber to enter in the database Att. I’m in need of help from a person who knows visual basic.net , I’m with a system, for a…
-
1
votes1
answer95
viewsvertical label in VB
How do I make the label text look like this: Upright and bottom up. I think it’s simple but I’m not getting it. Someone could help me?…
vb.netasked 6 years, 2 months ago Mateus Justino 93 -
1
votes1
answer44
viewstextbox with right align in VB print
I have a printdocument with the following command Dim font1 As New Font("Arial", 15, FontStyle.Regular) e.Graphics.DrawString(txtnome.Text, font1, Brushes.Black, 10, 10) And when I print the textbox…
vb.netasked 6 years, 2 months ago Mateus Justino 93 -
1
votes1
answer61
viewsShow photo of a listbox item gives me error Out Of Memory
I’m making a tool that turns a photo made upload by the user in bytes array then compare these Bites with the existing photos in the database I was able to make the code work but when at the end it…
-
1
votes1
answer100
viewsDifference between a master page and web form
I would like to know the differences between a master page and a web form, because I need to create a web page and I want to know which is the most advised!
-
1
votes1
answer86
viewsOpen Asp.net web page
I created a program where I have a Vb form and an Asp.net web page. wanted to know how to open the web page by clicking a button that is in the Vb form
-
1
votes1
answer113
views2 filters on Bindingsource in Vb
I own a datagridview of employees and I can filter them through the name of each employee through this code: FuncionariosBindingSource.Filter = "nome like'%" & TextBox1.Text & "%'" In this…
vb.netasked 6 years, 2 months ago Mateus Justino 93 -
1
votes2
answers141
viewsHow to make a multiple variable definition in VB.net
Hello, normally I program on the web I am venturing into VB.net (by free and spontaneous pressure...) and both in Typescript and Javascript and even in PHP, I have the habit of making a multiple…
vb.netasked 6 years, 4 months ago LeandroLuk 4,989 -
1
votes1
answer50
viewsDisplay form according to user response
I need a little help. I have a Grid, with a column named status de interesse, the type of that column is ComboBox. However, when the user selects the declined option I want to display a form x. How…
-
1
votes0
answers40
viewsPivottablewizard() "Connection" parameter
Hello, could someone provide me an example of using the appropriate parameter connection of the method PivotTableWizard()? When I use this parameter I get the error: Unable to obtain the…
-
1
votes1
answer160
viewsAccess 64-bit key in Windows Registry through 32-bit application
I need to get information related to the network to list in an application I’m doing, but I have a problem accessing the Registry Windows because of project preference. Path: Right-click the class,…
-
1
votes1
answer140
viewsEnabled false after typing
I have a textbox with a text written a standard number and with the enabled property = false, that is a textbox with a number that cannot be changed. But I created a button that leaves the enabled…
vb.netasked 6 years, 2 months ago Mateus Justino 93 -
1
votes1
answer34
viewsVB-NET Click on an element (click on yourself) enabled false, to be enabled true
Hello. My doubt is in VB-NET How can I leave Enabled true, an image that is Enabled false by clicking on it itself. It is possible?
vb.netasked 6 years, 2 months ago Rodrigo BS 69 -
1
votes1
answer56
viewsUse date Picker in Asp.net
I’m creating an Asp.net (Vb) website with a master page behind it and I can’t get the Picker date to work Can help me or indicate a Picker date even of the nuggets?
-
1
votes1
answer79
viewsReceive date from datapicker
I am creating a site where I have a datapicker using the following website I wanted when I was going to save to fetch the date that was chosen from the datapicker that appears instead of the date of…
-
1
votes1
answer31
viewsVB-NET How to give a new location to a control? , with a variable value
Eaê Personal. I have this code to define a New Point for a Picturebox, but when running it does not work,... Dim VarPbx As String = "PictureBox" & "2" Dim pbx As PictureBox =…
vb.netasked 6 years, 2 months ago Rodrigo BS 69 -
1
votes0
answers61
viewsVB.NET - How to make a Loopback Serial Test program in Universal Windows Platform?
I have a problem translating the code C# to VB.NET on the UWP platform making a Serial UART Test Example made available by the Microsoft website. The program in C# is working perfectly, but when I…
-
1
votes1
answer37
viewsVB.NET - Automatic textchanged
Come on, you guys! I am trying to realize automatic date. For example, if I choose the year of the field "Up", in the year 2018. The "From" field automatically calculates for year 2013. As print…
-
1
votes2
answers30
viewsadd lines to datagridview
How can I declare @NIF as a string Dim sqlConString As String = "Server=localhost\TESTE;Database=tempTest;User Id=sa;Password=123" Dim conn = New SqlConnection(sqlConString) Try Conn.Open() Dim…
-
1
votes1
answer167
viewsHtml & VB net how to download an img with a link inside a tag?
After using a Webbrowser to log into a site with Vb, I want to access my site profile, and download the image of my profile <a href="#" data-target="#profile-photo" data-toggle="modal"…
-
1
votes0
answers206
viewsHow to consult select with two different formats dates in VB.NET?
Talk, you guys! I have dates with two types of different formats in the database, example: MM/dd/yyyy dd/MM/yyyy HH:mm:ss But when doing the query in VB.NET, I did so and it doesn’t work. Public…