Most voted "visual-basic-6" questions
Use for Visual Basic 6 or earlier versions. Do not use for VB.Net or other BASIC dialects.
Learn more…218 questions
Sort by count of
-
2
votes1
answer123
viewsRename multiple files with VB6 Database data
I have a table with the following columns ID, Cod and Nome, I have a folder with hundreds of images, these images are with the beginning of the name equal to column Cod table, that is to say: Cod…
-
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
answer102
viewsPerform action for each line in an SQL search - VB
I wonder if anyone can help me with the following question. In a VB code, I want to perform the search for products in an SQL table. For each product found I would like to add a button in a panel.…
-
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
votes2
answers859
viewsReturn File Name in VBS
Is it possible to return the name of a file/program by a VBS script? Type when dragging and dropping into the script or opening with... the script, it returns the name.
-
2
votes1
answer81
viewsPublic Type (VB) for Java
I have a project that runs on Vb and I have to move on to Java, in part I have the structure statements. My question is: What is the best way to do this in Java without loss of performance? The…
-
2
votes3
answers1724
viewshow to close Word opened by VBA
For each Execution of the Deletesel function, a "WINWORD" is open in memory, even with the Close and/or Quit command it does not close. Sub DeleteSel(msg As Outlook.MailItem) Dim objDoc As Object…
-
2
votes2
answers121
viewsError compiling project with VB 6. Pass to . Net
I am not a developer in VB. I took a project for 5 days, through a consulting, but it should be all in SQL Server. Well, it turns out, that some changes on screen should be made. I opened VB 6…
-
2
votes1
answer814
viewsError opening Mysql connection via ADODB
I’m trying to connect an application made in VB, Visual Studio 2017, using ADODB as a connection, but it is with several errors for different connection options. Already anticipating me, I checked…
-
2
votes2
answers910
viewsHow to call a variable from others?
My intention is that the code goes through 9 Textbox checking if they are filled with names or empty. For each Textbox filled would be added 1 in a counting variable and would be allocated the text…
-
2
votes1
answer208
viewsSeparate all items from a string
I’m trying to make a system of save/load, I’m stuck on the loading part of the game cards, which are numbered for example: 1,2,3. To string contains the card numbers and other information:…
-
2
votes1
answer573
viewsCounter to insert blank line every 5 equal cells
Hello, I’m trying to make a macro for a button, which puts a blank line every 5 cells with equal content, but I’m quite layy in VB syntax and I’m not sure if the logic is correct either, example of…
-
2
votes0
answers72
viewsWebservice VB.NET - Return list(of ) without structure TAG
I have a need to generate an XML code returned through a Webmethod() in the following format. Notice the content within the TAG <user_list>, which must have a list(of) or an unassembled…
-
2
votes2
answers122
viewsDoes it make sense to use an api to access another api? (bematec one in this case)
I was asked to make an API here where I work to integrate some systems with nfce. For that, they hired the one api. More information can be found here:…
-
2
votes1
answer114
viewsHow to find out how many slots/memory banks are being used in VB
I am developing a project in Visual Basic and would like to know how I can read the amount of slots/ RAM banks there are in use in the computer, also the value of RAM installed in each slot/ bank in…
-
2
votes1
answer1307
viewsVBA, create a macro so that I can compare two lists of names?
I’m having trouble creating a macro that can check the equality between each cell of a list and, if both are different, leave a blank line above the cell. For example: TO THE B C C D D AND AND F G H…
-
2
votes1
answer103
viewsEntrance and exit in Arena Visual Basic
I’m having trouble with input and output data between the simulation of Rockwell Arena software and their native Visual Basic. Basically what I want is to receive simulation data for Visual Basic,…
visual-basic-6asked 5 years, 10 months ago Renan Ávila 21 -
1
votes1
answer1601
viewsPass parameters in a VB6 application
How do I pass VB6 parameters? Private Sub Command1_Click() Dim cnpj As String cnpj = "tal" Dim chaveCliente As String chaveCliente = "tal" Dim chaveAcesso As String chaveAcesso = "tal" Dim status As…
-
1
votes1
answer132
viewsHow do I get the images in the location the mouse pointer is in?
I need to maintain a system that was originally developed in vb6 and I’m passing to Vb.net. The system uses the CS2 Indesign api, whose documentation is very bad. Part of the program consists of…
-
1
votes1
answer858
viewsOrdering a Listview alphabetically in Vb 6
I have two lists A and B, the data of the list A are exported from the BD, these already bring ordered alphabetically to the list. From this list I add data in the other list (list B), the data that…
-
1
votes1
answer40
viewsWhat is Text= Resources from a dxe button?
I want to know what is this chunk that code from a dxe button:Aspxbutton, and how it works? Text="<%$ Resources: Textos, BotaoLogin %>"
-
1
votes0
answers253
viewsUse a . tlb that has a dll . net dependency
I have developed a library that uses dll itextsharp, however this library I wrote in VB.Net will be used in a VB6 program and therefore it is necessary to generate a tlb of the same. The doubt…
-
1
votes1
answer314
viewsDLL Error Report Crystal Reports
I’m trying to generate a report on 'Crystal' in my company’s system programmed on VB6. However, the following error appears in the annex. I searched on this DLL, but the answers I got didn’t solve…
-
1
votes2
answers140
viewsChange color of various Panel’s dynamically
I have the following code in the button action: pnl1.BackColor = Color.DarkOrange pnl2.BackColor = Color.DarkOrange pnl3.BackColor = Color.DarkOrange pnl4.BackColor = Color.DarkOrange pnl5.BackColor…
-
1
votes1
answer315
viewsRead JPEG image, convert it to PDF and save to disk - Visual Basic 6
I will create a button, which when clicking it, it reads a JPEG image and can convert it to PDF and save to disk. I would like a tip in source code so I can start this project. Thank you very much.…
-
1
votes1
answer120
viewsValidation of Textbox in Visual Basic 6
How do I validate the textbox to enable or disable a button? That’s the code I’ve made so far. If IsNumeric(txtPedidoCotacao.text) Then cmdMontaPedido.enabled = True cmdCancelar.enabled = True…
-
1
votes0
answers192
viewshow to resolve "Object library not Registered" VB6
Suddenly, I can’t use my programs anymore because of this message: Object library not Registered I can’t fix.
visual-basic-6asked 9 years, 9 months ago Marcos Habib Bistene 11 -
1
votes3
answers5685
viewsHow do I open a file from a specific directory in . PDF in Visual Basic 6?
I created an application which saves files in a specific directory. What I would like is to click a button, I can open this file . pdf.
-
1
votes1
answer190
viewsStatic Method in Interface
I have a class to encrypt data. But it will be used as a DLL, and for that I need to create an interface to show the methods( tested without the interface and it didn’t work). However, it contains 2…
-
1
votes1
answer2287
viewsConsume DLL C on VB6 or C#
I have a DLL (gbasmsb_library.dll) provided by Farmácia Popular responsible for returning some functions for interaction with this environment. I think it is a DLL written in C, I need to consume…
-
1
votes1
answer89
viewsFeeding codebehind list and displaying value in Asp
I am for the first time having deeper contact with an application in VB.NET. In this case, I need to feed a list that I am 'turning into an object' and later, display it on my Asp. I’m usually used…
-
1
votes1
answer175
viewsHow to create two classes with the same methods, even though one of them is not`Partial`?
I can create a class to implement the class System.Console, without creating extensions? Example: 'A original, da mscorlib: Public NotInheritable Class Console (...) End Class She’s marked as a…
-
1
votes1
answer190
viewsHow to block mouse scroll in Datagridview?
To disable Scrollbar on a Vb.net grid, there is a problem and I want to block to fix it.
-
1
votes1
answer217
viewsReceiving Information from a Website
Hello, everybody! I have a problem and I don’t know what else to do about it. The situation is as follows: My program accesses a website selling airline tickets... He needs to get the first ticket…
-
1
votes1
answer236
viewsSlide effect on a panel without that lag
My question is the following: How do I remove that lag that causes when a Panel/Button (etc) is updated by the method Controle.Update()? That’s why I use it to make the slide effect, but this effect…
-
1
votes1
answer77
viewsSoftware with cost. Help?
Hello, everybody! Well, my situation is this: I have a program and I want to charge for the use, but I realized that if I left free there would be more customers. So I thought I’d limit the system…
-
1
votes2
answers128
viewsList the daily records?
My program does the insertion of records of both the services and the computers of a school library. As such the library office has to make a daily record and I would like to know if it is possible…
-
1
votes1
answer346
viewsDelete button on a Listview
I have a problem with my delete button, IE, it works but when I delete something from your ID, it does not erase automatically. I have to restart or add a new record to delete it. Any suggestions?…
visual-basic-6asked 9 years, 6 months ago Forrobodo 85 -
1
votes1
answer339
viewsFill out web forms with the textbox
I’m trying to import information from a textbox to auto-fill forms on a website, but visual studio 2013 always returns the error: "An unhandled Exception of type 'System.Nullreferenceexception'…
visual-basic-6asked 9 years, 6 months ago user27798 -
1
votes0
answers27
viewsgraphic in basic visual
How do I so that when I press the button, VB draw the chart using the component chart? Is giving problem in the private sub, because two appear: that of button and that of chart.…
visual-basic-6asked 9 years, 5 months ago Priscila Guedes 35 -
1
votes1
answer471
viewsVB6 Webbrowser - Fill text field that has mask
Hello, I created a VB6 program (I know VB6 is very old, but it still works very well) that assists in filling out data on a page using Webbrowser, and I need this program to partially fill in a text…
-
1
votes1
answer49
viewsGet multiple pieces of a String equal to Python
I want to make a first dimension matrix that contains the fields of a string equal each block of the Python language, example: primeiro bloco é esse isso ainda faz parte do primeiro bloco agora aqui…
-
1
votes1
answer72
viewsReportviewer - Data merges columns when exported to excel
I am generating a report and exporting to excel, using Reportviewer and Dataset. Reportviewer consists of a table and two textbox, that refer to the title and company, and an image. After doing some…
-
1
votes2
answers2679
viewsCopy text from a textbox
How can I make the "Copy" button copy all text from the textbox?…
-
1
votes0
answers48
viewsHow to turn Procedure into DLL?
Good evening. I am new in the area of programming, I got an internship recently despite not having experience. For without experience I do not say layman, have only notions of POO, Database, etc.…
-
1
votes0
answers188
viewserror obtaining Printer information VB6
When I will perform a print through a Data Report when opening the windows printer screen the following error occurs: error obtaining Printer information. Any suggestions?
-
1
votes1
answer308
viewsWinsock (VB6) vs Socket in C#
I have a code on VB6 that uses MSWINSCK.OCX to send commands to a device, the code is below. But I have to switch to C# and I’m trying to use the Sockets class, the problem I’m facing is that the…
-
1
votes2
answers209
viewsRelate and compare Mysql and VB6
They gave me a system of a company to update, they have 3 tables Mysql 'vendaesc, sale, venda_forma_pagamento'. From what I understand the vendaesc table serves to store the items of sale. I need to…
-
1
votes1
answer71
viewsForm_load routine does not work
I have a form 'frmPerfis' that when opening it executes the routine 'Rotinarefresh' (to update data from a listview) that is inside the 'Form_load'. Inside this form has the form 'frmPerfisAlter'…
visual-basic-6asked 8 years, 10 months ago Milton Silva 11 -
1
votes0
answers16
viewsTransfer file from server to client and send to LPT1
I need help with a function that does the following: I have a file .txt on disk C: server Send this file .txt for a client machine Send the content from .txt to the door LPT1 customer’s Currently…