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
-
1
votes1
answer38
viewsMultiple Updates using One Query Data (SELECT)
I have this code to make a SELECT that returns multiple records or lines: Public Sub ConsultaFimFerias() Dim sqlCmd As String = "SELECT Id FROM tb_ferias WHERE Data2 < '24/03/2020' " con = New…
vb.netasked 4 years, 6 months ago DP WS Receptivo 77 -
1
votes2
answers199
viewsGet JSON return from URL in VB.NET
I want to access the URL ("https://economia.awesomeapi.com.br/usd-brl") to fetch the json Ask field. How do I request the URL and get the desired value in a variable? I tried something like: Dim…
vb.netasked 4 years, 5 months ago Developer1903 717 -
1
votes1
answer32
viewsRecover Milliseconds of a date recorded in an MSSQL Server 2019 BD with VB.Net + ADO.Net
I would like to know how to recover a date as given from the recorded Milliseconds in a MS SQL Server 2019 database using VB.Net + ADO.Net. Whenever I try to rescue the date, comes in the fomrmato…
-
1
votes2
answers49
viewsResult of the same account is different in VB and C#
I’m trying to use a formula that gives me the expected result in C#, when translating the code to VB.NET the result is completely different. I’m almost sure I did the translation correctly. I forgot…
-
1
votes0
answers38
viewsWhere am I missing? A code that tries to recover data from an Access database with VB.NET
Good night, My name is Lucas and may you help me with the following doubt. I have a Windows Form in visual studio where I have a button that executes the code below. It reads an X value in the…
-
0
votes1
answer1278
viewsHow to fill a Listbox using multi thread in VB . NET?
In a Windows Form Application I have a List Box that is filled from a list of IP’s. It works like this: there is a text file (config.eep) which contains a number of IP’s, by pressing a button to…
-
0
votes1
answer1273
viewsHow to update button form or event automatically?
How do I update a Private Sub _PAINEL_VENDAS_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load automatically and an event for example button? I have to use a…
-
0
votes1
answer1549
viewsORA-00942 TABLE DOES NOT EXIST error occurring in System.Data.Oracleclient. VB.NET
I have an application in Vb.net using .Net Framework 2.0. Below is an excerpt from my application code: strComando = "SELECT CD_LOCALIDADE, NO_LOCALIDADE FROM COPAGIS_GDB.MUB_LOCALIDADES WHERE…
-
0
votes1
answer50
views -
0
votes1
answer105
viewsSave Dword, Decimal value in 64 Bits
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click Dim Numero = 22i My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\MinhaChaveCriada", "DECIMAL 64 Bits",…
-
0
votes1
answer2105
viewsHow to get permission to write in the Windows registry via VB to HKEY_LOCAL_MACHINE key
Guys I’m trying to record a record inside the HKEY_LOCAL_MACHINE\SYSTEM and visual studio / visual basic won’t let me have access. It says I’m not allowed to record my record. My command:…
-
0
votes1
answer414
viewsAbout Crystal Reports, Visual Basic 2010 and Mysql
I have a dental clinic project, which has a form of treatment form. This form has 160 buttons representing the 32 teeth of a patient (each tooth is represented by a set of 5 buttons); Buttons may…
-
0
votes1
answer85
viewsConfiguration XML
I’m having trouble understanding an XML case The task I have to do is this: If in the register of at least one input, the storage center (esmart table, field10) for EXTC the system considers that it…
-
0
votes1
answer106
viewsConfigure visual studio 2010 to open pages . aspx always with source
How to configure the visual studio 2010 to open pages. aspx always with source?
-
0
votes0
answers198
viewsTimeout for Oracleconnection
I have a function to open the connection of the banks in Oracle and in this function I want to put a time limit to the attempt to connect to the bank. I tried to use ConnectionString in this way…
-
0
votes1
answer487
views -
0
votes1
answer53
viewsStoring Dataview values in a List
I am doing the maintenance in a discount system of a customer, the same was already ready but not functional, only applied the validation of the discount if there was a single item. What I need is…
-
0
votes1
answer1682
viewsCheck if a series of directories of a path exists in VB.NET
I’m still a junior programmer and I wonder if in VB.NET it is possible to create a series of directory checks to know if it exists (do not confuse with take the direct url and check); wanted more or…
vb.netasked 9 years, 10 months ago Vyctor Junior 109 -
0
votes2
answers2942
viewsHow do I get the Server time or current time of day and switch to the system via code?
I need to update an O.S system with the time of another micro, if this other micro would be a server. I would like to do this via code. Another method that would also help would be to take the right…
-
0
votes3
answers158
viewsCapture only the second part of the string
I have the following code to perform the method Split on a path: Dim ItemsCopy As Integer = 0 Dim Caminho As String = ContarItems(I) Dim SplitCam As String() = Regex.Split(Caminho.ToString, "=") For…
-
0
votes3
answers2375
viewsGrab part of the text that is between tags of a string
I have the following string: Meu nome é <nome> Nickolas Carlos<nome> I wanted to know how I can do in VB.NET to get only what is between the tags <nome> which in this case would…
-
0
votes1
answer235
viewsAdd List(Of String) to a Form’s Listbox
Guys I have the following code in my DLL FTP to get the folders from the server: Try Dim Serv As Net.FtpWebRequest = GetRequest(GetDirectory(directory)) Serv.Method =…
vb.netasked 9 years, 6 months ago Vyctor Junior 109 -
0
votes0
answers2070
viewsError Handlers Asp.Net
Staff need help with the item below. The error is occurring when trying to run a Web Site project in VB.Net. I have two in the same Solution, one wheel and the other one shows up. It is a project of…
-
0
votes1
answer46
viewsButtons, panels and other shapes in the CONSOLE
Well, these days there, I’m making a Console, very simple, and I was curious to see some apps made by super advanced third, with Menus, panels and even buttons! When you click on them, they give the…
-
0
votes1
answer91
viewsVB.NET with Acces database
I’m trying to make a CRUD here using VB.NET and Access, only when I’m going to perform a INSERT returns the error: "Sintax Error in INSERT INTO statement" Code: con.Open() Dim strCmd As String =…
-
0
votes1
answer555
viewsPass control as parameter
Hello, I’m doing a reduction of some lines of code in Vb.net, one of them is a search function that creates an Autocomplete from a database, the code that does this is as follows: Private Sub…
vb.netasked 9 years, 5 months ago Hebert Lima 987 -
0
votes1
answer177
viewsVB.NET - Public Shared Function
I have a function in a VB.NET system that I use to execute queries in BD. The function is Public Shared type for simplicity. And there is doubt whether competing accesses to the function could…
-
0
votes1
answer522
viewsHow to limit the number of lines after ordering the Vb.net/C#datatable
How do I limit the number of rows on a datagrid after Defaultview.Sort Follows the code: da = New OleDbDataAdapter(MySQL, Conexao) dt = New DataTable("Pedidos") da.Fill(dt) dt.DefaultView.Sort =…
-
0
votes0
answers93
viewsHow to write DWORD(32 Bit) value inside an existing Key?
I’ve been researching this on the Web and even found it here. Web content on this, from what I’ve seen is little too much. My question is as follows. How to save a DWORD(32 Bit) value within an…
vb.netasked 9 years, 2 months ago Márcio Silva Lima 1 -
0
votes1
answer31
viewsRegular expression does not detect first entity
That expression: (?<=.*"")\s is not detecting the first space it should detect: <object name="Arrow" id="40" price="$400" description="Uma flecha comum."> the correct would be to detect the…
-
0
votes1
answer225
viewsGet all IP-related connections
Is it possible to get all ips that are connected to an IP in Visual Basic? For example, I take the IP of all players who are connected to a game server. I tried the variable…
-
0
votes1
answer362
viewsModify form a parti User control properties of a VB.NET DLL
I have a Library raised in Visual Basic . NET that accesses the properties of a Form, and so far so good! The problem is that when I try to access the component UserControl nothing on the form is…
vb.netasked 9 years, 3 months ago Vyctor Junior 109 -
0
votes1
answer132
viewsReports , Doubts with sums and dates
for a few days I have had a small problem where the client requested us a change in a report we have in our system written in VB.NET Basically, Filter my Datagridview, and through it I assemble the…
-
0
votes1
answer611
viewsHow do I see the largest number of a given set of numbers as well as their average?
I need to create the code for a user to enter an undetermined number of numbers and then see the largest number and average it. Each entry is made by clicking on button "confirm" (done in the design…
-
0
votes0
answers24
viewsChanging the container of a custom form
I made a custom form, with the style of Windows 10, but there is a problem, it is considering the caption bar as part of the form client panel. This is the form. The problem is that, the position 0,…
-
0
votes2
answers449
viewsHow to expedite VB.net database searches / Access97
Use a query searching in 3 different tables, returning this query attribute in a Datatable that will fill a Datagridview. The problem is that the search itself, this a little time, I used the TOP as…
-
0
votes1
answer60
viewsGetdata VB.NET function
I’m trying to create a function to update Datagridview. I added the following code but gave an error "Unable to clear the list" Code: Private Sub GetData() Try con = New SqlConnection(cs) con.Open()…
-
0
votes1
answer40
viewsIf you have this character, discard the capture
How do I stop regular expression from capturing what it has \} in the text? I want you to get all the }, but I want if it’s escaped with the character to be discarded, not ignored. I’m trying that…
-
0
votes0
answers1101
viewsHow to convert a page . aspx to PDF and attach in email in VB.NET
I have a Link that opens a boleto on a .aspx. I need to convert this link to PDF, IE, convert the Boleto in PDF and attach it in the email I send via VB. I tried the steps of this tutorial:…
-
0
votes1
answer22
viewsVB.NET Manipulating a "Birthday Drop Down"
Hey there, guys! I’m having trouble setting a date on a Dropdown from Yahoo’s website... The website link is: https://na.edit.yahoo.com/registration?.pd=&intl=br Here’s what I’m trying to do,…
-
0
votes1
answer80
viewsHow to Resolve Settingsfile File Error
I’m creating a project and in it, I use a theme to look good. When I put the theme, all right, there was no mistake or anything, just today, that gave this problem, and I can not see the Form. The…
vb.netasked 8 years, 9 months ago Gustavo Dias 460 -
0
votes1
answer68
viewsHow to download a simple text file?
As I bass and catch the String contained in an online file on Windows Phone 8.1 SDK?
-
0
votes1
answer251
viewsHow to pass listview items to text
I have a listview with some items and columns, I would like to know how to pass everything to a textbox, in text form same. Example: The table: ID NOME IDADE 0 Luis 47 1 Juca 69 Na Textbox: 0 Luis…
-
0
votes1
answer327
viewsHow to compare two dates in Datagridview and change color when VB.Net expires
My code Private Sub CadastroDataGridView_CellFormatting(sender As Object, e As DataGridViewCellFormattingEventArgs) Handles CadastroDataGridView.CellFormatting If…
-
0
votes0
answers158
viewsIs it possible to select input file[file] Webbrowser VB.NET?
I am making an application where it will be necessary to select an image. so it will be automatic, and then it will publish. it is possible somehow to select this image, or even to upload, apply in…
-
0
votes1
answer150
viewsHow to open different rdlc in a single Report Viewer control?
What could be wrong in my code below? Private Sub LocalReport(ByVal digito As Integer) Dim relatorioCorrente = New Microsoft.Reporting.WinForms.ReportDataSource()…
-
0
votes1
answer55
viewsNo e-mail enough
I am trying to assemble a code for sending email on my page. No error occurs, but I also do not receive the email. Would anyone know why? Default.aspx.Vb Protected Sub btnEnviar_Click(ByVal sender…
-
0
votes2
answers62
viewsDatagridview and checkbox - strange behavior.
I have a datagridview with checkboxes. I have this code: Private Sub DataGridView2_CellMouseClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles DataGridView2.CellMouseClick If…
-
0
votes1
answer48
viewsHow to get a Type from a string
For example, I want a string containing the information "System.Windows.Forms.Button" return a button object New Button(), would that be possible? Note: Is tagged C# as it is easy to translate from…
-
0
votes1
answer568
viewsExport Gridview to CSV in excel file / VB.NET
Following examples found on the web and even stackoverflow I filled the button btnGerarCSV thus. Protected Sub btnGerarCSV_Click(ByVal sender As Object, ByVal e As EventArgs) Handles…