Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score THANKS TO ALL
aalaan - 16 Dec 2006 11:33 PM - 15 messages
I've had more than a fair crack of the whip here, and it seems I've created several misunderstandings, and that any further attempts to show what the problem is will only cause further grief. I appreciate those who've tried to ...
Score A much simpler question re subroutines
aalaan - 16 Dec 2006 8:10 PM - 39 messages
OK, I'm tussling with the strip strings out of old random file problem, and the dozens of replies (including experts correcting each other, which has confused this poor beginner). Meanwhile here is something *much* simpler and I suspect it again shows how ...
Score Troubles with User Permission
CharlyE - 16 Dec 2006 1:09 PM - 5 messages
Hi! I am working with VB6 and XP Home Edition. I experience trouble when trying to access the windows registry and my app databases when the user has limited permission (i.e., has not system administrator permission). The databases, which are common for all users, are not accessible because ...
Score Mouse events to moved picturebox
Johan_Stäck - 16 Dec 2006 1:06 PM - 7 messages
Hello! In a VB6 program I move a picturebox to the current mouse position. This action is triggered by a mousedown event on a usercontrol. Continuing to move the mouse, I was expecting the mousevents to reach the picturebox, but they continue to go to the usercontrol. ...
Score Setting focus to the Form
Pygmalion - 16 Dec 2006 12:11 PM - 8 messages
Hello experts, I want to use Form_Keydown event in my program.  However, it turns out that one of the form controls is always in focus, so Form_Keydown event is never invoked.  I tried to set focus to the Form using command ...
Score Reversing assignments
Jerry J - 16 Dec 2006 6:58 AM - 3 messages
Is there an easy way to reverse the assignments. Ex. a=b c=d e=f I'd like to select the above and paste the following b=a d=c f=e TIA ...
Score QB coder (in 4K!) struggles with vb concept (groan).
aalaan - 15 Dec 2006 11:28 PM - 14 messages
Here is the threatened (er... promised) new thread. Here is the code Private Sub Common() Open "C:\claims\data\claimdat.dat" For Random As #1 Len = 255 ' name and format of existing DOS file and length of records 'old file format used first record as a kind of header and stored the number ...
Score elementary question - casting an object of type superclass to type subclass
BillE - 15 Dec 2006 8:18 PM - 3 messages
I'm using VB.NET in VS 2005. I have a class named ClassA, and a subclass ClassA1 which inherits from ClassA. Is there any way an object variable of type ClassA can be cast to a variable of type ClassA1? ...
Score Anyone using libcurl with VB / VBA?
ubik - 15 Dec 2006 7:58 PM - 4 messages
If you are, please let me know how you installed the thing. I need to automate a file upload process through a web page from VB in Excel, and I'm told the easiest [ha!] way to do it is using cURL. I ...
Score Date and Size blank
Lorin - 15 Dec 2006 7:53 PM - 5 messages
VB6 SP6 What is up with this? I have one file out of tens of thousands that reports a null string for these calls. fso being FileSystemObject. fso.GetFile(sSDPN).DateLastModified fso.GetFile(sSDPN).Size Even though in Windows Explores the file shows the correct values. ...
Score How do I view a Scanned document in VB6?
Richard - 15 Dec 2006 4:31 PM - 5 messages
Hi group, I have a VB6 program that uses a twain driver and scans documents into a folder. Currently I save the scanned documents as a jpg file and then view it using the Picture control or the Image control. ...
Score object required error
louis - 15 Dec 2006 4:22 PM - 4 messages
is there a way when the "object required" error is thrown to examine the "err" object (or other variable or object) to determine WHICH object caused the error?  I can't duplicate the error on my development system, so I can't ...
Score Sort a file listbox by date
Jack B. Pollack - 15 Dec 2006 4:20 PM - 3 messages
I have a file listbox that I would like to sort by date. Is this possible? If it is not possible is there a free file listbox custom control that will do this? If no to both above, how could I simulate this with a standard lsitbox? ...
Score Microsoft Printer Compatibility Library 1.0 now available
Paul Clement - 15 Dec 2006 1:00 PM - 51 messages
[link] Paul ~~~~ Microsoft MVP (Visual Basic) ...
Score advanced recordset sorting
Marc - 15 Dec 2006 10:48 AM - 5 messages
Hi the below code looks through a query and creates a point on a map for each record. However rather than just going through each record, I need to do a kind of secondary sort on the query. For example...there may be 100 records ...
Score Microsoft Visual Web Developer
Robert - 15 Dec 2006 12:23 AM - 2 messages
Does anyone know if there is a news group that handles the Microsoft Visual Web Developer 2005 Express Edition? Many thanks Vulcan Bomber (101 Squadron) ...
Score dynamic array help
Marc - 14 Dec 2006 10:39 PM - 5 messages
i need to change the below array so that it is dynmanic...how can i do this? i.e there wont always be 4 values. Sub MapSelectedProperties() Dim objLoc2(1 To 4) As MapPoint.Location   Dim i As Integer ...
Score How can you tell if anything is selected in a listbox
Jack B. Pollack - 14 Dec 2006 9:57 PM - 4 messages
In a multi-select list box I want to be able to disable a button if nothing is selected. I know that I can use FileList.selected(index) to run through the list and check it, but is there a way of referring to the entire list in one ...
Score Why it does not convert ?
Phil Hunt - 14 Dec 2006 5:05 PM - 62 messages
Private Sub main()     Dim xDate As Date     xDate = "01:00:00 am"     MsgBox Hour(xDate) = "1"     MsgBox Hour(xDate) = Left("123", 1) End Sub Why does the 2nd msgbox return False ? What are the step VB take to convert ...
Score array help
Marc - 14 Dec 2006 5:05 PM - 4 messages
Anyone know why the below array doesnt work? Dim locations() As MapPoint.Location     Set locations(1) = objMap.FindResults("Los Angeles, California")(1)     Set locations(2) = objMap.FindResults("Honolulu, Hawaii")(1)     Set locations(3) = objMap.FindResults("Tokyo, Japan")(1) ...
Score Click Submit in Online Folder with Excel VB
jonathan.trousdale - 14 Dec 2006 4:45 PM - 4 messages
Here's my problem... I need to run records from an excel database through an online form, then copy the results of the form back to excel somewhere.  The problem is that I can't get VB to click the submit button.  I keep getting an ...
Score Re: Convert from VB3 to VB6
Keithuk - 14 Dec 2006 4:31 PM - 2 messages
VB2/3 Form files are normally saved in Binary format 'upgrwzrd.zip' ([link]) on this site will convert Binary files to Ascii files and convert 16bit to 32bit API calls. eek ...
Score Send mail from VB6
Bart Steur - 14 Dec 2006 3:04 PM - 8 messages
What is the best (free) way to send mail from a VB6 program without using the standard mail components (MAPISession and MAPIMessages). thx, Bart ...
Score ADO + BIT COLUMNS
Rocky - 14 Dec 2006 11:00 AM - 7 messages
I have a program which uses both Access and SQL, when tables are created by the program all boolean columns work fine when created for access, however when I create them for SQL Server, everything works fine until I add a new ...
Score HELP: getting vb to work with IE
Sizeak - 14 Dec 2006 9:28 AM - 2 messages
Hey is there a way, possibly using dll's to get visual basic to interact with internet explorer, eg. load a page, type text into a txt box, eg. google, press the submit button or refresh the page, pretty much anything along these ...
Score Raise event on application end
lkazatzo - 14 Dec 2006 8:32 AM - 8 messages
Hello, Does anyone know if there is a way to notify an application when a third app has ended? In other words, I have two apps A and B, and I want whenever app B terminates, force the termination of app A. A ...
Score Muti user Chat application
Sriraman CS - 14 Dec 2006 7:57 AM - 3 messages
Hi, I would like to develop a multi user chat application in LAN. I have seen some examples which connect one user with another and chat. but what i want is, there will be 10 or more users will send message to one server application and the server user will respond to the users interactively. ...
Score Refreshing or updating the form?
DORI - 14 Dec 2006 6:49 AM - 5 messages
Hi All, Newbie vb6 I enter data on form1 and save it to a .mdb file. Form2 is a search engine which retreives the data from the .mdb file. When I try to search the most recently saved data from the search engine on form2, I can not find the most ...
Score How to stop the application?
DORI - 14 Dec 2006 6:30 AM - 4 messages
Dear All, Newbie vb6. I close the application by clicking on the "Close" button but it seems that it stills runs in the background. I mean when I open the Windows Task Manager, under the Application tab, my application is still running. ...
Score VB Object model syntax in database
luke.wallace - 14 Dec 2006 5:58 AM - 2 messages
I'm considering creating a database where users select values for a given VB object model definition. e.g. if a user wants to specify a prompt for a msgbox. they would select msgbox as the object type, then prompt as the property type then ...
Score Centering text in text boxes
Dan - 13 Dec 2006 11:37 PM - 3 messages
Is there a way to vertically center the text that is entered in a text box? For example, when I enter a password for an identity in Outlook Express, the bullets are vertically centered, but when I do the same thing in my ...
Score Trouble scaling colour images
Scott M. - 13 Dec 2006 9:18 PM - 13 messages
Hi, I have a VB6 application that displays a colour image using StretchDIBits (I know, we Canadians spell COLOUR wrong). The image is a bayer pattern bitmap that is 1280 pixels x 1024 pixels in raw format. In my application, my PictureBox cannot be this large, so I made it ...
Score Form as (frmAll as Form)
Ron - 13 Dec 2006 4:55 PM - 7 messages
Hi With a function I can set its call as a frmAll eg: myFunction(frmAll as Form) code End Function I have a Form which only has radio buttons on it and at this time is called from only one form so the code can have a direct link to it like ...
Score Newbie of visual studio express in need of help
iamhiddensomewhere - 13 Dec 2006 4:26 PM - 6 messages
How do I create a hello world application? Something with a clickable button that closes the application ("Done" button)? Something that has a button and when clicked displays the sum/product/etc of two or more numbers? Perhaps a list of links to tutorials? That would be a fantastic help. ...
Score You need any type of CAD CAM CAE CFD FEA EDA PCB GIS CNC
EngieeringSoftware Team - 13 Dec 2006 3:36 PM - 2 messages
Let's put an end to your rigorous search for softwarePS, sending money and getting cheated, paying for evaluation versions in the name of full versions etc.. You can get almost all full working versions under one roof. type of software....SoftwarePS can provide you .. ...
Score please, please help - can't access HTTPFileCollection
pbd22 - 13 Dec 2006 2:49 PM - 3 messages
hi. i am having probs accessing the HttpFileCollection. the count/length is always zero. the file upload parameters passed to the page that should be getting the httpfilecollection looks like this. uploadprogress.aspx?&video_2=C%3A%5CDocuments%20and%20Settings% ...
Score Cursor conflict
Lemune - 13 Dec 2006 11:12 AM - 7 messages
I had this problem, I had developed and application that read and write to database. I'm using Microsoft ActiveX Data Objects 2.8 Library and msdac 2.8. I have install my application using MS SQL Server 7 standard, MS SQL Server 2000 standard and MS SQL Server 2005 standard ...
Score Get IP address of remote PC by its name
Eran.Yasso - 13 Dec 2006 10:29 AM - 2 messages
Hi all, Can I get IP address of remote PC by the remote PC name? ...
Score Controlling Flexgrid control's Scrollbar action
Anandhan - 13 Dec 2006 9:26 AM - 5 messages
Hi all,        In Flex grid control,whenever I update the values,the scroll bar goes to starting position of the flex grid control.Can anybody tell me how to avoid this,like the values on the grid cell has to be updated without ...
Score Error deleteing folder
Saucer Man - 13 Dec 2006 3:00 AM - 9 messages
I am using the SHFileOperation API to delete a folder and files within but I am getting the error message "Unable to delete folder as it is in use by another person or program."  I cannot figure out what has got it locked. ...
Score Print rich text document
Sandy - 13 Dec 2006 2:00 AM - 3 messages
Hello - I have a rich textbox that displays a Rich Text File.  That document has footers.  I am able to print the document perfectly from the form . . . all except the footers. This is a document that's already been created and is static.  Isn't there a ...
Score Conversion form QucikBASIC!
aalaan - 12 Dec 2006 11:19 PM - 85 messages
Hi all! I'm having a great time learning vb from scratch and trying to read the old files I created with QucikBASIC long ago. It's a new way of thinking and I'm enjoying it. I have managed to display all the string information, access ...
Score Turn off VGA monitor for a second
Mark - 12 Dec 2006 9:28 PM - 3 messages
I have a project that has to resize the screen. When it resizes the screen flickers. I would like to turn off the monitor update until all the resizing is done and then turn it back on again. Does anyone know of any vb commands ...
Score Graphical option buttons
BeastFish - 12 Dec 2006 9:10 PM - 4 messages
Been searching the net and groups... Is there a way to change the background color of a selected (toggled down) option button (Style = Graphical)?  Perhaps a SendMessage or something? While I can live with the color it gives when selected (a lighter color of ...
Score Keyboard and Scanner
Phil Hunt - 12 Dec 2006 6:31 PM - 14 messages
Hi, a) I have a VB form with a textbox. b) Metrologic Scanner with USB interface, it is not RS-232 emulatation. It is HID type of device. My question is how can I tell if the scanner is putting data in the txtbox ...
Score Systray Icon
HelpME - 12 Dec 2006 6:12 PM - 4 messages
I want to creat a program that always has a systray icon visible regardless of its window state.  I have worked out the minimize to tray and restore when cklicked routines.  What I cannot seem to doe is ...
Score MailTo Syntax
Lorin - 12 Dec 2006 5:30 PM - 3 messages
I need direction on MailTo syntax. I am using this but it does not pass muster. using this call         Call ShellExecute(frm.hWnd, "open", sText, vbNullString, vbNullString, SW_SHOWNORMAL) sText is set to mailt***@pacbell.net?Subject=Message Log #0 from: LARRY&Body=Message Log ...
Score VB6: Writing a file which is writeprotected
Bjorn - 12 Dec 2006 4:55 PM - 4 messages
I am a using VB6 and XP. I read and write Excel-files.  If I open an Excel-file with readonly = 0, this works even if the file is open somewhere else.  But when I close it with savechanges= true I got a problem.  The ...
Score VB6 Treeview
News.Microsoft.com - 12 Dec 2006 3:37 PM - 4 messages
Does any one have some sample code showing how to loop through a TreeView and save the contents to a recordset and then later on load it back? ex. All Customers     Customer 1          invoice 1 ...
Score How to prevent lost_focus event when moving between forms
JorisKl - 12 Dec 2006 3:33 PM - 3 messages
I have a small application with a couple of forms. When typing data in a textbox in one form and next giving an other form the focus, the textbox.lost_focus event is not executed unless I end the data input with a ...
Score compare contents of files - take 2
Matt Williamson - 12 Dec 2006 3:13 PM - 5 messages
I'm doing a redux here, because I think there is a better way to do this, but I'm not sure. I'm working on a conversion project where the original program was written in delphi. The company that wrote it went out of ...
Score Best C++ type for VB's String
S. I. Becker - 12 Dec 2006 2:24 PM - 3 messages
When writing a COM Class in a dll in C++ - which will mostly be accessed only from VB6 and VBA, what is the best type to use for passing Strings from VB to the class.  And what about returning Strings back to VB - ...
Score IE crashes.....Plzzzzzz help
sajin - 12 Dec 2006 12:30 PM - 4 messages
Hi,     I developed a application in Vb6 which has WebBrowser control in it. I added reference of "Microsoft Internet Controls" i.e. SHDOCVW.DLL file. This file is of Internet Explorer 5.5 and above upto 6.X. ...
Score Get the length of a string
Yoavo - 12 Dec 2006 7:26 AM - 17 messages
Hi, How can I get the length of a string (in characters) ? I tried using "Len" function, but in japanese text I get: Len = (characters number)*2 + 1 Yoav. ...
Score incrementing
Steve - 12 Dec 2006 6:36 AM - 7 messages
I am trying to change the text in a set of text boxes. here is the code w1 = InputBox("Input Word")     TXT = Int((12 * Rnd) + 1)         If c(TXT).Text = "" Then ...
Score Re: Emulate Mouse Click in VB 6.0 Code
LyzH - 11 Dec 2006 10:08 PM - 9 messages
I have something of a twist on this problem and I'm really in trouble here; I have 6 hours and 20 minutes to finish the final project. And if this is a dumb question, that's because I'm a student in a 200 level ...
Score running multiple instances of VB application within IDE
WB - 11 Dec 2006 9:59 PM - 3 messages
Is there a way to test within the Visual Basic 6.0 IDE whether multiple instances of the application being developed are running? I am using the app.prevInstance method in my form_load event, but when I run the application I can't seem to figure out how to run a second instance. ...
Score Compare 2 Arrays show differences from both - Rick Rothstein?
Matt Williamson - 11 Dec 2006 6:57 PM - 5 messages
I have 2 files that I need to compare. I started by just using FILE I/O to do it, but it was very slow so based off of a suggstion from another NG'er, I decided to dump each file into an array and compare the arrays. This is ...
Score Run-time error 3265
nallen1 - 11 Dec 2006 6:41 PM - 2 messages
Hi, I'm running a VB 6.0 app to interface with an Oracle HTMLDB table.  The application runs fine on Win2000 PC's (like mine), but on WinXP machines, when the user tries to bring up a record, we get the ...
Score How to read (access) joystick port?
Jack - 11 Dec 2006 5:52 PM - 3 messages
Is it possible to access joystick port using vb? I need to detect when for example button 1 is pressed. Jack ...
Score Text box not refreshing
glenn.hughes - 11 Dec 2006 4:46 PM - 3 messages
Hi All A refreshing little problem.  I have a process that write a log (a physical text file) and I want to have a text box that displays the contents of the file in real time.  I am using VB6 with sp6 and the app ...
Score Keeping a window on top
runnerpadilla - 11 Dec 2006 3:14 PM - 2 messages
I'm an unskilled user who'd like to keep the window I'm working in on top of all others (whatever they may be).  Is there a way to do this? ...
Score Running a VB Script
Richard - 11 Dec 2006 2:13 PM - 4 messages
I'm not sure if this is where I should be asking this question or not as I am, yes, one of the few who still develop in VB 6. My question is. Is it possible to run a VB script file from within a VB ...
Score How do I set the mail-subject in an already opened Outlook window?
richard.ekblom - 11 Dec 2006 1:43 PM - 2 messages
Hello In order to make a template for a task that will be used often I need a way to set the mail-subject with the use of a script. So far my script can insert some standard text that is needed. But I want the script to ...
Score Hide form
Ivan Debono - 11 Dec 2006 10:49 AM - 6 messages
Hi all, I've got an app that gets minimized to the systemtray. I've add an empty form that handles the mouse clicks and serves and the icon. I do the following on its Form_Load:     App.TaskVisible = False ...
Score EXE file version
David - 11 Dec 2006 3:39 AM - 10 messages
Hello all I want to get my programme to notify my user if I have posted a new version of the exe on my website, a reminder to update, if you will. Obviously, I would imagine that I would need to get the file version of the users exe, ...
Score How to avoid MouseEvent recursion?
wxforecaster - 11 Dec 2006 2:21 AM - 10 messages
I have a picture box on Form1, and I want to provide a sample readout next to the cursor position as I mouse over the picture box. In another thread, a number of folks suggest I handle this by placing labels ...
Score Adding a form from another project.
Byron Hopp - 11 Dec 2006 12:12 AM - 4 messages
I am trying to take a existing form 'frmMbcSql.frm' from an existing project 'ExpoConv.vbp' and move it to a new project which already exists 'MbcConvv.Vbp'.  I copied the code to the new folder, and added it from the ...
Score The end of VBA is starting
Mike - 10 Dec 2006 4:43 PM - 2 messages
MS is dropping VBA from Mac Office 2007. It's been said that VB6 will always run as long as VBA exists so is this an omen of things to come? ...
Score vCard Problem
Max - 10 Dec 2006 6:55 AM - 8 messages
I open vCard files(.vcf) with WordPad I've noticed some of them with "ENCODING=QUOTED-PRINTABLE" tag in every entry What does it mean? And How could I convert those "Encoded" data to "Readable" data via VB? Thanks Max ...
Score Treeview Question
News.Microsoft.com - 10 Dec 2006 6:44 AM - 3 messages
I have a TreeView that displays nicely but later in the program I call the routine again to rebuild it to make sure that its up to date and get an error about duplicate keys.  Do I have to delete the present TreeView first ...
Score Quick question
aalaan - 10 Dec 2006 5:33 AM - 10 messages
I am trying to read some random files originally created using Quickbasic. I've got the string fields OK, but some of the fields were compressed dates using my own algorithm of bytes for day, month, year (last two digits). How ...
Next »