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
-
4
votes1
answer91
viewsHow to create an endless process?
Simple question, how do I make my application process to be "unstoppable" by the system? I want when a user tries to close the application to appear the message "Access denied", and when it forces…
-
4
votes2
answers236
viewsDo Regex.Split on what is not between "..."
Which regular expression I use to get the comma character that is not inside the fields "...", example: line1, "line2", "hello,world", 215, X + Y ^ ^ ^ ^ I want to get only the nominees, I’m using…
-
4
votes0
answers177
viewsHow to monitor the progress of a VB.NET INSERT query?
I’m storing files in a database SQL server using a varbinary(max) field. I wonder if it is possible to detect the progress of the file upload (in which case it would be a INSERT in the table) using…
-
4
votes2
answers87
viewsHow to draw items from a Listbox using quicksort
I am carrying out a project for the University that consists in carrying out a software that makes the 'Sort' of a listbox using quicksort , Blubblesort etc... In VB.NET I made an array to generate…
-
4
votes2
answers98
viewsFaster way to add an item to a list, 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…
-
4
votes1
answer66
viewsWhy can’t we use Await inside a Catch, Finally and Synclock in VB?
Why can’t we use the operator Await within the statements Catch, Finally and Synclock in VB? The C# 6.0 has support to use the Await within the Catch/Finally.…
.net vb.net characteristic-language try-catch asynchronousasked 7 years, 6 months ago vinibrsl 19,711 -
4
votes3
answers857
viewsDollar next to number in Tostring format
When I try to format a value using .ToString("c2") do . NET the symbol of the coin comes stuck with the number. This makes the formatting ugly and wrong to my point of view. Example:…
-
4
votes0
answers56
viewsNo ideas for Load logic
I recently asked for help on this topic> Separate all items from a string The problem is, my game is an offline Card-Game that has an "inventory" of cards, only I have no idea how I actually "put…
vb.netasked 6 years, 9 months ago Luan Devecchi 151 -
4
votes2
answers2190
viewsConvert string to float on C#
What I’ve learned so far when we want to use the command Console.Readline() to read data that the user type we have to perform a conversion when this data is not of the type string, I know the…
-
4
votes1
answer92
viewsError opening form inside panel
I would like to open a form inside a panel, but when it opens, it is always the same size and in the same place regardless of the size of the form or the location. Dim rv As New formRV rv.link =…
vb.netasked 5 years, 7 months ago Lucas Pedro 297 -
3
votes2
answers646
viewsHow do I convert an Html string into an image file?
I have a problem in Itextsharp to put certain HTML in the PDF, because it has some limitations in relation to CSS. So I thought of converting HTML into image and simply attaching it to my document.…
-
3
votes2
answers1600
viewsCompare the values of an entire column of Datagridview with a variable
I would like to compare the value of a string type variable with an entire column of Datagridview. There is a code that looks at the whole column, more or less like this textbox.Text =…
-
3
votes2
answers1406
viewsChange registry key values Windows
It is possible to build an application which it searches for a key in the Windows registry with an exact name and when finding change its value by a user-defined value? If possible what is the best…
-
3
votes1
answer1867
viewsHow to associate datatable fields to Datagridview columns?
My problem is following, I make a query in the database that returns me a datatable with a wide variety of fields. The goal is to display this query in datagridview, however, displaying only some of…
-
3
votes1
answer157
viewsHow do I use Openssl functions in VB.Net?
Is there a DLL that I can use the functions of Openssl, to work with signatures, PEM, etc.? How to work with it?
-
3
votes1
answer314
viewsAuthentication - Current.User.Identity returning null
My login Dim senha = "null" If Not (senhaLogin.Text = "") Then senha = senhaLogin.Text End If Dim Usuario = GetUsuario.Where(Function(a) a.Email = emailLogin.Text And a.Senha = senha) If…
-
3
votes1
answer597
viewsconvert a string to Vb.net - Convert.toDouble
I’m trying to convert a string in double Vb.net: Dim result as double Dim ValueString as string = "-42.1942339" result = Convert.ToDouble(ValueString) Console.WriteLine(result) I’m getting the…
-
3
votes1
answer81
viewsNetframework dependencies in the project folder?
I would like to know whether it is possible to incorporate .dll that my project uses Netframework in its own folder. In this way it would not be necessary to install the Netframework on the client’s…
-
3
votes1
answer1080
viewsError sending Pedidoenviorps XML to Webservice da Prefeitura São Paulo NFS-e
I am getting the following error return from Webservice when I try to send XML <?xml version="1.0" encoding="UTF-8" ?> <RetornoEnvioRPS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"…
-
3
votes5
answers2964
viewsHow to display a confirmation message when clicking delete from the grid option?
I’m trying to do this job, but I’m not getting it! Page.ClientScript.RegisterStartupScript(objLivros.GetType(), "confirm", "confirm('Tem certeza que deseja excluir esse item?')", True)…
vb.netasked 9 years, 1 month ago WellDotCom 703 -
3
votes1
answer3145
viewsHow to take duplicate values from an Arraylist
I would like to know how I can separate the double values, an example: I have a Variable FormaPagto defined as a ArrayList, In this variable I have 6 data: 0 - Money 1 - Debit 2 - Debit 3 - Money 4…
-
3
votes2
answers6412
viewsComments of multiple lines in Visual Basic
It’s like I put multiple-line comments in Visual Basic?
-
3
votes0
answers162
viewsDecryption code error using Vb.net!
I’m having trouble decrypting with the code below that I found on the net: When debugging you can see that in the property TripleDES.Key has the value 16 in length and the Buffer 15, is that why?…
-
3
votes2
answers2482
viewsRepeat header in print
I can’t release the report I’m using, so I took a generic model on google to help me explain the doubt. Assuming my report is as follows:: It is mounted via HTML on a system that works with both C#…
-
3
votes0
answers4251
viewsHow to update ASP.NET website hosted at Locaweb
I’ve had a website running for four years on a client of mine. The site was developed in VB.Net, and Locaweb migrated its servers from Windows 2003 to 2008 and consequently changed the Trust Level…
-
3
votes1
answer57
viewsWhat are the differences between these Nuget packages?
I use the Javascriptengineswitcher.Msie package in my webapps on Asp.net mvc, I found 2 more Javascriptengineswitcher packages what’s the difference between them what the pros and cons are?…
-
3
votes1
answer582
viewsHow to remove certificate messages from Webbrowser?
How do I remove those annoying messages showing that the page certificate is not valid or insecure from the component System.Windows.Forms.WebBrowser? I’ve tried many ways and I haven’t found an…
-
3
votes2
answers135
viewsJavascript - Populate a field with paragraph
I am developing a javascript to popular a text box, but I came across a situation that is causing me difficulty. Need popular with this message for example: TEST TEST TEST But I’m not getting to…
-
3
votes1
answer329
viewsHow to write bit information to SQL Server database?
I am developing a VB registration system and need help to record the information of a CheckBox in the SQL Server database. The column is in bit in the database, I don’t know how to pass the…
-
3
votes1
answer504
viewsText overwriting the header
I tagged C# because virtually all the examples found on the internet are in this language and "translate" to vb.net is quite simple. Man report based on the iTextSharp is dynamic. It has a header…
-
3
votes1
answer545
viewsInputmask by the model
Hello, I’m using the plugin jQuery - maskedInput, where I take the id of my input and make the mask: $("#CPF").mask("999.999.999-99"); is working, only that would like to use this mask through the…
-
3
votes1
answer333
viewsHow to add scrollbar in Datagridview VB?
I need to add a scroll bar for the amount of lines in a DataGridView, because I don’t want to work with pagination, then the question arises, how to do?
vb.netasked 8 years, 6 months ago Nayron Morais 276 -
3
votes1
answer1330
viewsTraverse all lines of a Datagridview
I have this for: For Each DataGridViewRow In F_Principal.DataGridView2.Rows How do I select queue by queue? There is way to see how many times the queue is repeated?…
-
3
votes1
answer1361
viewsProgram memory cleaning in use
My application is accumulating memory, only thing it does, that’s the bottom. After 10-15 minutes, it comes to consume more than 1.5GB of memory, and continues consumption non-stop. Run a Timer…
-
3
votes1
answer246
viewsCreate second column in Datatable
I have a DataTable where with the code: DT.Column.Add("1ª", gettype(int32)) For I = 1 To 30 DT.Rows.Add(I) Next(I) This For lists column 1 from 1 to 30. 'DT is declared with a new DataTable, in this…
-
3
votes1
answer85
viewsClosing requests
I currently make several HTTP/HTTPS requests to different websites using the classes HttpWebRequest and HttpWebResponse using framework .NET 4.0*. We are facing a problem when there comes a time we…
-
3
votes2
answers488
viewsConvert string array to string in VB
I need to use SPLIT in multiple data, but I need to convert the string to string array for this. I’m putting String() to receive the string array variable, but VS keeps telling me that one dimension…
-
3
votes2
answers176
viewsWebclient downloads a wrong string
I’m trying to create a virtual intelligence system, and hosted the language files on my FTP. These files are from a language I made myself, called SVDB, and hosted on FTP, and when I download in the…
-
3
votes1
answer1367
viewsConvert MER (Entity Relationship Model) diagram to VB.NET or C#
I developed the diagram of the tables of the layout of the XML of Nfe, are 58 tables with its relationships. I would like to generate the classes automatically from the diagram or it can be through…
-
3
votes1
answer92
viewsChange of environment
I’m moving from environment, from VB.NET to Java (Netbeans), but I’m still not sure if some of the possibilities of . NET can be performed in Java with Netbeans. My first doubt materializes in the…
-
3
votes4
answers12456
viewsVBA - How to split a word direct mail into multiple files . pdf
Personally, my case is as follows: I participate in the organization of some events in the area of IT and free software and the printing of certificates is always a problem. In the last event I…
-
3
votes1
answer53
viewsIs there any way to shorten the property declaration?
I know in C# it is possible to do this: public string propriedade { get; set; } Is there any short way to declare properties with the procedures Get and Set in Visual Basic? The only way I know is…
-
3
votes1
answer1299
viewsHow to include a column that dynamically demonstrates image in a Gridview
I am generating a report and exporting to Excel, but as most reports the number of columns is dynamic and I am mounting the gridview dynamically. I need to demonstrate a column that displays images…
-
3
votes1
answer2266
views -
3
votes1
answer347
viewsSelect column with Excel *** value
Good morning friends! I need some help. I am making a "Select" of an Excel spreadsheet in VB.Net to import the data in the database but a column is not bringing the data correctly. This column has…
-
3
votes1
answer117
viewsIn an API url, what does "Scope" mean?
I’m working on a Slack API using Vb.net to program. On the page of the site there is how to assemble the request url of the API methods, but in one of the parameters is highlighted: "Requires Scope:…
vb.netasked 7 years, 6 months ago Rafael Agostinho 31 -
3
votes1
answer285
viewsFill Grid dynamically with Dapper framework return
I have a screen written in VB.NET Winforms, where the goal of it will be to execute SQL commands without the need to open a sql studio. For simpler commands like delete, update, alter table among…
-
3
votes1
answer394
viewsClear whitespace of an array
I’m not finding the answer p this question, simply what I want to know how to do is to remove empty positions from an array, for example: var(0) = "Remover" var(1) = "" var(2) = "espaços" var(3) =…
vb.netasked 7 years, 1 month ago Matheus Menegatte 83 -
3
votes2
answers1084
viewsPass SQL value to a VB.Net variable?
I have this code that runs an SQL: strsql = "select Nome, Senha from users where Nome=@field1 and Senha=@field2" objcmd = New Data.MySqlClient.MySqlCommand(strsql, objconn) With objcmd…
-
3
votes1
answer37
viewsWhy can I invoke functions without parentheses in VB.NET?
In C#, this code does not compile: public static string Teste(){ string val = ""; return val.Trim; } Because the function Teste requires a return of the type string, and Trim is a MethodGroup. That…