Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score What can be the cause of slower API execution ?
Jack - 24 Mar 2007 10:32 PM - 82 messages
Hello,              I have installed (clean install) Windows XP Home on my Pentium 4,  3.2 GHz CPU My app execution was quite sluggish and by debugging it I have found that: ...
Score Restore minimized MDI issues for children
VB6 4VR - 24 Mar 2007 6:36 PM - 3 messages
I have a VB6 app with an Xceed SmartBar (Outlook Bar) on the left side of the screen. My application attempts to keep children full size (but not maximized). It works well except one glitch when restoring the application after it has been minimized. Sometimes (but not always) the children and the ...
Score common dialog rotate printing 180 degrees
johnstubbe - 24 Mar 2007 5:10 PM - 7 messages
Hi, I have a Samsung ML-2510 printer. When the printer common dialog comes up to print and I select Properties, the properties form has an option in the Paper Orientation to select a 180 degree rotation. How can I ...
Score Viewer for PDF, Word, Excel,PPT
robert madrian - 24 Mar 2007 4:20 PM - 5 messages
Hallo, Does anybody now a viewer to display office documents (Office 2000 to 2007) and PDF Documents. We store all of this type of dokuments in a Database and the costumer do not want to open each with Word, Excel, Acrobat but wants to have a quick ...
Score Implementation of firewall.
m0a - 24 Mar 2007 12:22 PM - 18 messages
Hi there, i am Master. Santosh. The purpose of the post is to know some information, i need to develop a firewall for Microsoft Windows OS. Vb 6.0 platform. Well the very first thing i want to say is i am quite new to Visual Basic ...
Score Runtime error 48
news.microsoft.com - 23 Mar 2007 9:38 PM - 5 messages
Hello everyone, I have an issue an I'm not real sure where to start. We have an app installed with Wise Installer. We are installing a file (dbmil.dll) in the C:\Windows\System32 folder. Its there, we can see it there, if we delete it ...
Score Show a textbox next to each row in a listview
Andy - 23 Mar 2007 8:50 PM - 17 messages
I have a listview on one of my forms with the checkboxes enabled. The listview retrieves data from a database and displays each of the records from the database in the listview. The user is able to select or deselect each of the records in the listview by clicking on the ...
Score Import-Control for VB6 to import Outlook, Excel, csv, Access
beruehm - 23 Mar 2007 7:08 PM - 3 messages
Hi, does anybody know about a read-to-use control which I can use in my VB6 database application in order to import Outlook-Contacts, csv, Excel or Access data into an existing database with fixed table and column names? ...
Score Converting VB6 to .Net
Tony Proctor - 23 Mar 2007 5:14 PM - 16 messages
Yeah, I know, it's a distasteful subject. There's a lot of bad feeling around the 'loss of trust' with respect to VB6 code bases, and I've also criticised Microsoft myself in these newsgroups. However, we've nearly all looked at ...
Score Drag & Drop from ListView to TreeView on VB6
Thanasis Soltadis - 23 Mar 2007 2:25 PM - 3 messages
Does anyone knows how can a ListView item (row) can be dragged and dropped on a TreeView control using VB6?  Thank you for your attention. Thanasis Soltadis ...
Score Code for Generating Radio Buttons
Sumeet - 23 Mar 2007 12:38 PM - 3 messages
hi all, i m facing problem in placing radio buttons on a picture / form on the runtime. ie, one i click the command button, the radio buttons should b placed on the picture on the screen with some randum number given to ...
Score Re: Poor Code [Centre Text Function]
Phill W. - 23 Mar 2007 12:38 PM - 9 messages
Love-Drunk Gump wrote: How about this: Function CentreText( _    ByVal sText As String _ , ByVal iWidth As Integer _ ) As String     If Len( sText ) >= iWidth Then        CentreText = Left$( sText, iWidth ) ...
Score FS: VS 6 EE with lots o extra goodies
swdev2 - 23 Mar 2007 2:24 AM - 36 messages
Full Retail Pack, not an MSDN set. Visual Studio 6 Enterprise Edition, includes VB 6 plus ALL of the stuff listed over at [link] {It's about 11 CD's, maybe more, I'll count later for anyone who is ...
Score Trouble with serial barcode scanner
alucard8@gmail.com - 22 Mar 2007 11:26 PM - 3 messages
hi friends, im new into Visual Basic 6, but finally i got a nice software.  Just one thing, i cant read the last character the scanner is sending.  It send a CR and LR characters, i dont know if that is ...
Score SetMapMode
Steve - 22 Mar 2007 11:18 PM - 24 messages
I need to find out the current mapping mode being used by a window given only that windows hWnd.  I know that I can set the mapmode using the aptly named SetMapMode API but I can not seem to find a companion ...
Score VB6 App Crash With Delphi DLL
mhanna - 22 Mar 2007 8:49 PM - 8 messages
Greetings! I have a Delphi dll that keeps crashing my Visual Basic application when the program ends.  I am very sure it has something to do with the dll itself or with VB's handling of the dll.  I am using VB6 SP6 in ...
Score How to Zip files
chuckd777 - 22 Mar 2007 8:12 PM - 2 messages
Anyone have any links or examples on how to zip files using VB. Either looking for examples using the WinZip shell or zipping using Windows. Thanks in advance. ...
Score How to kill an vb program instance
royHe - 22 Mar 2007 7:54 PM - 2 messages
Hi I have an vb program called by the handheld.  Whenever we re-boot the handheld, it will create a new instance running on the server.  How can I kill the previous instance. This is a vb6 standard exe program, startup is sub Main. ...
Score VB6 with DB2 version 8
dman - 22 Mar 2007 7:47 PM - 3 messages
Hi. We currently have an environment in which we use VB6 with IBM DB2 version 7.2. Will we be able to upgrade DB2 to version 8 without any VB6 issues? ...
Score Folder Path's
Ron - 22 Mar 2007 5:20 PM - 6 messages
Hi Help please If I can get the following string of a Path how can I read the Folders in the last part of the Path? Example:- C:\Documents and Settings\Owner\My Documents\My Pictures.  My Pictures then ...
Score Using the Ruler with the Rich text box
Anil Bhattacharji - 22 Mar 2007 4:20 PM - 2 messages
Is there a control which can be used to provide the Ruler which Wordpad has while using the Rich text Box ? Anil ...
Score Looking for a VB 5 import Tool...
cc_crash - 22 Mar 2007 4:20 PM - 2 messages
I am looking for a VB 5 tool that will allow me to import text files into Access 97. Does anyone have anything like that or know of anything? I would rather not use the Access Import wizard API because it has too ...
Score how to get actual date format
Stefan Borst - 22 Mar 2007 3:14 PM - 6 messages
Hi, I want to get the actual date format, that can be used with the cDate() or isDate() functions. E.g. i want to know , if I can use dd.mm.yyyy or mm/dd/yyyy. Thank you very much. ...
Score Database question
SQLdba - 22 Mar 2007 2:28 PM - 3 messages
Not sure how this works:  When someone is developing to a db server such as dbserver1, when the vb.net application gets deployed how is the application made to point to customerDBserver1? Thanks!! ...
Score How to "Change user"
Markus Weber - 22 Mar 2007 1:09 PM - 2 messages
Hello! In Windows Vista you can switch beteen users. Does someone know how I can invoke this command with an API call? Thangs in advance! ...
Score Updating database and record
baked potato - 22 Mar 2007 11:40 AM - 5 messages
Hi, at the moment my code allows me to view specific orders from my 'order' table and lets me update to say an order has been completed when i tick the 'completed' checkbox. I also have code to subtract the 'received' number from ...
Score lock combo-box for manual change
thread - 22 Mar 2007 10:22 AM - 8 messages
Hello everyone, how can i lock the combo-box for a manual change? ...
Score Capturing contents from socket
bas - 22 Mar 2007 4:48 AM - 2 messages
Does anyone help me out in capturing contents form a socket ? I have developed a connectionless chat program using winsock. And I would like to develop another application, which creates a conversation history, whenever it receives data from a person. If I create a new ...
Score Array of Collection
Raj - 22 Mar 2007 4:33 AM - 4 messages
I need a VB function to return array of collections like Type Employee   empname as string   address as string   salary as integer   deptno as integer End Type dim employees() as Employee Function getEmployees() as Employee()   getEmployees=employees ...
Score is it possible to create a registry entry w/VB that regedit does not display?
Mike Scirocco - 22 Mar 2007 12:07 AM - 4 messages
I have been asked to create a registry entry which will be used to store   the installation date of a time limited program. The owner of the program does not want people to be able to find this registry entry ...
Score Exit Sub from an Inner Sub
Jon B - 21 Mar 2007 11:38 PM - 6 messages
Hi There! I have the following sub functions... Sub Method1()    On Error GoTo ErrorTrap:    Call Method2() ErrorTrap:     'Log the error     Resume Next End Sub Sub Method2()    Dim a as integer, b as integer ...
Score webservices problem
IVK - 21 Mar 2007 9:25 PM - 4 messages
Hello, I am trying to consume webservice in VB 6.0 and my code is as follows: Dim objSOAPClient As New SoapClient objSOAPClient.mssoapinit _       "https://[link]" ...
Score XML Documents
mike7411@gmail.com - 21 Mar 2007 8:37 PM - 3 messages
I'm working with the DOMDocument object in Visual Basic 6.0.  I'm adding a few elements to an existing XML document, and unfortunately, when they are written to the file, they are all on the same line.  Is ...
Score Missing DLL
Dave - 21 Mar 2007 8:28 PM - 8 messages
A. System Crash B. System Recovered C. Existing VB 6.0 Projects return:                           "Run-time error '48: ...
Score VB6 Listview filtering out duplicates
Sandy - 21 Mar 2007 7:25 PM - 8 messages
Hello - I have a rather complex sql statement accessing an Oracle database that returns, among other things, all phone numbers and customer names.  Because various customers have many phone numbers, the duplicate names are returned.  I have one list box that shows  names and another that shows phone ...
Score vb6 -v- Net!
Aalaan - 21 Mar 2007 5:59 PM - 222 messages
In one or two sentences, can regulars explain concisely to this novice why vb.Net is inferior to vb6, rather than tackle the wider issues such as ongoing support possibly being removed *again*, what they think of M$oft etc. I am not paying devil's advocate. After about 650 hours getting to know ...
Score What is a "wrapper" ?
Jack - 21 Mar 2007 5:47 PM - 6 messages
I always wanted to ask that question. Browsing through newsgroups, or codes I very often come across expression "code wrapper" or something similar to that. What does it mean? What functions 'wrapper' has to perform? Why it is so important to have 'code wrapper' instead of just a 'code' ? ...
Score What has happened to http://www.allapi.net/ ????
Jack - 21 Mar 2007 5:36 PM - 2 messages
[link] I used that site for API list and some samples. It looks like someone else hacked it !? Jack ...
Score Get image of control even when that control is hidden.
Steve - 21 Mar 2007 4:59 PM - 13 messages
Ok in a previous thread I had asked about utilizing the PrintWindow API to get the image of a control copied into another hDc.  The problems I encountered with this method was that it would not always copy the control.  If the control is hidden (as opposed to being ...
Score I am the "Unknown Publisher"
Frisbee® - 21 Mar 2007 3:54 PM - 10 messages
So how do I inform my stoopid compewter to stop asking me if I'd like to run my own program? Actually, this box pops-up whenever my boss attempts to run our program from the server.  Running the same program from a local drive does not cause the ...
Score VB6 unicode support
Alex K. - 21 Mar 2007 3:31 PM - 2 messages
Hi all 3 similar questions related to unicode support in VB6: 1. Help says that VB6 supports unicode. Then why am I having run time error 5 invalid procedure call or argument in this line: dim rs as string rs = Chr(&H434) '<<??? ...
Score Formatting of Hex values
Brian Shafer - 21 Mar 2007 2:55 PM - 3 messages
Hi, I want to be able to print out the hex value of :0E:06 but instead i keep coming up with :E:06 what is the magic syntax here :( ...
Score Runtime Form Icon
Brian Shafer - 21 Mar 2007 2:39 PM - 2 messages
Is it possible to change the icon of the form at runtime?  If so, how can this be done? Thanks, Brian ...
Score How to "Change user"
Markus Weber - 21 Mar 2007 11:58 AM - 2 messages
Hello! In Windows Vista you can switch beteen users. Does someone know how I can invoke this command with an API call? Thangs in advance! ...
Score how to recognise un recognised objects
anil - 21 Mar 2007 10:03 AM - 2 messages
hi all, I am writing an Macro in Vb which will record some selection steps, some of the items in pull down menu are not being recognised as objects. so how can i include those objects in to my VB file to ...
Score SQLite with fast, ADO-like COM-Wrapper
Schmidt - 21 Mar 2007 8:28 AM - 80 messages
Hi All, as promised in an earlier Thread: Motto:...faster, smaller, dependency-free... ;-) Or, ...my free COM-Wrapper for SQLite3 is now available. [link] (ca. 630kB) The features in short: ADO-like behaviour (Find, Sort, AddNew, UpdateBatch, etc.). ...
Score vba-business correspondence
bitu - 21 Mar 2007 4:18 AM - 3 messages
hello, i am doing project on business correspondence. front end is vb and backend is ms access. what i want when i am selecting a particular company and particular template for eg-any bank letter i want name & address of company ...
Score WaitForChanged quandry
TwistedPair - 20 Mar 2007 11:08 PM - 3 messages
All, I am monitoring a directory for file creation with the following code in VB Express: Dim watcher As New System.IO.FileSystemWatcher(WatchDirectory) Dim result result = watcher.WaitForChanged(System.IO.WatcherChangeTypes.Created) So now suppose I want to do a Console.Writeline() that will spit out the ...
Score What's wrong with the IDE in Vista?
Mike Williams - 20 Mar 2007 10:12 PM - 25 messages
I'm using VB6 in Vista Ultimate and when I allow Vista to use its default drivers for my graphics card (ATI Radeon 9600 Pro) the VB6 IDE is very sluggish. By that I mean if I place a Control on the Form and drag it around ...
Score VB Save As command not working with Vista
Bob - 20 Mar 2007 9:53 PM - 2 messages
When I'm trying to do a 'Save As' in VB 6.0 running Microsoft Vista, the command is not working.  Anyone else having this problem.  I can save with the 'Save' command, but when I choose 'Save As' nothing happens (no error, ...
Score VBsight GradFrameCTL error in VB ide
John S - 20 Mar 2007 7:20 PM - 9 messages
Hi All, I call VBSight frame control GradFrameCTL twice in my form with index number 0 and 1. If I update the form, save and exit from VB Ide then I will always get a VB6.exe error. The message is about unable to read memory reference. ...
Score Consuming Webservice
IVK - 20 Mar 2007 5:22 PM - 6 messages
Hello, I am new to using Webservices in VB. I know how to call a method exposed by Webservice which accepts simple strings. But now I have the problem of calling the webservice which takes complex objects. Some suggested that I need to send in the form ...
Score GetObject question
MP - 20 Mar 2007 12:08 PM - 9 messages
I have a vb6 std exe which connects to autocad via GetObject or CreateObject Before changing our "server" to win small bus 2003 the following line worked Set moAcadApp = GetObject(, "AutoCAD.Application") in contrast the following line would have caused a syntax error ...
Score RE: Microsoft Internet Control and Vista
Walter Wang [MSFT] - 20 Mar 2007 8:33 AM - 7 messages
Hi Norm, This is unfortunately a side effect of the IE7's Protected Mode on Vista ([link] p?frame=false). When using the Microsoft Internet Control from VB6, if the URL's zone is ...
Score Dear John: How Do I Call MsnStockQuote from VB.Net
Nunzia - 20 Mar 2007 1:16 AM - 4 messages
I would like to write a small program using VB.Net that retrieves data from MSNStockQuote. Something like this: Function: GetLastPrice(TickerSymbol as Char) Returns(Currency) Dim x as New MSNStockQuote.Functions currentPrice = X.MSNStockQuote(TickerSymbol) Return (currentPrice) End Sub ...
Score Windows Mail.
Jo - 20 Mar 2007 12:49 AM - 2 messages
I cannot get windows vista edition of windows mail and earthlink email to connect so I can send mail. What can I do to fix this problem I don't remember if it is pop3 mail or stmp server. ...
Score CreateObject ... permissions issue?
MP - 19 Mar 2007 10:14 PM - 4 messages
I have a vb6 std exe prog that connects to autocad via Set moAcadApp = GetObject(, "AutoCAD.Application") we changed system over the weekend to win2003 small business server (previously our "server" was win2k) now that line creates error Err: 429 (ActiveX component can't create object) ---even though a session is ...
Score ESC/POS Barcode Issue
chris.santry@gmail.com - 19 Mar 2007 9:04 PM - 9 messages
Good evening, I'm developing a  VB6 app at the minute that prints via a serial interface to a TM-T90 receipt printer from Epson, everything is working correctly apart from the GS k, barcode command which try as I ...
Score MSHflexgrid / MSFlexgrid printing problem
Majik - 19 Mar 2007 7:50 PM - 2 messages
Hi everyone I have a sub that print a large form (bigger then screen), everything on it print well EXCEPT the famous MSHFlexgrid and MSFlexgrid, they print the outside border only. the flexgrid is part of of the group Picture1. ...
Score Reinstalled Windows and have problem with vbasic
Jack - 19 Mar 2007 6:44 PM - 16 messages
After reinstalling (from scratch) Windows I have 2 problems with visual basic: 1. When running my app from IDE environment vbasic display error: Run-Time error '53': File not found: Vb5stkit.dll I have compared my old installation with the new one and the installation ...
Score call a procedure when timer is done? Please Help Me.
jonny - 19 Mar 2007 4:06 PM - 8 messages
Here is what I need to happen??? On click of button I need this to happen ... 1st.) Timer starts counting 2nd.) After 2 seconds the timer needs to stop counting 3rd.) When timer stops counting - I want to call up a procedure ...
Score .TLB and Me
Lorin - 19 Mar 2007 3:30 PM - 5 messages
Where may I get "Everything I need to know about .TLB, but was not afraid to ask?" i.e. What is a .TLB?  How and why would I use one?  Where is help info? Running VB6SP6 ...
Score Calculate the interior of a rectangle
Steve - 19 Mar 2007 3:29 PM - 32 messages
I have a function which draws a rectangle with a user defined border. There will be additional drawing done within the bounds of the original rectangle.  If the user redefines the border of the bounding box I need to move the interior drawing accordingly.  The problem I am ...
Score Adding a "static" variable to my class?
VMI - 19 Mar 2007 3:23 PM - 8 messages
I would like to access a static global variable in my Drugs class from within two events in my Form. Is this possible? Here's some pseudocode so that you understand more or less what I need: Private Sub Form_Load() ...
Score Need Help with VB6 and Excel
raman - 19 Mar 2007 2:17 PM - 4 messages
Hi all, I have a software in lab (written in VBA) which reads information from an instrument. I am trying to develop a code in VB6 which could open the excel sheet (from the VBA) and transfer information from the excel ...
Score Timer question - I want to count minutes and seconds on a click of a button?
jonny - 19 Mar 2007 1:45 PM - 5 messages
Please Help. I would like to have a text box on my form and a timer. With a click of a button I would like to start counting minutes and seconds. With click of another button I would like to stop the count and reset the ...
Score Setting ComboBox Height [Solved!?]
Love-Drunk Gump - 19 Mar 2007 5:36 AM - 15 messages
Hi again, Thanks all, for the help in the previous thread. I did a bit more diggin', and want to know if there's anything really wrong with using this method instead? [Use new project / form, one combobox "Combo1".] ___ ...
Score VB6 and App Disappear
Larry Rebich - 19 Mar 2007 4:30 AM - 5 messages
I have a VB6 app that runs fine on Windows XP. When I run it on Vista it starts OK. But when I display one of the forms in the app it just disappears. It fails in both the IDE and when compiled. When run in the IDE VB6 also ...
Score Display Language problem in VB6
Kins - 19 Mar 2007 4:28 AM - 2 messages
Hi,    I face a problem of VB6 cannot display other language words. e.g. windows default locate "Traditional chinese", then it cannot show "Simplifed Chinese words". I need to change the default locate to Simplied chinese so as to show the simplied chinese word. ...
Score Reverse engineer?
ilyas - 18 Mar 2007 10:20 PM - 6 messages
Hi If I have an exe that is produced by Visual Basic, is it possible to get the actual the visual basic code that produced that .exe? Many thanks ...
Score How to get StdPicture object from PrintWindow API
Steve - 18 Mar 2007 8:35 PM - 8 messages
I need to be able to copy the screen image of a window which may be partly or completely obscured.  The PrintWindow API seems to do the trick here.  However I also need to be able to get that image as a ...
Score New VB User Needs Help
stutyr - 18 Mar 2007 8:20 PM - 48 messages
I have VB 6.0. My prior experience was self taught Xbase/Clipper (some years ago). I would like to jump in and learn Visual Basic, primarily to convert an existing DOS application to Windows. To begin, I would like to be able to take a very simple existing ...
Score Thumnail images
Steve - 18 Mar 2007 7:02 PM - 3 messages
What is the most efficent method for displaying thumbnail images from jpg source files?  I have seen many posts in this group showing many different methods so I do not think I need any help with the code.  I ...
Score Position Text in Textbox 1 Pixel Lower?!
Love-Drunk Gump - 18 Mar 2007 2:35 PM - 19 messages
Hi, I have ~40 single-line textboxes on a form, and I'd like to vertically position the text within them 1 (one) pixel lower than usual. Please, help me. :( ldg. ...
Score Vista Certification with VB6
Gary - 18 Mar 2007 2:00 PM - 9 messages
We want to get our VB6 program certified for Windows Vista and have been able to pass all the test cases except one. Test Case 30. This test case requires that the RMTOOL shut down the program properly (and restart it if needbe), but instead of shutting it down it hangs it. ...
Score Datediff Function
DateDiff - 18 Mar 2007 1:13 PM - 5 messages
I used the Datediff function as follows. date1 = "01/01/2007" date2 = "01/01/2006" Days = DateDiff(DateInterval.Day, date1, date2) But it gives an error saying Object Required. (Run-time error '424') Pls help me to solve this. Thanking you, ...
Score Update ToolTip In System Tray Icon
rahulatech - 18 Mar 2007 1:02 PM - 2 messages
Hi every body I have made a simple clock application.In VB6.The problem is i can put the icon of the app in the system tray.As a tool tip i can also put the the time but it never updates.The reason might be i put function ...
Score Error 3201 you cannot add or change a record....
Zairay - 18 Mar 2007 9:41 AM - 3 messages
Hi All, In my database program I get the 3201 error when I add a new record and before the record has been saved to add a link with another table. I have a table Biographies and a table BiographiesPerBiographies. ...
Score Using the DTPicker tool in VB
Zairay - 18 Mar 2007 6:05 AM - 6 messages
Hi All, This is a re-entry from an earlier message. I'm using the DTpicker on a form to enter a date of birth. When the form is opened the DTPicker is disabled because otherwise the date() is displayed. When a Date of Birth is already present in the ...
Next »