Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score How do you find out why a form lost the focus?
Number 11950 - GPEMC! Replace number with 11950 - 9 Sep 2006 11:45 PM - 2 messages
How do you find out why a form lost the focus? I am trying to set up a data-entry interface that prevents keystrokes being sent to another program in the event of a stolen focus. This is to at least ...
Score vbscipt references
golek_amri - 9 Sep 2006 7:46 PM - 5 messages
full vbscript references, i need that, how to get it ? 4 Free ...
Score Refresh DataGrid
Gabriel - 9 Sep 2006 3:47 PM - 2 messages
Hello, I'd like to refresh a DataGrid in VB.NET (2003). I assigned to the datasource property an arraylist, when I add the first one, I can see it. But after, when I add more records in the arraylist, I see only the first ...
Score Trapping the TAB key press event
Jack B. Pollack - 9 Sep 2006 3:19 PM - 6 messages
I am trying to trap the tab key being pushed when moving from textbox to textbox (VB 6). I have tried trapping for it in the textbox keydown and keypress events. I have also tried to trap it in the form keydown, keypress ...
Score How to display mailing label print dialog?
Kagemusha - 9 Sep 2006 8:06 AM - 3 messages
I'm trying to include an easy way for my users to print out mailing labels in my program. How can I show the print dialog similar to MS-Word's label tool that (1) shows available Avery forms (2) pops up custom label ...
Score Newbie: How to make a form as MDI via code
halimnurikhwan - 9 Sep 2006 7:09 AM - 8 messages
Hi All, I've tried in VB 6 and insert MDIform is easy way but I want to make MDIform in VBA Excel, Can I make Userform1 in VBA Excel as MDI and Userform2 as Child ? Any comment will appreciated !. ...
Score Use VBS to change a number
David99x - 8 Sep 2006 10:38 PM - 3 messages
On a Windows 98 machine I have space delimited files with a data string for each hour of the day.  I want to use a vbs to change the value in the 4th column to 9999 when the time stamp in the 2nd column is 0300 as in the 3rd ...
Score Is there any way to detect Standby?
Dale - 8 Sep 2006 9:49 PM - 3 messages
Is there any way VB6 can detect that the machine is about to go on Standby, or that it has just returned from Standby?  Likewise, is it possible to detect Hibernation, either before or after the fact? Any help would be appreciated. ...
Score controling textbox in word document
DAFitt - 8 Sep 2006 9:49 PM - 3 messages
I have created a template in Word that includes formfields, tables, and textboxes.  I can enter data into the the formfields and tables from my VB6 app but I can't figure out how to access the textbox.  Any help would be ...
Score opening a lst file using excell
den60 - 8 Sep 2006 7:56 PM - 3 messages
I am trying to get contents out of a txt file put in colums copy and paste Workbooks.OpenText Filename:="D:\Work\5.lst", Origin:=xlMSDOS, _         StartRow:=1, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 9), ...
Score VB2003 - load web browser in a form
RJDurkee - 8 Sep 2006 7:19 PM - 11 messages
I am a new VB programmer asked to write a program that is more difficult than my current ability. Would like to create a web browser window that runs within a form. I know how to create a VB program that will open IE with a specific URL, ...
Score Datarepeater - Binding Collection Error
mgweiss - 8 Sep 2006 5:08 PM - 3 messages
I'm trying to use the DataRepeater control.  I've created the separate ActiveX Control project and created the .ocx that defines a single instance of my control.  It's mostly labels, textfields, and 1 richtextbox control for ...
Score Open a file with selected association - Like Open With
Steven - 8 Sep 2006 4:18 PM - 11 messages
Hi All, I have created an application,   which when it saves documents, it saves it as its own extention,  like file1.zxc ,  file2.zxc  etc.... However what i want to do now is get my app to open these with acrobate ...
Score pls help calculate previous 10th , 11thand 20th working days from given day
ritu - 8 Sep 2006 3:51 PM - 8 messages
Hi I am stuggling a little bit as i am a bigginer in prog. i am creating an application where i enter current date: sept 6 2006 (for eg) i am looking for the code which than calculate the date for 10th, 11th ...
Score calculate previous 10th and 20th working days from given day
ritu - 8 Sep 2006 3:42 PM - 3 messages
Hi I am stuggling a little bit as i am a bigginer in prog. i am creating an application where i enter current date: sept 8 2006 (for eg) i am looking for the code which than calculate the date for :- 20 th ...
Score calculate previous 10th and 20th working days from given day
ritu - 8 Sep 2006 3:41 PM - 3 messages
Hi I am stuggling a little bit as i am a bigginer in prog. i am creating an application where i enter current date: sept 8 2006 (for eg) i am looking for the code which than calculate the date for :- 20 th ...
Score On Screen Keyboard
Tordev - 8 Sep 2006 3:39 PM - 8 messages
Does any one know how to create an on screen keyboard such as the osk.exe. The on screen keyboard would be written in VB6 as an exe. I have searched the web to find how to handle keyboard entry without any luck. Please help and ...
Score VB6 or vb.net 2003 & Windows 2003 Fax server
Peter Newman - 8 Sep 2006 2:50 PM - 4 messages
i am looking for code that will allow me to send a fax direct from vb - 6 or ..net 2003 to windows 2003 faxserver and maintain its status does this exist ...   or are there any other solutions.  the faxes will be ...
Score Calling C#.NET 2.0 Library from VB 6
Kbalz - 8 Sep 2006 1:49 PM - 11 messages
I'm not exactly a VB 6 Programmer, but I need to create a C#.NET 2.0 dll that is callable from VB 6.. The C# dll calls a web service.. here is the source for the DLL using System; ...
Score Trying to find how to use the windows ZIP function
Chris B - 8 Sep 2006 10:24 AM - 10 messages
Hi Guys, I'm trying to compress either a folder or a file as like WinZip or the Windows 2003/XP compression (Zipped) format .ZIP. I've tried looking for some API calls but I'm a little stuck! Any ideas if this can be done? ...
Score Icons with Menubar
gourav.kc - 8 Sep 2006 10:09 AM - 7 messages
I want to insert icons within the Menubar with the text (VB 6.0) as we have in MS Word and other applications. But i am not getting how to do that. Can anyone suggest ...
Score Embarrassed to ask
Bob Leffew - 8 Sep 2006 9:36 AM - 3 messages
I know this has probably been asked a million times and is basic VB6 101. But for the life of me I am having a problem figuring this out. "Select * From AttendeeQ1 Where LastName Like '" & txtLastName.Text & "%'" I am populating a grid with attendees, pulling by last name. ...
Score Custom ActiceX control appearing behind browser window which invokes it.
Matt Barton - 8 Sep 2006 9:33 AM - 2 messages
Hi, I have a custom ActiveX control, written in VB6, which is being included in an intranet application by an <OBJECT ...> tag in HTML. I then use javascript to invoke one of the methods of the ActiveX control.  Depending on which method the user invokes, the control ...
Score "Object variable or With block variable not set"
bj - 8 Sep 2006 9:29 AM - 2 messages
Hi I have a problem with following code:         Set pProject = CreateObject ("SAAuto8SP1.ISWiProject")        ' Dim pProject as  SAAuto8SP1.ISWiProject        ' Set pProject = New SAAuto8SP1.ISWiProject ...
Score Slow CommonDialog Display
Brian - 8 Sep 2006 7:41 AM - 7 messages
I've got a simple Access database client written in VB6.  If the registry is not populated with the database path, the user is prompted to located the database via CommonDialog.ShowOpen. The issue is that it takes about 10 seconds for the Open dialog to appear ...
Score 'Create Shortcut(s) Here' per Drag'n'Drop
Donald Lessau - 8 Sep 2006 7:05 AM - 3 messages
Hello! If I drag a number of files from VB say into Explorer using the right mouse button, I should see a context menu pop up with the following items: Copy Here Move Here Create Shortcut(s) Here - Cancel My problem: 'Create Shortcut(s) Here' is missing, no matter what I try. ...
Score Is it possible to simulate the drag n drop action?
Atenza - 8 Sep 2006 4:01 AM - 8 messages
Hi all, I have a ABC.TXT file and notepad.exe, is it possible to write code to simulate the drag n drop action, drag the ABC.TXT and drop on the notepad.exe? Thanks! Martin ...
Score Browser Contents to Picture
Doug van Vianen - 8 Sep 2006 3:19 AM - 11 messages
Hi, In a VB6 program I have a browser form and within it a webbrowser object. By using the following code I can load a web page that is in a file into this webbrowser.     StartingAddress = "C:\testbrwwrp\xxx.htm" ...
Score ie7 problems
GregHat - 7 Sep 2006 11:36 PM - 3 messages
We use VB6 SP6 and the MSINET.OCX control to download files in our applications.  Users with IE7 installed now get an error saying it can't connect.  Anyone else getting this problem? ...
Score Delete Key in a Text Box
Ryan Smith - 7 Sep 2006 5:20 PM - 29 messages
I have a text box that when a user hits delete nothing happens.  How do I allow the user to hit delete and backspace to delete the contents of a text box? ...
Score Binary to ASCII
Jonathan - 7 Sep 2006 4:03 PM - 9 messages
Hello all Does anyone know of some code examples (or at least an algorithm) to convert a binary file to ASCII and back again? Thanks in advance, Jonathan ...
Score block all keyboard input
Ron Ehrlich - 7 Sep 2006 2:49 PM - 4 messages
Good morning: I coded a VB6 app where my desire was to disable the keyboard until a wav file finished playing, such that no keyboard input would be queued up until after the wav was complete.  So I tried the "blockinput" function and that ...
Score How do you get the cursor position in WebBrowser1.Document.body.innerhtml ?
Number 11950 - GPEMC! Replace number with 11950 - 7 Sep 2006 12:25 PM - 2 messages
How do you find the position of the cursor, or the position of the begin and end of the highlighted text in WebBrowser1.Document.body.innerhtml? Thanks in Advance... ...
Score Write to textbox after no ComEvReceive for a duration
albertleng - 7 Sep 2006 11:55 AM - 3 messages
Hi. How can i write a VB program which will write something to a textbox after there's no ComEvReceive event for 2 seconds? ALbert ...
Score How to create one exe with many dll's
Jacob - 7 Sep 2006 10:31 AM - 5 messages
Hi, I have a general question about an application I need to rebuild. The application must consist of a main menu, in which 4 choices can be made. Every choice will start a program or module. Every program/module is an application that can perform task like editing, ...
Score Help with datediff.
Damon - 7 Sep 2006 8:50 AM - 9 messages
Hi, Within my VB6 app, the user can select a cleaning rota for a team of workers i.e. Every fortnight, on a Wednesday, week 3.  When the user selects week 3, the system asks the user to type in a date for week 1, so that I have a date ...
Score Menu Type XP
Luis Tarzia - 7 Sep 2006 5:36 AM - 2 messages
Hello,know a dll or api for build menus of the style of office 2003 an sql2005 analyzer how see in the image ???   Thanks in advance. ...
Score Using Word in VB to Find & Replace in .html files
Barry Watson - 7 Sep 2006 4:25 AM - 4 messages
Ok, bear with me.  Here's what I want to do: I create a Word object in Visual Basic. I use it to open a Word document (*.doc). I save the file as an .htm file. (So far I can do all of this.) ...
Score Destroying a window before it appears on the screen
Sneha Menon - 7 Sep 2006 1:45 AM - 10 messages
Hi all, Only AFTER a window (not OUR application window, say OTHER window) is created we are able to read its hWnd, window caption or other properties. Reading these properties, we shall judge whether the window is a welcome one or just an intruder. If it is an intruder, with some ...
Score VB 2005 - the name & location of help file/MSDN Library
ybc - 7 Sep 2006 12:47 AM - 6 messages
Hi, I use VB 2005 Express Edition. I'd like to know the name and location of the help file (MSDN Libaray) so I can open and read it without run the VB program. Thanks. ybc ...
Score Need to highlight single item in dropdown list
BCS - 6 Sep 2006 9:00 PM - 5 messages
Writing an app with VB6 and I have a combo box with a Style property of "Dropdown List". When the form loads, the combo box is populated with employee names from a SQL database. My app also checks its INI file to see ...
Score VB.NET Progress Bar
Gabe Matteson - 6 Sep 2006 7:42 PM - 3 messages
I am trying to set the maximum value of the progress bar so that when a user searches through the specified directory they can see their status. the progress bar name is on form2 and is named progstatus. Does anyone know how ...
Score Putting Controls on a tabstrip
Anthony - 6 Sep 2006 7:16 PM - 8 messages
We were comfortable using the SSTab, but have move to the (XP-Theme Capable) v5 Tabstrip (for, well, the ability to be themed). Problem is, we wind up having to place all controls inside of a picturebox, which can't be transparent. ...
Score DLL API Calling Issue
Wyne - 6 Sep 2006 7:13 PM - 20 messages
Hello, My company just bought an equipment and I'm trying to interface it with our existing VB application. The equipemnt manufacturer provides 3 files for interfacing: (1) xxxxx.dll, (2) xxxxx.h, and (3) xxxxx.lib. From the head file xxxxx.h, I clearly know that a function  ...
Score Error 2004 - Out of Memory - DAO.DbEngine
Dennis Rose - 6 Sep 2006 6:25 PM - 5 messages
When trying to compile my VB4 Application on a computer with more than 512 megs of Ram, I get the message "Out of Memory Number 2004". When I click the "Display the Data Access Errors Collection" it says: Error Number:   2004 ...
Score VB application crashes
Co - 6 Sep 2006 5:43 PM - 35 messages
Hi All, I have created an VB application with a MDI form and a lot of Childforms. When I run the application in VB environment there are no problems but when I compile it into an executable and start the program there is one sort of form that ...
Score Access of shared member, constant member, enum member or nested type through an instance problem
Jeffrey Grantz - 6 Sep 2006 5:20 PM - 3 messages
I took the code below from an example of FolderBrowserDialog but I keep getting the subject diagnostic on DialogResult.OK and I can't figure out what I am doing wrong. Any Help?  ADVthanksANCE Private Sub BTN_Browse_Click(ByVal sender As System.Object, ByVal e As ...
Score Good book on controls for Visual Studio
MPBrede - 6 Sep 2006 3:11 PM - 3 messages
I'm not even sure I'm asking this right. I am studying Visual Basic at University and I have two books on Visual Basic, but they don't at all mention the visual controls, visual inheritance and other things to do ...
Score The End of the World draws neigh
Kevin Provance - 6 Sep 2006 2:29 PM - 2 messages
Microsoft Releases 'WinFX' as .NET 3.0 [link] Blah ...
Score List Forms (Odd Request)
Bob Leffew - 6 Sep 2006 1:32 PM - 10 messages
Sort of an odd request. I have alot of VB6 projects which obviously consist of forms (abc.frm) and modules (abc.bas) etc. I would love to have a program that would print out a list or build a file ...
Score Save every 1000 counts
HotRod - 6 Sep 2006 12:23 PM - 11 messages
I'm running some VB code that is cycling through a ton of data 17 million + examples and returning a result. I'd like to save the data ever 10000 or so test, I know I could just setup another counter variable but I seem to ...
Score How make a vb activex which works with delphi ?
Loïc_Carrère - 6 Sep 2006 9:08 AM - 5 messages
Good morning, i've made an activex control but when i've imported it with Delphi (6 and 7)it's listed in an unit  but I don't see an icon on the ActiveX palette. How do I place this control on a form? ...
Score ADO Find Method
Rocky - 6 Sep 2006 8:37 AM - 2 messages
I have the following code        If Not ADODCProperties2.Recordset.EOF Then             If fnSearchSwitch2 Then                  ADODCProperties2.Recordset.Find "Address1 LIKE '" & ...
Score "New VB Project" in Explorer popup menu
Michael Cole - 6 Sep 2006 5:59 AM - 5 messages
Someone once had on their website a tip on how to get a "VB Project" entry on the Windows Explorer right-click popup > New menu.  It involved something along the lines of: - - Creating a new blank VB Project ...
Score Memory Leak in VB6 with strings and UDTs
goodhart - 6 Sep 2006 12:10 AM - 7 messages
I am using VB6 in Visual Studio. Our application seems to leak memory.  I created a simple example to illustrate the problem. It basically involves setting a string field of a UDT within a UDT to some number (a byte but the same has happened with ints).    When I do that I see ...
Score Splitting a 31GB text file into smaller files
web33 - 5 Sep 2006 10:17 PM - 3 messages
I have a 31gb file that was exported from a unix box.  I was trying to bulkinsert it into sql but there seems to be something wrong with the file.  In order to isolate the issue I have tried splitting it into smaller files.  ...
Score Microsoft Direct Speech Recognition
Habib - 5 Sep 2006 9:17 PM - 2 messages
How can I Work With "Microsoft Direct Speech Recognition" ...
Score help in 3D plotting vb 6
memet - 5 Sep 2006 9:04 PM - 6 messages
i have ten points each point have its coardinates in (x,y,z) i want to draw this point in visual basic drawing in 3D aftr this i want this to make this drawing to  able to rotate ...
Score Debug error in VB2005 Express Edition
Lee - 5 Sep 2006 8:39 PM - 2 messages
Get this error: --------------------------- Microsoft Visual Studio --------------------------- Error while trying to run project: Unable to start debugging. A debugger dll, msdbg2.dll, is not correctly installed. Please repair your Visual Studio installation via 'Add or Remove Programs' in control panel. If the problem persists, you can manually register msdbg2.dll from the ...
Score creating labels at runtime vs. design time
jcrouse1 - 5 Sep 2006 6:01 PM - 10 messages
Hello all,      I have an app which consists of two parts. A Layout Designer (LD) and a viewer. The LD allows to user to display a maximum of 64 labels, position them on the form and set attributes such as font, forecolor, ...
Score Date Functions
Mitch5713 - 5 Sep 2006 4:43 PM - 5 messages
I wish to be able to compare todays date using the "Date" function and compare it to a "hard coded" date lets say "06/01/2007". I need to know if todays date is before or after the hard coded date/?? ...
Score WideCharToMultiByte and utf-8
J1mlad - 5 Sep 2006 12:38 PM - 7 messages
Hi I'm trying to use WideCharToMultiByte to convert some wide char arrays to utf8. I have a C program that works fine and I'm trying to replicate this in VB as I need to do this in some VBA code on data in some access tables. ...
Score How To List Perticular String Count Between Two String By Using Text File
Ritesh - 5 Sep 2006 10:43 AM - 6 messages
i have one more problem that is i will be thankfulll if you give solution for this. can you tell me how to list string which comes just aftre help. Example a text file contains "help abc testing done, migration done, finish done, case count hello ...
Score Locking mouse clicks...
hurricane_number_one - 5 Sep 2006 6:01 AM - 6 messages
I have some processes which run in the background. When these processes run I have the hourglass come up. In certain circumstances I want the user not to be able to click on anything in the form.  Is there anyway ...
Score How to Make AcriveX Exe/Dll as Data Server??
Bal - 5 Sep 2006 3:28 AM - 6 messages
Hi All. I am Newbie for ActiveX.dll and Exe. I Try something and Get Result another Please help me. I want to create Active Dll Or Exe. Which we can call from multiple project. Suppose I have 1 Type Def,1 Array of same typedef,  2 public function, ...
Score Problem with UpDown control
Bill Hall - 4 Sep 2006 8:33 PM - 6 messages
I'm programming using the Learning Edition of VB6. I have compiled my app and everything seems to be ok running it on my machine. However, trying compiled app on friend's machine, the forms with UpDown control do not work - error msg "Ruun time error 339" MSCOMCT2.OCX not ...
Score String Manipulation: a silly query
Sneha Menon - 4 Sep 2006 7:59 PM - 7 messages
Hi all I am rather good at string manipulation. Yet somehow this silly problem stumped me In a string, (Not in any text box; just a variable holding the string), suppose the word King occur 4 times, I have to replace ONLY the third occurance of ...
Score Sudoku Challenge !
Brian P Fielding - 4 Sep 2006 6:28 PM - 11 messages
Imagine a window with 81 squares in a block of 9 by 9.  (a typical Sudoku square). Can some one tell me how to select a number  (up to 9) of squares say, with a mouse left click and then associate a value (range 1 to 45) with them say, ...
Score Code for Menu form to start Setup.exe files
Bill Hall - 4 Sep 2006 5:14 PM - 3 messages
I have copied my 17 “Inno” compiled setup.exe files to a CD. I am wanting my CD to autorun and then to show a menu (form) from which the user can easily run certain of these files, read HELP files etc. ...
Score What's wrong with this string(syntax wise)? VB gripes about the syntax
jen - 4 Sep 2006 4:38 PM - 6 messages
s = "update " & uTable & " set " & sPre & "modify_date=#" & Get_GMT_Time(Now) & "#, modified_by=" & Person.prsn_id & " where " & rsTarget!FEI_NUM & "=" & rsSource!FEI_NUM, cnTarget, adOpenStatic, adLockReadOnly , adCmdText two bits to whoever can help...  :-) thanks.... - jen ...
Score MidStmtStr
Karmalax - 4 Sep 2006 4:29 PM - 4 messages
I would like to know what this function is intended to do. Many thanks ...
Score memory deallocation
abcd61 - 4 Sep 2006 4:09 PM - 5 messages
IN vb6, Large objects containing large number of objects seems to take a long time. So when my codee hits set object = nothing, the process pauses for a long time while the deallocation completes. Is there any way to shorten the pause or stop the memory deallocation ...
Score MSMAPI component missing in my Visual Basic 2005
Sentiboy - 4 Sep 2006 3:12 PM - 4 messages
Hi All, I am using Visual Studio 2005 IDE, I could not find MSMAPI component in the Component list of "Add Reference Menu". When I browse to file "C:\WINDOWS\system32\mapi32.dll" then It gives error that "A reference ...
Score quick question
Dave - 4 Sep 2006 1:28 PM - 3 messages
Is this the correct forum for asking a question about vb script? Thanks Dave ...
Score Excel Automation using VB
Bart Steur - 4 Sep 2006 12:39 PM - 3 messages
How do I select a cell or range of cells using row and column values (R1C5) instead of E1. The Range function only allows the 'E1' type of selection. Is there a way? Thx Bart ...
Score Why doesnt this work
Bill - 4 Sep 2006 10:36 AM - 4 messages
formtext = "frmMan" load Forms(formtext ) But cmdtext = "command1" Controls(cmdtext).caption = "test" Does ...
Score delineate forms
jim - 4 Sep 2006 10:13 AM - 3 messages
Is there a way to delinate all the form in a program not just the ones that are loaded as the follwoing does Public Sub ShowForms()     Dim frm    As Form     For Each frm In Forms ...
Score Subclassing and Reserved Names
Peter Fay - 4 Sep 2006 7:35 AM - 8 messages
I would like to create an object that has (most of) the same properties, events and methods as the VB Printer Object, at least those common to Printer and Picturebox.. (Print, Line, CurrentX, CurrentY, Font, hDC ...). This is so that I can run the same functions with printer, picturebox and ...
Score Writing Values into Excel Apllication
RamaKrishnan - 4 Sep 2006 6:18 AM - 3 messages
Hi I am in need of help in writing values into a Xls(Excel Apllication) File in Visual Basic. Can any one give some Examples  how to do this. Thanks in Advance. ...
Score Control
Wagon - 3 Sep 2006 7:16 PM - 2 messages
Is there any way to get then name of the control that the mouse is over on a form even if it is not the activecontrol ...
Score Problem with nested join in Access, Ado
cowznofsky - 3 Sep 2006 7:08 PM - 6 messages
I have a sql statement that works fine when I execute it in Access, but when I call it from VB (to return a recordset) it doesn't work. As well as I can determine (from trial and error) the problem is with ...
Score Sending keys to an app from VB
bthouin - 3 Sep 2006 4:29 PM - 3 messages
Hi I am a newbie to VB.Net (just installed VisualStudio Express with VB as the language), but neither to VB (older versions) nor to development. What I want to achieve is to: 1) start a Windows app from VB ...
Next »