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
votes1
answer180
viewsCheck if the listbox index exists?
Hello wanted to know how to identify if the index (Example: 5 does not exist) and return to 0. Follows my code: Dim avancarcoordX As Integer avancarcoordX = lbPosX.SelectedIndex + 1…
vb.netasked 7 years, 5 months ago Lucas Anderson 3 -
0
votes1
answer53
viewsShopping cart
I’m making my own PAP, and I have the following problem: I’ll have a form where I’ll have a Datagridview with the pieces, and I want you to double-click on the piece that I intend to buy, insert for…
vb.netasked 7 years, 5 months ago André Domingues 1 -
0
votes1
answer69
viewsCapture Top of clicked object and apply on another Vb.net
Opa, I am creating a simple function and in it I need to identify the name of the clicked object, and from there collect your top. Private Sub sidebar_bt_all_MouseHover(sender As Object, e As…
-
0
votes1
answer28
viewsHow to implement in VB . ASPX the action of ENTER key as TAB?
I would like to know how to implement in the file’s onKeyDown event . aspx so that when pressed the ENTER key (code = 13) behaves like the TAB key (code = 9). This is generic so it can be reused on…
-
0
votes1
answer51
viewsVB.NET Datagridview error
Error: There is no Row at position 0 Someone can solve me or explain what this mistake is?!…
-
0
votes0
answers139
viewsLocaldb in visual Basic does not connect
My application does not connect to localDB. I’ve updated the SDT, changed the connectionstring in App.config but nothing works. The part of the code where I establish the connection is this: Dim…
-
0
votes0
answers228
viewsError compiling project in Visual Basic 6
When I try to compile my project gives this error: I don’t know if it’s a problem with the Crystal Reports (See the background in blue), or if it’s really the problem of Visual Basic 6. I have never…
-
0
votes1
answer1163
viewsMove mouse to screen pixel (XY)
Hello guys I’m having a problem, well I already managed to get the mouse position in relation to form ! For this I used a form with the NONE border, maximized, and opacity 5% and when the user…
-
0
votes0
answers58
viewsMysql - VB - Connection error
I have an error, when trying to connect to Mysql in a report accompanied by a Reportviewer is making a mistake.. I have already tried to create a user with all access on Workbench in the previous…
-
0
votes1
answer3733
viewsError: String Conversion in Integer Type is Not Valid
I have a Datagridview that loads all the data of a table, all the data are of type Short Text in BD. I call for an SQL statement to display in Datagridview, until this step goes all right,…
-
0
votes1
answer66
viewsHow to convert a Checkbox to a Toggle Button?
Guys I created a checkbox column - Datagridviewcheckboxcolumn - in the Datagridview and would like to know if it is possible, and how do I make this column to become a button column to enable or…
-
0
votes0
answers35
viewsAlternate Webbrowser running recent pages
I would like to know if there is any control for the platform . NET that runs current pages without giving errors. I’ve looked on Youtube, Google, but I never do. Awesomium.NET doesn’t change.…
-
0
votes1
answer135
viewsVisual Basic - Progress Bar reset automatically
Goodnight! I’m doing a program in Visual Basic, and I need my Progress Bar to go back to 0 automatically when it reaches 100, and my timer will stop when the Progress Bar Value reaches 100. Can…
-
0
votes0
answers76
viewsVB - Datagrid in Textboxes
Good. I have PAP to do and I’d like you to help me, please. I have the following form: That by clicking on the magnifying glass next to the "add" will redirect me to another form that lists all the…
-
0
votes2
answers252
viewsReturn 2 values in a foreach
I would like to return two values in one foreach, can help me? For Each item In Funcao() teste1 = gostaria de pegar aqui o resultado 1 teste2 = gostaria de pegar aqui o resultado 2 Next Private…
-
0
votes0
answers230
viewsADO Recordset returns nothing
I can’t get ADO Recordset to return records from a Mysql table. I’m using VB.NET in Visual Studio. I can establish the communication with the database, make the connection, create tables, all via…
-
0
votes0
answers58
viewsVB: Datagridview
Good morning. I have the problem that the table design does not update. The Design: Private Sub DataGridClientsDesign() 'Procedimento que contem o novo estilo da datagrid…
-
0
votes1
answer292
viewsLoad Window Form inside VB.net Container
Opa I have a function for opening photons inside a general container. Function carrega_form(ByRef ctl As Control, ByRef frm As Form) If ctl IsNot Nothing AndAlso frm IsNot Nothing Then frm.TopLevel…
-
0
votes1
answer149
viewsVB.NET, Visual Studio and Namespaces
How to make Visual Studio 2017 + VB.NET create new classes already with namespace, as it does in C#? I’ve tried creating and editing item templates using the parameter $itemfolder$, but it doesn’t…
-
0
votes0
answers150
viewsPrint text in ASCII
Good afternoon, I am trying to print a text (ZPL code), but in my code there are ASCII delimiters, and for this reason does not generate correct impression, that is to say missing certain…
-
0
votes1
answer69
viewsRaising numbers financially
I am mounting a basic payroll system in VB.NET, and for example when I do splitting 2500 for 220 the result will be 11,363636363636363636363636363636. There is how I make a rounding for example to…
-
0
votes1
answer65
viewshow to save the result of an image and a label to a single file?
I’m doing a little pograma to memorialize photos consists of a label and a picturebox how can I record the label together with the picture box image to a single image? this is my code Imports…
vb.netasked 7 years, 2 months ago Helder Da Silveira Ventura 125 -
0
votes1
answer39
viewsRead XML and create Objects using LINQ in VB.NET
With the following code below: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <escuelas> <escuela> <estudiante>noe</estudiante>…
-
0
votes1
answer1587
viewsGenerate a PDF from a Div HTML
Good evening, guys... I wonder what I can use to generate a PDF from a selected div. It could be in Jquery,VB,Vb net or Javascript. Could you help me ?
-
0
votes0
answers57
viewsSystem.Nullreferenceexception
There is a webservice that I need to create which needs to have some particularities, among them, the information of Soapaction (as below). However, when I put and will debug I already get the error…
-
0
votes1
answer123
viewsOpacity adjustment of the panel background in Vb.net
Hello. I am trying to make an application in VB.NET where it is necessary to adjust the opacity of just the background of some "panels" so that they are transparent but not invisible. Following…
vb.netasked 6 years, 10 months ago YohananDiamond 25 -
0
votes1
answer118
viewsPrevent, confirm or Dismiss javascript Alerts in a VB.NET webbrowser object
I am facing problems with javascript alerts on my webbrowser. I’m creating an automation and after giving Ubmit on some pages in webbrowser, Javascript alerts appear with the protocol generated by…
-
0
votes2
answers270
viewsHow do I compare values between two tables and send email if it has new value?
My system imports every day CSV files from several directories into a table called TB_ARQUIVO. In this file, it contains the name of the Hotel (HOTEL_NOME column) and four types of Channels...…
-
0
votes1
answer128
viewsFlood Visual Basic
My goal is for the person to type a text. Let’s assume that in a textbox with multiline=true, and in that text, with each line break, that line is treated differently, like, every sentence in the…
-
0
votes0
answers52
viewsZip file extraction
Can anyone give me a light? When it comes to the algorithm to extract the file . zip from the location the program stops responding. I’m using as a reference dll Ionic.zip Private Sub Descompactar()…
-
0
votes1
answer687
viewsExchange "Web Browser" Vb.net
I want to change the default browser of visual studio, I would like to use another to run some scripts that are having problems in internet explorer. I would like suggestions and examples of how to…
-
0
votes1
answer256
viewsReport Viewer, direct print and file saving without preview
Good afternoon. Can I save a report made in REPORT VIEWER without preview? Saving it in PDF format, and also performing its direct printing on the printer (without using external executables),…
-
0
votes1
answer360
viewsWEBSERVICE ASP.NET Method not found
I have a problem in a webservice that I created and I tried several adjustment options and could not solve. I have the list of Methods available according to the image below When I select the VAPS…
-
0
votes1
answer27
viewsPrintpreviewdialog in the browser
I have the following code in a MVC project inside a cshtml: var w = window.open('', "print", "height=400,width=600"); w.document.write(json.html); w.document.close(); w.setTimeout(w.print, 1000); It…
-
0
votes1
answer37
viewsVb.net- An Exception of type 'System.Data.Entity.Infrastructure.Dbupdateexception'
I created a delete but when executing the error : An Exception of type 'System.Data.Entity.Infrastructure.Dbupdateexception', I’ve looked for help, but all that appears is for #C, I need a solution…
-
0
votes1
answer209
viewsVb . net Custom Controls
How to create custom Vb . net controls? I would like to create them and modify values of their properties. My purpose is to import them into other projects.
-
0
votes0
answers76
viewsImport Excel library to VB.NET in Visual Studio
In a Web project in VB.NET in Visual Studio I performed the import of a library to generate Excel files. (In the Tools menu --> Extensions and Updates). I made the import on the desired page…
-
0
votes1
answer36
viewsDropdownlist Error System.Nullreferenceexception' in VB
I need to create a function to introduce a new defect, which is associated with one or several processes (for now I haven’t figured out how to select several), but I want the processes to appear in…
-
0
votes1
answer55
viewsDropdownlist with multi Selected
I have a table of defects and a table of processes, and a defect can have one or several processes. For now I have a dropdownlist for a defect, a process, that changes need to do to be able to…
-
0
votes0
answers97
viewsTyping simulator
I wanted to know how to make the program type alone, is like sending message with Ndkeys but goes letter by letter as if it were a human typing. I had done the usual way to send a message, but I…
-
0
votes1
answer46
viewsError in Dll Visual Studio Installer
I have the following problem: when I build the visual studio installer project to generate the installer, it returns the error: I can see the dependencies of all the other dll’s and when I click to…
-
0
votes2
answers114
viewsWhy is there the term "Private" in . NET?
Declaring variables without specifying the variable access level in C# and Visual Basic . NET ends up making the private, only the type/location where it was created can access and/or modify it.…
-
0
votes2
answers134
viewsSet the name of a property dynamically in VB.NET
I have a class with a public property in it. As follows in the example: Public Property exemplo As List(Of Uso) Get Return x_exemplo End Get Set x_exemplo = Value End Set End Property Private…
-
0
votes0
answers51
viewsAccess database for visual basic
I was sent to make a program for selecting professors from a Visual Basic university with access database, but I’m having some problems in performing it. Is it possible to use a checkbox to extract…
vb.netasked 6 years, 7 months ago BeatrizGarcia 1 -
0
votes1
answer62
viewsError in Datagridview search
Hello, I have a Textbox in which entered a name automatically does the search in a Datagridview with employee data, for example if I type the letter "a" will appear all names starting with the…
-
0
votes1
answer37
viewsProblem in converting a query into Vb.net for a varchar model
Until the function call of the parameters picks all the data correctly, the problem is time to pass to the Procedure via ADO.net, that for example, step the values, @OPE_NROOPERACAO = '34567,32135'…
-
0
votes1
answer50
viewsVB net how to send picture q is in a user control for a form
I have a picturebox in a User Control, and I want the image of the use control picturebox to go to a picturebox of a form, how to do?
-
0
votes1
answer146
viewsVB.NET - How to delete files being used by other process
Hello, I would like to know if there is any way inside VB.NET (Use Visual Studio 2017 [Winform] ) to delete a file being used by another process, in case, forcibly delete the file, even if it may…
-
0
votes0
answers122
viewsVB.NET How to simulate mouse clicks (Real)
Hello, I know there are many such questions, but what I want to know is not how to simulate, but how to REALLY make a program click for real. I already know how to simulate the clicks perfectly, but…
-
0
votes1
answer39
viewsTextbox Search multiplies search values
Private Sub txtSearchByDish_TextChanged(sender As Object, e As EventArgs) Handles txtSearchByDish.TextChanged Try con = New OleDbConnection(cs) con.Open() cmd = New…