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
-
0
votes0
answers85
viewsThe underlying Connection was closed / Httpwebrequest
I use this request to get the return of a page, but my connection is rejected with this message The underlying connection was closed: A connection that was expected to be kept alive was closed by…
-
0
votes1
answer109
viewsListbox form splitcontainer how to add items?
How can I add items to a Listbox within a form, and the form within a Splitcontainer. Button(Load Listbox) [home.Vb (Windowsform)]: Dim naveg As New frmListBox naveg.TopLevel = False…
vb.netasked 8 years, 11 months ago Leonardo Joksan 363 -
0
votes1
answer255
viewsVB.Net - Imports Null to System.Byte
I am unable to return the NULL value of SQL Server that is in a byte column. Message: {"Cannot convert an object of type 'System.Dbnull' to type 'System.Byte[]'."} Code: Dim ms As New…
vb.netasked 8 years, 11 months ago Flavio Bueno 1 -
0
votes1
answer23
viewsmanage Multiple windowsForm Splitcontainer
I have multiple windowsforms inside a Splitcontainer, one of them, owned a Listbox. That is, outside the Splitcontainer, in Form1, has button, when you click on it, I want to add a text in the…
-
0
votes1
answer308
viewsIncorrect syntax near '-' in Insert
I developed an application for registration of Clients "Transport" linked to a database "MDF", when trying to save to the database gives error: "Incorrect syntax near '-'" I tried everything,…
-
0
votes0
answers59
viewsData Return Excel VB.NET
I have a problem to return the excel data to a Datagridview... I am using the commands below Dim connectionStringExcel As String = "Driver={0};DriverId=790; Dbq={1};DefaultDir={2};Extended…
-
0
votes1
answer110
viewsHow to display a database image in a Vb.net form
I’d like to know how I can show a database image in a Vb.net form. It’s something like this: info.TextBox5.Text = DataGridView1.SelectedRows(0).Cells(5).Value Only this code I use to display text…
vb.netasked 8 years, 6 months ago Razvan Balaci 11 -
0
votes1
answer109
viewsHeranca de Proprieade Usercontrol Para Form VB.NET
How do I make a form inherit the same properties as a user control by dragging it from the controlbox to the form? Example: I created a Usercontrol with FormBorderStyle = none, I compiled and…
-
0
votes2
answers342
viewsHow to extract data from an XML url for Visual Studio Labels
[![Details of the question][1][1] I want to make a search button for the ISBN code using Virtual Studio 2013, in which he would return me data from the site ISBNDB.com in XML format, which would be…
-
0
votes1
answer101
viewsDatagrid for textbox
Boa Pessoal. I have a DataGridView where I have the field id. The id is currently filled with 10 values, that is, the last number to appear in my DataGridView is number "10," and I want to have a…
-
0
votes0
answers110
viewsProblem to establish a connection between Client.exe and Server.exe using No-ip service
I have a remote access app and needed to receive connections from my customers using the service No-ip (no-ip.com), in view of the fact that ip external is always dynamic. So I have already made all…
-
0
votes1
answer92
viewsGet all the console buffer
How can I get all the Console text (System.Console) for a String, without redirecting the console output to a process, for example, I want to get what’s in the Console through the Console itself. Is…
-
0
votes1
answer63
viewsSqldatareader Not Closed?
Imports System.Data.SqlClient Public Class F_Contentor Dim F_Topo As New Form2() Dim F_Principal As New Form3() Dim Prof_Ses_Nome As String Dim Prof_Ses_Id As Integer Const cs As String = "Data…
-
0
votes1
answer2312
viewsHow to sort listview according to a specific column
I have a listview that shows more or less the following: ID NOME IDADE 0 Luis 19 1 Julio 33 2 Marcio 27 The problem is that when the ID comes in at 10, the listview starts to put the 11, 12, 13...…
-
0
votes1
answer38
viewsHow 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, follow the code I use to return lines: Friend Class Splitter Public Itens As New List(Of…
-
0
votes2
answers173
viewsStrange Comic Book Behavior - Too Many Records
The problem is that this returns me 8 records while in the database there are only 2. That is to say 4 for each 1. I cannot understand why. (If you want to edit the title of the question) I got this…
-
0
votes0
answers178
viewsHow to place two images in itext.Pdftemplate
I wonder if someone could help me need to create a pdf q report in the header would have two images one right the other left and the title in the center..
-
0
votes1
answer135
viewsError inserting image loop in report pdf Reports.dll . net
I have a while that will repeat 3 times an insertion of a barcode but I am using lib Reports.dll to create the report in pdf. This lib only accepts images saved in some directory (as far as I know),…
-
0
votes1
answer175
viewsVb.Net - Total registration in descending order
I created a project in VB.NET in it when searching for the code shows me the total of record that that call has, but I need it in descending order since when searching my form always loads the last…
-
0
votes1
answer477
viewsTo change the FROM parameter of sending email so that the sending server does not appear
I’ve been using this tutorial as base, but when sending the message by email (using PHP) appears as sending server io.wv.pt. Example 1: Example 2: PHP code: <?php if (isset($_POST['postsubmit']))…
-
0
votes0
answers168
viewsStock query, return null access
I have the following structure: My code: Private Sub CarregaEstoque() Using con As OleDbConnection = GetConnection() Try con.Open() Dim sql As String = "SELECT IdProduto, Descricao, (SELECT…
-
0
votes1
answer40
viewsHow 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…
-
0
votes1
answer771
viewsKill external process when close form
I created a form that runs an external program when I click on a program click button, but when I close the form I wanted it to give a Kill process in the task manager. However he says he has access…
-
0
votes1
answer329
viewsPagination x de y for Danfe in Report Viewer
Would anyone know how to make this pagination as in the photo example below? This paging is easily done in the header or footer of the Report Viewer, but apparently the pagination is in the body of…
-
0
votes0
answers62
viewsHow can I cast a list in VB
I’m starting to program in Visual Basic and I need to do cast of a list of objects. Below is an example of a class containing a list of products in one of its attributes. Public Class…
-
0
votes1
answer30
viewsFirstrun from the startup form program is one and after firstrun the startup form changes Vb.net
I need help, I have a Vb.net game in which I want the firstrun of the program to open a form to put the nick and has a mini tutorial etc, and after firstrun the startup form changes to the game,…
-
0
votes1
answer1317
viewsOpen external application within form Vb.net
i have a doubt, I wanted to load an external exe(example: c: dark.exe) inside a picture box the size of the same, I tried the code below but it doesn’t work( Obs the form needs to work in the target…
vb.netasked 8 years, 5 months ago Wladi Veras 379 -
0
votes1
answer28
viewsError check outside repeat loop
I need to verify that the contents of a file are in alphabetical order, but I want you to display only one error check message. With the code I am using, it displays the errors according to the…
vb.netasked 8 years, 5 months ago Catharina Lopes 160 -
0
votes0
answers146
viewsIs it possible to record audio in the Sqlserver database working with the Vb.net language?
I have an application made in VB.NET where I have customer registrations. Now I need to implement as if it were a certain permission from customers to third parties who can represent such customers.…
-
0
votes0
answers25
viewsVB Module - How to direct to a website
Hello, So I tested several methods, but I got nothing with what I want and so I came here to ask for help. Here’s the thing, I need that when accessing by the example browser:…
-
0
votes2
answers219
viewsCreating component generating DLL
I modified some components generating a DLL when compiling the project. Is there any way that DLL can only be used together with the current project? Is there any way not to generate the DLL and…
-
0
votes0
answers62
viewsSQL Server - Create View on a server with tables from another server
Hello. We had an SQL Server with three banks, one of the application I develop, another two of two different systems, the Company’s ERP system and the Online Ordering system. This system of Online…
-
0
votes0
answers13
viewsDifference between If instruction and If operator
What are the differences between the if instruction and the if operator in VB.NET? If(Condicao, x(), y()) If Condicao Then x() Else y() End If…
-
0
votes1
answer902
viewsTake variable value in another basic visual form
I’m having a problem getting the value of a variável other’s form. I tried to follow some tutorials of macoratti but none of the 3 that had there worked. In case, I have the form1 and the form2, the…
-
0
votes0
answers223
viewsMethod POST Web API returns 'NULL'?
I’m developing a Web Api with ASP with VB.NET to receive parameters JSON and created a method post with the following code. Public Function PostValue(<FromBody()> ByVal value As String) As…
-
0
votes1
answer34
viewsPicturebox.Image error <> My.resources.user_add
Hello, I am developing my TCC and there is an error that I can not solve... Below follows the code: If (imgAluno.Image <> My.Resources.user_add) Then That is, I want the program to enter in…
-
0
votes1
answer23
viewsStrip Status Label does not display image in Image Margin (Context Menu Strip)
I’m trying to insert an image in a Stripslabel, but for some reason it is not displayed in the left corner, like a Stripmenuitem. Inserts are being made the same way: Dim teste As New…
-
0
votes1
answer234
viewsargument out of range Exception was unhandled
I am beginner in VB.NET and I am creating a simple simulation game, have hunger, thirst etc, in the hunger progressibar the maximum that arrives is 100. When you eat something restores 5, if I’m 98…
-
0
votes1
answer193
viewsSplit List with more than a thousand lines - . NET
I’m getting an error while performing this select sb = New StringBuilder sb.Append(" SELECT ") sb.Append(" SE.NU_SERIE_NF, ") sb.Append(" SE.NU_NF, ") sb.Append(" SE.DH_ENTREGA, ") sb.Append("…
-
0
votes0
answers27
viewsRegistered data disappear
The Registration form registers correctly in the database and if you exchange user with the open program it still accesses the registered data, but when it closes the program completely and opens…
vb.netasked 8 years, 1 month ago Gabriel Ribeiro 163 -
0
votes2
answers809
viewsProblems saving XML file with special character in the database (ç, ã, etc)
My problem is this: I am issuing an electronic correction letter in C# and at the time of saving the XML of the event returned by SEFAZ, as much as all the characters in the file are normal, when…
-
0
votes1
answer201
viewsError generating report: <Column> and <Column> have conflicting properties: incompatible Datatype property
When trying to fill a datatable dynamically the error occurs when performing a merge of the other data. For Each drw In dtbTemp.Rows dtb = obj.Enquadra(drw.Item("IDCON_TMP"), drw.Item("IDCAR_TMP"))…
-
0
votes0
answers210
viewsSaving the real image Picturebox
I’m trying to save the contents of a picturebox, but it always saves the original image and not the one being presented. Can someone help me? Dim myEncoder As Encoder Dim myImageCodecInfo As…
-
0
votes0
answers76
viewsWrite VB code in file . JS
You can write Vb code inside a file that looks like . js? For example: arquivo teste.js var testeEvento = function () { <%=MsgBox("teste")%>; }; I tried this way it didn’t work it returns me…
-
0
votes2
answers1130
viewsWebservice consumption only runs in debugging under the Visual Studio IDE
My Winforms VB.NET application consumes a webservice to perform some queries. When running in debug or release mode under the Visual Studio IDE, it works perfectly, but once it’s distributed on the…
-
0
votes2
answers87
viewsObject Reference not set to an instance of an Object?
I’m tapping into the database and calling a procedure to insert into the bank but this error occurs you know the reason: Code: Dim con As SqlConnection = New SqlConnection() Dim cmd As SqlCommand =…
-
0
votes0
answers129
viewsI need to select ranges concatenating Addresses in VBA
I have a sub in VBA that does several calculations to get into a range address list listaAddresses = "$A$1, $H$3,$V$1,$M$16,$A$21,$B$13,$H$88..... $T$44" With this list I need to select all ranges.…
-
0
votes2
answers172
viewsCompare datagridview VB
I have a form with 3 datagridview. dgv1 and dgv2 will carry a product code in column 01. dgv1 is the master, it has all products. dgv2 will only have some of these products. How to compare them and…
-
0
votes2
answers155
viewsHow to get only one information from this table? VB.NET
Hello, I have this table, which has no class, id or name. I would like to pick up only her phone. how would it be possible to take? <tr> <td><a…
-
0
votes1
answer29
viewsError using invoke to update a listview
I have a thread that calls a method that does "Invoke" in listview, only this method only works with a parameter, I need q it accept 3. my method: Private Sub Updatelv(ByVal usuarios As String,…