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
-
2
votes1
answer103
viewsIdentar and colorize VB.Net code
Is there any JS or/and CSS that is able to indent and color VB.net code inside a div or input?
-
2
votes1
answer344
viewsInsert/update with values from other tables
I have this bd. I want to do an Insert/update the table misses_licao. But I don’t have any id, just the numbers and names. How do I make an Insert/update to relate to another table? Dim sql As…
-
2
votes1
answer135
viewsFaster way to add an item to an array, using a structure
Structure turma Public id_turma As Integer Public nome_turma As String End Structure Structure Disciplina Public id_disciplinas As Integer Public nome_disciplina As Integer End Structure Public…
-
2
votes3
answers244
viewsGenerate text from form
How can I make sure that when filling in the fields, they appear in the textbox by replacing the values "USER NAME", "WARNING TYPE" and "TOPIC LINK"? Private Sub bemvindo_Click(ByVal sender As…
-
2
votes1
answer227
viewsError updating a table. (Duplicate key)
Good. When doing the update give me error.. Yes ja la I have a record in the table with those values, but when changing the type should not let me do?…
-
2
votes1
answer266
viewsCheck whether typed text already exists in a text file on a website
I want the VB to check if the username entered already exists in a text collection hosted on a site. I want something like this: Dim Findstring = IO.File.ReadAllText("C:\Program Files…
vb.netasked 8 years, 4 months ago Joao Victor Menom 45 -
2
votes2
answers747
viewsHow to make database changes without having a clear primary key?
I need a method to change data in an SQL Server table. According to my client, all the table data can be changed. For having this possibility, I am without a fixed and unique reference frame for the…
-
2
votes1
answer54
viewsVisual Basic 2013 - Form cannot access/modify data from a Module
My problem is this. I have this module that contains a variable of the integer type and this variable is accessed by a form that changes its value, as shown in the code below. Module Module1 Public…
-
2
votes1
answer414
viewsHow to connect to SQL Server with VB.NET?
I’ve tried like five tutorials. See the code in C# string minhaString = "Server=.\\sqlexpress;Trusted_Connection=true;" + "Timeout=10;" + "Database =bdcadastro;"; SqlConnection minhaConexao = new…
-
2
votes3
answers1108
viewsManipulating with Update Panel
I’m working with asp:button e asp:Listbox using the event of click of asp:button to popular the listbox. I am trying to manage so that there is no more postBack in the event of click button, but the…
-
2
votes1
answer22
viewsDoes a common Class Library work on Silverlight?
A destination class library can be used in .NET Silverlight? Would it work in a Silverlight web application? Thank you!…
-
2
votes1
answer101
viewsHow to open a form with just the name of the type
I have a DataGridView in my form, remembering that it gets the name of the Mysql database forms. I’ve tried a few ways to click the form name on DataGridView and open the same, but did not succeed.…
-
2
votes2
answers109
viewsVariable outside matrix boundaries
I’m trying to put the items in positions of a matrix, but I keep getting the error that the variable is outside the matrix limits. I don’t know how to fix the mistake and I need help. Follows the…
-
2
votes1
answer384
viewsPass data from one form to another class
I have very cute Form1 with very cool button and inside it I have a toggle button on-off. I have another class.Cs and I have a condition in it, but it will only perform if that boot there on Form1…
-
2
votes1
answer2301
viewsSQL Sends NULL value to a Datetime column
I have a form in VB.NET where the user informs the delivery dates and delivery forecast of the order and other information. Since he does not yet have, for example, the delivery date because he has…
-
2
votes1
answer72
viewsReset a variable, or recreate it?
In terms of performance, what is more preferable? There are other differences between the two modes than performance? Reset a variable multiple times? Private Sub Metodo() Dim MeuTipo As Tipo For i…
-
2
votes1
answer159
viewsHide form through C#keys
I’m making a menu in c# and the same only opens when the game is open or running, IE, if the game is running show the menu, so everything well it performs, but I wanted to hide the menu for example…
-
2
votes1
answer138
viewsFind a uppercase letter in the text
I’m doing some text checks for password. I’ve already located for special character but I couldn’t find for high letter. I used Regex. For example if the text contains "test" returns false and if it…
-
2
votes1
answer192
viewsHow to add properties to WPF components?
I can use as an example the System.Windows.Controls.TextBox. How do I add more behaviors and properties to it? In a real context, I would like the component TextBox had a boolean property HasErrors,…
-
2
votes1
answer241
viewsRollback transaction does not work as expected
I’ve recently been implementing a sequence of requests in Visual Basics, and would like to give a rollback when any fail. So I did it this way: Public Class DAO Dim connection As New MysqlConnection…
-
2
votes1
answer72
viewsRun fast things synchronously and time-consuming things asynchronously?
Usually, on . NET, I run things time-consuming asynchronously so as not to stop the thread visual. In a simple example, if I have a loading in the UI, should lengthy things be executed without…
-
2
votes1
answer1003
viewsexecute a code every 5 seconds on Vb.net
I have a code that checks if the application is running, if it is not running, the code starts the application, if it is and it passes... But he does it just qnd I run for the 1° time. I qria q he…
-
2
votes2
answers415
viewsRead an internet page in a variable in VB
Guys I’m trying to read a website and I’m not getting it, I want you to save all the content in a variable, the problem is that it doesn’t have any html or xml, it’s just text, someone would know…
vb.netasked 7 years, 1 month ago Matheus Menegatte 83 -
2
votes3
answers92
viewsVB.NET to C#
I found this line of code: Try Dim WebReq As HttpWebRequest = HttpWebRequest.Create(GET_Data) Using WebRes As HttpWebResponse = WebReq.GetResponse Using Reader As New…
-
2
votes1
answer1058
viewsError: Value cannot be null. Name of parameter: datatable. VB.NET
I’m trying to make an appointment at the bank and display it on a datagrid, I have not so much experience, I do technical course and is my first question here, the code I am using is this: Public…
vb.netasked 7 years, 1 month ago Matheus Menegatte 83 -
2
votes1
answer673
viewsHow to perform line breaking of a String within a cell in Excel with VB.NET?
How can I perform line breaking of a String with multiple cities concatenated to each state listed in an Excel cell exported in VB.NET and using Officeopenxml and Officeopenxml.Drawing. Excerpt from…
-
2
votes1
answer215
viewsHow many "cases" are possible in a "switch"?
Case 1 Informação.Text = "Olá Mundo!" Case 2 Informação.Text = "Tudo bem com você?" Case 3 Informação.Text = "Que horas são?" Notice that I added 3 (three) cases. Now a question; is there a limit to…
-
2
votes0
answers274
viewsGenerate an excel file in Vb.net without excel installed
Hello, I have an application that generates Excel spreadsheets, but some users are having several problems (users without license or office). Today I use the COM method (using the office dll). I…
-
2
votes1
answer577
viewsZeros on the left
I’ll be getting multiple numbers that can be up to nine digits. I would like when it was not 9 (111 for example) the system to automatically replace with 000000111. The examples I found on the…
-
2
votes2
answers414
viewsVB.NET - Find text in XML file
I need help to validate an XML file I’m using as a database. I insert the data correctly, but I need to do a validation to not insert repeated files, so I need to check if the text already exists…
-
2
votes1
answer82
viewsIs there equivalent to VB.NET Call in C#?
The question is simple. There is a keyword equivalent to Call of Visual Basic.NET in C#? In Visual Basic, I called a class method without having to declare a member explicitly to it: Call New Form()…
-
2
votes1
answer506
viewsWhen to use And, Andalso and Or, Orelse?
I don’t know when to use the syntax Or or OrElse and/or And or AndAlso, because I don’t understand what difference it makes in the logic circuit. Being in C#, And = &, AndAlso = && and…
-
2
votes1
answer220
viewsVB.NET Working with XML?
I’m filling out a ComboBox from a Xml: Dim mXml As New XmlDocument Dim Arquivo As New IO.FileInfo(My.Application.Info.DirectoryPath & "\Configuracao.xml") mXml.Load(Arquivo.FullName) Dim…
-
2
votes2
answers462
viewsHow to read a value from a Registry key
I’m trying to get a value from the registry key but the value returns empty, someone has another way to get the value from the registry key? Follow the code in VB.NET Private Sub ObterNomeDeRede()…
-
2
votes0
answers314
viewsOpen PDF in a new nagevador tab
I implemented a functionality in the system to generate a PDF file using iTextSharp, but this opening in the same tab, I would like it to be opened in a new browser tab. I tried to use the…
-
2
votes1
answer136
viewsGet last Access column value
I’m developing a small application that inserts data into an access database. I am able to enter the data however I wanted to get the last ID value entered (automatic number) for a msgbox. provider…
-
2
votes1
answer320
viewsHow to convert all ASCII written to text
I was able to convert all the text that the user wrote on TextBox to ASCII, but not the other way around. How can I make this conversion from ASCII to text? Private Sub BtnConvert_Click(sender As…
-
2
votes1
answer63
viewsClear label when opening the main page
I’m making a site in Asp.net using Vb and when I refresh delete the data from textbox’s and also wanted to clean what is written on the label can help me? I’m using the code below and it’s not…
-
2
votes1
answer55
viewsUse the values of the anonymous object within the constructor when instantiating the class in VB.NET
Hello, I am creating a solution to generate the Fiscal SPED files where I make all the validation rules of each class soon in the construction of the same. This is necessary because for each Field,…
vb.netasked 6 years, 2 months ago LeandroLuk 4,989 -
2
votes2
answers3641
viewsInclude quotes in variable value String
I would like to know how to declare a variable of type String in which the value has quotes in Visual Basic . net? For example: Public frase As String = "E ele disse: -"Olá a todos!"" Is there any…
-
2
votes1
answer48
viewsError opening platform V10 - Cannot perform Runtime Binding
When executing the code Dim objAplConf As StdBSConfApl = New StdBSConfApl() Dim Plataforma As StdPlatBS = New StdPlatBS() objAplConf.Instancia = Instance objAplConf.AbvtApl = "ERP"…
-
2
votes1
answer440
viewsConvert Biometric template
I’ve been trying to generate a biometric template from a nitgen Hamster DX reader. This biometric template should be sent to a Topdata time clock, an Inner rep Plus, but the template it generates…
vb.netasked 6 years, 1 month ago Rodrigo Prado 192 -
2
votes1
answer32
viewsHow to add a certain value to an Integer of a JSON in Vb.net?
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 =…
-
2
votes1
answer150
viewsHow can I compare two listbox items one by one
I’m developing a new software which checks digital signatures and has 2 ListBox. The first with the hash from the files contained in the Directory chosen by the user, the second with the signatures…
vb.netasked 5 years, 11 months ago Helder Da Silveira Ventura 125 -
2
votes1
answer198
viewsStock document creation on V10
Good afternoon, I am trying to create a stock document in the After Recording in Sales Editor event, but I am unable to declare objects... Dim objDocStock As InvBEDocumentoStock Dim objLinhaDocStock…
vb.netasked 5 years, 3 months ago Bruno Gomes 400 -
2
votes1
answer82
viewsWhat is the build flow of the . NET framework?
I’m starting my walk on .NET. I’m programming in ASP.net but I can’t understand how an Asp.net project turns into html + javascript. I suppose there’s a compilation process behind it. Apart from…
-
2
votes1
answer290
viewsHow to read XML in Vb.net?
I created a program that generates a XML as is: <Pastas3> <Grupos pasta="C:\...\Arquivos\Videos"> <Video>C:\...\Arquivo 1</Video> <Video>C:\...\Arquivo 2</Video>…
-
2
votes1
answer58
viewsWhy does the conversion take place in the wrong way?
When performing the conversion of a number I need to format it, and unfortunately it is not coming out the way I need it. I need to format a number of 11 digits in CPF, but when putting the…
-
2
votes0
answers108
viewsDisplay derivative expression in Visual Basic
I am using the package "Extreme Optimization" to learn how to use calculus and mathematically more advanced programs using the VB language. However, I need help saving the program in memory and…
-
2
votes0
answers45
viewsXML reading in VB.NET
Good morning gentlemen, I’m having a hard time reading some XML fields. For example, I am developing a sales software and at the time of reading the XML for printing it is pulling only one item…