Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score Compatibility
Ivar - 10 Mar 2007 11:58 PM - 3 messages
Hi all. On an XP desk top, the properties of the shortcuts have a setting for 'Run in 256 colours'. Can a VB6 program detect if this setting is checked? Thanks Ivar ...
Score programme on a network
CarlG - 10 Mar 2007 6:54 PM - 8 messages
I would like to run my vb5 programme on a network. I am just wondering whether you be so nice to tell me how to do that? The programme now run separately on each client. I don't know anything so I ...
Score VB6 versions
Jack C. - 10 Mar 2007 5:46 PM - 17 messages
I have Learning Edition of VB6. What features does the professional edition have which are NOT in learning edition? Is the "Make .EXE" more complete? Other features? Thanks, Jack C. ...
Score iterate tables collection of webbrowser control, how
Mike Scirocco - 10 Mar 2007 6:57 AM - 5 messages
I want to load a page in a VB6 webbrowser control then iterate through the table collections until I find the table I want, then iterate through the table headings or table cells to collect the text. Does anyone know of any examples of doing this? ...
Score PDW error when building setup package
Jerry West - 9 Mar 2007 9:16 PM - 6 messages
I've been building a setup package for my project for days now without error. Today though, the PDW returns the following error "Invalid procedure call or argument". Nothing has changed about my project which is a simple ActiveX control project. It does not use a database, Access or any other ...
Score text program
wolfgangea - 9 Mar 2007 7:44 PM - 4 messages
I have ascii text saved in notepad but I can dump the text anywhere that is easiest to do the following:  I would like to open with VB6 that file into a textbox and then when I double click on a word I can launch a userform with ...
Score database connectivity in vb6
udit - 9 Mar 2007 7:03 PM - 2 messages
i m creating a project in vb6. but i m unable 2 use the database and workspace objects. can any1 pls tell me how to use the'data' object, and also how to use the connection and command obbjects.. i would like to know the coding ...
Score Binary file read/write
stumorgan - 9 Mar 2007 5:47 PM - 6 messages
I'm trying to read in a jpeg as a binary file and save it to the database, then read it from the database and output it back to the hard drive.  The area that I'm having trouble with is that the Get and ...
Score read file with delimited "~"
mc - 9 Mar 2007 5:09 PM - 3 messages
I need to read a txt file with only one long line including several "~" as a delimitor. It's a simple sequential txt file. How can I read each string between "~"? Thanks, File example:------------------------ ISA*00*          *00*          *ZZ*yyyy      *ZZ*xxxx ...
Score Make a Form "Always on Top"
Randy Gardner - 9 Mar 2007 5:01 PM - 2 messages
I have a 2 form SDI application, how can I make one form always on top of the other? Now, as soon as I click on the form in the background the foreground form goes to the background. ...
Score Read File
Anna - 9 Mar 2007 12:15 PM - 5 messages
Hi:Can any one please tell me how to convert excel file into a text file thru VB6 Program? Also is it possible that i read the values from the converted text file of any column one by one thru do while loop? ...
Score Crystal Reports
sunil.verma46 - 9 Mar 2007 11:01 AM - 2 messages
we creat a setup with Installshield and choose merge module of crystal reports than this setup is working fine on this system which is install .net complete but this setup is not working an another system which system only install .net framework , all function are working ...
Score OT - Microsoft does listen...
Michael Cole - 9 Mar 2007 6:28 AM - 2 messages
"During the planning of every platform release, there are hard decisions to be made regarding how much backwards compatibility to provide.  ...  It's not that we don't want to provide perfect backwards compatibility -- we do -- it's that the cost of providing that compatibility is nontrivial, and ...
Score How to capture VB.NET Event From VB6????
Vanessa - 9 Mar 2007 3:14 AM - 12 messages
I have a class library developed in VB.NET.  Inside there is a form with a button1. I add this class library to a VB6 Project. I do a Dim a as new classlibrary.form1 SetParent a.GetHwnd, Me.hWnd ...
Score Access 2003 - Distributing VB applications
george - 9 Mar 2007 1:00 AM - 8 messages
I have a VB 6.0 application which has used Access 97 / DAO database files for years. I am converting the application to support Access 2003 mdb files (with DAO 3.6) now and am trying to figure out what additional components I ...
Score Winsock Wows
Chuck Faranda - 9 Mar 2007 12:59 AM - 3 messages
I'm trying to use Winsock to communicate with a devise that will control a telescope observatory.  I can establish the link, but when I try to poll for data via a timer I can't get all of the returning strings.    All that I get ...
Score Applications list
Matthew programmer - 8 Mar 2007 9:38 PM - 3 messages
Can I get a list of currently running windows applications in VB6?  And if so, how? ...
Score sql command and escaping characters
bbdobuddy - 8 Mar 2007 7:44 PM - 2 messages
Hi, I am writing a sql statement using parameters and I am trying to figure out how to escape characters, especially the ' and the ". Any help would be appreciated Thanks ...
Score Window State Speed
wxforecaster - 8 Mar 2007 4:49 PM - 9 messages
I have a form from which the user can create various screen captures (i.e. the desktop). I would like this form to temporarily disappear from view while the capture is being shot (so it's not in it). I've tried .Hide, .Windowstate = 1, ...
Score VB6 how to export picturebox as a picture or...
Jennifer W - 8 Mar 2007 4:22 PM - 6 messages
Hi, I was wondering if anybody knows a way to capture the contents of a picture box and save it as a picture (any format ok) or else perhaps copy it to the clipboard and be able to paste it into a powerpoint, word, or excel document ...
Score How can a modeless form totally destroy itself
Peter T - 8 Mar 2007 12:38 PM - 4 messages
The single form is opened modeless from a dll's entry class. In the button close I want it destroyed, which 'Unload Me' does not do, and nor does 'Set myFormName (or an external ref to the form) = Nothing' I guess the solution must have been demonstrated in this ng, apologies if it ...
Score Compatibility problem - error 91 Object variable or With block var
Steve - 8 Mar 2007 10:28 AM - 4 messages
Hi, hoping someone can help. I needed to change a function in an existing dll (runs in COM+ with binary compatibility set) to accept a new parameter. Rather than add a new parameter and break compatibility (the class is used ...
Score where ItemData in ComboBox?
Tark Siala - 8 Mar 2007 7:30 AM - 6 messages
when i working on VB6 with ComboBox i use ItemData to save Id Number with Visible Name, and use it to get Data from Database. but now i working in VB.NET and se ComboBox, i can Fill Visible Name by ...
Score (not) Reading serial data using mscomm32.ocx
Jack B. Pollack - 8 Mar 2007 1:32 AM - 4 messages
I am trying to read data off the serial port using VB, but I am getting no input data. If I set HyperTerminal to Com1 -  9600,N,8,1 no flow control I am able to see the incoming stream. I'm sure that it is something simple ...
Score how to architect logging facility
MP - 7 Mar 2007 11:25 PM - 4 messages
Looking for a way for all classes/modules to be able to write to the same log file during program run. With the least amount of duplicated code in each class. Would you put the function in a bas module and then include that in every ...
Score ActiveX won't download
ernmeg - 7 Mar 2007 9:47 PM - 8 messages
I have an ActiveX component (written in VB) that has been in production on a website for several years now. We've made changes, recompiled the DLL, rebuilt the CAB files, resigned (Verisign cert) the ActiveX and released it several times during this period. I'm ...
Score VB6 vs VB6 Enterprise
EasySite - 7 Mar 2007 9:08 PM - 2 messages
Anybody tell me what the difference is between the two please? Are they both compatible with one another? ...
Score VB6 enterprise v
EasySite - 7 Mar 2007 9:07 PM - 2 messages
Anybody tell me what the difference is between enterprise version and the normal version. Are they both compatable with each other? ...
Score Winsock Api
www.webpolis.com.ar - 7 Mar 2007 9:00 PM - 5 messages
Hi Group! Is there any good reference (not the msdn) or WINSOCK API doc/tutorial for Visual Basic programming? Thanks and regards NiCo ...
Score Interface through parallel port
pete_tomson - 7 Mar 2007 8:00 PM - 3 messages
Hi - I'm trying to read data from my parallel port. Does anyone know how I can write a program in vb6 to read pin 6 of my parallel port. All I need to know is whether there is an incoming signal - input ...
Score Visual Basic Express
gord - 7 Mar 2007 7:29 PM - 8 messages
Is this group open for VB Express 2005 discussion? Gord. ...
Score ActiveX OCX and Standalone EXE combined?
Jerry West - 7 Mar 2007 7:09 PM - 5 messages
I have created an ActiveX OCX that runs embedded on a web page. I'd like to also create a standalone EXE version. It would be ideal if I did not need to maintain two different code bases for this. However, there doesn't seem to ...
Score Reporting Services Web Service Programming
A. Robinson - 7 Mar 2007 6:29 PM - 2 messages
I have been looking high and low and can't seem to find anything a little more detailed on the whole RS utility. What I'm looking for specifically is some type of programming reference. Also, I created a new VB project in VS2005, but yet when I write any code, ...
Score Unsigned numbers
Randy Gardner - 7 Mar 2007 6:00 PM - 2 messages
I it possible to create an unsigned long number in VB6? The goal is a mask for I/O bits. ...
Score getting Windows error codes?
Randy Gardner - 7 Mar 2007 6:00 PM - 5 messages
I'm using a USB I/O device and the dll's rely on windows error codes to determine success or failure.  As an example: ERROR_SUCCESS, ERROR_DEVICE_REMOVED. How can I get these error codes?? ...
Score Specifing the Text Encoding System of a text file
Pedro - 7 Mar 2007 5:42 PM - 11 messages
Hello, How can I specify a text system encoding when I open a file to write in? For instance I would like to open a file with ISO-8859-1 when I execute Open "somefile.txt" For Output As #1 ...
Score Iterate menus
Lou - 7 Mar 2007 3:35 PM - 7 messages
How can I iterate through all menu items. Something like this: Dim m As Menu For Each m In Me     Debug.Print m.Name Next ...
Score Memory is growing
news - 7 Mar 2007 3:30 PM - 2 messages
Hello, I have a problem with huge memory use within my application.. The application is searching the internet for information via a search engine and after a while the memory start grow and then the application end into error: "Microsoft IE out of memory at line 37" and then "Stack overflow at line".. ...
Score DLL on .NET Help
Bassam - 7 Mar 2007 2:32 PM - 2 messages
Hello, I'm using VS.NET 2005 and VB.NET , i have a large project , the IDE keeps giving me errors regarding the vb compiler all the time , i thought to split a big part of the project into separte DLL file ...
Score VB6 - Using Unbound Controls
Bob Barnes - 7 Mar 2007 2:23 PM - 7 messages
I am an Access Developer maintaining a VB6 Fronting Access 2003, which someone else wrote. The VB6 Forms use Data Controls and ADO.  I've learned VB6 Forms can't "mix" both DAO and ADO. Within Access, I've always used DAO because it works well, so I've never ...
Score Set forecolor of a row in Listview by API
Markus Weber (Megalith GmbH) - 7 Mar 2007 1:49 PM - 6 messages
Hello! I use a sorting technique on Listview which requires to use API calls in all cases (set value, read value, set icon...). Does anybody know how to set the forecolor to a Listitem and it's subitems by API call? ...
Score Can no longer fax after installing Adobe Reader 8
Anthony - 7 Mar 2007 1:47 PM - 3 messages
Hi,    Several PC's in our office (WinXP) have recently installed Adobe Reader 8 and are now reporting that an App written in visual basic 6 will no longer fax PDF's via a fax server. This has always worked without a problem while ...
Score How to speed up a search in a heavily populated listview
catharinus van der werf - 7 Mar 2007 11:09 AM - 5 messages
Hello, I have build a listview that containes over a thousand records with data of customers (ie. the name, the street, the city). To find a certain name, I use the following code      for i= 1 to me.listview1.listitems.count ...
Score bad dll calling convention
RB Smissaert - 7 Mar 2007 8:35 AM - 9 messages
Trying to make a little addition to the (VB adapted) C source code of SQLite. Seemingly simple, but sofar I haven't managed to get it to work with a bad dll calling convention error in VB. Would it be OK I post the (small amount) of C code with my alterations and ...
Score ObjPtr not reliable on first use
bainsworld - 7 Mar 2007 7:15 AM - 5 messages
I am writing a class module in VBA so that I can more easily manage automation clients from Access 2002.  I need to open Excel workbooks and wanted to centralise the error handling that can occur which requires the Excel client to be terminated and restarted (e.g. when an ...
Score Re: Application crashing - trying to track down the problem
Paul Lambert - 7 Mar 2007 4:37 AM - 9 messages
Paul Lambert wrote: I've change the program to open and close the logfile anytime it does a write, so I've been able to narrow down exactly where the problem is.. and it is the following line of code: ...
Score Reading Binary into array.
Kardon Coupé - 7 Mar 2007 2:06 AM - 3 messages
Guys, First let me apologies for pestering you all... but so far all the advice has helped my application move along way from theory stage to working stage... I'm wanting to work with a file as binary, but as part of my application ...
Score How to intercept the TAB key
Chevy - 6 Mar 2007 10:21 PM - 6 messages
Hi... how can I do to intercept the TAB keystroke in a texbox control? The documentation say that keypress event can't manage TAB key. I have VB 6.0 with Win Xp SP 2 thank in advance. ...
Score rich text box query
caver_dave - 6 Mar 2007 10:15 PM - 4 messages
Does anyone know how i can  Show all 'invisible' characters (newline, carriage return, escape, etc.) in a rich text box for a word processor app i am wrting I have tried searching but come up with nothing to help ...
Score Overflow Error
C Holmes - 6 Mar 2007 8:59 PM - 11 messages
With the following code I am getting an overflow error on the first line: For I = colRowsSelected.Count To 1 Step -1     strMsg = strMsg & colRowsSelected.Item(I) & ", " Next I I is byte colRowsSelected is a collection, it's count is 2 ...
Score VB Books in Australia?
Aalaan - 6 Mar 2007 6:53 PM - 11 messages
Can anyone in Australia suggest some good VB6 books. My searches have only thrown up (or is that thrown down?) VB 2005, which is nothing to do with what I want. ...
Score WMP 11 Download Songs from URGE
jeff - 6 Mar 2007 5:01 PM - 6 messages
I am wokring on a application that needs to be able to download songs from URGE via a VB or VB.Net application.  It would need to access a already setup account for billing and be able to download the MP3 or WMA files from Urge as ...
Score how to get back to the MIDFORM menu
catharinus van der werf - 6 Mar 2007 4:11 PM - 15 messages
Hello, I have written a vb6-application. It's almost finished. I am trying to make things more handy for users. So I would like the menu to be selected automatically. With this I mean that I would like the focus to get back to the menu, ...
Score Working with a .exe file
Marco - 6 Mar 2007 10:05 AM - 9 messages
Hi all, I have a software ending with .exe that i would like to open, type the word 'select' on it, press 'enter' and make it run. I used the following code : wb = Shell("Y:\Programs\Sel.exe", 1)     Application.Wait Now() + TimeValue("00:00:15") ...
Score Chr$, Asc$ functions not working as intended on Korean Windows OS
Sarika - 6 Mar 2007 9:38 AM - 6 messages
Greetings, A dll written in VB 6.0 is encountering problems on Korean Windows (XP Professional, SP2). The encrypted database files are not being read. The decryption algorithm is simple Chr$(Asc(Mid$(<string>, i, 1)) Xor &HA5) ...
Score Film strip
Newman99 - 6 Mar 2007 8:22 AM - 2 messages
I want to ad a film strip to one of my forms. I found an example using graphical option buttons on a picture box within a picture box with a scroll bar.  The option buttons hold the thumbnails, the inner picture box is scrolled. ...
Score Re: VB 2005 DDL in VB 6.0 project
J French - 6 Mar 2007 8:22 AM - 36 messages
It takes time to make me see red, but it is perfectly clear that Paul is using this NG as his trolling rec room. I've a fair understanding of his modus operandum, he is simply trying to get a reaction. ...
Score Boolean logic question
Michael C - 6 Mar 2007 5:46 AM - 32 messages
I have 4 values A1, A2, B1, B2 and this If statement: if (A1 >= B1 and A1 <= B2) or (A1 <= B1 and A2 >= B1) then DoSomething I know that it simplifies to this if (A1 <= B2 and A2 >= B1) then DoSomething ...
Score Regarding True DBGrid Layout problem in VB 6.0
News Group - 6 Mar 2007 5:02 AM - 2 messages
I am using Tue DBGrid 7.0 version in VB 6.0. In true dbgrid, I have used layout file to load the grid. Whenever I filled the data in grid, I used to load the layout file such that alignment, columns arrangement and coloring ...
Score Looking for a way to convert dec to bin
Kardon Coupé - 6 Mar 2007 3:09 AM - 110 messages
Dear All, I'm looking for a way to convert a byte into decimal, the ultimate goal is to read a byte from a file in binary, and convert it to a string of text, I've googled around, and a lot of the snippets I find don't seem to meet my ...
Score Registry on Vista
vovan - 5 Mar 2007 8:06 PM - 14 messages
I've read a lot about the best programming practice for Vista, but still confused. My existing VB6 application uses the registry to store some values. HKLM was used before Vista. Vista did not stop procedures working with registry. It just uses ...
Score Help on registering a usercontrol
EnVeeTee - 5 Mar 2007 7:31 PM - 7 messages
I'm not having much luck on the .Controls group Is there anywhere I can get help on registering a UserControl I'm having probs with Cheers ...
Score Visual Basic
VJ - 5 Mar 2007 6:21 PM - 5 messages
Does microsoft support the VB 5.0 product any more? I would also like to know if a paid Phone/Email support can be purchased? Same for VB 6.0 is there any paid phone or email support ?? VJ ...
Score Error Message From The Mist
Lorin - 5 Mar 2007 4:24 PM - 2 messages
My VB6SP6 compiled app was just sitting there, when after a few minutes I got the following: Runtime Error 35606 Controls Collection Has Been modified. OK I clicked OK and my app exited. What's up with this? Where did it come from? ...
Score With and End With
Anna - 5 Mar 2007 3:48 PM - 14 messages
Hi: Can any one please give me an example of (With and End With) by means of creating a user define class and then show the use of with in it. Thanks. ...
Score execute an .exe file and type on it by vba in excel
Marco - 5 Mar 2007 3:42 PM - 3 messages
Hi all, I have a software ending with .exe that i would like to open, type the word 'select' on it, press 'enter' and make it run from excel. I used the following code but vba doesn't recognize 'wd' as an ...
Score WM_SETFOCUS ComboBox Woes
Love-Drunk Gump - 5 Mar 2007 10:43 AM - 2 messages
Hi, I'm trying to set the background colour of a text-/combobox depending on whether it has the focus or not. The following (part of the overall code that I'm using) works for a Style-2 (Dropdown List) combobox, but not ...
Score Is it possible to rotate an Image control on a form?
DORI - 5 Mar 2007 7:04 AM - 5 messages
Dear all, Newbie vb6. I am wondering if it is possible to rotate an image box control about 45 degrees? Thanks for any comments in advance. DORI ...
Score How to add a dynamic textbox with MultiLine??? HElP!!!!
Vanessa - 5 Mar 2007 3:44 AM - 13 messages
Hi, I need to create a dynamic textbox with MultiLine set to True & ScrollBar set to Vertical. I have tried to code as below, dim objControl as Control   Set objcontrol = Controls.Add("VB.textbox", sName)   With objcontrol 'objcontrol ...
Score Add module dialog stopped appearing
J - 5 Mar 2007 3:34 AM - 4 messages
Just recently, suing VB6 SP6,  when I click <Project> <Add Module> I no longer get the dialog screen allowing me to choose between adding a new module or select an existing module.  It just adds the module. ...
Score Data Access via VPN
Richard - 4 Mar 2007 10:57 PM - 5 messages
I have an app that originally was used on a LAN. It is now being used not only over the LAN but also through a VPN. The app is very recordset intensive and uses Access as the database. By recordset intensive I mean many calls to the database tables for ...
Score Excel automation late binding
Jack - 4 Mar 2007 10:10 PM - 11 messages
Hello, early binding: ========= Option Explicit Dim WithEvents moExcelApp As Excel.Application Dim moExcelWBk As Excel.Workbook Dim moExcelWS As Excel.Worksheet I am confused how to declare the following parameters for the late binding: Option Explicit Dim moExcelApp As Object ...
Score Semi-OT (but helpful): Google Groups And Unexpanded Replies
Jim Carlock - 4 Mar 2007 5:22 PM - 4 messages
Anyone else having problems with Google Groups? Here's the deal and I just figured out the fix! [link]'t+assign+to+this+expression%22+group%3A*.vb.*&fwc=1 ...
Score How to transfer controls to a picture box?
DORI - 4 Mar 2007 5:07 PM - 7 messages
Dear all. Nebie vb6. I have created a form with about 100 controls on it including text boxes, labels, command buttons and list boxes which are arranged on the form in a particular lay out. I want to put all these controls on a picture box or a ...
Score help me!
foresttillidie_99 - 4 Mar 2007 5:01 PM - 3 messages
hello i am currently working on a school project and need some help with my vb 6 program. Does anyone know how to set up a flag so that a chosen record is 'deleted' on my customer details form using a random access ...
Score Interact with web page
Harold Druss - 4 Mar 2007 3:44 PM - 3 messages
Hi All Using vb6 sp5 I use the following to open the postal service zip code finder page. ==================================================================================== Public Sub GetZipCode(iHwnd As Long)     Dim i As Long     ShellExecute iHwnd, vbNullString, "[link]", vbNullString, "C:\", SW_SHOWNORMAL ...
Score How to Shut Windows
Ayberk_Y=FDlmaz - 4 Mar 2007 12:27 PM - 9 messages
Hi, I am trying to make a programme that shuts the system when the countdown(duration is given by user) finished. Everything is ok,but i cannot shut the system. As far as i learn, i need to use api. I used one but ...
Score Can I discard mouse-clicks?
Marshal Anderson - 4 Mar 2007 11:05 AM - 4 messages
I'm working on a package for kids which used a lot of spoken cues by playing wavs. At several points in the activity I have the app set up so that the wav is played in full before returning to the application. ...
Score Class and object
Anna - 4 Mar 2007 7:41 AM - 29 messages
Hi: Can any one please give me a simple example of class, property, object and method tied with the object and the instantiation of class using Let, Set or get in VB6 Thanks. ...
Next »