Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score Shell Functions and DOS executables
VB_Newby - 7 Jan 2006 11:40 PM - 15 messages
I'm running a DOS executable from a VB Shell function. vCnvrtWFMResponse = Shell("cnvrtwfm -l " & InputPathFile, vbNormalFocus)  'Call the app The DOS executable converts a file from one format to another. If it's successful, it looks like this (at the DOS prompt): ...
Score revised microsoft.public.vb.general.discussion charter
moderator - 7 Jan 2006 10:10 PM - 2 messages
Try linking the jury's resulting folly and Ollie will insist you! ...
Score Printing variables to screen, when in debug
VB_Newby - 7 Jan 2006 8:57 PM - 10 messages
I recently picked up VB5 Professional off EBAY.  I'm a EE who seems to think he's a S/W engineer.  I'm developing a program to convert MathCad files to text files - for subsequent importation into a data ...
Score MSDN98, MSDN Library Visual Studio 6.0a
TedF - 7 Jan 2006 7:38 PM - 9 messages
In my Win 98 computer, VB6, IE6 with SP1. When I open help in Visual Basic 6, and select any tab other than the Contents Tab. When I click a link in the page I get error: mk:@MSITStore:C:\Program%20Files\Microsoft%20Visual%20Studio\MSDN98\98VSa\1033\vbenlr98.chm::/HTML/vafctdir.htm ...
Score Read physical disk sectors
Robertico - 7 Jan 2006 2:41 PM - 3 messages
Is it possible with VB6 to read (not write) physical disk sectors (floppy, hard drive) ...
Score TextWidth Returning Incorrect Values
wxforecaster - 7 Jan 2006 2:33 AM - 4 messages
Having an odd issue with a set of controls that worked fine earlier tonight and am stumped on such a simple function. I'm resizing a textbox control based on the length of the contents. Earlier there was no problem, but now the TextWidth function is returning about 300 ...
Score ListBase with unknown generic
mytchewbacca - 6 Jan 2006 10:04 PM - 2 messages
I would like to create a base class that inherits List(of X) where X would be determined by the class inheriting the base. ie Public MustInherit Class ListBase : Inherits List(Of ?)     Protected Sub common()        //This code would not be specific to the list type, as that ...
Score Performance Tips
IMRAN SAROIA - 6 Jan 2006 9:08 PM - 23 messages
Please advise some performance Tips for developing Enterprise level applications in VB ? Best Regards Imran Yuba,CA ...
Score Re: Famous cracked software download
the_hero - 6 Jan 2006 8:17 PM - 2 messages
jodeson smith wrote: ...
Score Add a line break in label.text
Drew Leon - 6 Jan 2006 6:32 PM - 6 messages
I am learning how to program using Visual Studio 2005 (I chose Visual Basic to start). My question is: I have a sentence which I want to split in two. I would like half the sentence on the first line, and the other half right under it, on the second ...
Score Compile on xp but wont run on 2000 computer
Vanny - 6 Jan 2006 6:26 PM - 12 messages
I have made an .exe of my VB6 program on the computer that has XP as OS and Microsoft Office XP.  The program has the code using EXCEL automation. When users install it on Windows 2000 (both OS and Office), it crashes.  However, ...
Score Open HTML Files?
Arpan - 6 Jan 2006 5:52 PM - 9 messages
Using the Microsoft Internet Control, I have designed a web browser in VB6. I set this browser as the default browser & also associated HTML files with this browser so that when a HTML file is double-clicked to open, the file opens in my browser but when I open a HTML file, though ...
Score Color Codes
Katie - 6 Jan 2006 5:43 PM - 16 messages
I'm working with VB in Excel 2003, and I need more colors than are offered on the default palette.  Does anyone know if and where I might be able to get a broader range of colors and their codes?  Thanks. ...
Score Positioning ouput on printed pages
WayneM - 6 Jan 2006 3:06 PM - 3 messages
I have a vb6 app that prints info to a metafile and then it is played onto the printer object.  This is done to combine information from my vb app plus output from a third party dll.  On some printers the output is shifted, so ...
Score read a word document and send through POST
Aj Blosser - 6 Jan 2006 3:03 PM - 2 messages
Hey guys, I need some help here. I'm trying to read the value of a word document and send it through POST to a PHP html page. The problem is the POST is basically a text string, and I've been trying to ...
Score Help plzz
Simon - 6 Jan 2006 2:50 PM - 3 messages
I am using visual basic express edition 2005 and I can't save it as an exe file Plzz help Me!! ...
Score system decimal point separator
Rick - 6 Jan 2006 2:16 PM - 6 messages
Hi, all. Is there an API that tells me what is the system decimal point separator. I need this for multinational calculations in a VB6 application. ...
Score Reference a MDI Child Procedure from the MDI Parent
KenRoy - 6 Jan 2006 1:43 PM - 8 messages
I want to be able to call a Public Procedure in the active Child Form from the MDI Parent code.  If I try to use the ActiveChild.<procedureName> it obviously can't reference it because at design time it doesn't know what form ...
Score How to produce an accurate estimate
Jason Madison - 6 Jan 2006 12:28 PM - 8 messages
A programmer I work with spent 4 hours producing a 14 day estimate for a project. In the event the project took 15 days and his manager was annoyed that he had estimated incorrectly. Is there any research into the ratio between time taken to produce an ...
Score Examining project reference contained in a .exe??
Howard Kaikow - 6 Jan 2006 7:09 AM - 6 messages
Given just the EXE, no source code, is it possible to determine what project references were used to build the .exe? ...
Score How to terminate a dll if an error occurs within the dll (Urgent)
Shoukhat Khan - 6 Jan 2006 6:04 AM - 12 messages
Hi, can anyone help me solved my problem. I want to end or exit the dll if any error occurs and return back the contol to the calling screen or the calling app. ...
Score Change TreeView background?
merlin - 6 Jan 2006 1:02 AM - 3 messages
Is it possible (and easy) to change the background of a treeview? thanks ...
Score passing 2D Array Using ADO From VB 6 In To...
zoneal - 6 Jan 2006 12:24 AM - 2 messages
I have an Oracle Stored Proc with following specs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TYPE tblROW IS VARRAY(2) OF VARCHAR2(4000); TYPE tblDATA IS VARRAY(2) OF tblREQROW; PROCEDURE getA_Proc( pi_Data IN tblDATA, A OUT NUMBER); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I wanted to pass a 2D Array from VB 6 to this proc as follows ...
Score pass argument at start up
Gonzosez - 5 Jan 2006 9:49 PM - 4 messages
I have a program c:\project1.exe I am trying to pass a value to text1 on the from with c:\project1.exe -text1 value and I can't get ti to work TIA ...
Score Global variable
Penelopa - 5 Jan 2006 9:47 PM - 31 messages
Is it possible to declare global (public) variable conditionally using If...Then statement? ...
Score MEMORYSTATUS is wrong...why?
ckerns - 5 Jan 2006 4:25 PM - 5 messages
Have vb app that displays RAM usage using a call to MEMORYSTATUS.  All worked well with 2gb RAM.  When I doubled the RAM, MEMORYSTATUS only reports 2gb instead of 4 gb.  Also, lAvailablePhysical constatntly reports as 1/2 total (2gb) ...
Score Returning from a "Called" Form
cuttysark55 - 5 Jan 2006 4:12 PM - 2 messages
Assume Form2 (a "Find" form for example) was Loaded (or called) from Form1. When Form2 is Unloaded, the program will resume in Form1. What is the best way to restart code statements in Form1 after returning from a call to a Form2? ...
Score Page breaks in Excel
Fred - 5 Jan 2006 2:23 PM - 4 messages
I've viewed a number of threads regarding Excel's knack of ignoring page breaks when "Fit to" is used and have seen the suggestions as to how to overcome this, using Fit to 1 page wide leaving the tall ...
Score Help!!
Simon - 5 Jan 2006 1:54 PM - 2 messages
How can I save my prodject as an exe folder ...
Score Help!!
Simon - 5 Jan 2006 1:54 PM - 2 messages
How can I save my prodject as an exe folder ...
Score draw data as graph.
Boki - 5 Jan 2006 12:26 PM - 13 messages
Hi All, I have some real time data, I wan to show them as graph: is there any good codes I can use ? : ) I wish that can auto refresh by time : ) and draw as FIFO ...  so nice ... : D Thank you very much! ...
Score Interactive Program
Alastair MacFarlane - 5 Jan 2006 11:17 AM - 4 messages
Dear All With VB you can create an interactive program that works on a CD but can this also work on a DVD? I think I know the answer but I thought I would just ask anyway! .... or do I need to use packages like Macromedia Director MX 2004? ...
Score I am using visual basic express edition and I can't save it as an exe
Simon - 5 Jan 2006 10:58 AM - 5 messages
I am using visual basic express edition 2005 and I can't save it as an exe file Plzz help Me!! ...
Score VB 6 Error 0
kies - 5 Jan 2006 10:18 AM - 7 messages
Hi all, I am stumped by this vb 6 error with the code 0. Looking through webpages tells me that this is an operation completed successfully error. Can anyone enlighten me, what can be the possible cause of such errors? Many thanks! ...
Score VB6 IDE overwrites API declarations
Tomasz Klim - 5 Jan 2006 10:08 AM - 4 messages
Hi I have some project in VB6. Until yesterday, everything went fine. But today, everytime I open this project, VB6 IDE changes API declarations without any question. For example, I have:   Private Declare Function GetTempPath Lib "kernel32.dll" _ ...
Score File finder
Les - 5 Jan 2006 5:18 AM - 2 messages
What is the easiest way of knowing if a file (ie xyz.txt) exists in a particular folder (ie fold) or not. Thanks, Les ...
Score Vb App effecting Vba code?
T. Street - 5 Jan 2006 2:27 AM - 4 messages
Hi, Not sure whether this question belongs in a VBA group, or VB... but I thought I might try here first. I have a VB6 app that opens and keeps control of Excel workbooks and Word docs. It's been working well for many years and across various versions. I ...
Score MMcontrol won't work on transported source code
Rich - 5 Jan 2006 1:54 AM - 3 messages
I was asked by my wife to develop a VB6 application that would allow her to administer make-up tests to her high school French students.  The app is designed to play the listening portion of the test a certain number of ...
Score Internal date/time representation
Gheorghe Musca - 4 Jan 2006 9:38 PM - 11 messages
Hi, Can anybody tell what is the internal representation in VB (nr. of bytes, int/double etc.) of a Date variable, and what is the significance (e.g. 'Nr. of miliseconds since ...'). I have to convert such a date which was serialized somehow in VB and stored ...
Score Runtime errors on certain machines - HELP!!!
Fred Flintstone - 4 Jan 2006 9:14 PM - 4 messages
Oh help.  Please help.  I've been at this for months and I don't know what else to do.  I write VB6 apps.  I've written a suite of them for my employer.  All was well until my development machine blew up.  I ...
Score Text property is Read only
Pinto1uk - 4 Jan 2006 9:14 PM - 4 messages
Hi, i am trying to display data from a database into a combo box. when doing so, i get the the error: text property is read only. the following line of code is highlighted:   frmProducts.cboCat.Text = adoRecordset.Fields("CategoryID") ...
Score Printer object/intellsense
Mick Whyte - 4 Jan 2006 8:51 PM - 6 messages
Hi Am outputting to default printer but intellisense won't display print as a method of Printer object hence Printer.Print not found but does turn Print blue and capitalise as reserved word. Also am trying to print from a user defined type as follows: ...
Score Divide-by-zero problems from C++ DLLs
Joe Daverin - 4 Jan 2006 8:47 PM - 2 messages
Hi, I'm having a bit of trouble with divide-by-zero errors (and overflow errors as well) coming from DLL calls to libraries written in C++. The problem seems to be that the C++ library executes a divide-by-zero or encounters an ...
Score save and re-store treeview after drag drop
RB Smissaert - 4 Jan 2006 8:08 PM - 3 messages
I am using a treeview with drag and drop in an Excel userform. This treeview has to be saved to a text file and then has to be restored exactly as it was from that text file. This was no problem when I didn't have the drag and drop feature, but now ...
Score userform - print landscape
Priya Menan - 4 Jan 2006 6:58 PM - 6 messages
hello, Happy new Year I am having problem print my user form in lanscape view. here is my code... Private Sub cmdPrint_Click() With InputForm .PageSetup.Orientation = xlLandscape .PrintForm End With End Sub "Method or Data member not found" thats the error message i am getting.. ...
Score Unexpected Error 429-active x component can't create object
N6XB - 4 Jan 2006 6:30 PM - 7 messages
I have been searching for a solution to this problem, but so far no luck... When I start the P&D Wizard, and then click Package, after about 2 seconds of processing, I get the message "Unexpected Error 429-active x component ...
Score Error Trapping
Asif - 4 Jan 2006 6:01 PM - 6 messages
Hi, why is the following code not working? i am trying to trap an error where if the supplierID exists in antoher table, it should not be deleted. if i try to delete a supplier that has products attached to it, i get the correct ...
Score ishellfolder and parsedisplayname ?
Andrius B. - 4 Jan 2006 5:25 PM - 3 messages
Hi. My problem concerns vb .net 2005. I want to use  IShellFolder interface for such functions as ParseDisplayname. But how to parse a string - folder name (I mean, adding terminating nullchar or smth.) to parsedisplay method? For exzample, if I ...
Score Handwriting
abs81 - 4 Jan 2006 4:58 PM - 2 messages
Hi all, can ne 1 tell me if i want to include the features of microsoft windows journal to my vb application how can i do that,i.e. , is to say i want to write through a stylus on to a vb form and then save whatever i wrote in to ...
Score Patience Tester
Arpan - 4 Jan 2006 3:18 PM - 15 messages
Someone please offer me a concrete remedial measure otherwise I will go bald in the next few days! A MsgBox which is supposed to fire only once gets fired only once when I run the project from the VB6 IDE but when I run the EXE after ...
Score Find out WHO last modified a file
CJM - 4 Jan 2006 9:45 AM - 4 messages
Is it possible to programmatically retrieve the identity of the last person to modify a file on a Windows Server (NTFS)? Thanks in advance Chris ...
Score Timer accuracy.
Boki - 4 Jan 2006 7:33 AM - 12 messages
Hi All, I am measuring UART speed via bluetooth virtual serial port. When client receive data it will ACK that data ASAP. but the timing only 10ms, 20ms, 30ms.... seems not really millisecond level. Could you please advice another method ? ...
Score Can a vb app run as a service?
stjulian - 4 Jan 2006 1:37 AM - 6 messages
I have a small program that is used for database updates. The program runs and uses it's own timer to mine the database for changes. As well, it has a few control buttons to perform the scan at will. ...
Score Release of Resources
cuttysark55 - 4 Jan 2006 12:15 AM - 5 messages
Can someone explain why the VB IDE does not seem to release a File handle (hFile) after a call to CreateFile (API) even though a CloseFile hFile call was made while the application was running in the IDE. This is evidenced by the inability of a really good IconEditor to load an ...
Score Problem with Get
atlinc - 3 Jan 2006 11:34 PM - 6 messages
In an application I'm building I'm saving data in a random access file using Put and Get. I collect data from a form, load it into a User Defined Type variable and save it to the file with a Put. When I look ...
Score Script to remove files
Matt Beals - 3 Jan 2006 8:55 PM - 9 messages
Is there a way to select files in a given directory that are greater than 7 days old and delete them? I have several different folders that I would like to purge every week. I was thinking that I would do this in a batch file so that I can run it ...
Score Run time error 3001
Pinto1uk - 3 Jan 2006 8:55 PM - 2 messages
Hi, i am trying to use the Find method of the Recordset object. when doing so, i am getting a run time error. i am trying to find the product category selected by the user with the categoryID located in the Product table. can ...
Score How to make shoutcut visible to all user?
Wyne - 3 Jan 2006 7:37 PM - 10 messages
Hi, I have an App made by VB6. When I install it to a XP machine, its shoutcut icon (located in Start Menu\Programs) is only visible to  the Admin user. Although I can manually change this icon's security setting to mike it ...
Score Determine if Component is Registered
Brian Shafer - 3 Jan 2006 5:18 PM - 6 messages
Hi, I wrote a scheduling application a few years ago.  This app use mscal.ocx, V8.0.  This component is not redistribable, and I don't really want to get into writing my own calendar control.   My question is,  How can I determine ...
Score Textbox context menu on a label control
Bryan Dickerson - 3 Jan 2006 3:03 PM - 4 messages
I've Google-grouped for this and I found what looks to be an answer, but it was in Spanish which is not my native tongue or my forte'... Can someone point me in the right direction to find out how to add the ...
Score Basic Question about EXE and DLL
Dixon - 3 Jan 2006 12:35 PM - 8 messages
Some one pleez tell me the actual difference between DLL and EXE.....how they differ in working and in memory handling.....pleeez explain with an example...... ...
Score OT: New virus threat...embedded in images
Kevin Provance - 3 Jan 2006 2:45 AM - 11 messages
Oy...this isn't looking good ====================== Windows PCs face 'huge' virus threat; Affects every MICROSOFT OS shipped since 1990... - Kev ...
Score joystick
Tim - 3 Jan 2006 12:40 AM - 10 messages
hi, is there a way to 'send' data to the joystick thru vb rather than just reading it? thanks ...
Score Get to know a .jpg file dimensions
Samuel Marin - 3 Jan 2006 12:24 AM - 3 messages
Hi. I'm a near beginner in VB6. I just want to display random photographs taken from a folder (that's already working) but some photographs were taken vertically. I'm using the 'stretch' attribute which - well - stretches these pictures inacceptably. I ...
Score Which API is better to use and why?
Frank - 2 Jan 2006 10:10 PM - 7 messages
err.LastDllError or GetLastError ?? Both API's work in my code, but I recall some past post someone recommending using err.LastDllError. Your input appreciated, Frank ...
Score Can not install Northwind Sample DB
Joe A - 2 Jan 2006 7:48 PM - 2 messages
Many online articles about Visual Studio 2005 require the Northwind Sample database.  I download this file (Northwind/Pubs for SQL2000) but it will not install on my PC.  Thermometer goes 90% across and stops.  Must use task manager to ...
Score Chunk of code INSIDE a Timer or in EXTERNAL routine (to speed up)?
matt - 2 Jan 2006 2:49 PM - 7 messages
Hallo, in a Timer I have a whole chunk of code (under an "If" statement) that seldom only is processed (the "If" condition is satisfied), so I thought to put what follows the If statement in an external routine (in the Form Declaration section), ...
Score Test connection to VB 6.0 DLL
Mads Westen - 2 Jan 2006 2:47 PM - 5 messages
Hi there, I'm trying to see if the programlanguage "XAL" can interact with DLL's written in VB 6.0. How do I do that, where can I find a simpe VB 6.0 DLL with a return value? ...
Score Runtime Errors - best resource
UK GENT - 2 Jan 2006 9:27 AM - 14 messages
Hi there I am involved in a product that has been known to develop some Runtime Errors. Many have been sorted out by the developer, but I have to search the net sometimes for resources. Does anyone here know of some good sites that ...
Score CancelIo () what is wrong with this declaration?
Frank - 2 Jan 2006 7:05 AM - 10 messages
When I declare: Declare Function CancelIO Lib "kernel32" (ByVal hObject As Long) As Long and use it like this: rtn = CancelIO(ByVal ComHwnd) or like this: rtn = CancelIO(ComHwnd) there is Run-time error '453': Can't find DLL entry point CancelIO in kernel32 ...
Score VB form layout vs. HTML layout
jim - 1 Jan 2006 8:31 PM - 8 messages
Greetings, A colleague and I are about to port an ASP web application to a stand-alone, installable version with a subset of functionality from the web version. To date we've enjoyed the ease in rendering complex, dynamically (database) generated forms with HTML. We realize with VB, ...
Score Identify folder location
BobbyS - 1 Jan 2006 8:26 PM - 23 messages
I am trying to write an installation program and need to be able to locate the path of a folder on the users computer (irregardless what drive it is on) and assign the path to a variable. Could someone help me with the code to ...
Score API File Open Dialog - Best way?
SteffieJ - 1 Jan 2006 7:31 PM - 4 messages
Hi,   *** Using VB6 *** I'm pretty new at this so please be patient. I'm using the GetOpenFileName API to show the file dialog. I know I could use the CommonDialog control but this way it's one less component I have to worry about installing/registering on a ...
Score ImageCombo As Address Bar?
Arpan - 1 Jan 2006 6:52 PM - 2 messages
To begin with, let me first WISH A HAPPY & PROSPEROUS NEW YEAR TO ONE & ALL! Now coming back to the subject, a WebBrowser project has a ImageCombo which makes the address bar. The reason why I am using a ImageCombo & ...
Score ListView - Keeping the focus
Pinto1uk - 1 Jan 2006 5:37 PM - 4 messages
Hi, how do i keep the focus on an item selected by the user, although i move away from the ListView control? eg. i want to delete a user. i select him/her from the ListView. then i move away from the control and press edit. the user is no longer highlighted. how ...
Score Question about "Is Nothing"
-mhd - 1 Jan 2006 5:34 PM - 12 messages
When checking for the existence of an Object, is it fine to use... If objWidget Is Nothing Then ObjectInit Or should I be using the following... If Not objWidget Is Nothing Then    Do Normal Stuff Else    ObjectInit ...
Score problem with RegQueryValueEx
Kjell - 1 Jan 2006 2:52 PM - 5 messages
Hi all Hope you all are in for a new fantastic year of classic VB,  I am  :-) Below is a function that reads a value from Registry, my problem is that I now need to read a REG_DWORD type of value, I think this is the same as Hex ...
Score C# control causes VB6 application to crash on exit
Asaf - 1 Jan 2006 10:35 AM - 4 messages
Hi, We have a VB6 application that needs to use a new control written in ..NET v1.1 C#, imported as a COM control. We have tried adding the C# control to the VB6 control both dynamically (using Controls.Add) and using the VB6 designer.  In both approaches ...
Score Visual Basic 2005 Express Edition
Lynn - 1 Jan 2006 9:08 AM - 4 messages
Hi, what's the difference between Visual Basic 2005 Express Edition and Professional Edition ? thanks ...
Score Invalid Operation at Current State
IWP506 - 1 Jan 2006 3:03 AM - 4 messages
I'm writing a little proof-of-concept vb http webserver.  I use this code to initialize and begin listening: Private Sub cmdStart_Click()     sPort = CDbl(txtPort.Text)     winsock.Close     winsock.LocalPort = sPort ...
Score Finding Color of Specific Pixel in Loaded Image
PulsarSL - 1 Jan 2006 2:21 AM - 6 messages
Hi, I have an image, and I'd like to find the RGB values (or any other descriptive pixel value) for a specific (known) pixel coordinate in the image.  How can I do this with vb6? Happy new year, ...
Score Happy New Year from Sweden
Kjell - 1 Jan 2006 12:46 AM - 9 messages
Rgds Kjell ...
Next » 2 3 4 5 6 7 8 9 10