Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score Dir() question
Kjell - 21 Apr 2007 7:54 PM - 39 messages
Hi Is there any way to specify how long time Dir() will have to return it's result.?? I haven't measured the time limit as it is standard, but it feels like 20-30 seconds and that can be anoying in the long run. ...
Score Data type byte
jerry_ys - 21 Apr 2007 5:40 PM - 14 messages
Perhaps someone can help. I allocate an array as Data() as byte then set Data() = "Jerry"  then if i set reclength = 1 in a .dat file type and put the records data(0)  through data(4) to the file and look at the file ...
Score Passphrase to hexadecimal
John - 21 Apr 2007 9:07 AM - 3 messages
my network card does not have a Passphrase to hexadecimal WEP conversion capability which means when i travel I have difficulty getting on a network.  I have found an on line option [link] but it is useless if i cannot get ...
Score Store a Path Change
Ron - 21 Apr 2007 8:30 AM - 21 messages
Hi When the Path is changed I run this function to store what the change is, and it works. My question is, Can this be done as a one liner? or a better way? Private Function myPathChange Dim xNum As Integer ...
Score ActiveX Object issue
Kevin Provance - 21 Apr 2007 3:53 AM - 8 messages
Okay guys, I'm stuck. I have an ActiveX control which recreates the window Titlebar, staying faithful ti the Standard Windows interface (making it hard to tell the difference to the untrained eye) which allows me to do many more way cools ...
Score Picture ID
Kevin Provance - 21 Apr 2007 3:03 AM - 6 messages
Some days back Karl posted a LoadImage routine let let one pass a custom image from a resource file into a StdPicture object.  FTR, it works beautifully (thanks Karl).  I did notice however that I had another routine ...
Score Dynamic menu-building problem
Andy - 21 Apr 2007 12:42 AM - 12 messages
Some time ago, I had some very useful advice from this newsgroup, regarding a problem I had at that time, and perhaps I should summarize that issue first, so you know why I have a new problem. I had an app with many MDI child forms, each one dedicated to maintaining a ...
Score Window Size & Position
Snakeoids - 20 Apr 2007 11:12 PM - 2 messages
Greetings, I have a small program (Visual Basic) that automatically restarts my computer and launches various applications so that when I get into the office, my computer is ready to go.  However I have a problem with my Internet Explorer windows that launch in the program.  The size and position ...
Score Change network settings in VB 2005
Gabriel - 20 Apr 2007 11:04 PM - 8 messages
I'm working on an app that changes network settings (ip, subnet mask, gateway, and proxy). It changes all these settings in the registry, but they don't seem to take effect. That is, even though the registry settings have changed, the computer continues to use the original ...
Score Select Case statements
Paul MH - 20 Apr 2007 10:24 PM - 4 messages
i am writing a simple function to format a filesize into bytes kb gb ect but the select case statement does not go to the appropriate choice, i am dealing with very large numbers like 9.17787E+70 i think ...
Score SHELL?
newbie in hell - 20 Apr 2007 9:38 PM - 7 messages
Hi, I need to execute an application and have VB6 wait until it terminates executing. The Shell instruction doesn`t do the job since it runs asynchronously. Which API function can I use? Note that I can`t use a function that only uses names. i.e. I can have the ...
Score Problem with Steve McMahan's cRegistry class
Darhl Thomason - 20 Apr 2007 9:20 PM - 3 messages
I'm using the cRegistry class to do some light registry editing.  When I am trying to delete a registry key, it fails with this error: Run-Time error '26001': Failed to delete registry Key: '-2147483646',Section: 'Software\Microsoft\Windows\CurrentVersion\Run ...
Score How to calculate Number of rows in Excel ?
raman - 20 Apr 2007 6:37 PM - 9 messages
Hi , I have an excel sheet. i want to calculate the number of rows in the excel sheet using Vb6. This is the code that i have: Dim S As String Dim rlmt As Integer Open CommonDialog1.FileName For Input As #1 ...
Score Secure FTP via VB6
Nobody - 20 Apr 2007 6:27 PM - 3 messages
Is there any controls/code available to do this? if so, where? Thanks ...
Score Net Send message
Ben - 20 Apr 2007 6:12 PM - 6 messages
Hi all, I have written an app in VB6.  Part of what it does is copy a number of files to an archive location and then write to a log file.  It works fine.  But I would like to enhance it by adding additional code to net send a ...
Score Fox Pro?
newbie in hell - 20 Apr 2007 6:06 PM - 5 messages
Does any one know how to convert text files into Visual Fox Pro 6 Files? I actually did it, but I had to use Excel Objects, which is limited to 64k files. Anyother way? Thank you. ...
Score How To Create A Folder On Network Drive
Lorin - 20 Apr 2007 4:30 PM - 4 messages
I cannot get VB6 to create a folder on a network drive. I do have permission and am able to create the folder outside of the VB6 App. How to do? ...
Score VB6 IDE Problem?
Lorin - 20 Apr 2007 4:26 PM - 3 messages
Recently I have had the following: Only in the IDE does this happen - no other App (that I have seen anyway, use Word, Publisher, Outlook, Excel, Notepad, Write, etc.). I'll be typing along and doing edits, cuts and pastes and the keyboard ...
Score Recordset based on 2 databases?
YUmanskiy - 20 Apr 2007 4:24 PM - 8 messages
Ok, this is what I am trying to do. I am trying to write an application that uses DBF folder as a data source. I am doing this through ADO in VB6 VB6 treats a folder with DBFs as a single database and each file.dbf ...
Score What is best: a VBS or a VB
frajotte - 20 Apr 2007 4:20 PM - 7 messages
Hello,    I must develop an application for monitoring my network and I which my program to run as a service. I'm more a scripting type of guy and I'm more use to program VBS. My concern with developing my application ...
Score FM20.dll
Lou - 20 Apr 2007 3:25 PM - 2 messages
Microsoft Forms 2.0 Object Library. Is this redistributable? ...
Score "Can't edit module" problem on User Control
teddysnips - 20 Apr 2007 3:14 PM - 10 messages
I have taken over support for a project written in VB6.  The project is under configuration control in SourceSafe. For the last four or five years I've been working almost exclusively in .NET and I've forgotten a lot of my VB. ...
Score Ascii to LCID or Code page function
Lou - 20 Apr 2007 2:57 PM - 4 messages
I am downloading an RSS Feed to put into a VB standard textbox. Unfortunately the VB Textbox is not unicode. The downloaded data can be any language. Is there an API to determine the code page or LCID based on a single character? ...
Score Mapped Drive Information
poolguard - 20 Apr 2007 2:54 PM - 2 messages
I am trying to get information like the UNC path of a mapped drive in VB.net 2005 but cant seem to figure it out.  i know how to mapp and unmap a drive but not get the information. ...
Score Debug VB OCX and DLL
sowjanya - 20 Apr 2007 2:22 PM - 2 messages
I have a VB client which refers an OCX. And this OCX inturn refers a DLL. I have source code for all of these. My VB client has a VB form which uses the ctl present in the OCX. Can anyone tell me how to debug the OCX and DLL code. ...
Score Debug VB OCX and DLL
sowjanya - 20 Apr 2007 12:20 PM - 3 messages
Hi I have an VB OCX which is in turn referring a VB DLL. I have a VB client which refers this OCX. How do I debug the OCX and DLL code ...
Score I Need an ActiveX License?
FreeMinded - 20 Apr 2007 9:53 AM - 2 messages
Hi folks, I have created an instance of an ActiveX object and when i try to call one of the functions of this object, I am getting the error "Run-time error '6': You need an ActiveX license." The object i've created is an instance of an ocx from a 3d party ...
Score Do you know possible cause that "Form could not be loaded" ?
Kid - 20 Apr 2007 8:18 AM - 3 messages
Hi Do you know possible causes of error "Form could not be loaded"  when you open a VB project ?  Is it because some OCX not imported , how to solve it ? Thank you . ...
Score Click My File, Run My Program, Open My File
FrankAm - 20 Apr 2007 5:09 AM - 4 messages
My app saves files with my own extention, say for arguments sake it is .zzz. When I click on my file it runs my app, this is because I have made the association between my extention and my app manually ...
Score Fail to open some VB project
Kid - 20 Apr 2007 3:58 AM - 3 messages
Hi I am trying to open some project by VB6 but failed to load form . This project has frx files and on the top of frm source write VERSION 5#. If I clicked frm file, VB will not show form but show modules at project ...
Score Is frx VB5 format ?
Kid - 20 Apr 2007 3:10 AM - 4 messages
Hi I am trying to open some project by VB6 but failed to load form . This project has frx files and on the top of frm source write VERSION 5#. If I clicked frm file, VB will not show form but show modules at project ...
Score Call to subroutine fails to execute - no error or warning
oaksong - 19 Apr 2007 8:59 PM - 26 messages
I've got a subroutine call in the form: x = mysub ( arg1, arg2, arg3) The routine is called many times before it gets to a point in the code where nothing happens. I put a stop on the line before the call. If I tap F8, rather than ...
Score Balloons
Sitrox - 19 Apr 2007 8:47 PM - 2 messages
How can I show a balloon over my app's icon in notification area, or anywhere else? (VB 6.0/.NET) Thanks in advance ...
Score Licensing a User control
Lou - 19 Apr 2007 5:47 PM - 16 messages
If my control includes other ActiveX controls as constituent controls, How do I license them for distribution as well. These would be third party controls that I have bought. -Lou ...
Score solution for images to movie (urgent)
vineeshhere - 19 Apr 2007 7:52 AM - 3 messages
I wanted to make movie from from set of JPG or BMP images. Is there any way to do that in Visual basic 6.0. it would be grateful if anybody can suggest any site regarding this. thanks in advance ...
Score Invalid authorization specification
Rocky - 19 Apr 2007 7:48 AM - 4 messages
We have a product that is working fine on machines below Vista. However on Vista I get the following error when loading grids (The program is VB6 and it accesses a SQL 2005 Express database) 18/04/2007 16:32:39    Automation error   -2147217843    ...
Score Need help in executing the MySql Stored procedure in VB6
Elan.Hira - 19 Apr 2007 4:16 AM - 2 messages
Hi All, I am using MySql server version 5.0.10a-beta-nt, MySql 3.51 ODBC Driver. I am trying to execute a stored procedure written in VB6. Below is the code /************************************************************/ Dim sql As String     sql = "call uspManageStaffList()" ...
Score Here's one for you rick
Michael C - 19 Apr 2007 4:05 AM - 95 messages
Can you make this into a 1 liner. It calculates the amount that 2 ranges overlap by. Public Function RangesOverlapAmount(ByVal RangeA1 As Long, ByVal RangeA2 As Long, ByVal RangeB1 As Long, ByVal RangeB2 As Long) As Long     Dim lngI As Long, lngJ As Long ...
Score non contiguous range selection with Range(Cells(#,#),Cells(#,#))
gray.brian - 18 Apr 2007 11:01 PM - 3 messages
How does on selection a non contiguous range of cells with Range(Cells(#,#),Cells(#,#))? I know: Range(Cells(1,1),Cells(5,5)).select = Range("A1:E5").select (Equivalent) This is two different range selections: Range(Cells(1, 1), Cells(5, 5)).Select ...
Score Label1 on top of Picture1
jadeandandrew - 18 Apr 2007 9:26 PM - 3 messages
Hi. Quick question - How can I make a label object appear on top of an image object? Send to front makes no difference? It's more important in runtime than in form editing. Thanks! ...
Score Casting a string into an Object Type.
ProBro - 18 Apr 2007 8:40 PM - 4 messages
I'm stuck....thanks in advance for your help I have a generic routine that strings assigned that happen to be the same as the names of TextBox objects on a form.  However when I try and "cast" these ...
Score Simulate 'F1' click from the menubar
Mike D - 18 Apr 2007 5:58 PM - 17 messages
I'm trying to add help to my application.  I have a .chm file that works when I hit the 'F1' key.  I can't figure out how to activate that helpfile from the menubar (e.g. About->Help).  Somebody out there must ...
Score Winsock API and multithreading
John S - 18 Apr 2007 5:07 PM - 5 messages
Hi All, I want to make my winsock server app to work on multithreads. I have tried, but I can not maintain a connection that has been initiated by main thread on other thread. It seems that I should use ...
Score Copy Path Full Length
Ron - 18 Apr 2007 3:28 PM - 5 messages
Hi When I run this code I get an error "Type MisMatch" if I set a breakpoint and look at the Dir1.Path it is cut short and ends with dots.   If frmSelect.Visible = True Then       If Len(Dir1.Path) <> txtPath Then txtPath = Dir1.Path ...
Score Removing all lines that start with a specific character in a text file
Quentin - 18 Apr 2007 3:12 PM - 4 messages
HI, I have a question I was wonder how do you remove all lines that start with a specific character from a text file using vb.net? Here is an example of the text file: @ 23232354345344534535345234535,534535345345@ drgdsfgsdfgsdfgsdfg45tg5tegsgvergwggsgsdgsfgs @54574564656534645634546453465345454365346345@ sadfsdfsdfsdgsdgsdfgdfgdsfgsdgdsgsdgsdfgsdfgsdf ...
Score Private and Public Statements
Spyntek - 18 Apr 2007 1:47 PM - 5 messages
Good Morning.  I am having a bit of a dilemma.  I almost have this bit of code working but I am wondering if I don't have to make one of the statements Public so it is accessible to all code.  Please give me ...
Score Change user
Markus Weber - 18 Apr 2007 7:10 AM - 2 messages
Hello! I want to implement the menu point as in Windows Vista to change a user. Means if user uses this menu point the logon screen should appear and user can logon with a different user. Same as in Window ...
Score FreeFile vs hard-coded file number
Martin - 18 Apr 2007 2:02 AM - 4 messages
I have an app that runs un-attended as part of an industrial process. One of the things it does is accumulate some data in a simple text file. Periodically my app receives a command from another app to make ...
Score Need Help with MVB, should be simple, but can't figure it out
VinoVino - 17 Apr 2007 11:13 PM - 3 messages
Hello, Hope that some expert on Microsoft will be able to help me on my problem. I am trying to set up an New Macro. The goal is to save the word document with the name of the title in the first paragraph. ...
Score Problem copying Picturebox to Clipboard
Jennifer W - 17 Apr 2007 10:21 PM - 19 messages
Hi it's me again, the Pest, in VB6, Winxp  I'm printing to a picturebox and then copying that to the clipboard.  It's working pretty well except when I paste the clipboard into a Word document, there's a large blank space at the bottom of the picture I ...
Score If I wanted to open an access form and have its recordset based on a value on my current form
mgworek - 17 Apr 2007 7:18 PM - 4 messages
Would I set a string that stays in memory on the click event and then base the recordset on that string on the new form? I have a form that opens in continuous mode. It shows all tickets assigned to a tech. I want the tech to be able to click on one of the ...
Score Newbie question: where to put Sub Main?
tom - 17 Apr 2007 6:48 PM - 6 messages
Where do you put the code for the Sub Main? I can only know how to write code for the the forms. But, if I want to start with a Sub Main, where do I put the code? ...
Score PDF file in CHM Help system
vovan - 17 Apr 2007 6:47 PM - 2 messages
I have Help system created in HTML Help Workshop. All topic files are htm files. Due to security issues with XP SP2 (CHM files located on the server do not work) every time the user starts the application the application compares ...
Score [Q] How to determine the order that files were put into a folder??
kleefaj - 17 Apr 2007 6:41 PM - 16 messages
Greetings. Does anyone know of a reliable way to determine the order that files were copied/moved into a folder? That is, I want another program to work on the first file copied into a folder, then the next, etc. ...
Score GDI Leak??
Steve - 17 Apr 2007 5:58 PM - 3 messages
I have a class that does some GDI drawing.  It seems to work but after using it for a while things just start drawing and eventually I get an out of memory error from the VB IDE.  This lead me to try using the ...
Score Insert 1800 in SQL Server 2000
Junior - 17 Apr 2007 5:02 PM - 15 messages
When i tried to insert the date 01/01/1800 i get the error the Conversion of char data type to smalldatetime date type resulted in an out of range smalldatetime value. But if i insert the value 01/01/1930 i have not problems? ...
Score Shortcut Keys
Rob - 17 Apr 2007 4:56 PM - 6 messages
I have an app that is developed in VB6 (sp6), on a Windows 2000 machine.  When I use the menu editor, and setup options with the shortcut keys, I can see the underlined characters in design time.  When I run the application, I ...
Score Input/Output Files
Anna - 17 Apr 2007 4:38 PM - 3 messages
Hi: The program is running fine and it receive the input and output files from the batch. But is there any way i remove that batch file and put every thing in the shortcut Thanks, Anna. BATCH.BAT @echo off ...
Score Need help in plotting graphs in Vb6 :-(
raman - 17 Apr 2007 3:10 PM - 5 messages
Hi all, I have three parameters (with same X and Y variables). There are about 7000 values for all the three parameters. i am getting it out of an instrument. i have all the values saved as an hTML table. i would ...
Score wav file format
sarah - 17 Apr 2007 11:46 AM - 4 messages
I want to combine two wav files with each other in the binary mode. I have searched about this file format and know about chunks of it. I think for doing so I should replace the "Total length of Package to ...
Score Subtracting from table record
baked potato - 17 Apr 2007 10:24 AM - 21 messages
Hi, at the moment when a add a camera's info to a table in my database i can subtract that camera from my stock table, but when a camera is audited  a case, charger and memstick need to be subtracted from the stock table. Here ...
Score How ro kill a program/process from within VB6
Athena - 17 Apr 2007 1:32 AM - 7 messages
I run a program from within a VB program using shell. After the first instance of the program, before I call it again, I need to kill it. How can I do it so that only one instance of the program runs? Thank you. ...
Score Get path of picture in clipboard
Greg Lovern - 16 Apr 2007 7:23 PM - 9 messages
If the user does a copy on a picture (in any app that allows copying a picture), so that the picture is in the clipboard and gets pasted if the user does a paste (in any app that allows pasting a picture), does ...
Score How to set ListIndex of a ComboBox without triggering its Click event?
Athena - 16 Apr 2007 5:20 PM - 3 messages
Hello,     I want to set the ListIndex of a combo box from routine without triggering Click event for the Combo box since there is some code that I do not want to activate in the Combo Box.Click, I just want to display the ...
Score Application.GetOpenFilename
Dan Oakes - 16 Apr 2007 4:02 PM - 6 messages
I have an application that prompts the user to select a text file for processing which is done by using the 'GetOpenFilename' from the Microsoft Excel object library.  I'm not using Excel in the program so I'm assuming this is probably not the best way to do this.  Any ...
Score Visual Basic 2005 saving Excel file
Speilman_54 - 16 Apr 2007 2:49 PM - 2 messages
Hi, I'm converting an excel Macro into visual basic 2005  express, as I don't have a copy of VB 6 and trying to make and executable from it, I know this version doesn't have the save file as .exe, but I have a ...
Score Passing objects to a sub in VB 6.0
mtedeschi - 16 Apr 2007 2:35 PM - 10 messages
Sorry, I guess this is a newbie question. On a form I have 3 CommandButtons A(0), B(0) and C(0) For each one of the them I want to create an array of 100 (runtime) To have that, I tried to create a sub, passing the CommandButton each ...
Score Folder Creation
Ron - 16 Apr 2007 1:54 PM - 16 messages
Hi Is it possible from within VB6 to create a folder on the computer hard drive, and then open the folder and store data in the folder? If the answer is yes can you give some code or reference for me to begin ...
Score Spyware - Yes VB6 related
Lorin - 16 Apr 2007 4:00 AM - 2 messages
WinSpy.SpySoftWareX shows up on a scan by Spybot (latest downold) As a subitem is shows ezVidC60.ocx as part of the infestation. also, on my laptop, I got another subitem related to vbVidCap This is part of a VB (not .net) program for doing video stuff with VB6. ...
Score Problem with printing the "drawing"
DORI - 15 Apr 2007 9:30 PM - 3 messages
Dear all, Newbie VB6. I am using the following code to draw on a picture loaded into a PictureBox. The drawing shows fine at Run time but when I try to print the form, no part of my drawing will appear on the printed output except the original picture ...
Score Active window
Steve - 15 Apr 2007 9:07 PM - 6 messages
I need to be able to force a window's title bar to remain the "active" color even when that window does not have the input focus.  I seem to remember that there is an API to do just this but since this is not ...
Score GET can't
Lorin - 15 Apr 2007 3:48 PM - 3 messages
VB6SP6 I need to read and write large files. Unfortunately GET on a Binary OPEN is limited to 2G. I need to examine records along the way. Is there another way? e.g. FAILS when recnumber > 2G (BINARY FILE I/O recnumber is actually the charater count) ...
Score 08'cracked software of ftp download!
tototo - 15 Apr 2007 11:16 AM - 2 messages
They are best softwares and best price. The list is not full and now will be more new version, any more need, please mail me: lann***@hotmail.com [Boson.NetSim.6.+Keygen].netsim6for CCNP [RouterSim].CCNA.Network.Visualizer.5.0.09 ...
Score and then came MOD
Lorin - 15 Apr 2007 6:56 AM - 12 messages
VB6SP6 must be in brain lock. getting oveflow error need to compute 29000000000 MOD 130000 both are whole numbers ...
Next »