Click here to Skip to main content
15,889,795 members
Everything / Programming Languages / Visual Basic 6

Visual Basic 6

VB6

Great Reads

by Chris Boss
Visual Basic 6.0 just doesn’t want to disappear. Why ? Likely many have written vital applications using VB 6.0 and Visual Basic dot.net is so different that it is not a viable option.
by Duncan Edwards Jones
Part 2 in the series showing how to write a debugger in VB
by Len Holgate
This example COM component provides 3 COM objects for using the Win32 Mailslot IPC mechanism. The component may be useful if you need to communicate from VB using Mailslots.
by kirkaiya
A very simple, XAML-based month-view calendar that shows appointments, exposes events, and allows dragging appointments in the current month.

Latest Articles

by ToughDev
How to convert OFT to .NET Windows Form in VS
by Paul Aurelian Gagniuc
This article shows how to mix two signals into a third, in variable proportions.
by FranciskaR
More on fluid simulation
by FranciskaR
A new approach to fluid simulation

All Articles

Sort by Updated

Visual Basic 6 

30 Jan 2010 by #realJSOP
Nope. You can write a service that runs without anyone logged in, though.
30 Jan 2010 by #realJSOP
I can't "give the code", but short of just manually making a list of them and manually inserting the info into the db, I would write another program that uses reflection to retrieve a list of objects that are derived from or of type Form and MenuItem, and then insert them into the DB. The...
1 Jul 2010 by #realJSOP
I had the code all typed out and was ready to submit, and then I realized that you were after VB6 code, so I deleted it. Tough nuts to you, bucko.Besides all that, this is a homework assigment...
15 Sep 2010 by #realJSOP
There are a few ways to implement interprocess comms.0) Registered messages that all of the applicable applications know about1) Named pipes2) TCP/IP sockets3) Shared memory via a DLL (yes, you can still do this in 32-bit).If it were me, I'd evaluate the possiblity of combining all...
22 Dec 2010 by #realJSOP
Dim count as integer = arr.Length
25 Dec 2010 by #realJSOP
If you can't write the code, hire a programmer to do it for you. The people here won't do it for you. That's not what the site is about. We *help* programmers who are having problems with code they're actually writing.
26 Dec 2010 by #realJSOP
When people talk about "audit trails", they're usually referring to databases, where everything done to the data in the database is tracked according to who updated the data, and what the update was. In that case, you would want to set up triggers in the database itself to automatically record...
12 Feb 2011 by #realJSOP
Titlebars aren't used to create menus. Are you sure you have your terminology correct?
15 Feb 2011 by #realJSOP
Use the appropriate SpecialDirectory to store the data. Specifically, you're interested in CommonApplicationData.This link is for .Net, but you should be able to find the specific info you want by using...
6 May 2011 by #realJSOP
See my corrections to your code. Try using the debugger, and see what you come up with. The debugger is a free tool that's installed with Visual Studio.BTW, it should go something like this:Private Sub cmdEqual_Click() num2 = txtDisplay.Text If x = "+" Then num1 +=...
8 Jul 2011 by #realJSOP
VB6 doesn't have an integer type that small. You're going to have to cast the value on the C# side to a Byte before passing it to your VB6 app, or change the type in the C# side to be a Byte instead of a SByte, (which I think would be a bit more tedious to do, but more maintainable in the long...
21 Aug 2011 by #realJSOP
This might steer you toward an answer:MSDN - Starting and Ending a Component [^]
27 Aug 2011 by #realJSOP
You can't run a Windows desktop application until the computer (and subsequently, Windows) has started, and a user has logged in. It's impossible. Period.
31 Aug 2011 by #realJSOP
That's a VBA error - is office installed on the other computer?
21 Nov 2011 by #realJSOP
Why not just start a thread that does whatever it needs to do on a schedule. When it's time to perform the task, see if the system is idle. If not, sleep for a minute and try again.
20 Dec 2011 by #realJSOP
Make sure that both you and your client have the latest version of SAPI installed (you may have to install the latest sdk as well if you need to update your installation).
23 Dec 2011 by #realJSOP
You can't. You can only logon via the OS login screen - manually - or by setting the OS to boot automatically without a password.
25 Dec 2011 by #realJSOP
If you mean Windows login, you can't. If you mean logging into your own app, that's a lot different, and I'm sure you can find code already written if you just breakdown and use google.
27 Dec 2011 by #realJSOP
Is there a reason you can't use the VB6 built-in shell stuff?
27 Mar 2018 by #realJSOP
After the button is clicked, clear the Points collection before adding the new points.
4 Aug 2022 by 0x01AA
You need to specify the file format explicitely. This works for me: private void buttonExcel97_Click(object sender, EventArgs e) { string safeExcelFilePath = @"c:\temp\cp.excel"; string excel97File =...
31 Oct 2017 by 1Future
Hi All, I need to convert a vb function to c# but i'm not an expert in VB and matter of fact is i have never coded in VB before. Does anyone know of any tools that would let convert a VB function into c#? I have tried search the internet but i can't seem to find anything that supports VB6. ...
7 Jun 2012 by 204.sharma
Hi, I want to make a control that work as a picturebox control and support visual basic 6,C#.net and vb.net language.I know how to make a custom control in .net but i don't want to use that way.i want to show it in control toolbar.Thanks in advance
16 Nov 2012 by __TR__
You might find some useful information in this article.NET Code Conversion - Convert your code[^]
16 Dec 2012 by __TR__
Here is a similar threadFace detection security with webcam by using Visual Basic[^]You can also try google[^]
7 Jul 2013 by _Asif_
What i understood from your question is that you want to builk insert data in some table in the database. If this is what you want then yes you can do that. You could build an xml that contain the data that you want to insert and pass it to a stored procedure. In that stored procedure you can...
23 Jan 2015 by _Asif_
One solution could be to store all these parameter information in some form of XML. Then at run time you can load this XML in memory and then have a function which creates parameter by reading this xml. This will definitely reduce your code base significantly but it will increase your memory...
23 Feb 2010 by _Damian S_
VB6 is no longer supported. VB.NET Express is freely available from Microsoft... I would recommend using that instead.Having said that, what you are proposing is not a trivial task. Firstly, you need to differentiate between people and other objects (pot plants, dogs, shadows etc), in real...
25 Nov 2011 by _Damian S_
Couple of things... are you populating your checked listbox first? If so, remember that your index is zero based, ie: it goes from 0 to n-1 where n is the number of items in your list.Also, there's no need for you to set the value of selectedIndex1 to CheckedListBox1.SelectedIndex, as you...
29 Nov 2011 by _Damian S_
You can use Crystal Reports to add reporting to VB6, however VB6 is now a dead language, so if you are just starting out, I'd recommend using VB.NET.
29 Nov 2011 by _Damian S_
There's no need for you to use an array. I assume this is a homework question, since you explicitly want to find out how to locate the smallest number using a loop... You can get it directly from the database by using the min() function.Here's a code snippet for how to go about it - you...
11 Jan 2012 by _Damian S_
Create a report (if you are using VB6, try Crystal Reports) that has the information that you want on it, rather than printing the actual form. Clearly your form is too large for an A4 page when printing - this won't change regardless of the resolution of your monitor.
28 Oct 2013 by _Damian S_
The general concept you are asking about is known as "cascading combo boxes" - this is where the values available in subsequent combo boxes are based on previous selections...Depending on exactly what you are wanting, you could have a simple select statement for your first combo box like...
10 Feb 2012 by _iris_
Hi there,I want to implement c#-dlls into a vb6-project. Everything works fine at both developers' computers as long as the dlls are compiled there and registered for COM interop via Project Options.When the finished exe is transferred to another PC and the dlls are there registered using...
20 Feb 2012 by _iris_
Thank you for the guess :) - looks like it's something vb6-specific, for the target computer to understand the exe it has to be transferred per a complete setup, visual studio for vb6 supplies tools for that. now it works at the target computer.i'm not sure yet if other developers can use...
19 Nov 2013 by _Maxxx_
I don't know xojo.However, if it is a simple app, you already have some xojo skills, and xojo seems that it will enable you to have both the desktop and web app with a common code base, then I would stick with that.Developing in PHP or ASP.NET or whatever else would seem to me to require...
5 Aug 2014 by _Maxxx_
This should help[^]
11 Sep 2013 by _nurhan
i would like to know if there any ways to count the column in table in vb6, because i'd try find it but i just can get the row counting and field count....i'm using ADODB,mySQL and VB6...another is, i'm using OPENSCHEMA method to get the column name, is there any other way than using...
12 Sep 2013 by _nurhan
http://p2p.wrox.com/access-vba...
18 Sep 2013 by _nurhan
hi, how can i get datatype of certain table?i use openschema(adschemaprovidertypes) like this; getGetColumnDataType(j) = ClmnsTypeRecordset("TYPE_NAME")but, i get only transact SQL here, before this i'm using; getGetColumnDataType(j) =...
30 Sep 2013 by _nurhan
http://www.dreamincode.net/for...
24 Oct 2011 by A PandiaRajan
Hi Friends,how to get PDF page count from vb6 coding. thanks in advance
22 Nov 2011 by A PandiaRajan
All,i found some coding from Google for excel to access import. my excel have more than 6000 character in single cell, 6000 character not loaded into my access database tables. please solve my problem any one. thanks in advance.Regards,Pandian.
2 Jan 2012 by A PandiaRajan
All,How to add radio button in Mshflexgrid. this is possible? if so any one send code for me. thanks in advance
1 Jun 2010 by A.ghalehnoee
Hi friendsPls,help me in write program ,I want change Fonts in GSM modem,Can you help me?thanks a lot.ghalehnoee
11 Feb 2010 by a.randy24
hi to all vb masters out their,I'm new here and i just want to know the code in vb6 to detach the database in sql 2000 for metocopy the .mdf.. please help! this is for my school project...thanks in advance..
18 Feb 2010 by A_Kanwar
Hello, I am having trouble figuring out how to move items in a listbox up and down. The listbox is loaded from a table in the Access Database. I am trying to use an "override" feature to reorder the priortiy of certain items. I cannot seem to figure out how to do this in MS Access!!. Could...
1 Mar 2004 by aarrabi76
Getting emails from address book using outlook object, and other folders
4 Nov 2012 by Aarti Meswania
basically we use AT commands to read/send sms from mobile/Modem(SIM card).http://www.smssolutions.net/tutorials/gsm/receivesmsat/[^]visit links to achieve this function in .net...How To Send and Receive SMS using GSM Modem[^]Send and Read SMS through a GSM Modem using AT...
12 Feb 2013 by Aarti Meswania
SMS = Short Message Serviceso,that you can not send Long messages through Short Message Serviceyou have to split your long sms in to chunks :)Happy Coding!:)
15 Mar 2013 by aarya @ geetha
Hi sir, Am arun, doing intern, I have a problem with this work, I know littel bit abot the vb6 and i am some what good in .net. Can ou help me by providing useful guidence and related code for the above request.ThanksArun kumararun143ravula@gmail.com
2 Feb 2011 by aattanayake
Hello,I'm new to .NET. I have an application that is running in VB6. It sends text through COM1 port to another device.When I converted the VB6 code to .NET the string it sends out is different! I have tried so many things and don't know what to do. I used a serial data analyzer and found...
27 Feb 2004 by Abbas_Riazi
Building COM components that can be called from any IDEs that support COM with MATLAB COMBuilder toolbox
2 Mar 2004 by Abbas_Riazi
Building COM components that can be called from any IDE that supports COM with MATLAB COMBuilder toolbox.
22 Apr 2005 by Abbas_Riazi
A utility for bulk scanning, converting the scanned pages to PDF and burning them on CD/DVD for archiving.
13 Sep 2013 by abbaspirmoradi
Create a loop and add data to your collection in the loop.Then check if collection contains value show error, Else add data to your collection..For Each input As var In inputList If OrdLines.Any(() => { }, str.Item1.Contains(firstinputvalue)) Then ' show error ...
11 Nov 2013 by Abdul Imran
i want to download free microsoft visual basic 6.0 software.so please can you send me any link of site address please.
31 Dec 2013 by Abdul Imran
How to get the all grid values(in VB 6.0) while performing the operation on that grid view only, Actually my requirement is I am using data list to add values to data grid now I want how many values are selected from data list it(those values) should not be display again in data list.Kindly...
11 Jun 2011 by abedalrahim_a9090
hello im create application on visual basic 6 ...the application is about point of sale Im design a data report form and when Im call itby datareport1.printreport there is an screen apppeare to save a page need to print and then the page printed now.. how I can skip this screenI...
6 Sep 2012 by abel626
Whenever I minimize my VB6 Application it leaves a white blank screen exactly where the application window was. How can I stop that?HERE IS THE FULL STORY:I have a Single Document Application, some call it Single Document Interface (SDI) written in VB6, that includes a Single Forum with...
25 Sep 2012 by Abhijit Parab
Hi,use following link to convert your code from C# to Vb and From Vb to C#http://converter.telerik.com/[^]
27 Dec 2011 by Abhilash Gandhewar
how to rename excel file which is generated from asp application?
8 Feb 2013 by Abhilash Gandhewar
I have ADODB.RecordSet '800a0007' out of memory error.Please give me solution ASAP. It's very urgent.Thanks & Regards,ABHILASH GANDHEWAR
1 Jan 2010 by Abhinav S
Scroll down to the last post here[^].
4 Feb 2010 by Abhinav S
DO you mean a .Net dll file in VB6.Yes, that is certainly possible.Search on the internet for COM Interop.
17 Apr 2010 by Abhinav S
This[^] link is not for VB - however, it may give you some ideas.
1 Jun 2010 by Abhinav S
I did a search on the internet and came across this.
16 Jun 2010 by Abhinav S
No one will send you the code.Have a look here - this[^] may help you.
1 Jul 2010 by Abhinav S
You need to first split the string based on the blank spaces that you find within it and store them in an array. You will then need to check if each of the alphanumeric characters within this array are numeric or string.
8 Dec 2010 by Abhinav S
See here[^]. It may help.
25 Dec 2010 by Abhinav S
You could use the event log as shown here[^].
26 Dec 2010 by Abhinav S
See here[^].
12 Jan 2011 by Abhinav S
See this[^] thread. It may help.
18 Jan 2011 by Abhinav S
See here[^].
11 Feb 2011 by Abhinav S
This[^] might help.
15 Feb 2011 by Abhinav S
You can try using the registry.
20 Feb 2011 by Abhinav S
This[^] should help you.
28 Feb 2011 by Abhinav S
Try the shutdown commandline operator[^].More specifically, have a look at the computer name option.
16 May 2011 by Abhinav S
Why dont you try doing a search for this on the internet?I did a search and the first link returned was this[^].
26 May 2011 by Abhinav S
You need to close the file before deleting it.There is no way way the delete script will work unless the file has been closed.
31 May 2011 by Abhinav S
If you search on the internet or msdn - you should be able to find the solution to most of these errors. See here[^] for a complete on why this error occurs during migration from VB6 to VB.Net.
3 Jun 2011 by Abhinav S
Text-To-Speech...
11 Jul 2011 by Abhinav S
something simiar in VB.Net would be - Dim NewMDIChild As New Form2() NewMDIChild.MdiParent = Me NewMDIChild.Show()
15 Jul 2011 by Abhinav S
This[^] might be useful to you.
26 Jul 2011 by Abhinav S
I think you need to debug the source code inside the VB6 dll.The error is coming from there, so the code lines that you have pasted in the question are really not going to help.
28 Jul 2011 by Abhinav S
Have a look at A class to print and print preview a DataGrid control[^]
25 Sep 2011 by Abhinav S
DataGrid Filter[^] might help you out.
1 Oct 2011 by Abhinav S
You need to build a COM callable wrapper as shown here[^].
20 Oct 2011 by Abhinav S
Tryhttp://co...
26 Oct 2011 by Abhinav S
First, the term "static object" is a misnomer. A static class cannot be instantiated in .Net.You can expose a static method or class in .Net.Instead of CreateObject you can use the new keyword and that will create an instance of a class for you.In case you don't want to do all this,...
30 Oct 2011 by Abhinav S
Here[^] is a list of string characters in Visual Basic. A combination of InStrRev, Len and Mid should give you the solution.
1 Nov 2011 by Abhinav S
What you are trying to achieve is easy to implement.Run a while loop on the string until spaces are found (using IndexOf).Till you keep getting a blank, replace with a random number.Have a look at the String.Replace method[^].Pseudo code would look like -while (s.IndexOf(' ') !=...
26 Jan 2012 by Abhinav S
Have a look at step 11 in this article[^].This[^] could help you as well.
11 Feb 2012 by Abhinav S
This[^] should help you out.
10 Mar 2012 by Abhinav S
Use the UCase$ string function.Here[^] and here[^] is more on the function.
18 Mar 2012 by Abhinav S
Some questions here[^].If you do a search on the internet, you will find many more questions and answers.
18 Sep 2012 by Abhinav S
You need to build an installation that will then be an exe that can be executed on any machine to install your program.Here[^] is one such link that might help you.
17 Jan 2013 by Abhinav S
Some of the posts on this thread[^] will certainly help you out.
21 Jan 2013 by Abhinav S
These links should help you out -http://kenneththorman.blogspot.in/2010/09/vb6-builk-uploading-images-to-oracle.html[^]http://support.microsoft.com/default.aspx?scid=kb;en-us;103257[^]
22 Jan 2013 by Abhinav S
These discussions might give you some ideas -http://www.andreavb.com/forum/viewtopic_3523.html[^]http://bytes.com/topic/visual-basic/insights/641546-blob-retrieve-image-stored-database[^]