Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score ByteArray to string
MP - 28 Apr 2007 7:33 PM - 15 messages
'i've been using local private defs for win32 api for some time 'now testing the winu.tlb 'old version(s) 'a typical def floating around the net Private Type WIN32_FIND_DATA ....the usual ...    cFileName As String * MAX_PATH    cAlternate As String * 14 ...
Score Accurate time measurement
Paul MH - 28 Apr 2007 4:46 PM - 8 messages
Hello, im trying to find an api or function that i can use to accurately measure the time taken to do something. Like gettickcount but more precise Thanks for any help ...
Score Pixel Mania
Mike Williams - 28 Apr 2007 4:00 PM - 57 messages
Just a quick note to point out something that I actually already knew about but had forgotten and which has just caused me to pull out a few more of my remaining hairs ;-)  In common with VB's standard behaviour for floating ...
Score Help! Add Copy of Form, Properties Disappeared
Darrell - 28 Apr 2007 6:44 AM - 38 messages
I just went through an attempt to make a copy of a form in my project and add the copy to the project and encountered several problems. After giving up, I went back into my project and ALL the form properties have ...
Score GUI / Console app in one
Matt Williamson - 27 Apr 2007 8:29 PM - 3 messages
I've written an app that has a GUI and acts as a console app for scripting. I've used editbin to do the bit flip trick and it works great in console mode, my app writes messages to the original console window. The problem is ...
Score Two questions about multithreading
John S - 27 Apr 2007 7:14 PM - 12 messages
Hi All, If I execute sub test_f() below on a separate thread (by executing Command1_Click()) then the program will crash. It caused by API commands in the sub. But if I compile the program to P-Code, it will work. ...
Score Editing cells in MSHFlexGrid control
TrueBearGolf - 27 Apr 2007 4:22 PM - 12 messages
I've got a VB DLL (VB6) that displays a form with an MSHFlexGrid control that we allow the user to edit. We are displaying combo boxes, text boxes, and other controls to allow the user to edit the cell data ...
Score Localization Problem - Common Language Runtime Error
RBell - 27 Apr 2007 1:16 PM - 4 messages
I have a VB .NET app that I've been working on for quite some time. The app has been working fine with no problems. I have recently been charged with Internationalizing the app. Since I have never done this before I searched ...
Score Send Fax with VB.net
FreeMinded - 27 Apr 2007 10:46 AM - 4 messages
Hi, We would like to include the functionality of sending a pdf file as a fax into our vb.net application. Can anyone suggest a viable solution? I am envisioning a 3d party web service, but I am open minded to ...
Score Adding and Generating code??
baked potato - 27 Apr 2007 9:22 AM - 8 messages
At the moment I have 4 combo boxes each with different items in them. I can pick a item from a combo box on offer and add the typed quantity from 'txtQuantity' . However I don’t know how to do the following: ...
Score winsock control in vb6.0
genius.jain - 27 Apr 2007 8:07 AM - 2 messages
How much data we can send to server using winsock control in vb6.0 winsock1.sendata stringinbytes what is the maximum size of string possible help guys Thanx in Advance ...
Score Why does VB
Michael C - 27 Apr 2007 5:09 AM - 31 messages
clear the clipboard when it loads? This is annoying when copying some code from the web or somewhere else to test. I've done a google search and can't find anything. Is there any way to stop this? Thanks, ...
Score Web Browser Control Window Close Error
Min - 27 Apr 2007 4:00 AM - 2 messages
Hello, We are having an issue where a VB6 application is using the Web Browser Control (shdocvw.dll) to launch a web application in ASP.NET 2.0.  When the web application issues a window.close script, it is generating an error that ...
Score WM_NCHITTEST
Kevin Provance - 27 Apr 2007 3:59 AM - 14 messages
There is probably no way I can accomplish what I am about to propose, but I thought I'd ask anyway, just in case. I scrapped my Titlebar OCX...too many problems and variables to consider trying to be true to the standard Windows interface and doing what I want ...
Score Reading controls properties from another form
mtedeschi - 27 Apr 2007 1:41 AM - 4 messages
Hi, I can't solve this: I have an MDI form with a menu File->New. This brings up a "Settings" dialog (no MDI child) with some objects, including Check boxes controls. Once set these controls, I press "Ok" on the dialog, I set the dialog ...
Score cost
Roberto Contreras - 26 Apr 2007 9:32 PM - 3 messages
I need to know the price of ROBOT MILLENIUM HOW CAN I MAKE A DEPOSIT How do i receive de software? *** Sent via Developersdex [link] *** ...
Score Customizeable Alternative to Windows Explorer
GS - 26 Apr 2007 8:40 PM - 3 messages
Hi all, I'm fairly new to VB6 so I hope you can give me some direction. I'm looking for a VB6 substitute for Windows Explorer that I can customize. Basically I just need a userform that behaves like Windows Explorer, but that I can ...
Score How to register dll and ocx
Shanthi - 26 Apr 2007 4:38 PM - 16 messages
I am VB developer and have domain user rights only. Have created some dll and ocx which has to be registered for testing. How do I install with the user level privileges? Please guide to overcome. Shanthi ...
Score App not Ending
Goerge Tikakis - 26 Apr 2007 4:02 PM - 13 messages
I have an app which have the End command on the Terminate, Unload and QueryUnload event But when I close the app it still running on TaskMAnager Any ideas? *** Sent via Developersdex [link] *** ...
Score Simulate Excel key stroke
Ben - 26 Apr 2007 3:24 PM - 5 messages
Hi all, I am writing a small piece of code in VB6 to automate Excel 2002. I have a number of columns in the spreadsheet, but for my purpose I am only concerned with Column C.  Column C has data only at certain rows and for the ...
Score Datagrid to Excel !!
raman - 26 Apr 2007 3:03 PM - 2 messages
Hi All, I am trying to export data from Datagrid to Excel. IT parses each row from Datagrid to Excel.This is the code that i have: Dim iRowIndex As Integer Dim iColIndex As Integer Dim iRecordCount As Integer Dim iFieldCount As Integer ...
Score Problem with Events (lost focus)
Gary Pollard - 26 Apr 2007 1:29 PM - 10 messages
What is the proper way to handle events? I have several text boxes (inches, cm, points etc) and would like to be able to key a value in one of them and have the number converted and placed in the other boxes. ...
Score Import Excel file from VB
Ruslan - 26 Apr 2007 12:20 PM - 6 messages
Hi. I'm just a beginner so my question my look simple to you guys. I have to write code in VB which will allow me to import the required information from an Excel file (e.g. cells(a1:a100) in sheet1) and fill the ...
Score FYI: ccrpTmr6 vs VB native control
Nicolas Noakes - 26 Apr 2007 10:17 AM - 9 messages
Hello All (and Karl E. Peterson) Just to let everyone know about a small but significant functional difference that you may run into if you convert from the standard VB timer control, to using the ccrpTmr6 controls. Basic description: When you disable the VB native control, the timer stops; and when you ...
Score Adding Configuration Files to resources
billybob - 25 Apr 2007 11:29 PM - 8 messages
How does I add the 'configuration files' to the application's resources in VB6? Is there a good URL where this process is outlined? I tried a custom resource but that didn't work. Thanks, Billy... ...
Score VB6 Run-time errors after microsoft patches and updates
Gary - 25 Apr 2007 11:00 PM - 5 messages
HI, We are running some VB6 automations that allow folks to take FileNet OCX control treeview items and register them to a corporate RDBMS database through ADO ODBC Oracle 9i.  On the 14th we placed a series of new Microsoft ...
Score Object Oriented simpleton design pattern<g>
MP - 25 Apr 2007 9:04 PM - 55 messages
Hi all, I know the singleton pattern but i really need the simpleton one <vbg> amature non-progammer trying to learn OO all my programs are simple inhouse utilities just to help users automate small tasks around the office. ...
Score How to insert mathematical characters in vb6?
DORI - 25 Apr 2007 8:00 PM - 41 messages
Dear all, newbie vb6. I need to insert "greater or equal" symbol in a combobox. At this time I have inserted "=>" (2 characters) which cuase some misunderstanding for users as what it means. How can I insert the mathematical symbol of greater that or ...
Score two computers chat with sockets?
ngr - 25 Apr 2007 7:27 PM - 3 messages
I am wanting to develop an application whereas two computers chat back and forth. The scenario is that I have a process running on both computers, which pass information to each other as they go about processing their jobs - I am aware that one computer has to act as server, and the other as client. ...
Score newbie combo change sub does not work. Why?
tom - 25 Apr 2007 6:54 PM - 2 messages
The code in a the change sub of a combo box does not run when I change the value in the combo box while running the app. The change sub routine works for my text boxes. Anybody got any ideas about why its not working? ...
Score vb help
Gaby Sandoval - 25 Apr 2007 6:14 PM - 3 messages
I am trying to make a simple application game.  I have a picture of two cars one on top of the other and when the user clicks the button (btnGo) I want the pictures in the picture boxes (picCar1 and picCar2) ...
Score Internet Options
Mrs. Kasook - 25 Apr 2007 6:10 PM - 2 messages
I cannot open internet options.  What can you suggest? ...
Score How to delete sertain recors from all the tables in an Access Database
Athena - 25 Apr 2007 5:18 PM - 2 messages
Hello,     I am new to this so sorry for the this simple question.     I want to delete certain records on all the tables in a database using ADO in VB6. I can have a line like below: ...
Score Datagrid sort problems - please help...
almurph@altavista.com - 25 Apr 2007 4:23 PM - 3 messages
I have a Web Application datagrid and its displaying columns of data. One of the columns has numbers in it. When I click on its title(to sort the data) - it does so up to a point. All numbers above 10 are ...
Score Service pack?
newbie in hell - 25 Apr 2007 4:18 PM - 8 messages
Hi. I need to make an updater for an I aplication that I developed in VB6. Now, how can I update the software title and version that apears on the ADD/Remove Program folder in the Control Panel? Thank you ...
Score Assign array to Listbox
Brian - 25 Apr 2007 3:54 PM - 5 messages
Is there an easy way in VB6 to assign an array or a recordset to a Listbox? In VBA...  you can just do Listbox1.List = Array() That doesn't work in VB6...  is there any other options other than looping ...
Score Multi-col combobox?
Maury Markowitz - 25 Apr 2007 3:36 PM - 4 messages
I'm very new to VB GUI's, but quite experienced in the VB language itself. So this may be an _extremely_ newbie question... MS Access has comboboxes that have multiple columns, and when "poppedup" will show them all, and when closed will display the data from one of them. ...
Score Can someone suggest a powerful GridView?
Maury Markowitz - 25 Apr 2007 3:32 PM - 8 messages
I have an application that was written in Access/VBA, and I'm starting to run into too many Access limitations in terms of form and window handling. I'm considering taking one chunk of the application out of Access and re-coding ...
Score how to make .ocx work in vista
Mary - 25 Apr 2007 3:28 PM - 13 messages
Installed a VB6 application on a vista machine with admin rights. When a uer tried to use data entry form with tab control he got an error message "Component 'TABCTL32.OCX' or one of its dependencies not corretly registed: a ...
Score VB6 and office components
Moritz - 25 Apr 2007 3:10 PM - 4 messages
My Application is written in VB6. When the local user is setup with privileges of Admin user every thing is OK, Only when the local user works with a downgraded privileges access he gets message on updating MS Office Configuration(winddows installer is runnig) ...
Score New freeware Win hex calculator here
battles - 25 Apr 2007 2:27 PM - 2 messages
There is a new freeware Win stand-alone RPN hex, binary, octal, decimal calculator at: [link]]search[authorName]Gulf+ Coastal+Software[SiteID]simtel.net or [link]]101575[SiteID]simtel.net ...
Score Web address in msgbox
David - 25 Apr 2007 9:03 AM - 3 messages
Hello all I was wondering whether one could insert a clickable web address into a message box? VB6 sp5. Thank you for any suggestions Regards David Clifford ...
Score collection and classes
greg - 25 Apr 2007 3:03 AM - 3 messages
I am seeing a problem in my code.  And I think I know the answer.  But want to confirm. I have a very complicated set of classes.  Classes within classes.  Classes that hold other classes. And I have a collection of the top classes. ...
Score Various VB UNICODE questions
andy.stephens - 24 Apr 2007 10:12 PM - 6 messages
I am modifying some existing code which reads in a file via input and does a string comparison via InStr. The old file contained some information in ASCII, so the file was captured in a variable via input and InStr was used to find "String" ...
Score Do not understand program flow
Marv - 24 Apr 2007 10:00 PM - 11 messages
I have two forms Forn frmMenu contains the following procedure. (Note: All of the variables proceeded with a g are   global variables defined in a BAS module.) frmMenu      Dim Msg As String       Dim vResponse ...
Score Using DeleteUrlCacheEntry to delete a single file
Jerry West - 24 Apr 2007 9:29 PM - 6 messages
I have a single file in the IE cache I want deleted. I am using DeleteUrlCacheEntry to do so: l& = DeleteUrlCacheEntry("C:\Documents and Settings\user\Local Settings\Temporary Internet Files\file.cab") I always get back an error of 2 indicating that the file cannot be found. If ...
Score Deleting a repetative line in a text file
Nitin Pai - 24 Apr 2007 7:31 PM - 2 messages
Hi all, I am trying to delete a repetative line from a text file. I am able to delete a single line, but I am unable to compare the two lines and keep the latest find and then delete the previous one. ...
Score VB program deployment problem on Windows Vista
Dave - 24 Apr 2007 6:54 PM - 8 messages
Hi, I'm trying to deploy a VB6 application onto Windows Vista.  The application is packaged using MS Visual Studio Installer.  All my MS dependencies are packaged in Microsoft's own merge modules.  MSCOMCT2.MSM, TABCTL32.MSM, and many others.  I install the application as an ...
Score Watch a video tutorial from Mr.Bool!
Jeff - 24 Apr 2007 5:51 PM - 3 messages
Watch a video tutorial from Mr.Bool! Looking for a easy way to learn! Look what Mr.Bool site offers for you! Here you can find articles, tips and tons of video tutorials. Totally Free! Watch a video tutorial now. ...
Score Command Strings per Application
Dave - 24 Apr 2007 5:37 PM - 4 messages
Is there a limit to how many different Access tables I can open within one application, per 1 connection string? Thanks, Dave ...
Score Line Drawing
albertleng - 24 Apr 2007 5:01 PM - 5 messages
Dear all, Using VB6, I'm doing a project which i need to connect 1 object to another object on the form itself via line. The line is created by MouseDown near the starting object to MouseUp near the target object. Well, i need some ...
Score WithEvents and late binding
ffyring - 24 Apr 2007 1:43 PM - 3 messages
Hi, I am doing an excel/vba application that uses a proprietary dll which I have previously used as a reference ("early binding"). However, since we have to pay a licence fee we have decided to just use it on one computer. I still have to develop code on my computer ...
Score How to get host PC's Language setting
Wyne - 24 Apr 2007 1:02 PM - 3 messages
Hello, I am working on a VB6 program. It is required to be "International", i.e. will change its dispalyed language based on the PC's language seeting. Currently, I use a resource file with multiple columns. But I really need to ...
Score Debug VB OCX and DLL
sowjanya - 24 Apr 2007 12:16 PM - 2 messages
Thanks for the help. I am still unable to run in debug mode. I have added OCX and DLL Projects in the group. But after adding the VB client. I have problem refering the OCX(VBP of the OCX) in the VB client. ...
Score Startup In Tray Problem
duke - 24 Apr 2007 11:43 AM - 5 messages
I have developed a program that functionally is similar to the quick launch area of the task bar. This program has worked properly for years until lately after I made some cosmetic changes to the program. The problem is the program does not appear in the system tray after ...
Score Media Control
Ron - 24 Apr 2007 8:32 AM - 4 messages
Hi With the Media control set to just 3 buttons Play,Pause and Stop can this be setup to control these functions of FilGraphManager so code samples would be very helpful. ...
Score Strange Make problem
David - 24 Apr 2007 7:48 AM - 6 messages
Hello all. I have a very strange problem here. When I compile my project, I get a Make Revision number of 383 (Auto increment is set on), but the exe File Version, as recorded in the exe properties is 382. Both numbers auto increment each ...
Score For Next getting slow
Marc Robitaille - 24 Apr 2007 4:20 AM - 21 messages
Hello, Is there a way to accelerate a For Next loop? I get abouts 60000 records from my SQL Server database in a RecordSet object. Thereafter, I loop on this object in this way: For I = 1 to rc.RecordCount ...
Score App Shutdown Slooooow
Norm - 24 Apr 2007 2:37 AM - 58 messages
Hi, I have a Golf Handicap program that is very slow shutting down. I am using a hotkey with three different forms and am pretty sure that Unregistering the hotkey and Unhooking the form it where it is slowing down, but I don't know ...
Score Moving groups
Paulo - 23 Apr 2007 9:37 PM - 2 messages
Hi, how are you doing ? How can I move 1 user from one user group to another using VB 6 programming ? Any Win / NTFS APIs? Can you help me ? Thanks ...
Score SAP Exchange ?
Martin - 23 Apr 2007 8:35 PM - 9 messages
Does anyone here have any experience using VB6 to send data to a SAP ERP system using SAP's "Exchange" functionality? I may be having to develop an app that does this and would like to get some idea of what I'm up against. ...
Score Saving part of a picture box to a .bmp file
Mario - 23 Apr 2007 4:02 PM - 4 messages
I would like to know how to save part of a picturebox to a .bmp file. Mario ...
Score How to digitally sign a VB6 application
John - 23 Apr 2007 3:16 PM - 7 messages
We are trying to migrate our VB6 app to Vista. When it runs we get a validation popup at start asking for user verification.  We have been told that getting the app digitally signed may solve the problem.  What solutions ...
Score Creating an answer file that is not for an OS install
relder - 23 Apr 2007 11:54 AM - 3 messages
I am trying to create an answer file that is not generated through the setup manager/setupmgr.exe that is used by the Windows OS. I need to create an answer file from scratch using a text editor. There are a few things I need ...
Score Authenticate Against the Domain
FreeMinded - 23 Apr 2007 9:36 AM - 4 messages
Hi folks, I would like to develop functionality into our VB6 and .net applications so that the user is authenticated based on their windows/ domain credentials, and they don't have to enter a password any more. The module i'm developing interfaces with the fax software on our fax ...
Score GridView1_RowUpdating()
Bhagya - 23 Apr 2007 8:31 AM - 2 messages
DataSet ds = new DataSet();     DataTable dtAddUsers = new DataTable("Names");     public void CreateDataset()     {         dtAddUsers.Columns.Add("Name", typeof(String));         dtAddUsers.Columns.Add("Place", typeof(String)); ...
Score GridView1_RowUpdating event
Bhagya - 23 Apr 2007 7:28 AM - 2 messages
How do i use the GridView1_RowUpdating event?? Can someone please post the VB or C# code for this...Thanks in advance ...
Score Debug VB OCX and DLL
sowjanya - 23 Apr 2007 6:00 AM - 2 messages
I have a VB client which refers an OCX. Can anybody explain in more detail because I did not understand the solution which was given earlier. Thanks. ...
Score Can someone look at this code to see where my errors might be PLEASE!
Malorie.Ash - 23 Apr 2007 5:19 AM - 3 messages
Public Class ParkingGarageFeeCalculatorForm     Function Fee() As Integer         Dim timeinHours As Integer = Int(0 - 23)         Dim timeinMinutes As Integer = Int(0 - 59)         Dim timeinSeconds As Integer = Int(0 - 59) ...
Score variable array woes
Tom_OM - 23 Apr 2007 4:16 AM - 9 messages
I’m writing an application that uses a TabStrip control.  It’s quite simple.  There’s that TabStrip at the top and a rich text box below it and command buttons at the bottom of the form.  The user can type data ...
Score BIFF8 reader
RB Smissaert - 22 Apr 2007 6:13 PM - 4 messages
Looking for VB code to read an .xls file as BIFF8. Found code at Planet Source Code: [link] But is has bugs and not managed yet to fix it. Would there be anybody on this forum who is willing ...
Score Trying to create a Road map Interface
Silvermaine2000 - 22 Apr 2007 9:40 AM - 9 messages
Hi I have made a Database program that keeps contact info for our small company. I would like to add to this a Map feature so my delivery guy can see exactly where the delivery is. (I know he could look in a map book, but i like to program and think ...
Score Windows Media Player VB6
Ron - 22 Apr 2007 9:04 AM - 18 messages
Hi I can add a WindowsMediaPlayer to a form in VB6 but I cannot find any code samples for Visual Basic in the MSDN help files, and nothing in my books. I looked at google and most seemed to refer to VB Net. Can this WMP be used to ...
Score handshake from printer
Gilles Le Bret - 22 Apr 2007 6:47 AM - 4 messages
Hi All, I send a printer job to a printer with vb instruction. How I can know if this job is correctly finish ? thanks Gilles Le Bret ...
Next »