Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score See the $99.00 Sendkeys replacment?
Kevin Provance - 24 Nov 2007 11:05 PM - 19 messages
In light of Karl's recent success (and genius) with the SendKeys replacement, I thought it would be humourous to share this:  Some wiseguy thought he would do the same thing, package it up as an ActiveX DLL and ...
Score Print between two dates
Robert - 24 Nov 2007 4:44 PM - 13 messages
I am using VB6.0 SP5 I am using the following code in a DLL. Public Function CountTotalYearPayments(Optional StMnt As String, Optional EndMnt As String, Optional Yr As String, Optional CompID As String, Optional VendorID As String) As Object ...
Score Enter key without Sound
hon123456 - 24 Nov 2007 4:41 AM - 3 messages
Dear all,            I have a text box. And I write Keypress event and detect that is the key is vbKeyReturn. In some machine, when the Enter key is pressed, there will be a sound. ...
Score Math functions in VB (or even a dll somewhere)
Nondisclosure007 - 23 Nov 2007 11:48 PM - 4 messages
Hello.  If this is the wrong group for this, please let me know.  I'll post it somewhere else. I've been doing data imports into MS Excel (ver 2007) and using the CORREL function.  What I was wondering was is there anything like this ...
Score need help with fm20.hlp
senatormorgan2000 - 23 Nov 2007 10:46 PM - 4 messages
can anybody help me with a copy of fm20.hlp. if So Please email me at Senatormorgan2***@yahoo.com ...
Score Named Parameters and Late Binding
Robert Morley - 23 Nov 2007 5:28 PM - 6 messages
Hi everyone, I've never really made the switchover to using named parameters (or named arguments in some of the documentation), and for some reason I always had it in my head that you couldn't use them with late binding.  Since I don't use them much, I never had the ...
Score Calling a Macro from another workbook
JohnJack - 23 Nov 2007 5:12 PM - 2 messages
Hi, Yes I have read up on the different ways of doing this, but I always come to the same problem. In my current code I have the line Application.Run ("T1Seed1.xls!Main") Which works fine (it calls the "Main" macro in T1Seed2.xls).  But once ...
Score Text String wrapped in "
Duane - 23 Nov 2007 4:24 PM - 5 messages
When I write a text string to a .csv file each line gets wrapped in " marks, how do I stop this from happening where what is written is only what is in my string? ...
Score Hi
Paulo - 23 Nov 2007 4:19 PM - 5 messages
Hi, windows vista can run VB 6 applications? Thanks! ...
Score Code Required
kalyan - 23 Nov 2007 1:02 PM - 2 messages
Hi Can any one tell me how to remove a bulleted text in a word document thru a code written in VB6.0 Thanks & Regards KALYAN ...
Score VB6 Interface implemented in a Delphi COM Object
Eric - 23 Nov 2007 12:13 PM - 15 messages
Hi, We have a VB6 app that, according to the doc's, supports COM add-ons. These add-ons are required to implement 2 interfaces (from an object in the VB6 app) and flesh out the interface methods with whatever our ...
Score How to get size/position of taskbar???
KeetClassic - 23 Nov 2007 11:46 AM - 1 message
This is totally driving me crazy... Everytime I write an app that depends on the form's size and position I run into this same problem... To restrict my forms position so that it remain onscreen I just ensure that ...
Score How to get size/position of taskbar???
KeetClassic - 23 Nov 2007 11:45 AM - 3 messages
This is totally driving me crazy... Everytime I write an app that depends on the form's size and position I run into this same problem... To restrict my forms position so that it remain onscreen I just ensure that ...
Score forms3 latest version
JMKG - 23 Nov 2007 10:47 AM - 4 messages
Hi, I have had to build a new development machine because of more and more problems occuring on my existing one. I installed VB6 Exterprise, then VB6SP1, then my 3rd party controls etc., and finally Office XP Pro. So far all seems well except for the following: ...
Score Logging into a website with VB6
Ian Cowley - 23 Nov 2007 8:28 AM - 2 messages
Hi guys, First off, yes I'm still using VB6 - I don't do a lot of programming and I don't have time to upgrade my projects/learn VB.net. Now, I have a project that downloads information from a website.  The ...
Score HDD serial number and MAC address in VB-6
SlfTst - 23 Nov 2007 6:46 AM - 5 messages
Hi, I need the VB-6 code to retrieve the following: 1. The serial number of the HDD (manufacturer's serial number) and 2. The MAC address of the LAN adapter. Please help. ...
Score Page Count
Robert - 22 Nov 2007 5:01 PM - 12 messages
I am using VB 6.0 SP5. I am using the following snippet. 'snippet.     x = Printer.ScaleWidth / 2     A$ = "(" & Printer.Page & ")"     Printer.CurrentX = x - Printer.TextWidth(A$) / 2     Printer.Print A$ ...
Score VB6 Runtime error 300 ???
Anbeyon - 22 Nov 2007 9:57 AM - 3 messages
Hi I am hoping somone might be able to advise. I have developed an application in VB6 that has been running in the field used by customers for a long time now.   I just received an email from a customer thast says they are getting a Runtime error 300 ...
Score Opening Folder Browse Dialog On Client Side Options
Moshiko - 22 Nov 2007 8:09 AM - 2 messages
Hi guys, I am writing a website and I would like to write a user control (ActiveX? DLL?) that can open the Windows Folder Browse Dialog from the client. I do have a user control (a DLL project)  that opens the relevant ...
Score ShowInTaskbar
Lorin - 22 Nov 2007 7:35 AM - 2 messages
VB6SP6 A 'child' sizeable form is used as a toolbar. I do no want it to appear in the Taskbar. The user can optionally set the owner / OnTop or not. Public Function SetOwner(ByVal hwndToUse, ByVal hwndOfOwner) As Long     SetOwner = SetWindowLong(hwndToUse, GWL_HWNDPARENT, hwndOfOwner) ...
Score clickable image map of Italy...
sal21 - 22 Nov 2007 7:33 AM - 8 messages
i need a clickable/sensible mapp of Italy in VB6... Example: Click on region>show list of province>select a pronvince>make event... ...
Score Reading a text file from the internet
Rob M - 22 Nov 2007 2:55 AM - 14 messages
Hi all, Does anyone know how to load a text file for input from the internet?  I'm looking for the *internet* equivalent of this: open "c:\Whatever.txt" for input as #1 line input #1, VariableName So, basically what I want to do is this: ...
Score What is NULL?
Jack - 21 Nov 2007 7:29 PM - 5 messages
From MSDN: This value can be NULL if the operation is not associated with a window. =========================== What should I use for NULL: vbNull or 0& ? In addition: I know that vbNull = -1 When is a proper way of using vbNull? ...
Score How do I know the content of one specific row in datagrid
joyo2003us - 21 Nov 2007 6:47 PM - 2 messages
Hi, I am using DataGrid. I just want to know the content of one specific row (Actually, it is first row) in datagrid. For example, when user click row 5, I would like to know what is the content of Column(4) in ...
Score Select records at random from DB table?
Martin - 21 Nov 2007 5:56 PM - 7 messages
I have a situation where I want to extract 500 records *at random* from a subset of a table that will contain about 2300 records. For the life of me, I cannot figure out how to do this. This will be inside my VB6 program; it's an ordinary MSAccess MDB ...
Score Snipping Tool in Vista
chrisl - 21 Nov 2007 4:29 PM - 3 messages
I cannot find the snipping tool listed anywhere. Where is it hiding? ...
Score Signed Assembly Not Work in ActiveX
Gunady - 21 Nov 2007 4:21 PM - 1 message
Hi All, I have created assembly to be used by ActiveX in IE. It works fine when I haven't signed the assembly. It works and is displayed in IE. But, when I sign the assembly, the ActiveX cannot even be displayed in ...
Score Which Lang I should start with?
Adityatheg8 - 21 Nov 2007 4:08 PM - 4 messages
hi, I am a beginner, simple know some basics of java and Html. wanted to start learning programming. Not sure where to start. I am goona learn Visial C # next semester. - thx Adi ...
Score Using Count as variable name
Waldy - 21 Nov 2007 3:56 PM - 6 messages
Hi there,                I am trying to run some .ASP code in a VB test app and came across the following issue.  When I select Start with Full Compile, I get an ...
Score How do I save changes in the IDE?
Rob Richardson - 21 Nov 2007 1:59 PM - 5 messages
Greetings! I want to create a toolbar to contain the Comment and Uncomment buttons, and I want to add those buttons to the Edit drop-down menu. Easy enough; it only takes me a couple of minutes.  But how do I save ...
Score Check network connection. Is there a windows event?
Stefan Borst - 21 Nov 2007 10:03 AM - 3 messages
Hi, I want to get an event from windows, if there is no network connection anymore(e.g. if the network cable is disconnected). If there is no windows event, what is a good solution to check the network connection? ...
Score How to find out an EXE's details
Faraz Azhar - 21 Nov 2007 6:41 AM - 2 messages
Hello Im building a file browsing application. I need to display the following information of files in a folder (mainly application files) * Company Name * Product Name * Description * Comments * Legal / copyrights These details are stored inside the exe files, as we all know. But ...
Score Easy question
Jack - 21 Nov 2007 4:23 AM - 3 messages
2 forms: Form1 and Form2 Form2 has cmdCancel button: Public Sub cmdCancel_Click()     Call EndAll  ===> this call unloads Form1      Unload Me End Sub Form1 Unload event: Private Sub Form_Unload(Cancel As Integer) ...
Score Auto-Update Add-On?
Webbiz - 21 Nov 2007 2:40 AM - 7 messages
Can anyone recommend a easy/good Auto-Update add-on for VB6? There appears to be so many to choose from I just can't decide which is worth the money and which are not. Perhaps some here can recommend what they personally found to be a good ...
Score IDE updates unopened project?
Pop` - 21 Nov 2007 12:53 AM - 1 message
Hi, I don't think I have a problem, but thought I'd check it out with you guys anyway and perhaps someone understands the "why" of it all.    I separated out my project into another directory for a bit so I could ...
Score how can i find the number of elements in an array
joseadolfop - 21 Nov 2007 12:12 AM - 8 messages
Does anybody know how can I find the number of indexes or elements in a dynamic array? I had been using: Public Function Elementos(ByVal vntArray As Variant, Optional ByVal intDimension As Integer = 1) As Long     Elementos = 0 ...
Score Can't Launch an app without using a Windows Installer Shortcut
Christian Blackburn - 20 Nov 2007 11:08 PM - 7 messages
Hi Gang, I have a programming dilemma.  I'm trying to launch a client's .net 2.0 application once it's finished installing.  However, if I do that directly it freezes.  If I run it from the shortcut it works fine. ...
Score UserControls Blessing and Curse
Lorin - 20 Nov 2007 10:31 PM - 4 messages
VB6SP6 Trying to work with UserControls What are the secrets? e.g.   SHIFT F2  gives me "Can't jump to ... because it is hidden. Huh? it is part of the project in the Project Group. I am sure I will discover more. ...
Score I used to use VB but...
david.smith - 20 Nov 2007 7:34 PM - 243 messages
Then I realised I didn't need to. Happy Days! ...
Score Program 'hangs' on password protected screensaver.....
John Morley - 20 Nov 2007 7:06 PM - 5 messages
Hi All, I maintain some software that is used for data acquisition. This code has been in wide for a long time. Now, a user tells me that he must 'lock' his PC using a password protected screen saver, and that once ...
Score Unknown error 50003
David DB - 20 Nov 2007 6:20 PM - 8 messages
Hi, On some machines our VB6 program produces the error "Unknown error 50003". After searching on the net I found out that this could have something to do with wrong versions of some components. I have included these in the setup. ...
Score Attaching a file from a URL
DRDragon - 20 Nov 2007 6:08 PM - 2 messages
Hi, I have an issue where I have to call a function that will return the url of a file that I need to attach on an email before sending it.  I know  System.Web.Mail does not support URL attachments.  If anyone has any ideas of ...
Score Looping Question
cmdolcet69 - 20 Nov 2007 5:53 PM - 2 messages
I need to loop through a index change event, however whenever i loop through the first combo box always report back correctly its when i move to the next combobox, that instead of changing the second combo box it will change the background of the first combo box. ...
Score Auto Updates
Webbiz - 20 Nov 2007 5:43 PM - 1 message
Hello. Lots of applications have auto-update features. I think this is a great way to update software without having to go about writing everyone. Are there any recommended text/books on the subject of how to write VB6 programs that would be compatible with auto updating, as well as perhaps ...
Score Internet Error message - Can't create object instance
jchancio - 20 Nov 2007 2:45 PM - 2 messages
I continue (every 2 seconds) to get an Microsoft error pop up saying "can't create object instance" - Only get it when I'm in an accounting program. I click it off and it keeps popping back up instantly. Does anyone know what this is and ...
Score DDE Problem
Waldy - 20 Nov 2007 11:27 AM - 11 messages
Hi there,                I am just trying to run a DDE example.  I have created a project, included Excel as a reference and entered the following lines of ...
Score VB6 frontend GUI with Python
Claire Blair - 20 Nov 2007 8:02 AM - 3 messages
I am trying to write a VB6 (not VB.Net) application that has a console window that allows Python commands to be typed at the prompt. The idea is so that, I can have full Python scripting from within my ...
Score List proceedure names all files
MP - 19 Nov 2007 8:41 PM - 6 messages
Sorry, another dumb noob question! over the past years of my attempts to learn vb I've amassed thousands of files in my code folder<s> many are probably more or less duplicate proceedures with revisions over time, renamed, then forgotten, then rewritten again, ...
Score Update the currentPrincipal of the thread
Pablo.Mazaeda - 19 Nov 2007 7:09 PM - 4 messages
Hello I do not know how I can update the CurrentPrincipal with my username of my DB Anybody knows how? thanks ...
Score problems with packaging and deploying VB6
ACCsupport - 19 Nov 2007 5:43 PM - 7 messages
I have both VB6 and Visual Studio installed on XP Pro SP 2 machine. Installed in Office 2007. Im having trouble compiling my package. Used to work fine, but now on my new computer with above installed it gives me a build error. ...
Score Log file access
Steve - 19 Nov 2007 1:24 PM - 14 messages
What I'm really looking for here is assistance with design, rather than a coding issue. Some years ago I wrote a simple vb monitoring tool which creates a text-based log file. It doesn't check for write-protection on the ...
Score How to call an event when the "Delete" button is pressed?
DORI - 19 Nov 2007 9:45 AM - 4 messages
Dear ALl, I want to call an event when the user click on the "Delete" button (below the "Insert" button) of the keyboard while working on the Form1. How can I do that? Thank you in advance for any comments. ...
Score Some Trouble with SSTAB and ComboBoxes
Karl Fuchs - 18 Nov 2007 10:49 PM - 4 messages
Hello, I have some User Forms with SSTab-Controls and ComboBoxes on it. My problem is: When I change the TAB´s, in each of the comboBoxes the selected Item appears highlighted, like after the User had selected it and before ...
Score How to reorganize this FOR..NEXT loop to prevent the 'out of memory' warning?
OK - 18 Nov 2007 11:28 AM - 2 messages
I am faced with a strange  memory problem by which my source fires an Out of memory problem. I have investigated the whole subroutine and it shows that a FOR NEXT loop consumes too much memory which isn't released by VB after the loop. ...
Score How to change the color of an Image control border
DORI - 18 Nov 2007 1:56 AM - 3 messages
Dear All, I am wondering if this is possible in vb6sp6: I have set the borderstyle of image1 to "1" and the borders appear in black color. How can I change that to red color? Thanks for your comments in advance, ...
Next »