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
-
0
votes1
answer101
viewsDatagrid for textbox
Boa Pessoal. I have a DataGridView where I have the field id. The id is currently filled with 10 values, that is, the last number to appear in my DataGridView is number "10," and I want to have a…
-
0
votes1
answer80
viewsCreate form and gridView dynamically with VB6
I need to create a form dynamically by code and add a gridView and a boot to that form, someone can help me?
-
0
votes1
answer63
viewsSqldatareader Not Closed?
Imports System.Data.SqlClient Public Class F_Contentor Dim F_Topo As New Form2() Dim F_Principal As New Form3() Dim Prof_Ses_Nome As String Dim Prof_Ses_Id As Integer Const cs As String = "Data…
-
0
votes2
answers375
viewsHow to insert and execute parameters in a precedent in oracle 11g in vb6
PROCEDURE pr_consulta_rg_site ( p_rg_cidadao in varchar2, p_dt_nascimento in varchar2, p_rg_cidadao_o out varchar2, p_no_cidadao_o out varchar2, p_dt_nascimento_o out varchar2, p_dt_expedicao_o out…
-
0
votes1
answer113
viewsDatareport Landscape VB6
I am using the vb6 Datareport with landscape mode orientation, so: RptFPagamentoDetalhe.Orientation = rptOrientLandscape RptFPagamentoDetalhe.Show vbModal It works normally on the development pc,…
visual-basic-6asked 8 years, 6 months ago sNniffer 1,009 -
0
votes1
answer2312
viewsHow to sort listview according to a specific column
I have a listview that shows more or less the following: ID NOME IDADE 0 Luis 19 1 Julio 33 2 Marcio 27 The problem is that when the ID comes in at 10, the listview starts to put the 11, 12, 13...…
-
0
votes1
answer94
viewsVB - SETFOCUS - Focus a textbox after failed validation
Hello I’m trying to use the Setfocus function but when I debug it gives error. Therefore, depending on if and Else validation in certain cases there is an msgbox that alerts to the error and when…
visual-basic-6asked 8 years, 3 months ago REDSKIN76899 1 -
0
votes1
answer175
viewsVb.Net - Total registration in descending order
I created a project in VB.NET in it when searching for the code shows me the total of record that that call has, but I need it in descending order since when searching my form always loads the last…
-
0
votes0
answers62
viewsHow can I cast a list in VB
I’m starting to program in Visual Basic and I need to do cast of a list of objects. Below is an example of a class containing a list of products in one of its attributes. Public Class…
-
0
votes1
answer967
viewsOpen or Form1 or form2 on winform program startup
I have a program in vb6 and has two buttons - A scanner and another for scanning images. I created a program in c# winform where the project has 2 Forms - a Form1 for the scanner and another form2…
-
0
votes1
answer160
viewsVisual Basic 6.0
Hi, I’m new to that language. I am creating a student registration form with SQL server 2008 and connection .ADO. At the time of entering and saving the registration data the sign up button inserted…
-
0
votes0
answers112
viewsAdd Msflexgrid records via VBA textbox
How can I add records to Msflexgrid via a VBA textbox? I found a way to do it ( http://www.macoratti.net/gridedit.htm ) but for vb6, using screen.twipsperpixelx that does not exist in vba... Anyone…
-
0
votes1
answer44
viewsRoutines between different formats in VB
Good, I’m making a VBA application with 2 Forms. In Form1 I have a flexgrid that loads records from a database and in form 2 I have a textbox that introduces registration in the same database. What…
-
0
votes0
answers373
viewsChanging data fields and label in a Crystal Report
I have a report and need to change the layout, IE, remove a label and a data and change another label and other data. I have move, but it does not work. See image and even Crystal version. I need to…
-
0
votes0
answers243
viewsHow to connect Socket with Websocket?
Maybe the title is a bit silly, but I’ll explain, I have a Server Socket that I did in VB and I also have a Client Socket made in Javascript for web, only problem is that for Client(Web) understand…
-
0
votes0
answers35
viewsError to close form
What could be happening, because when I order to close a form with Unload me, is giving the following error : Unable to Unload Within this context
visual-basic-6asked 7 years, 7 months ago neibala 31 -
0
votes1
answer158
viewsPassword lock after 5 attempts
I created the routine that counts number of user attempts when logging into the system, if it misses the password for five times the system blocks the user. However my code is not taking into…
visual-basic-6asked 8 years, 1 month ago Milton Silva 19 -
0
votes0
answers76
viewsDouble type number sum error - VBA/VB
look at the situation: I have a routine that does a sum of Price * Qty and stores in a variable to show the total. The sum is composed of 226 items. From 215 the partial result of the sum would be…
-
0
votes1
answer23
viewsRadiobutton is loose in the form
I took a project and the screen has 3 radiobuttons. I needed to add a room. I went in the component palette and gave two clicks. Making the appropriate changes, like caption, position I ran the…
visual-basic-6asked 7 years, 7 months ago pnet 14,727 -
0
votes0
answers299
viewsError while trying to open an Excel file
I am trying to open a document in excel via vbScript. I am not succeeding in running, the following error is generated, without description: -2147417851 The problem occurs when executing the…
-
0
votes1
answer136
viewsI need to update my Acces(.mdb) database from an external computer
Hello, I have a client with two stores and I need the database to be interlaced. I need a north on how to start studying this. Obs: the database is local, not in the cloud
-
0
votes0
answers228
viewsError compiling project in Visual Basic 6
When I try to compile my project gives this error: I don’t know if it’s a problem with the Crystal Reports (See the background in blue), or if it’s really the problem of Visual Basic 6. I have never…
-
0
votes1
answer123
viewsCompare Plugin Notepad++ is it possible to use on VB6 or . NET?
I need to know if it is possible to use the Notepad++ Compare plugin in projects made in VB6 and . NET. If yes I would like some tips on how to use it. And I have no idea how to start The system I…
-
0
votes0
answers468
viewsVBA - generate csv from cells
I am wanting to generate a CSV file from the data of 3 columns, but they presents me an error, could help me? Follows code below: Sub GravaTXT() Dim wbkExport As Workbook Dim shtToExport As…
-
0
votes1
answer5283
viewsVBA - Application definition or object definition error
I am trying to recover the amount of rows from an excel spreadsheet to format it, but am coming across application definition or object definition error. Below is the code snippet. Private Function…
-
0
votes0
answers84
viewsError in TASKKILL Command
I would like to close a program when there is error in my system, for this I am using: TASKKILL /F /IM executavel.exe /T I used to develop a machine with W7 and it worked, but the client uses W10…
-
0
votes0
answers17
viewsRun and control an application
I used VB code to, Running and Activating an Application Fill in (user, access pass) Enable the desired item in the menu Send commands to record, filter, query or print data Menu items are enabled…
visual-basic-6asked 6 years, 5 months ago Carlos 1 -
0
votes1
answer765
viewsHow to open a Userform with the same name as a button? VBA Language
My program consists of 20 buttons and 20 Userforms. I wanted to simplify the program and make a single Subroutine. Each time I press a button, the Checkbutton Checkbutton analyzes the name of the…
-
0
votes2
answers1643
viewsHow do I copy the default Userfom textbox value opened?
There’s an easier way than writing x = UserForm1.textbox2.value ? That instruction means: Copy the value of the Userform1 textbox. I wanted to replace the "Userform1" statement with something that…
-
0
votes2
answers461
viewsCheck if active internet connection
Is there any function that returns if there is an active internet connection? I mean, not only the connected network card, but yes, an active connection effectively. Vlw.
visual-basic-6asked 6 years ago Lucio Mestrinare 25 -
0
votes1
answer37
viewsHow can I get Serialnumber from the BIOS
I’m searching and can’t find a VB6 function to fetch the machine’s BIOS by running the system. Can someone help me?
visual-basic-6asked 6 years ago Lucio Mestrinare 25 -
0
votes1
answer30
viewsIs there any way to use self Execute functions in vb6?
In javascript we can write this in several ways: (function () { console.log("Olá"); })(); (function () { console.log("Olá"); }()); ! function () { console.log("Olá"); }(); void function () {…
-
0
votes1
answer33
viewsDisplay a text box formatted for filling
Good morning Gentlemen, I’ve searched the entire Internet, but I don’t think I know how to express myself, so I’ve come to ask you... I have a VB command to change the ip of Win7 but I would like…
visual-basic-6asked 6 years, 2 months ago Eduardo Saraiva 37 -
0
votes1
answer125
viewsError inserting data into recordset with oraOLEDB
Good afternoon, everyone. I have a problem in various applications here in the company that are in VB6. When I try to include a record in a recordset an error occurs (it is described in the code),…
-
0
votes1
answer30
viewsReplace Database in Visual Basic 2010
Good morning, I am conducting a school project in Visual Basic 2010 with the link to an Access database. I happen to have to make some changes in the Database (Add Tables/Fields). I wonder if I can…
-
0
votes1
answer2827
viewsHow to change the size of the Activex Excel checkbox (Checkbox)?
I can’t change the size of the activex Excel checkbox, there is some way to change the size because it is too small and the font size option is disabled, I really wanted to leave it the desired…
-
0
votes1
answer347
viewsError at runtime. Failure in attempted VBA Outlook operation
I created a macro to run a routine in outlook. The code works perfectly on a PC, but when I replicate the code to another macro I get the following message: Runtime error '-2147221233(8004010f)…
-
0
votes1
answer938
viewsSum and display more than 24 hours hours in Access 2007 VBA
I’m using Access 2007 to develop a garage control form, which contains information about trips made by drivers. I need to calculate the total time of each trip, and that period can be longer than 24…
-
0
votes1
answer59
viewsFilter per period in Vb
I created a period filter in Vb with the following code: Public Sub filtrar() Dim dtinicio As DateTime Dim dtfim As DateTime Dim tabela As New DataTable Dim strsql As String dtinicio =…
visual-basic-6asked 6 years, 1 month ago Bruno 1,304 -
0
votes0
answers13
viewsInterpret file . uni with VB.net
I have a file . ini with the following structure: [00000000000] parâmetro1=xxxxxxxxxxxxxxx parâmetro2=xxxxxxxx parâmetro3=xxxxxxxxxx and this pattern repeats itself for about 2000 times. I would…
-
0
votes0
answers7
viewsTrue Dbgrid 6 with VB 6 - Aftercoledit event does not work
Hello, in a VB 6 application, using True Dbgrid 6: type a code in a column; when I change column, I do a database search to bring the description of this code. In the event Aftercoledit(); on my…
-
0
votes1
answer25
viewsGrab specific part of a Vb.net string
Say hello, all right? Can anyone give a boost? I need to capture a specific part of the string I pull from a pdf. I needed you to capture the part of the code separated by delimiters (spaces), you…
-
0
votes1
answer46
viewsVb6 Tabstrip - How to view Tabs controls outside the scope
Greetings to all. My area is C, but I need to maintain a product implemented in visual Basic 6 . This product is a software configurator in c, its function is only to generate a file . ini for…
visual-basic-6asked 6 years ago Roberto Elias 1 -
0
votes0
answers7
viewsError message
good afternoon, how do I turn off the focus of ok button on error message? I’ll try to explain: in my project, when reading a code, if it has already been read, appears the code message already read…
visual-basic-6asked 3 years, 3 months ago Leandro Goulart 1 -
0
votes0
answers196
viewsConvert RTF to String via SQL?
Good staff I have a small problem, I was asked to do it through SQL to convert a text made through a Richtextbox (VB 6) to normal string, but is that this Richtextbox also serves to by Chinese…
-
0
votes1
answer124
viewsFixed Range Macro Problem
I created a macro to select cell information from a dynamic table and copy to a new table. Sub tabela_tratada_3_var() ' ' tabela_tratada_3_var Macro ' ' Range("D1").Select ActiveCell.FormulaR1C1 =…
-
0
votes0
answers49
viewsDifficulty connecting VB6 projects to the Database on using Availability Group Listener in the Connection string
Our scenario is using MSSQL database configured for High Availability and Listener was created to link the balance between instances. Some applications made in Asp.Net MVC projects we managed to…
-
0
votes0
answers63
viewsVisual Basic 2010 with connection to Access with images
Good morning, I am conducting a school project in Visual Basic 2010 with the link to an Access database on Football. But I want to do something more complex and include images in the players,…
-
0
votes0
answers41
viewsTreatment of exceptions of an Inputbox
I am doing an academic work where I have to pick up a data typed by the User and I am using a Inputbox for such. But the Inputbox displays several mistakes which I am not aware of. by clicking…
-
0
votes1
answer23
viewsReceive IRC CLIENT VB messages
Hello, I’m having a hard time receiving messages from an IRC connection made in VB, Here the Code: The library has already been added as a reference to Ircclient.dll. This speaking that…
visual-basic-6asked 5 years, 5 months ago By Deppy 9