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
answer17
viewsConvert Year to two digits
How to convert Datetime.now.year to two digits? Ex: 2021 to 21 My code: Dim ok As String = DateTime.Now.Year.ToString("yy") shortyear.text = ok Prints "yy"…
-
0
votes1
answer24
viewsHow to compare a string to a datarow
that’s the code: Dim clientesCadastrados As DataTable = MnipulaDB.ConsultaSql("SELECT CAMPO1 AS NOME FROM TAB_CLIENTES WHERE CAMPO21 =1") For Each cliente As DataRow In clientesCadastrados.Rows If…
-
0
votes2
answers313
viewsForm Migration to V10
Good, I have a form at V9 that is called in Keypress in a Sales Editor line and fills in a textbox depending on the line article. Artigo.Text =…
vb.netasked 5 years, 3 months ago Bruno Gomes 400 -
0
votes1
answer51
viewsProtected Friend in Vb.Net: the field is also visible in other projects
I am studying access modifiers in Vb.net and I came up with a question in Protected Friend According to the website macoratti.net: Protected: hides members of a class and "members marked with the…
vb.netasked 5 years, 2 months ago Vinicius V 163 -
0
votes0
answers22
viewsWith a global variable can I save the username to be shown later?
I have a program where when logging in (using a username that is already stored in the access comic) I can save a username to show later in the "main menu" used a label or a textbox. I thought about…
vb.netasked 5 years, 2 months ago DiogoAlves 1 -
0
votes1
answer200
viewsDatetime.Now Does Not Update If Time Changes
I have on application with a running timer, taking a 1000ms interval. This timer does some routines every X time, and among these routines the customer’s time is very important. we have already…
-
0
votes1
answer795
viewsPlay private videos with the Youtube API
Good afternoon people, I’m trying to make an integration with the Youtube API, where the videos can be played by an iframe on my page, which by the way is in ASP.NET. The documentation gave me this…
-
0
votes2
answers56
viewsWidening conversions and option Strict on
I’m learning about conversions and reading that article: Widening Conversions (I don’t know the term in English) The following conversions may lose precision: Integer to Single Long to Single or…
-
0
votes0
answers180
viewsWhy Attempt to read or write in protected memory.?
What I’m doing is taking a frame of some videos, but whenever I try to access the saved images I get Read or write attempt in protected memory. I can’t use them after "saving". What I’m doing wrong?…
vb.netasked 5 years ago Lucas Pedro 297 -
0
votes1
answer190
viewsPass form parameters to the reportview and generate proof with the information in Visual basic.net
All I want is to pass the parameters to the reportview and generate a voucher with the information that is in the text fields. what I can’t do is pass the parameters... I have an example in c#…
-
0
votes1
answer289
viewsVBA Variant array position for String
Good morning, I have in the Excel a search that returns a ARRAY of Variant filled with the full address of the found files. I need to pass each array position to one STRING, I’m trying to wear a bow…
-
0
votes0
answers18
viewsMultiple ranges in Excel with Vb.net
I am trying to set a range in Vb.net to write data in the blue marked fields: I tried to use this code I found on the Microsoft help pages but I think it is intended for VBA only: Sub ClearRanges()…
-
0
votes0
answers53
viewsError inserting data in table with column of the numeric type VB NET
Hello, I am having problems when trying to insert data in an SQL database through VB.NET. I’m migrating some vb6 projects to . net, I came across the first problem I spent the day trying to solve…
-
0
votes1
answer98
viewsSELECT SQL Server VB NET error
Using con As SqlConnection = getconnectionSQL() Try con.Open() Dim cmd As New SqlCommand("SELECT * From Diaria where data='" & data_SQL(TextBox4.Text) & "' and prefixo='" &…
-
0
votes0
answers80
viewsTransformation of Sales Document into Transport Guide
In version 9 when transforming sales document into transport guide the error is triggered: Automation Error If using the same code for another document type that is not a guide works correctly.…
vb.netasked 4 years, 8 months ago André Alves 11 -
0
votes0
answers98
viewsIntegrating C# projects with VB
I need to create a C# project that uses a DLL that was written in VB.NET. I added the dependency, imported the library and used the method. However, at the time of execution when I will consume a…
-
0
votes1
answer94
viewsError integrating document into inventory V10
Good afternoon, I have a routine that creates sales documents that already worked on V9 and I recently migrated to V10. The problem is that when doing the Update and when I have articles with series…
vb.netasked 4 years, 7 months ago Bruno Gomes 117 -
0
votes1
answer57
viewsVB Visual Studio Cells error
First of all, thank you for your help. I’m new to code and I couldn’t get an answer to these questions even with searching on the net. I am trying to develop a code in the visual studio in Vb.net…
-
0
votes1
answer77
viewsVBA/VB6 Status transfer of a current account document
I am developing a routine to allow you to change status of a shopping document, existing in Pending, for example from Pending to Unapproved state. The code: Function…
vb.netasked 4 years, 7 months ago Paulo Fernandes 123 -
0
votes1
answer456
viewsUncaught Referenceerror: method is not defined
I’m calling a method to convert my ajax request to a readable date, but I keep getting the message that the function has not been set, I don’t understand why, since it is literally the function just…
-
0
votes0
answers56
views'Undefined object reference for an instance of an object. ' Datagridview.Currentrow
System.Windows.Forms.DataGridView.Currentrow.get returned Nothing. Me.StatusTableAdapter.Fill(Me.DataSet1.Status) Me.FornecedorTableAdapter.Fill(Me.DataSet11.Fornecedor)…
-
0
votes0
answers135
viewsObject Reference not set to an instance of an Object - Does not display error message
My system (WEBFORMS VB.NET) has presented a null object exception(Object Reference not set to an instance of an Object), which happens only on the production server after an indefinite period of…
-
0
votes0
answers17
viewsASPX dropdownlist does not load image
I’m doing a dropdownlist to present only image, but this does not work, as this article macoratti.net/14/11/aspn_ddli1.htm . I even downloaded it and ran it on my machine and it didn’t work, could…
-
0
votes0
answers40
viewsReceive Webhook
I have a system in VB.NET where I need to receive webhook from the financial system that generates charges and receives payments. Every API integration is already working with this service, I just…
vb.netasked 3 years, 7 months ago Developer1903 717 -
0
votes1
answer24
viewsExtract XML in correct format via GET in API
I am integrating a system with issuance of fiscal notes. There is an XML search method of the generated note. The return of this query (GET), is an XML. This XML I access and save in a file to use…
vb.netasked 3 years, 5 months ago Developer1903 717 -
0
votes0
answers269
viewsvba runtime error '-2147221164 (80040154)': Unregistered class
i made a class library in visual studio 2019 using the . NET framework which is registered for COM interoperability and generates a file (.tlb). It was programmed in VB.NET and has a simple class…
-
0
votes0
answers24
viewsHow can I prevent error #1415 VB.NET Mysql?
I am doing a school work of a library management, whose database is in Mysql and the DBMS I am creating is done in VB.NET, and recently I started using Foreign Keys to create relationships between…
-
0
votes1
answer32
viewsMovement of ghosts in Pacman
I am developing a Vb.net project that is my attempt to create Pacman with moving pictureboxes. I am close to finishing, but I have a great difficulty that is to define the movement of ghosts. As I…
vb.netasked 3 years, 3 months ago Pedro Curto 3 -
0
votes1
answer69
viewsError accessing end-point using restsharp
I have an API (.NET Framework 4.8) that communicates with another layer (.NET Framework 4.0) where I have developed a method that persists an information in the database, and at the end triggers…
-
0
votes1
answer16
viewsError comparing Vb.net dates
I made a date comparison function. It compares the date of an input with a date column of a datatable. It follows the code: Public Shared Function GetNextDiaUtil(d As Date) As Date Dim feriados As…
-
-1
votes1
answer844
viewsData does not appear in datagridview, even if it is a populated datasource, why?
I’m trying to capture some information from the database, filter it and then run validation tests on each of the returned lines. Then I try to take the lines that failed the test and insert them…
-
-1
votes1
answer867
viewsHow to delete a file without extension by SHELL
In visual basic I use this command and I can delete all the files inside the cache folder of google Chrome as in the example below : Shell("CMD.exe /c DEL /q"%LOCALAPPDATA% Google Chrome User Data…
-
-1
votes1
answer1141
viewsError to install VB.NET application on Windows Server
I am developing an application on my notebook with 64-bit Win7 with VS2005 and VB Form. I did an installation on a Windows Server 32. I don’t use internet and when I install the application, it runs…
-
-1
votes1
answer952
viewsRead a. txt file in ANSI VB.net
I’m trying to read a text file using basic visual, but it puts "?" in the words with accent and cedilla, for example, how do I make him read the files in ANSI format ? this doesn’t work: Dim ArqTemp…
-
-1
votes1
answer254
viewsPossibility to drag a form with the mouse when its title bar has been hidden
I have a problem! When I try to move my program to some other place on the screen, I can’t, it seems to be fixed. Does anyone know how to solve? @PS: I tried this code provided by Roberto and it…
-
-1
votes1
answer482
views -
-1
votes1
answer57
viewsRaw does not render link in Vb.net
I’m doing a code snippet that also returns a string in Vb.net mvc 4.5 however the string is mounted correctly. But in the view @Html.Raw(item.metodo.ToString()) he is not presenting the links the…
vb.netasked 8 years, 3 months ago Fabio Mosk Fabinho -
-1
votes1
answer63
viewsHow to use Toolstripdropdownbutton on Vb.net?
I can’t find Toolstripdropdownbutton in Toolbox in my VS.
vb.netasked 8 years, 1 month ago Pablo Ferreira 93 -
-1
votes1
answer552
viewsthe field is too small to accept the amount of data you tried to add. Try to insert or paste less data
I am using Acess, and I have already checked the size of all fields and format also direct from the bank and also in Vb.net itself.. "insert into aplicacao (codigo, convenio, descricao , valconv,…
-
-1
votes1
answer89
viewsDatagridview - Sum If (Sum If)
I am creating a software in VB to analyze the balancing of jobs in factories. The software has a Datagridview as follows: I need to create a stacked bar chart (Stacked Bar) per post (each bar being…
vb.netasked 7 years, 8 months ago Fernando Ferrari Fernandes 63 -
-1
votes2
answers96
viewsOnly allows 5 attempts at key duplication Entityframework? a 6 badge in Savechange()
Key duplication in write with Entityframework in competition with many users only allows 5 attempts and 6 badge in Savechange() (example 1). If it is with Sqlconnection it does not give any problem…
asp.net-mvc entity-framework vb.net entity-framework-6 competitionasked 7 years, 4 months ago DIT 9 -
-1
votes1
answer2125
viewsHow to pass a Textbox value to Datagridview
How to pass what is written inside a TextBox.Text for a DataGridView? and how to save what is in DataGridViewin an archive .TXT?
vb.netasked 7 years, 2 months ago Mandrake Venom 170 -
-1
votes1
answer47
viewsVB - Too Many Arguments
Good, I have the following mistake: Error: Too many arguments to 'Friend Sub LerClientes1()'. In the following code: Imports MySql.Data.MySqlClient 'importar as classes do MySQL Imports…
-
-1
votes1
answer253
viewsError in Function, System.Indexoutofrangeexception
I’m making a login system, When you click on the start button it starts the following code: Function Prencher2() Dim line() As String Dim emailsenha As String = List.Lines(0) line =…
vb.netasked 7 years, 1 month ago Philippe Holanda 1 -
-1
votes1
answer154
viewsIs it possible in VB.net’s Geckofx to use `Getelementbyid`?
It is possible in VB.net’s Geckofx to use the GetelementByID? I made some attempts with the code using google.com: geckowebbrowser1.document.getelementbyid("lst-ib").setattribute("value", "teste")…
vb.netasked 6 years, 10 months ago Wadson Freitas 11 -
-1
votes2
answers1299
viewsHow to format a Double by swapping a semicolon and keeping 2 decimal places in VB.NET
I need to transform the result of a value of As Double for the Brazilian numerical standard that uses comma instead of dot (and also maintain only 2 decimal places), thus: ' variaveis de teste '…
-
-1
votes1
answer200
viewsHow to know the license of a given module in ERP SPRING V9
Is there any method in the SPRING ERP V9 API to know if a particular client has a bank license?
-
-1
votes2
answers41
viewsI can’t get the stock down
I am trying to decrease the amount of stock at the time of sale and without success, I used the code below, no error appears.. Public Sub UpdateDecreaseQuantity() Try For Each row As DataGridViewRow…
-
-1
votes2
answers29
viewsHow to disable the main form when another one was opened
Disable the main form when another one was opened without closing it so you can use the second form that was opened but not click on the main form
-
-1
votes1
answer210
viewsHow to create a basic browser only to run built-in Javascript codes
How can I create a basic browser in VB.NET or C# and run Javascript code inside it, and without showing the code? 'Cause I wanted to hide my JS code.