Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score Sound
aalaan - 23 Dec 2006 9:05 PM - 12 messages
A quick one. How can I play a predetermined *.wav file when a given button is clicked? Vb5 but could use vb6 if not available on 5. ...
Score VB6: How to make automatic indent in regular text box
Simon - 23 Dec 2006 5:32 PM - 4 messages
Hi, Everyone! I was wondering if anyone knows how to make an automatic indent in regular textbox in VB6. Thank you in advance. ...
Score Need Help Recovering from Bad Visual Studio 6 Install to Windows 2003
Will - 23 Dec 2006 6:37 AM - 7 messages
Can someone give me guidance about whether Visual Studio 6 should install and run VB 6.0 correctly under Windows 2003?   We have a ton of problems getting this install to work, so many that it almost looks like they are not ...
Score Error when using FileSystemObject.Move
Oscar - 23 Dec 2006 1:51 AM - 2 messages
I am using the FSO in my program and everything is working fine until I try to use the Move command as follows:            fs.MoveFile strFileOld, strFileNew Then I get the "Permission Denied" error. ...
Score VB6 runtime in 64-bit Windows
Conan - 22 Dec 2006 9:15 PM - 4 messages
Hello, I have a VB6 DLL that needs to be registered on a x64 machine. Right now it fails, because I'm missing Visual Basic runtime, which never was a problem on a 32-bit OS. Where can I get the runtime for the x64 edition? SP6 is still ...
Score Spell checker
DORI - 22 Dec 2006 8:47 PM - 2 messages
Dear all, Newbie vb6. I want to add a spell checker to my application to check the spelling of the text entered by users in Text1.Text, and also to be able to add new words which may not be in the spell checker. ...
Score How to get the "Modified" date of a file?
Martin - 22 Dec 2006 4:21 PM - 7 messages
How can I get the "modified" date of a file that's located on another computer (on my LAN)? I have an app that's used only in-house. When it starts up, I want to have it check to see if an updated version of itself is available (the ...
Score Controlbox Disable
Ron - 22 Dec 2006 8:46 AM - 12 messages
Hi I thought I would look for back issues on this subject before I made this post and was quite surprised to read that what i have been doing for the last 3 years was completely wrong, let me explain further. I am a book taught VB ...
Score Resize Shape Control
Haider Shah - 22 Dec 2006 7:34 AM - 2 messages
Hi. I have a problem with shape control in vb6. it does not resize and drag. plz. if anybody have its solution then reply me urgently. Thanks. Best Regards. ...
Score Enumerating fully qualified domain names
Farhan - 22 Dec 2006 6:32 AM - 4 messages
I have a function which displays domain user based on domain names displayed in combo but the it is unable to diplay a list of users for all domains. This is because of some hardcoding. There are two ways of ...
Score Instancing problem with user control - Help Needed Urgently
Farhan - 22 Dec 2006 6:03 AM - 3 messages
I have a form1 through which a form2 is opened which has a picture box in which a user control is loaded but the problem is if I opens the form1, calls form2 and then close form2 and do this for ...
Score Pulling infomation from Media Player
Marcelo - 22 Dec 2006 4:50 AM - 3 messages
Hello,    I would like to know if there is any way for me to pull Infomation from either media Player playing MP3s or from a site such as XM-Radio? i would like to pull like the song name / Artist / Album.  ...
Score Perplexing Problem with DDE
Steve Easton - 22 Dec 2006 2:50 AM - 22 messages
I've been working on an application that uses the following from Randy Birches' site, to grab the URL from the last opened IE window: Link to Randy's page: [link] ...
Score Faster screen refresh
Dan Ritchie - 21 Dec 2006 11:28 PM - 2 messages
I am blitting to a form using an api call.  The form is set to autorefresh=true. I am blitting using the form.hdc When I perform the blit, I have to then afterward do a form.refresh to get ...
Score Installed Application will not run.
Rick Burrows - 21 Dec 2006 10:08 PM - 4 messages
I have created an application in VB6 SP6.  My machine is running XP SP2.  I can run my application fine from within the IDE.  I can compile it and run it locally.  I can create a setup package (I am using Jordan Russell's Inno ...
Score May have hosed my registry
MP - 21 Dec 2006 7:46 PM - 9 messages
oops think I did a boo-boo I've been working on a dll/ revising / unregistering / breaking compat /re-registering.... once time the other night I forgot to unregister before recompiling so now i had two references to my dll in the component manager dialog box ...
Score Import fixed length file to SQL db
Matt Williamson - 21 Dec 2006 7:31 PM - 6 messages
I'm looking for some advice from someone that has done this as to the best method to import from a fixed length file into a SQL db. The file I'm reading in starts with a header line and then there are 2 lines per record ...
Score Anti-Piracy Scheme
FrankAm - 21 Dec 2006 6:12 PM - 23 messages
I wrote an app that, in order to detect piracy, on startup the app goes to my FTP site to download and upload some text files for comparison with the users Hard Drive serial number. Can someone look at my scheme ...
Score Copy portions of array
wxforecaster - 21 Dec 2006 4:48 PM - 28 messages
Say I have an array with 5000 elements in it arr(4999) I want to copy a portion of that array (say elements 100 to 400) to a new array: arr2(300) Is there a more efficient and quicker way to perform this action vs. a for ...
Score MSComm receive data
fabianuat - 21 Dec 2006 4:11 PM - 2 messages
Hello Im using the MSComm to send and receive binary data to a video server, the sending part works fine, but when a receive more than 8 byets, the input variable only keeps the bytes over the eighth byte. ...Please some ...
Score New at linking tables - PK/FK
Robb - 21 Dec 2006 3:20 PM - 2 messages
Ok- I am new to VB programming.  I mean I have been doing it for three weeks (sort of).  I am trying to automate a form to grab the Primary Key from one Access table and have it generate an autonumber in the other table.  The PK ...
Score HELP!! need help with datagridview
jbennett - 21 Dec 2006 3:02 PM - 2 messages
hi i need help getting a query i created in a tableadapter to fill a datagridview. the query is this: select genre.description, title.title_name, title.pages, title.price, title. sales, title.pubdate from titles inner join genre on titles.genreID = genre.genreID ...
Score Accessing functions decalred in an ActiveX DLL
Mark Hollander - 21 Dec 2006 12:58 PM - 3 messages
Hi All, I have created a whole lot of functions in an activex dll, but when I tried to use them in an Exel 2000 workbook, i could not seem to access them. What am I missing? Thank you Mark Hollander ...
Score Casting Variant to Form
Mark Hollander - 21 Dec 2006 12:54 PM - 4 messages
Hi All, I have created a Activex Dll so that it can be used in a Excel 2000 workbook. I need to access the forms that has been created in the AcitiveX Dll , but when I try to access them they are not displayed as one of the options ...
Score Difference btw 2 dates in different format in VB
kavyamallesh13 - 21 Dec 2006 12:44 PM - 4 messages
Hi, I have to find the difference between 2 dates and time in VB. I have created an UI where the user inputs the date and time which are in the string format. I want to find the difference between the system date and the user ...
Score How to make Rich textbox, right-to-left? (VB6)
Mazdak - 21 Dec 2006 12:33 PM - 2 messages
Hi All, how could we make Rich Textbox, right-to-left? (VB6) how to make it compelete right-to-left or having true right-to-left for one line and false right-to-left for the other line? Regards. ...
Score RTF control and SelIndent
Steve Barnett - 21 Dec 2006 9:49 AM - 4 messages
I need to provide users with icons to indent and outdent text in an RTF control. To do that, I've generated code that sets the SelIndent property and that works fine most of the time. However, if the user selects a block of text with different indents, I find ...
Score calling C code from VB
CAFxX - 21 Dec 2006 8:35 AM - 6 messages
hi, I need just a little clarification about foreign language calling in VB. I have a solution containing two projects, one in VB and the second in C (a library). The VB project needs to call functions contained in the C library. ...
Score how do I display data dynamically?
Brian - 21 Dec 2006 6:17 AM - 12 messages
I am writing a generic windows form for the medical application.  The form only contains some text based questions and and checkboxes. The questions are outsourced to a group of doctors as it relates to medical stuff and they are to be loaded dynamically. ...
Score Flat text file read in Dilemma. VB 6.0
wanderingmystic - 21 Dec 2006 1:43 AM - 5 messages
have a file I need to read in. Easy right? Here’s the catch. Its 17k+ records than all end in a vbLF.  If they ended in vbCRLF the following would work but they Don’t so its not. ...
Score listview - right mouse button down to make listview selection?
John - 21 Dec 2006 12:44 AM - 2 messages
Hi Experts How can I use right mouse button down to make a listview selection? Thanks. ...
Score windows script host
caver_dave - 20 Dec 2006 9:10 PM - 5 messages
Please can anyone help? my knowledge of the win script host is sketchy I use this set of declarations and statements to create a program that starts up when windows does Dim wShell As New IWshShell_Class Dim wShortcut As IWshShortcut_Class ...
Score Control type
John - 20 Dec 2006 8:01 PM - 4 messages
Hi Experts, I use the following loop to get all of the controls in the form. How can I know that the current obj is a Button or a ComboBox? Thanks. Private Sub EnableControls     Dim obj As Object ...
Score App.ExeName varies by OS
DRBarkley - 20 Dec 2006 7:45 PM - 18 messages
Hi, Using VB6 SP5, I often use SaveSetting with App.ExeName as the AppName parameter. If I start two instances of the same program, they would overwrite each other's settings. To avoid this, we have always renamed one of the exe's, so a different ...
Score TDBGrid question
Martin - 20 Dec 2006 5:38 PM - 5 messages
Im using a TDBGrid (from ComponentOne) in my VB6 program. I would like to retrieve a value that's in one of the cells in a row OTHER THAN the current row (and I don't want to change the current row). ...
Score MS Outlook Problem
Rams - 20 Dec 2006 3:19 PM - 2 messages
When i am trying to send mail from my VB 6 application through MS outlook using CDO i am getting a message as below. "A Program is trying to access email address which you have stored in Outlook Do you want to allow this? ...
Score how to connect and reading records from sql server 2000 db
zafar - 20 Dec 2006 2:41 PM - 2 messages
how can I connect to sql server 2000 from vb 6.0, also guide me to read records from any test table and displaying that on my form. consider that I have two fields (id, name) in my test table... can anyone send ...
Score how to open MDI child form on a perticular area of the screen.
zafar - 20 Dec 2006 2:34 PM - 3 messages
I want to open an MDI child on the perticular area but not in full screen mode, what code should I use? I have not Idea,, plz guide me for this. or write me a block of code... thanx ...
Score how to use multimedia control to play sound in vb 6.0
zafar - 20 Dec 2006 2:30 PM - 2 messages
I want to play some sound using mutimedia contol in vb 6.0. e.g if user clicks command button then a sound which I specifed, should be played. OR any other alternative easy way to play a sound on VB 6.0 forms.... ...
Score debug a program w/o loading VB
nc - 20 Dec 2006 2:29 PM - 6 messages
I have a question on how to debug a program we have written if Visual is not loaded on the pc. We don't want to load the Visual program very time the programmer has to go out and debug a problem, so what's the best way to work around this? ...
Score Label Click
Phil H - 20 Dec 2006 1:15 PM - 8 messages
Command btn and Label both have a click event. However label.click is much slower and easily miss a beat. Is that a way to make a label respond faster to mouse click. Thanks. ...
Score VB6:Initiating Acrobat with parameters
Nickoby - 20 Dec 2006 12:09 PM - 5 messages
I have a VB6 program which calls up Acrobat Reader PDF files. Is there any way to extend this by adding a search parameter in the VB6 program to make Acrobat go to a particular page or subject? ...
Score MSDN Cd damaged. Where to obtain another?
AndreVB6 - 20 Dec 2006 10:07 AM - 5 messages
My MSDN cdpack distributed with vb6 got damaged. Any idea where I can either download MSDN or buy another. I do not want to spend all the money for a new VB enterprise edition pack. ...
Score Test for uninitialised array
Michael C - 20 Dec 2006 5:49 AM - 7 messages
I know of all the standard methods such as using On Error, CopyMemory or GetArrayDims api (not sure of exact wording). But someone here posted a really simple example that was something like dim x() as long if x and 1 then ...
Score Why form load being called by Uload Me call?
MP - 20 Dec 2006 12:46 AM - 20 messages
Hi, yet another weird error (my specialty) I have this almost working but somehow I've recently introduced a new wrinkle. ste exe consists of a form called by sub main form has cmdClose button that  calls Unload Me to close form and end program ...
Score NTLM Proxy Authorization
George Vasiliou - 20 Dec 2006 12:04 AM - 2 messages
Hi to all, I have made up a small client / server application with WinSock (port 443) at VB6. I have install server in my Home, and client is running behind a proxy server. Client cannot reach server, because proxy requires NTLM Authorization ...
Score Execute *.sql file in VB
Vlacha - 19 Dec 2006 6:20 PM - 10 messages
I created script file in SQL Server 2000 Enterprise Manger. The name 1.sql. Its contents: if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[_ATest]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[_ATest] GO CREATE TABLE [dbo].[_ATest] ( ...
Score I am very new with vb 6.0 for accessing parallel port
zafar - 19 Dec 2006 4:04 PM - 3 messages
I want to take some input and output using parallel port, can any body guide me in this regard. I am using win xp. ...
Score Download and save a PDF file from the web
markdavies2003 - 19 Dec 2006 5:09 AM - 2 messages
I've been using VB.NET for several years to program Internet Explorer, to navigate through websites, fill out forms, save web pages, etc etc. Now I have the need, though, to navigate to several hundred URLs for PDF files and download these PDF files to my computer. If I use the ...
Score Object creation in Sub Main
WB - 18 Dec 2006 8:11 PM - 6 messages
If I have a .bas file with Sub Main and I declare a global object that is a collection of Stores, how will that object get "destroyed". Inside the .bas I globally declare Public gobjstores as CStores Inside the sub main I have a line that instantiates the object Set ...
Score A problem with .CreateEmbedded
David - 18 Dec 2006 5:16 PM - 3 messages
Hello all I have a report that runs 1500 separate reports. No problems. The header for the report can however, change..so I have created a Word document, stored it in a directory with the app so that the user can change the header at will, ...
Score ListView User Set Column Widths
Lorin - 18 Dec 2006 5:16 PM - 3 messages
Other that using a timer to constantly poll the column widths of a listview, is there another way to get the widths when set by the user? ...
Score Minimize application in tray
David - 18 Dec 2006 4:42 PM - 3 messages
Hello all I am using the code from [link] to open anapplication. I have a statement that opens up, in this case, Distiller: Call Shell("C:\Program Files\Adobe\Acrobat 6.0\Distillr\acrodist.exe") ...
Score Embed image in file
Dan Reber - 18 Dec 2006 2:58 PM - 9 messages
I am trying to figure out how to embed an image in a file that contains other information, is there a way to do this? Thanks Dan ...
Score Vb spreadsheets
Altair Brito - 18 Dec 2006 10:37 AM - 17 messages
Hi I have a VB form with a spreadsheet on it, and I would like to know how do I go about printing it. I want to create a button that says print and when I click it to print it or show the print preview option. Please help me in any ...
Score problem in c++ Translation
Farsad - 18 Dec 2006 9:57 AM - 2 messages
Hello I have this code in c++ : typedef struct{     prWChar           DeviceInternalName[512];    /* Internal devicve name (512 characters) */     prWChar              ModelName[32];              /* Camera model name ...
Score Apologies from Harry Strybos
Harry Strybos - 18 Dec 2006 8:16 AM - 21 messages
Hi All While I have become a strong supporter of VB.Net, VB5/6 is still a great language for the amateur programmer. How long VB5/6 will run on MS operating systems a somewhat of a mystery. We have tested it with Vista and it runs ...
Score Daylight Saving Time FYI
wxforecaster - 17 Dec 2006 9:35 PM - 2 messages
I know this has been a hot button issue for those of us in the US. On Dec 12th, Microsoft released a patch to correct this for us. More info can be found under KB928388 in the knowledge base. Windows Update should ...
Score Checking if several variables have distinct values
Sulaiman - 17 Dec 2006 8:27 PM - 9 messages
Hi, I've been trying to figure out if there’s a simpler way to check if a list of variables have distinct values. This is what I have been using but it’s too long. Note : there are 4 variables : LnPos(0 to 3) ...
Score Visual Basic Binary Files
RobDevtype - 17 Dec 2006 1:14 PM - 29 messages
Hi, I want to use vb to save a file which I have downloaded using a http request, however it keeps confusing the characters chr(0) and chr(32) how do i stop this or is there a better way to use the 'put' statement to avoid this? ...
Score How to Call a button on a toolbar from other forms?
DORI - 17 Dec 2006 6:54 AM - 4 messages
Dear All, Newbie vb6. Toolbar1 is located on Form1 and includes 3 buttons. A private sub on Form1 controls the function of these buttons such as this: Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button) Select Case Button.Key Case "Button 1" ...
Next »