Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score File locking in VB6
writeson - 28 Oct 2006 8:52 PM - 2 messages
Hi all, It's been a long time since I worked in VB6 and I'm at a new job where they have a VB6 application (server) that needs some work. One thing I want to do is scale it up across 2+ servers where the multiple ...
Score Multiple instances and processor affinity in VB6
writeson - 28 Oct 2006 6:29 PM - 6 messages
Hi all, At work we've got a VB6 application that runs like a server (essentially non-stop) processing large files into PDF's, very CPU intensive work. Processing each file can take quite a bit of time, so I'm wondering about some things with VB6. We're moving this program to ...
Score How do I find the Path for Win.Word?
Dennis Rose - 28 Oct 2006 4:42 PM - 55 messages
I have a VB4 application that uses the Shell function to launch Microsoft Word (WinWord.exe).  Since WinWord.exe may be in different locations depending on the version of Word that is being used, I need to use an API or ...
Score Graph control
Esha - 28 Oct 2006 4:21 PM - 7 messages
I was asked by my boss to create representation of data by Graphs in VB 6 application. I checked the features of VB6 Graph control as well as Excel graphs. They are not good enough. I tried to find any third party ocx and all I found do not look good enough ...
Score How to allow a specific number of Instances of my app?
WHoit - 28 Oct 2006 1:55 PM - 30 messages
I need to allow a specific number of instances of my app to run on a pc. For example, I may want to allow someone to run my app 3 times on the same pc. I don't want to use the "FindWindow" method because it's too weak and ...
Score [VB5 IDE] Support for CTRL-arrow for in-place scrolling?
Vincent Delporte - 28 Oct 2006 9:05 AM - 4 messages
Hi     I'm used to using CTRL and the up/down arrows to scroll the screen, so that I don't move from where I was in the code and don't have to move the caret up or down against the highest/lowest displayed ...
Score Array Sorting but return the index number as well
atmkoh@yahoo.co.uk - 27 Oct 2006 11:36 PM - 7 messages
Hi chaps I downloaded the following source code from Microsoft KB. Basically I am using the simple bubble sort routine to sort my Array called which I seeded with values. Being quite new to VB having only used BASIC years ago, can someone ...
Score VB6: need to color specific days in a calendar
J - 27 Oct 2006 6:48 PM - 2 messages
Is there a calendar object in VB6 that allows you to control the background color for each individual day in the displayed month? I tried looking a MS MonthView and absImageCal but the coloring only extends to cursor and calendar background (in absImageCal) ...
Score Profile x Debug on VB6
Guilherme Pichinelli - 27 Oct 2006 5:38 PM - 2 messages
Hello guys, My english is poor, but I will try let my question. I need know if to do debugger on VB6, is it necessary I have administrator profile in Windows XP? Is it true? Is there another form/profile in Windows XP that I can do debugger without ...
Score Log Phone Calls
JP Bless - 27 Oct 2006 4:20 PM - 26 messages
I have a device ( Norstar SMDR6)... this device detects incoming and outgoing calls and prints the information (caller number, number called, time start, time end etc) on a dot matrix printer. The device connects to the dot matrix printer LPT port using 12/13 pin cable. What I would like to ...
Score My own DLL Hell
KellyLeia - 27 Oct 2006 3:01 PM - 2 messages
Does anyone have a link or a book suggestion for dll how to/basics? I'm actually trying to rewrite a dll from vb6, and upgrade it to .net, most likely not making it a dll.  But i'm not even there yet, i'm trying to ...
Score VB and doubles inconsistency
Aak - 27 Oct 2006 2:54 PM - 4 messages
I have the following code Private Sub Form_Load()     Text1.Text = 1.8783 - 1.7691 End Sub I get an answer 0.1092 but the following code gives silly answer Private Sub Form_Load()     Text1.Text = 1.8783 - 1.7791 ...
Score How to install multipleVB6 exes within one setup run?
Eugen Tackover - 27 Oct 2006 12:22 PM - 5 messages
I want to install a group of VB6 compiled programs in one single setup. All programs are developped at the same PC and hence are calling the same controls and dlls, in different combinations. Is there an example available how to do this with the setup included in VB6, ...
Score Log file be sent
Ted - 27 Oct 2006 7:24 AM - 2 messages
Hello, is there some way to let a log file created, be sent to a certain email address each time it's created?? ...
Score dll version, possible from VB?
Mike Scirocco - 27 Oct 2006 4:21 AM - 11 messages
I would like to get the version of a non-VB installed program by examining a DLL, is there a way to do this from VB, not using the registry, but similar to right clicking the DLL and selecting "Properties > Version"? ...
Score Transfer VB6 w/ no CD?
Jeff - 27 Oct 2006 2:55 AM - 2 messages
Hello, I recently lost my VB6 Enterprise CD during a move to a new location. I have VB6 installed on a family computer and have not taken that computer with me. Is there any way to transfer the VB6 program from that computer to ...
Score Merging two VB.NET projects
Daniel Manes - 27 Oct 2006 12:12 AM - 13 messages
Working w/ someone in my company. We've both developed a project in VB.NET, and now we want to merge them into a single project/solution so they can communicate with each other. The communication is fairly simple stuff (e.g., if user selects a row in a DataGridView in one ...
Score Question about 2D VB arrays
John - 26 Oct 2006 11:01 PM - 26 messages
This following question has started several "heated" discussions within my company between the C/C++ and VB programmers and it deals with 2d visual basic arrays. Say for instance that I want to define an array that consists of 480 rows by ...
Score Playing an AVI video
Sean Bishop - 26 Oct 2006 10:30 PM - 2 messages
I am using Visual Basic 6 I have created a form which includes a timer and lasts no longer than 15 seconds before the form closes. I have added an MM control. I want the AVI to load and play when the form is displayed and to close when ...
Score SQL Server
olddb_97 - 26 Oct 2006 8:00 PM - 2 messages
I have a Dell Dimension 2400 with xp home edition on it.  I want to get rid of this SQL server thing. When it doesnt connect i cant get on the internet or anything and then everything runs so slow. then It causes ...
Score lines don't stay on form...
Co - 26 Oct 2006 7:53 PM - 20 messages
Hi All, I use following code to draw some lines direct on a form. Connecting images. The problem is that when I set the focus to another form or another application and I return to my original form the images are still ...
Score Full documentation
Mike Williams - 26 Oct 2006 7:02 PM - 3 messages
I know this is totally OT, but I also know that many of you write Point of Sale applications and that you of course consider it important to provide full documentation for your applications, so I thought you might be ...
Score non-standard interface
adolfox - 26 Oct 2006 3:02 PM - 3 messages
Does anybody know, or have any resources, about how to make non-standard windows interfaces like Windows Media Player, iTunes, Quicktime, etc, with VB6. I would apprecciate any information that sets me on the right path. Thanks in advance. adolfo ...
Score Converting ISO-charset to Unicode
Harald - 26 Oct 2006 2:59 PM - 5 messages
Hello, I have in my Access 2000 database a lot of translations (German, Polish, Russian etc.). I have separate fields for each language. But all translations are saved in their ISO charset: Field "German": ISO-8859-1 Field "Polish": ISO-8859-2 ...
Score How to disable Textbox's popup menu?
Wyne - 26 Oct 2006 2:18 PM - 3 messages
Hello, I want to disable the popup menu of a textbox. Someone provided codes using "temporary disable control" apporach, i.e, force the textbox ro lose its focus when right button is pressed. In my application, the textbox must keeping its focus. So, I have to use other approach, such as SendMessage or ...
Score Recognizing a Click_Event within a loop
John - 26 Oct 2006 12:55 PM - 6 messages
Hello, I am new to VB programming and I'm having trouble canceling out of a loop. I have one Command Button that starts a data acquisition loop via RS232. I have a second command button that I wish to use to stop acquisition. The problem ...
Score Determine whether a field in recordset is a Identity Field
Bart Steur - 26 Oct 2006 12:43 PM - 18 messages
Hi, I'm using VB6 and I want to know which Column in the recordset is the Identity Column (if any). I've a SQL Server 2000 table. It has 5 colums, the first one is the Identity Column. Now I want to recognize this column in VB6 using ADO 2.8. I used the ...
Score User Controls Help Sub Propertys
Dessip - 26 Oct 2006 11:57 AM - 5 messages
Hey there, I have only recently decided to use user controls mainly because there was quite a few projects where they had simular i-faces, and i was having to recreate them for everyone, so i thought that i may as well ...
Score How to get notified when a COM application is terminated
schneider - 26 Oct 2006 11:29 AM - 4 messages
Hi all, I'm instancing an application via its COM interface. What I want to do now is wait for the application to be terminated and then proceed with my code. Using shell to start the other application is not an option. ...
Score Can't print through Terminal Services?
Vincent Delporte - 26 Oct 2006 8:06 AM - 4 messages
Hi     One of our customers just moved to a 2003 Server-based AD network, so our VB (5, if that could matter) application is running on a remote host to which they connect with Terminal Services. Here's the problem: They have two network printers in their office ...
Score how to Get Favorites List with VB?
Hyo-Han Kim - 26 Oct 2006 2:10 AM - 3 messages
hi.. I would like to get IE's Favorites List (file) with VB. How can I get the file path Favorites List ? Is there any API for Favorites List?. TIA ...
Score Copy locked files in Windows
Matthew Connor - 25 Oct 2006 9:10 PM - 12 messages
Hi all. I would like to know how to copy files in Visual Basic 6 under Windows 2000 and XP when those files are locked because they are in use. I believe it has something to do with Volume Shadow Services but I am not ...
Score Windows Event Notification in VB 6.0
Ivan Lozada - 25 Oct 2006 9:07 PM - 4 messages
Hello there: Is there a way, using a vb 6.0 exe, to receive notification when a File has been added/deleted to a Folder in a a network drive, or for that matter, in the local drive? Thanks, Ivan ...
Score XP Manifest hell?
Anthony - 25 Oct 2006 7:46 PM - 5 messages
I am unable to figure out this manifest thing. I use a manifest file for my vb6 apps (just like everyone else) so they take on the theme of the OS. For certain apps, with no apparent common thread of relation, I cannot get ...
Score Findfirst on date and text problem...
Co - 25 Oct 2006 7:30 PM - 17 messages
Hi All, I'm trying to find a record based on a date and a text field with Findfirst: Dim rsCheck As DAO.Recordset Set rsCheck = dbfASIC.OpenRecordset("Events", dbOpenDynaset) rsCheck.FindFirst "(DOE = #" & dDOE & "#)" AND (short = '" & sDescription & "')" ...
Score Aggregate Function macro
Nitin - 25 Oct 2006 7:14 PM - 2 messages
Hi there, I have to write an aggregate function in Visual Basic for an excel file sheet. Can anyone help me how to write the aggregate function in VB The MAcro is there but I have to edit it and write an aggregate the ...
Score Limit on number of Modules/forms?
Mac vazehgoo - 25 Oct 2006 5:39 PM - 9 messages
Hi,  I am using VB6 SP6.  Within the ide, I have about 863 forms and modules.  Now when I try to add another form or module, I get the out of memory error and it does not allow me to add more files to the project.  I ...
Score Printing margins
ultranet - 25 Oct 2006 4:26 PM - 5 messages
I'm having trouble following the units of measurement in printer API coordinates. For instance, the defult is twips, which is what we use: [link] ...
Score DLL used in VB6 - can it go into .NET
EnVeeTee - 25 Oct 2006 10:05 AM - 3 messages
Some advice please I have several 3rd party DLL's in my VB6 project What should I have to be wary of when calling them in my .NET project Will they just upgrade without problems? What about installation, do I just copy them to my target PC? ...
Score What does this sentence means?
Howk013 - 25 Oct 2006 8:34 AM - 3 messages
Public Sub SetupDatabase()   If Dir(lblSave.Caption) = "" Then           Set dbs = DBEngine.Workspaces(0). CreateDatabase_(lblSave.Caption,dbLangGeneral)           dbs.Execute "Create Table Reports" &_ ...
Score Sharing Info in Excel 2002 worksheets
Phenix31377 - 25 Oct 2006 8:21 AM - 2 messages
I'm trying to set up worksheet that calculates batting and bowling averages for my local cricket team.  I want to be able share the information from 1 worksheet to another without having to retype it all, and I can't remember ...
Score OCX or method to display a group of images?
jameshamilton777 - 24 Oct 2006 11:13 PM - 4 messages
I'd like to display about 500 similar sized images (say about 300x300 pixels) on a form. Is there an OCX or method to do this? The icon view in a ListView can only deal with icon-sized images I think. I can draw an array of Image ...
Score Is there anything I need to be aware of when installing a VB3 app on XP?
MM - 24 Oct 2006 9:40 PM - 4 messages
The VB3 app retrieves data from a look-up database (Access 2). It comprises the following files: the-app.EXE the-app.INI the-mdb.MDB VBRUN300.DLL VBDB300.DLL MSAJT112.DLL MSAJT200.DLL Is there anything I need to be aware of when preparing an install ...
Score checking for illegal characters fails...
Co - 24 Oct 2006 8:43 PM - 11 messages
Hi All, I wrote a function to check in a string for illegal characters (characters where queries die on). But when I run the code and use for example a word with NO illegal characters I get kicked out at: ...
Score ocx gets disconnected but VB code still thinks it is connected
oldefezziwig - 24 Oct 2006 7:31 PM - 7 messages
I have an OCX control (written in VB 6) that wraps a windows service (written in C++).  I need the OCX wrapper in order for a Powerbuilder application to receive events from the windows service.  The problem arises in which the service might get stopped but the OCX still thinks ...
Score Using VB6 .dll in Delphi
David Kerber - 24 Oct 2006 5:44 PM - 2 messages
I don't know if this problem is on the VB side or the Delphi side, but I'm the VB programmer, so I'm asking here. I have a VB6 standard dll (using vbAdvance and a hack I found while ...
Score Creating a Standalone .exe File
Chaplain Doug - 24 Oct 2006 5:07 PM - 3 messages
Office Pro 2003.  I know how to create VBA modules in Access, Excel, Word, etc.  How may I go about writing a VBA module that can be compiled into a standalone .exe file?  Is there a way to do this from Office 2003 without ...
Score Decimal parameter
Sandy - 24 Oct 2006 3:57 PM - 3 messages
Hello - I have a stored procedure with parameters in Sql Server 2000, with one of the datatypes being passed being a decimal (18,2).  How do I get VB6 to pass it as a decimal without truncating the number?  E.G., if I insert a record ...
Score VBPRNDLG.DLL problems in VB 6 application
jhall@datalyzer.com - 24 Oct 2006 3:53 PM - 2 messages
We ran into the problem with the common dialog box where when you selected a printer it changed it to the default system printer.  So, we research this problem every year or so and this time came up with a ...
Score Calling form in DLL.
Aykut Canturk - 24 Oct 2006 1:04 PM - 2 messages
I have a DLL written in VB with a form inside it. usually I also write a class to this DLL and call this routine from main VB applicaiton. and this routine shows the from thar  exists in DLL. ...
Score Cannot zip properly
Jack - 24 Oct 2006 12:20 PM - 5 messages
Hello everybody, I have the same problem as described in [link] ...
Score Dir() function problem
Peter Plumber - 24 Oct 2006 11:09 AM - 6 messages
hi, I wanted to traverse a complete directory structure and search for some files to process I found that I get "Invalid procedure call or argument" (5) from sCurEntry = Dir$() when there is a directory like ".settings" is this a documented feature? ...
Score How to tell if .NET Framework is installed
Sir Itchy - 23 Oct 2006 9:52 PM - 20 messages
Good Day I'm calling some .NET classes from my VB6 app. Can someone tell me how I can tell if the .NET framework is installed on my users machine and if so what version. Cheers Nigel ...
Score Toolbar Button press only once
Co - 23 Oct 2006 8:57 PM - 7 messages
Hi All, I use a MDI form with a toolbar. On the toolbar I have a button which is used to zoom in or out on a Childform. For every click the images on the childform get one click bigger or ...
Score VB - Ascii to Unicode and then Unicode to UTF-8 conversion (Very desperate!!)
maralikatti - 23 Oct 2006 8:54 PM - 6 messages
Hi All, I have one report which is not supporting Chinese characters, so now I need to read each character present in ASCII and convert them to UTF-8... So I want ASCII to Unicode and Unicode to UTF-8 conversion in VB 6.0 ...
Score ADODB record set trouble saving
i_powers - 23 Oct 2006 8:47 PM - 7 messages
Hello world, I am having a difficulty with a bit of code. I have been trying to save an ADODB recordset to XML and have been consistently getting a runtime error 91 (object variable or with block variable not set). ...
Score Instanciar MENUES
alonso.em - 23 Oct 2006 7:59 PM - 3 messages
Hola, necesito instanciar desde un form child un menu que tengo en un formulario MDI el menu en cuestion es frmprincipal.mnucontextual pero al querer hacerle dim imc as new frmprincipal.mnucontextual obviamente no me lo toma. Alguien sabe como se hace esto!? ...
Score First attempt at calling a DLL, a little help?
Maury Markowitz - 23 Oct 2006 7:58 PM - 11 messages
I have a decade-old DLL I need to call from within VB. I have seen, and used, examples that use the DECLARE/LIB system, and now I have to write my own. My confusion is how to map some of the parameters. The call is essentially a ...
Score Editing MP3 tags
Charlie - 23 Oct 2006 5:00 PM - 12 messages
Hi, I have been searching but without much luck for examples on how I can edit an .mp3 tag.  Are there some examples of api calls (winmm.dll or whatever) that shows how to do this?  I just want to open the mp3 file, clear the tag ...
Score Launching IE and Posting DATA (partial code included)
Ryan Smith - 23 Oct 2006 4:28 PM - 8 messages
Greetings - I have an app that I need to launch IE and post data to a page.  I have no problem launching IE through the code below but it currently places the data in the querystring.  There is not a problem with using the ...
Score Installer Recommendations
Dan Johnson - 23 Oct 2006 3:05 PM - 4 messages
I've finally reached the end of my tolerance for Installshield.  Any recommendations for a replacement, preferably cheap (so I can recover some of the money wasted on IS over the years), would be appreciated.  Also be nice if your recommendation is able to import existing msi files for our ...
Score UserControl Question
Ivar - 23 Oct 2006 2:07 PM - 5 messages
Hi all. I would be very suprised if this cound be done,but - lets see :-) In an Exe project you have a UserControl, and the UserControl has lots of properties, most of which would be related to what the UserControl looks ...
Score Create a folder for every user and set permissions
Gerald - 23 Oct 2006 12:31 PM - 3 messages
I work for a school with over 1000 pupils, and i have been asked to create a folder on a member server for each student (one folder for each student).  The student will need full control for the folder, and ...
Score Problems with booleans in different languages
Strak - 23 Oct 2006 8:29 AM - 9 messages
Hi, I'm doing some maintenance on one of our legacy products. One of our Italian customers gets a data type mismatch error. This problem is caused because the application stores all of the data to be saved into a string to pass it ...
Score Windows Internet Explorer for xp home sp2
Jim Cranfield - 23 Oct 2006 6:15 AM - 2 messages
I removed the "Researcher" icon from toolbars and wanted to put it back. But when I clicked on Tools/toolbars/customize, although other things like "Messenger" and "work offline" were present and could be "added" the icon for "Researcher" was missing.  How can I get it back? ...
Score Internet explorer 7 for windows xp sp2
Jim Cranfield - 23 Oct 2006 2:15 AM - 3 messages
I removed the "Researcher" icon from toolbars and wanted to put it back.  But when I clicked on Tools/toolbars/customize, although other things like "Messenger" and "work offline" were present and could be "added" the icon for "Researcher" was missing.  How can I get it back? ...
Score VB6: 16x16 and 32x32 application icon
Martin A. Weinberger - 22 Oct 2006 8:54 PM - 9 messages
Hi All, I would like the application icon, the icon associated with the EXE file, to contain both the 16x16 and 32x32 ICO formats. For the desktop shortcut, Windows would use the 32x32, but for Windows Explorer Details view Windows ...
Score Get form X and Y for PopUpMenu...
Co - 22 Oct 2006 8:15 PM - 13 messages
Hi All, I have a form (vbPixels) with a popupmenu. To show the menu I have the following code: Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) Dim iIndex As Long If (Button = vbRightButton) Then ...
Score defining a range for entered data
DORI - 22 Oct 2006 7:36 PM - 17 messages
Hi, Newbie in VB6 SP6. Users enter data in Text1.Text. The data should be any number between 10 and 300. If they enter anything else (including text characters or even leaving it blank), a massage box should remind the user to enter only a number ...
Score change
Teddy - 22 Oct 2006 5:45 PM - 14 messages
Hello, I want to let the commandbutton1 to change for example the letter "a" into letter "z" and letter "b" into "y" and so on from the textbox1 to textbox1 again... how can this be done?? Thanks in advance... ...
Score Monthview Control
Robert - 22 Oct 2006 4:14 PM - 3 messages
I am using VB6.0 SP5 I have placed a month view control on a form. I have it set to show 1 year by 4 months across and 3 months down. Question. When I load the form, is there any way to have the ...
Score Form size question....
Co - 22 Oct 2006 3:01 PM - 2 messages
Hi All, I have a question about the size that forms have when more then one Child form is opened in an MDI form (Main). I open a Child form in my MDI form and I set the size to vbMaximized. ...
Score Type mismatch error with Inet control all of a sudden
Saucer Man - 22 Oct 2006 2:45 PM - 6 messages
Just recently, I started receiving a type mismatch error when my app tries to download a .txt file from an FTP site.  This has been working fine for a long time and now the error appears but I haven't made any changes.  Here is ...
Score Text file problems
atmkoh@yahoo.co.uk - 22 Oct 2006 1:22 PM - 2 messages
Hi I have a text file that looks like this 100 200 125 $230 and this goes on for a whole series of lines.but its effectively 4 columns. At present I have to write the text file like this ...
Score How to delete a row in a FileStsyemObject
DavidE - 22 Oct 2006 12:34 PM - 3 messages
Hi, I have an application that writes to a log file. I have to check this file and delete any row which was written more thean a month ago. I don't know which method or object to use to delete a row. Here is my code: ...
Score HELP PLEASE - drive serial number example
Larry - 22 Oct 2006 8:17 AM - 8 messages
help please. does anyone have a full code example of getting the application drive serial number?  or the C: drive serial number.  the boot sector does not have to be on the C: drive.  so the application ...
Score I dont seen to have the animation control in my tools
John Roy - 22 Oct 2006 7:21 AM - 2 messages
I am trying to build a project with the animation control in it but I don't seen to have it I have Microsoft comm control 6 in my project but without the animation control what does it look like ? ...
Score Need assitance converting formula into VB6
Larry B - 22 Oct 2006 12:07 AM - 4 messages
Hello All, I'm trying to calculate the wind chill factor in VB6   One of the formulas I've found to do this, is written in Javascript. What would be the correct formula in VB to calulate this (i dont know how to ...
Next »