Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score OOP Question
Sharrukin Amiri - 3 Jun 2006 7:02 PM - 10 messages
How do you create a form and attach a commandbox (button) to it in OOP. Thanks! Sharrukin ...
Score Control array Load function returning nothing?
Mike Mannakee - 3 Jun 2006 1:41 PM - 5 messages
I have the following code to load a control array (of labels).  When I run it, I get a run-time error of Error 91: "Object variable or With Block variable not set" Yet I have loaded the control in the line ...
Score Problems with Application setup wizard.
Gerry - 3 Jun 2006 12:00 PM - 2 messages
I am using VB 5.0 on a XP Pro SP2 machine. When I try and run the wizard I sometimes get the error message "Invalid Property Value" "An un-expected error has occurred". I press OK and it all goes away. It's a bit of a crap ...
Score ActiveBar ToolLostFocus event
Krishnamani - 3 Jun 2006 10:31 AM - 3 messages
Hi all, I have ActiveBar control in my Form to popup when we rightclick on the Grid. It contains a TextBox tool in it. If I enter a filename and press enter, it will raise the Tool LostFocus event and write the Grid details in a file. ...
Score Control Array items not responding to events
Mike Mannakee - 3 Jun 2006 3:23 AM - 4 messages
I have a control array on a form.  The control is a label control, and I have working code which adds new ones dynamically in response to user actions.  The labels display, but do not respond to the Click or DblClick ...
Score Does VB have something like the C++ sizeof() function
Bookreader - 3 Jun 2006 12:11 AM - 4 messages
I'd like to find something to tell me the memory size of an object I have created. Does VB have anything like this? Thanks. ...
Score Shortcut key and tab problems
Sandy - 3 Jun 2006 12:03 AM - 7 messages
Hello - All of a sudden, the tab order is really messed up in one of my forms.  Everytime I try to correct it, VB comes right back and assigns another TabIndex number other than what I just designated.  What could be causing ...
Score webbrowser control to submit form
jasonhartsoe - 2 Jun 2006 11:28 PM - 2 messages
I'm using Visual Studio 2005 Team Edition....using visual basic.  I'm trying to use the webbrowser control.  In the webbrowser control I have it got to a page where there is a form.  It waits for the page to ...
Score VB with MapPoint
gbukhbinder - 2 Jun 2006 7:47 PM - 3 messages
We want to create about 2,000 maps in html or pdf format using MapPoint. Each map represents several, usually 10-20 zips located around each of 2000 stores. A store is defined by its latitude and longitude coordinates. We can create 2000 files containing zips for each store. We need to automate the process of creating these 2000 maps without using the mappoint menu driven interface. I think it can be done using VB. Please let us know if it can be done. If it can be done, please let us know if you can help us on consulting basis. ...
Score MS Flex Grid control, controlling keyboard
jmev7 - 2 Jun 2006 7:35 PM - 4 messages
I tried doing a search about this on Google but found either nothing, or too many pages when I used fewer keywords. I am using the msflexgrid control to create a keyboard driven game, and it works well as long as the user only taps the arrow keys. If they hit end or ...
Score ADODB problems after 2005 upgrade from 2003 problems
T - 2 Jun 2006 6:49 PM - 2 messages
I upgraded my web project from 2003 to studio 2005. The only problem I have is that all references to ADODB are showing errors. An example is : "Connection" is ambiguous in the namespace "ADODB". All are "ambiguous in the namespace" problems. My example code is ...
Score Follow up to SQL question from a couple days back
SteveC - 2 Jun 2006 6:04 PM - 2 messages
I thank Ivar and Kjell for the pointers I requested in the previous post,and I managed to get the results I'm looking for,Using Debug.Print was helpful in seeing what was going on.This is the code I'm using ...
Score why doesn't this compile
Andy Fish - 2 Jun 2006 4:46 PM - 4 messages
create a new class called Class1 with the following Option Explicit Private foo1() As String Public Property Get foo() As String()     foo = foo1 End Property this creates a class with a public property which is an array of strings, ...
Score ADO Question
Rick - 2 Jun 2006 4:33 PM - 4 messages
I have a password protected MS Access 97 database. There hasn't been assigned any specific users, so any one who wants to open it with MS Access and uses the password can do it. No userID is required. My question is with ADO. How can I open the database with ADO Control? ...
Score Shell to open .mdb file
Paul Engel - 2 Jun 2006 2:39 PM - 5 messages
I'm looking for a command line command that will work on any machine that has Access loaded to launch an mdb file from a VB program. I can't find a token that returns the default path to access.exe. Does anyone have ...
Score JET
Rick - 2 Jun 2006 1:34 PM - 4 messages
Is it possible to run, distribute and use jet4.0 in VB6 without Office? ...
Score InitCommonControls
Steven Rijkee - 2 Jun 2006 12:08 PM - 8 messages
Hi all, When i want to give my program a Windows XP outlook, i use InitCommonControls in combination with a manifest file. But on some systems the optionbutton become completely blacked. Is this a bug? Greetings, Steven ...
Score Show Design Grid in a Picture Box?
AK - 2 Jun 2006 11:39 AM - 11 messages
Hello, I am trying to draw lines horizontal and vertical lines in a picture box. How do I get the design grid to show up (thru or in/on ) a picture box during design time so that I can use the grid to align my lines and other ...
Score Help with Server/Client
Chuck Faranda - 2 Jun 2006 11:16 AM - 6 messages
I have an ActiveX EXE app that I need help with.  When a client creates an instance of the object, it expects that it is created when the CreateObject() or New statement returns. My object server must not return control to the client until it is completely initialized.  It appears ...
Score VB Reference Site
therapycorner - 2 Jun 2006 10:51 AM - 14 messages
Hi There, does anyone know a good site like [link] but for Visual Basic?  Something that lists objects, and their properties, methods etc for easy reference? Thanks, TC ...
Score Check for Application Idle time????
Vanessa - 2 Jun 2006 9:22 AM - 4 messages
Hi, I have an application installed in my client computer.  While the user is still using my application and he switched to another application, e.g. MS Word. My Program will then want to know how to detect whether there's any activity ...
Score StetchBlt Modes
Mike Williams - 2 Jun 2006 9:13 AM - 14 messages
I posted a request for help a few weeks ago but sadly I received just one reply. I'd appreciate it if any of you would kindly try out the following code for me and let me know the result. The code creates a small test image ...
Score Windows Media Player Start Position...
Vincent777 - 2 Jun 2006 5:49 AM - 3 messages
Hello Friends, I have been looking through as many samples as I can find but have not been able to figure out how start a track on a CD from a certain start position. Let's say I want playback to begin starting at 10 seconds into the track and ...
Score Flex Grid Column Names
jbaldi - 1 Jun 2006 7:41 PM - 2 messages
Is it possible to get and set data in flex grid cells by column name rather than an integer based index? For example: MyFlexGrid.Rows(3).Column("MyColumnName") = "MyValue" ...
Score Detect whether a string Name points to SQL Server TABLE or VIEW???
Alan Mailer - 1 Jun 2006 6:50 PM - 2 messages
Using VB6, is there a way to detect whether an 'object' located in a SQL Server database is a Table or a View? In other words, is there a way to try to find out of a string I might ...
Score 'Record' music currently PLAYING on computer SPEAKERS?
Alan Mailer - 1 Jun 2006 6:44 PM - 2 messages
If I wanted to record the audio currently playing on my computer speakers, how would I do this in VB6? Thanks in advance. ...
Score Appending Content of 2 Array into 3rd Array
Prabhat - 1 Jun 2006 5:12 PM - 14 messages
Hi friends, I have 3 byte arrays and how can I append the 2nd and 3rd array into the 1st array without using Loop and with using loop. Note all 3 are Byte Arrays. Thanks in Advance Prabhat ...
Score Thread Question
fniles - 1 Jun 2006 3:19 PM - 7 messages
I am using thread (sub ThreadMain in the ClientSession class). I call it from main application called MainForm. Inside ThreadMain, I call a subroutine WriteLine from the MainForm. Will WriteLine run/processed inside or outside the thread ? Thanks. Code from main appl: ...
Score Handling a ODBC timeout
dman - 1 Jun 2006 1:49 PM - 10 messages
Hi. Can someone point me in the right direction? We have an application that may sit open on someone's PC, say over lunch. When they return and try to load a screen with data, VB throws a run-time ...
Score Problem hiding desktop icons from Systray
Andibevan - 1 Jun 2006 10:59 AM - 22 messages
I am trying to create a systray program that can hide / show the desktop icons.  I am doing this using the following:- Public Sub deskicon(show As Boolean) Dim primo As Long primo = FindWindowEx(0&, 0&, "Progman", vbNullString) ...
Score Silent install from VB6
Geir Holme - 1 Jun 2006 10:31 AM - 12 messages
Hi all. Is there any way to make "Silent install" from a VB6 project. Either using VB6 setup program or Installshield Professional 6. We want to start and install our VB6 program "silent". No popups and stuff.... thanx all geir ...
Score VB5 Webserver secure?
Mark - 1 Jun 2006 7:06 AM - 8 messages
Hi, I have just written an extremely simple webserver using VB5! It uses the winsock control, and when another computer logs in, it simply sends some text in response. It is all we need at present. I modified the code from: ...
Score Did 'UserControls' survive the transition to post VB6 development???
Alan Mailer - 1 Jun 2006 6:00 AM - 2 messages
Having just built my first UserControl in VB6, it *just* occurred to me to wonder... Are UserControls still operative in .Net or has the whole UserControl concept gone away after VB6? Thanks in advance for your responses. ...
Score How to detect if a file sitting on a network drive is open by an a
Moumen VB.NET 2003/2005 Developer - 1 Jun 2006 6:00 AM - 2 messages
How to detect if a file sitting on a network drive is still open by another application? This application resides on another machine on the network? I am using VB.NET 2003 Your help is highly appreciated ...
Score How to disable close button?
Boki - 1 Jun 2006 1:38 AM - 6 messages
Hi All, I want to disable the close button. ( the one trigger unload event ) Don't know how to do.. Best regards, Boki. ...
Score Windows Media Player
zoneal - 1 Jun 2006 12:22 AM - 2 messages
i want open files from cd to play them on WindowsMediaPlayer... i wrote code like this WindowsMediaPlayer1.URL = "D:\folder1\file.mpg" it work Ok... but when i try the program on other computer it's CDRom letter (F:\) it ...
Score UserControl Sub Routine should only be called UNDER CERTAIN CIRCUMSTANCES???
Alan Mailer - 31 May 2006 3:38 PM - 4 messages
I'm using VB6 to create a UserControl.  I want a particular Sub Routine to fire after the UserControl has read in all its properties. (I'm assuming I should call this routine at the end of the UserControl_ReadProperties Event, but if I'm wrong, please correct ...
Score Using VB6 dll in Delphi app.
David Kerber - 31 May 2006 2:31 PM - 19 messages
I'm the VB programmer on this project, and another guy is doing the Delphi part. System info:      Windows XP SP2     MSVBVM60.dll version 6.0.97.82, dated 2/23/04 I am using this hack: ...
Score Correct group?
David Kerber - 31 May 2006 1:46 PM - 2 messages
What would be the correct NG to ask questions about makeing a .dll in VB6?  Is this one ok, or is there a better one? ...
Score Copy GIF to the clipboard
Steve Barnett - 31 May 2006 12:38 PM - 4 messages
I have created a GIF file but the user wants it copied to the clipboard, so they can paste it in to PowerPoint. Is there any way I can do this? Thanks Steve ...
Score Help needed on Hooking Crashes VB exe very often
soorya - 31 May 2006 11:48 AM - 6 messages
hi, I am having one master and 3 Child VB6 application. All running simultaniously... Almost all the programs are Hooked for Windows msg... I send commands to child applications from Master app. via Sendmessage API. And same way I send return commands to Master app. from child. ...
Score insert a chart onto a form
Dan - 31 May 2006 10:28 AM - 2 messages
Hi all, I have a vb6 form that is used as a front end for an excel sheet in the background. I want to show a chart on this form based on data in the excel sheet. It is obviously easy to create the chart on the excel sheet, but how can I show ...
Score How to generate system Error in WinXP ?
soorya - 31 May 2006 8:46 AM - 13 messages
hi, I am facing a problem with VB6 coding in WinXP SP2. After saving a data in registry by Savesetting() And if that application is unloaded improperly, the registry settings are not saved. Auto System restoring point or what ever may be the reason for this ...
Score Project loads into INTERNET EXPLORER??? Form_Load NEVER FIRES???
Alan Mailer - 31 May 2006 5:06 AM - 2 messages
Ok, so I'm trying to create my first VB6 'Group'.  The Group consists of a UserControl (ActiveX control) project and a 'Standard Exe' project.  The 'Standard Exe' project consists (for now at least) of a single Form ("Form1") which only has one control on it; the ...
Score Detecting mouse click outside current application
Mike Mannakee - 31 May 2006 12:55 AM - 7 messages
Does anyone know how to detect mouse clicks outside the current app?  I need to catch the color of a pixel clicked anywhere on the screen. Mike ...
Score Comparing a variable to see if it belongs to a valid set
Travers Naran - 30 May 2006 10:14 PM - 3 messages
I'm making some changes to some inherited ASP.NET code written with a VB.Net code-behind page.  I encountered one of these fun constructions (variable names & literals changed to protect the innocent): If strType <> "Type A" and strType <> "Type B" and strType <> "Type C" ...
Score Transparent Background For Label
Ole Weigelt - 30 May 2006 9:20 PM - 4 messages
Hi everybody, is it possible to give a simple label a transparent background? Thank you Ole ...
Score another quick problem with a SQL statement
Johnfli - 30 May 2006 9:10 PM - 11 messages
I am trying to update some records mySQL = "Update [Jcrew] Set SentEDI = 1 FROM jcrew WHERE (SentEDI IS NULL) AND (ShipDate IS NOT NULL)" Adodc1.RecordSource = mySQL Adodc1.Refresh The moment the line Adodc1.Refresh executes, I get an error message saying ...
Score probelm with SQL Statement
Johnfli - 30 May 2006 8:10 PM - 4 messages
Form1.Show mssql = "SELECT  [PO Number], Qty, Cartons, OutTrailer, ShipDate From jcrew WHERE     (SentEDI IS NULL) AND (ShipDate IS NOT NULL)" Adodc1.RecordSource = mySQL Adodc1.Refresh Adodc1.Recordset.MoveFirst I have the above code in my app. ...
Score Message Box
tim - 30 May 2006 7:54 PM - 8 messages
Is there a way to default to the no button for vbYesNo message? Thanks ...
Score How to check if the file is open in any editor?
MPA - 30 May 2006 7:15 PM - 2 messages
Hi, I am modifying an existing app in VB 6.0. The program is trying to remove some files from disc, which obviously fails if the file is opened in Word, Excel or another editor. Is there a way to check for it beforehand (for any ...
Score Reading information from a scale
Suzette - 30 May 2006 7:05 PM - 6 messages
I have a customer who uses a scale made by My Weigh.  They want that information read into a program that I write custom programs/vba macros for. I was wondering if anyone could point me to something on the web that might ...
Score Realtime response of Windows XP
Randy Gardner - 30 May 2006 6:28 PM - 5 messages
I have had a routine that interact with hardware lock up the system which required a Windows reset! Are realtime ( 100 micro sec responses or less ) possible with Windows XP? Can a single program take TOTAL control of the PC system? ...
Score Byte Compare
DanS - 30 May 2006 5:09 PM - 4 messages
Hello all, I'm just looking for some ideas on how to acclomplish a task I had been assigned. My instructions were to code a bit-error rate tester for some serial based wireless devices we sell. The test setup is using 1 PC with 2 serial ports...data goes out one ...
Score Strange problem in function treturning values
venky07 - 30 May 2006 3:41 PM - 4 messages
Greetings! Forgive me if this is a silly question... I have some cells in an Excel spreadsheet (Cases) with data like the following: (two separate adjacent collumns) BAGGAGE: Individual-Baggage                INB ...
Score Runtime Error 430 Help Requested For Win XP SP2
alijsyed - 30 May 2006 3:35 PM - 5 messages
Hi I have a progarm that uses a 3rd party dll. Creating an object from this dll reference will ALWAYs trigger a runtime error 430 on a specific WinXP SP2 machine. I am 500+ miles away from the client pc so I can't see much of what's ...
Score Combo Box with Auto Complete
Binder2000 - 30 May 2006 3:07 PM - 2 messages
I would like to add a combo box to a form so a user can begin typing characters and the list of matches will appear. How do I get that functionality? ...
Score Attachments in "mailto"
Guy Cohen - 30 May 2006 2:57 PM - 3 messages
Hi all Is it possible to define attachments using mailto ? TIA Guy ...
Score Disk Serial Number
chris.henderson - 30 May 2006 1:22 PM - 23 messages
Does anybody have a working example of sending an Identify (0xEC) command to a hard disk in Win XP? I have found information and examples on the web but they all appear to be in VC or Delphi. Many thanks, ...
Score working with strings
Boss - 30 May 2006 12:58 PM - 11 messages
Hey coders, Wondering if anyone can give me an example of how to remove the first and last character from a string. Simple enough right? I was able to figure out how to combine and all that, simple stuff, but I havn't ...
Score Timer event just...doesn't happen
Robert - 30 May 2006 8:21 AM - 29 messages
Hello all, I have a pretty puzzling problem where a time event seemingly just doesn't arrive for about half a minute. I can't reproduce it on my machine, but asked a colleague to activate my quite extensive logging features, so I can ...
Score Newbie Data Type Problem
Thomas Nickerson - 30 May 2006 3:04 AM - 13 messages
Hi, I have been trying to run this code: B = 186282 * 186282 ...but every data type I use gets an Overflow error! I tried Double, Single, Long, Decimal, Variant. I am using VB6. What am I doing wrong?!? Secondly, does anyone know how to use the square root function (Sqr) on ...
Score String.Width Calculatiing problem.
Kjell - 29 May 2006 9:17 PM - 7 messages
Hi I'm having a problem with measuring/calculating a string width. I'm familiar with string width calculation using a printer object and I have been thinking of using that for this problem too even though a printer is ...
Score Help file authoring tool
JP Bless - 29 May 2006 8:25 PM - 7 messages
Does any one know of any good free/fee tool for authoring VB project help file. The file would be incorporated into a VB project, and as well, could be printed out as hard copy manual for the app user. ...
Score Beginner at SQL need some pointers
SteveC - 29 May 2006 6:24 PM - 3 messages
I'm trying to make a part number app for a friend using Access DB and VB6.It's a fairly simple app with a single table, 6 field DB.Form has a FlexGrid,three comboboxes and a Picturebox and a command button for ...
Score Going Crazy Attempting to Pass a Value to a User Control
AK - 29 May 2006 4:23 PM - 6 messages
I have a User Control comprising a Datagrid and a Text Box. This control is placed on a Form (Form1) that has a text box for user entry. See sketch below:      ************************************************                                                  Form1 ...
Score Crash when running exe
Harold Druss - 29 May 2006 2:23 PM - 2 messages
Hi All Using vb6 sp5. I have a small program that runs fine in the IDE with Ctrl-F5 After compiling and running the exe the program crashes. The error is in kernel32.dll This is the error message: Unhandled exception at 0x7c809e45 in Deployment Automator.exe: 0xC0000005: ...
Score Collection of Types
Alexander Mueller - 29 May 2006 12:11 PM - 13 messages
Hi I would like to add multiple type-items to a collection which obviously isn't possible in a standard-exe project: Option Explicit Private Type T      A As String      B As Integer ...
Score rendering commandbutton saperately
jack - 29 May 2006 9:41 AM - 5 messages
hi all is it possible to render command button saperately... ...
Score DTSPkg.dll
Travis - 29 May 2006 8:51 AM - 2 messages
Hi ,    I created a program in VB6 and call the DTS to run. But when I deployment on user's PC, the program failed to run. I try to register the DTSPkg.dll and DTSPump.dll manually on user's PC but I failed to do that. ...
Score How do I get the source path of clipboard?
Zoo - 29 May 2006 7:07 AM - 5 messages
Hi all. I am trying to get the source path of clipboard. eg. 1) Open "C:\temp\test.xls" for example. 2) Select "A1:B2" and copy that. 3) From my VB6 Application , I want to know the source path. ...
Score Calling Word 2007 Functions from Visual Basic.NET 2005
Simon Richardson - 28 May 2006 8:01 PM - 4 messages
I have always used the CreateObject("word.application") to call word automatically from my applications but it doesn't seem to be working with Word 2007. My code is:-         Dim WordApp As Object ...
Score Reading Advanced File Attributes
Heather B - 28 May 2006 6:44 PM - 2 messages
Hi, I would like to write a program to rename all of my pictures from my digital camera, placing the date/time that I took the picture in the name of the file.  However, when I sat down to do that, I realized that the ...
Score add combobox name on fly?
vonClausowitz - 28 May 2006 3:51 PM - 3 messages
Hi All, I want to add the name of a combobox on fly, like this: strSQL = "SELECT DISTINCTROW nationalities.nationality FROM Nationalities " & _             "ORDER BY nationalities.nationality"    FillComboBox strSQL, "5" ...
Score DataReport display size
Michael Tooth - 28 May 2006 8:56 AM - 2 messages
Some help please. I have written my reports using the VB6 version of the DataReport without problems. When I show them they display at 100%,  which is a little large as the user is just having a quick look before printing them.  I would like to come up ...
Score Help me to fix "Win XP SP2 and SaveSetting" Problem
soorya - 28 May 2006 1:11 AM - 13 messages
hi, In my VB6 application i use Savesetting() to save many settings in windows registry. My OS is WinXP SP2 My Problem: While my application is running, If power goes off, or any system error occurs, or if we press Restart button, the recent settings are not saved. ...
Next »