Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score is there an equivalent to typedef in VB?
everymn - 25 Nov 2006 10:01 PM - 4 messages
Just wondering if there is an equivalent way to alias data types in VB.  I have to convert a bunch of SQL C header files so I can use ODBC functions. Thank You ...
Score Does an email address exist?
SK - 25 Nov 2006 9:18 PM - 4 messages
I have a few hundred addresses in my database. This is not the database for spamming, but a database of client's clients. Because mails aren't valid, I would like to ping mail server if mail exists. Is this possible through vb? ...
Score argument passing question
everymn - 25 Nov 2006 8:31 PM - 4 messages
I'm having some difficulty with argument passing.  I'm trying to utilize the low level ODBC API (need to use it for test purposes) I've declared this function just as it's writting in the MS ODBC API ...
Score can't access an access db...
everymn - 25 Nov 2006 8:04 PM - 5 messages
I'm having trouble connecting to an access db using a database control using Jet.  After providing the database file name when I try to activate the recordset dropdown in properties it gives me an error and says, "unrecognized database format". ...
Score Re: Google VB Code Group
mayayana - 25 Nov 2006 3:07 PM - 3 messages
Google (and other web-based newsgroups) are such a slow, awkward way to carry out a forum discussion. Why would you want to bother setting up a group there when there are several in Usenet? ...
Score Help deleting button???
Marc - 25 Nov 2006 11:47 AM - 5 messages
I have a context menu on a button. I just need some code that will delete the button when the context menu is clicked. One problem is that I do not know the button name as it is created dynamically ...
Score Strange Enum?
Lorin - 25 Nov 2006 4:11 AM - 4 messages
VB6 SP6 My program has been compiled a hundred times over a year without this error.   Constant Required. All of a sudden! I get this error. In a .bas Public Enum BeepStyles     Beep1     Beep2 ...
Score Code
FarmsN17 - 25 Nov 2006 1:25 AM - 4 messages
Is there a code to shut down your whole pc? ...
Score Printing based on file extension
MAB - 24 Nov 2006 11:28 PM - 7 messages
I'M making a batch printing application.  I would my application to utilize Windows printing, meaning Windows opens the application associated to the file extension and print the file.  If possible I would like to tell it what ...
Score Probleme with Zorder
Daniel - 24 Nov 2006 8:52 PM - 3 messages
Hi I would like to know(in my code) if a control is of the background or foreground(Zorder) I need to print background controls before foreground controls  on the printer(with printer.print). I can't access to Zorder property. ...
Score Maximum size of a sequential file
John S - 24 Nov 2006 8:14 PM - 4 messages
Hi All I want to ask you how much is the maximum size of a file that is accessed sequentially by command like : Open "TESTFILE" For Output As #1   Write #1, "Hello", 1234  Close #1   ...
Score basic text file reading question?
Marc - 24 Nov 2006 5:28 PM - 6 messages
So i have a text file where each line represents a button name. What the code I need to read this file  and creatre a new button from each line.. so far I just have code to read the whole file ...
Score Form Effect
Alastair MacFarlane - 24 Nov 2006 4:28 PM - 7 messages
Dear All, I am sure I have seen on my travels round the internet a vb example file that reproduces the effect present in Outlook 2003 whereby a form displays itself starting from the bottom right hand of the pc, expands for 3 seconds, ...
Score Need to grab the name and position of all buttons on a form -is this possible?
Marc - 24 Nov 2006 3:58 PM - 3 messages
Hi, In order to save user preferences I need to grab the name and position of all buttons on a form, which i will then save to a text file. Anyone know how I can easily get this information? Thanks ...
Score AddFontMemResourceEx fails under vista
kostas - 24 Nov 2006 2:04 PM - 2 messages
using the following function to load a number of embedded fonts the AddFontMemResourceEx function returns 0 when run on vista (final version) but works ok on XP Any ideas ? Public Function GetFont(ByVal FontResource() As String) As Drawing.Text.PrivateFontCollection ...
Score COM Communication with FoxPro
Matthew Connor - 24 Nov 2006 1:33 PM - 3 messages
Hi all. I am developing a Visual Basic 6 application and my programming partner is developing "plugins" (so to say) for it in FoxPro. He can create and register COM objects such that I can instantiate them in VB6, that's no ...
Score Need help Saving User changes to a form please
Marc - 24 Nov 2006 12:32 PM - 9 messages
Hi, I have a form that allows the user to add extra buttons if required..How can i save these extra buttons to the application after the program is closed? Thanks Marc ...
Score Excel 2000 to 2003 (VB 6.0 to 6.3) Incompatable?
JohnJack - 23 Nov 2006 10:18 PM - 4 messages
Hello All, I do some coding in visual basic attached to Excel for my small group in the company.  I'm not that experienced and so this might be an easy question to answer for one of you. Today I had a person come to me and ask why a particular spreadsheet ...
Score repositioning other app window
Jack - 23 Nov 2006 9:42 PM - 2 messages
Hello,           Knowing the title of the window belonging to another application I would like programmatically reposition it on screen. How that can be done? Your thoughts appreciated, Jack ...
Score Bitwise AND causes overflow
CyberDogg - 23 Nov 2006 7:28 PM - 19 messages
Dont know if this is even possible to fix. The  below code causes an overflow error: Dim dblValue As Double dblValue = 32451775649316# And 4294967295# is there anyway to store a number of this size?  or an I stuck? ...
Score Printing reports with ext .pdf in vb.net
Don - 23 Nov 2006 6:21 PM - 3 messages
I would like to print a report which was created in Adobe Acrobat with the extention pdf. Is there an easy way to do this. I am new at this and would appreciate any help. Don ...
Score How to read from USB port?
Jack - 23 Nov 2006 5:46 PM - 8 messages
MsComm can access comport. What can I use to read from USB port? Jack ...
Score How to count/sum only the last 10 records?
Steven - 23 Nov 2006 5:45 PM - 5 messages
Hi All, Probably an easy question for most of you here. I am trying to return what the last 10 records of the database added up to. The code i use counts all the data in the column, but we want it to be on ...
Score Open file dialog
Elmo Watson - 23 Nov 2006 4:56 PM - 5 messages
I've got my open file dialog set so that multiple files can be opened at one time.... sometimes, (and I don't know how many) when quite a few are selected, nothing happens, or not all are actually opened. ...
Score Trigonometry problem
Larry Serflaten - 23 Nov 2006 4:50 PM - 9 messages
I am looking for a 'simple' method to derive a trianglular wave given a progression of angular values.  In the example below the peaks and 0 crossing points should match that of the sine wave. I've not yet found a 'simple; method... ...
Score I found these text strings printed out. What would they do if used in VBA?
Enda - 23 Nov 2006 3:04 PM - 2 messages
I found these text strings printed out. What would they do if used in VBA? What would these do? I found these printed out somewhere. ActiveWindow.LargeScroll Down:=1 ActiveCell.Offset(13,0).Range("A1").Select ActiveWindow.LargeScroll Down:=1 ...
Score Can't display images into treeview????
SBelzile - 23 Nov 2006 5:38 AM - 2 messages
Hi, We are working on a vb.net WinForms project based on the Composite UI Application Block (VS2005). I have a strange problem. At first, I thought 10 minutes would be fairly enough for me to solve it but I've ...
Score Very Interesting File Problem
Mike Williams - 22 Nov 2006 11:11 PM - 40 messages
I've been using VB for many years now, writing all sorts of files to disk, and this is the first time I have ever encountered the problem that I currently have. I'll get around it of course, but in the meantime it is ...
Score Double-sided printing?
Vincent Delporte - 22 Nov 2006 7:06 PM - 11 messages
Hello I need to print two pages, but they must be double-sided. Does someone know... - how to check if the printer supports double-printing? - how to print two pages as a single, double-side document, ideally using the Printer object (eg. Printer.Print)? ...
Score How do you detect a mouse click in the text portion of a vb6 combo
Dan - 22 Nov 2006 6:41 PM - 3 messages
There is no "MouseDown" or "MouseUp" event for a vb6 Combobox, and the click event only fires if you click on an item in the combobox list.  How can you detect when somebody has just clicked into the textbox portion of a combobox? ...
Score Changing Screen Resolution from within VB
Emma - 22 Nov 2006 4:59 PM - 3 messages
How do I chack and change my screen resolution from within VB6 if it is possible? I Thanks Emma ...
Score IE7 WebBrowser Control Crashing VB ActiveX - Fix
mills.s@gmail.com - 22 Nov 2006 3:36 PM - 2 messages
After many painful hours I finally worked out what was causing the webbrowser control to crash my apps. I was using the webbrowser control in my ActiveX control which I opened in IE. But when I called the Navigate function for the second time my ...
Score VB6 App.EXEName question
WizmanG - 22 Nov 2006 3:28 PM - 13 messages
I am having a strange problem with an inherited VB6 app. when trying to return the App.EXEName. On some PCs it returns the name in proper case but I have found that on some installs of Win98 it returns the name in all uppercase. ...
Score Clipboard error
jason - 22 Nov 2006 2:08 PM - 14 messages
I have a VB program that has been running well.  All of a sudden I am getting error when something is copied to the clipbaord from with the program  It appears that soemthing is locking the clipboard.  has ...
Score How can I search for numbers in a string?
pradev - 22 Nov 2006 12:56 PM - 6 messages
Hello,    I have a situation that I need to be able to identify if there are any numerical values in a string variable that might have numerics including charecters. For instanse Dim strValue as stirng strValue  = "Inside Diameter=9" ...
Score Using datagrid values as query parameters
andy78 - 22 Nov 2006 12:07 PM - 2 messages
I am currently developing an application in VB6. The application is to be used by users to clear their logins from databases on our payroll system. They select one or more records from the datagrid and then click a button to ...
Score How to center a Grid vb6
:algour - 22 Nov 2006 8:42 AM - 2 messages
I have the hole FlexGrid component and I want that the grid centers to the lenght of the component. Do you guys have any idea of how to do this? Thanx atte algour ...
Score Stream stats
Michael C - 22 Nov 2006 5:39 AM - 12 messages
I've heard it's possible to extract information from a game as it's running. For example some people extract the RPM of a car and have a real tacho connected to their PC, or just log certain information to a file. How is ...
Score Constants, Variables, data types, and intrinsic functions??
Kelly - 22 Nov 2006 2:25 AM - 15 messages
Could somebody please explain these to me in a simple way? I'm very confused and I really need help. (It's for school) ...
Score noob class question
everymn - 22 Nov 2006 1:19 AM - 8 messages
Hi, I have a project group that has a project containing a class module (foo) saved to foo.cls and also has another second project which is set to be the startup containing a from.  In the form code I : ...
Score Combined Option Button and Checkbox functionality
Brian - 21 Nov 2006 9:52 PM - 20 messages
This has probably been asked before.... But... I have a project with a user control that contains an option button.  When I load several of these controls onto a form...  I would like the option button(s) in all of the usercontrols to act like an option button group... ...
Score Method '~' of object '~' failed, Error Code: -2147417848
Saga - 21 Nov 2006 9:40 PM - 5 messages
I have two aplpications, one is a Standard EXE, the other an ActiveX EXE. These have been running for over a year, each with succesive modifications. Today I modified the ActiveX EXE component. Specifically, I tweaked an error handler and increased the SQL Server timeout ...
Score HOWTo: Consuming a .NET Webservice in VB6, and Creating a ADO RecordSet
daffodilreaper - 21 Nov 2006 8:03 PM - 2 messages
Hi All, I have a simple question. Howto consume a .NET webservice form VB6. I have tried very many methods. I currently use MSXML. Here is the piece of code that I use. This works flawlessly. It gets a XML String ...
Score Sub Main or Form1 as startup?
MP - 21 Nov 2006 7:31 PM - 19 messages
Hi all, Do any generalized guidelines exist in deciding whether to start a project (if it contains a form) via Sub Main or just use the form? I've read about some problems initializing some things in Form_Initialize event... in a current project I have two test forms I'm working with so I can change ...
Score Class module in Access VBA
Leon - 21 Nov 2006 6:34 PM - 2 messages
We are working on a workflow tool based on Access 2003. How can I trap teh closing of the application when a user clicks the red close button on the application toolbar. i want users to close the app only from the main menu. ...
Score Visual Basic (2005) and Blowfish
whoopes - 21 Nov 2006 4:38 PM - 2 messages
I have an old program that was written and compiled using ActiveState PERL. I'm attempting to convert the code from PERL to VB.  **I'm new to VB ** The PERL program stores sensitive information using Blowfish and I ...
Score How to using a system DLL in user DLL
jry_yeh - 21 Nov 2006 2:49 PM - 7 messages
I write a dll and create to stander DLL (not Activex DLL, ref by the article "Creating a Windows DLL with Visual Basic" [url][link]]'), in the DLL also using a system DLL. When I call my user DLL function, I ...
Score picture control pset performance?
Bruce Bowler - 21 Nov 2006 2:24 PM - 19 messages
This code seems to take an inordinately long time.  Any suggestions on how to make it faster? buffer is a global byte array (1392,1040) scalefactor = 2 for row = 0 to width-1 step scalefactor   for col = 0 to height-1 step scalefactor ...
Score Grid Control
Badis - 21 Nov 2006 1:21 PM - 4 messages
Hi, I have defined in a FlexGrid control the column headings and I'm using an sql query to populate the data in my grid, but once populated the column headers that I defined has changes to the name of the fields defined in my ...
Score college assignment
skarecrowster - 21 Nov 2006 11:47 AM - 2 messages
Hey guys, i am pretty new to VB, and am in my access year to HND, i have been given an assigment but i dont really understand how  to do it. so i'll just write it as its written and hope you can give me some ...
Score CreateObject question, help needed
Jacob - 21 Nov 2006 11:36 AM - 7 messages
Hi, I'm creating an app that uses a ordinary executable in VB6. I can't find out how to put that in a CreateObject statement. When using Word or Excel it's ease like 'myObj = CreateObject("Excel.Application")' but how can that be done with something ...
Score Need Help with textbox scrollbar in a form
sailingstu05 - 21 Nov 2006 3:51 AM - 9 messages
I created a form with a textbox with instructions that will act as a user manual for an excel worksheet I'm working on. The idea is when you click a "help" button, the form appears, and you can read the text. I have a ...
Score "not responding" and refresh label question
roiegat - 20 Nov 2006 8:15 PM - 8 messages
I've been looking at all the different solutions on this group for an application showing "not responding" when it is actually working.  But I have a further problem. First a little background.  My app is accessing an access database that ...
Score del not working in .bat file
RB Smissaert - 20 Nov 2006 7:36 PM - 10 messages
Have the following .bat file: cd  C:\RBSSynergyReporting\ReadCodes del ReadCode.db C:\RBSSynergyReporting\Program\SQLite3 ReadCode.db <ReadCodeForSQLite.sql del ReadCodeForSQLite.sql and this is called like this:    Dim oShell    Set oShell = CreateObject("WSCript.shell") ...
Score Arrays question
Goerge Tikakis - 20 Nov 2006 5:28 PM - 10 messages
Which is the limit for a two dimension array? array(x,y) *** Sent via Developersdex [link] *** ...
Score WritePrinter doesn't write anything to the printer.
chieko - 20 Nov 2006 4:49 PM - 6 messages
Hello, I seem to be having a problem with printing code example found on the microsoft kb article 154078. It is spooling but never prints and the number bytes written are 0 (lpcwritten). I added some debugging but I don't know what error code 6 means or how to ...
Score Architecture Question
AK - 20 Nov 2006 4:18 PM - 4 messages
What is the proper architecture to set the positions of buttons so they are the same across all forms. For example, set a cmdExit button at the same place on all forms I figure I can: a) set each object directly on the appropriate form by dragging it to the ...
Score Implements ADODB.Connecction
Peter Plumber - 20 Nov 2006 2:45 PM - 4 messages
Hi, when I try Implements ADODB.Connection I get Bad Interface for Implements. ... Is this a God-given restriction of VB6 or does someone know a way to avoid this problem. thx Peter ...
Score Excel file in use
Todd Virlee - 20 Nov 2006 1:23 PM - 4 messages
When opening our application, one of our clients gets an error message that an Excel file that our VB 6 application uses, is in use.  The file is not in use, is not listed in the open files list on the server, and no Excel.exe ...
Score problem with VB6 webbrowser control after installing IE7
Richard Eagle - 20 Nov 2006 1:10 PM - 13 messages
After I installed IE7 almost 4 weeks ago, one of the first things I checked was some programs that I had written in VB6 and running the exe's worked fine. I didn't try VB6 itself until just the other day ...
Score Problem closing app with big UDT
David Kerber - 20 Nov 2006 1:02 PM - 32 messages
I have an app which uses a big (44708 bytes) UDT, which is made up of Longs, Doubles and byte arrays.  Since that is bigger than 32k, the compiler chokes on it when I try to define it as a local, and demands ...
Score Problem trying to embed a Vista manifest in a VB6 .exe?
Bob Freeth - 20 Nov 2006 12:48 PM - 3 messages
I am trying to embed a Vista manifest in a VB6 .exe and getting an error message from mt.exe: "temp.manifest:general error c1010070:Failed to load and parse the manifest" The version of mt.exe is 6.0.4071.0 ...
Score porblem about vb.net and mysql connection
hiren - 20 Nov 2006 12:43 PM - 2 messages
hello, i have problem to connection with mysql and vb.net --> i have installed mysql server 5.0 --> i have install the mysql driver --> i go to the adminstrator tools and data source(odbc) and add the ...
Score VB 6.0 I/O
Sabya - 20 Nov 2006 9:51 AM - 8 messages
Hi, I want to open a MS Word file and want to read the file and display the file contain through VB 6.0 I want to know how it is possible. Thanks & Regards, Sabyasachi Banerjee ...
Score Calling .NET assembly from VB6 program
Igor - 20 Nov 2006 7:15 AM - 2 messages
Hi ! We created a VB6 application, working with Reporting Services server. To communicate with Reporting Services server we built a small .NET Dll assembly and registered it as COM object. Everything works fine on the local machine, but when we put whole ...
Score Format inconsistency
eric.goforth - 20 Nov 2006 5:03 AM - 3 messages
Hello, In Win XP SP2, running VB6 SP6.  I changed my system localization settings to UK, so I have a 24 hour clock and my dates are by default in dd/mm/yyyy. In the immediate pane in VB6, I see: ...
Score Passing XArrayDB as COM+ Parameters
Gunawan - 20 Nov 2006 2:41 AM - 2 messages
Hi All, I'm back again. I still can't figure out how to distribute xadb8.ocx or maybe I miss something. I use XArrayDB as byRef parameter to COM Object. I already include xadb8.ocx on package development and wizard but when I run it in the client (Running ...
Score Cannot access class module
Syed Zeeshan Haider - 20 Nov 2006 2:31 AM - 4 messages
Hello Everybody, I am using good ol' VB6 EE on WinXP SP2. I have created two classes (say myFirstClass and mySecondClass) in a standard exe project. I haven't changed any of their default properties. After adding some code to both of them, I tried to create an instance of one ...
Score VB 6 and common dialog
Eric - 20 Nov 2006 12:15 AM - 5 messages
Hi I am having a problem with adding the common dialog ocx to this enviroment. When I do the application automatically closes. If I launch a project with the common dialog referenced it also closes any ideas Regards Eric ...
Score VB6 Apps on Vista - Released Nov 16, 2006.
LaszloH - 19 Nov 2006 10:33 PM - 6 messages
Some of my apps run and some don't. The ones that use Mscomctl.ocx , report the error that this file is not registered. If  I try to run regsvr32.exe  on this file is cannot, and reports as error. ...
Score GetPrivateProfileString question
Martin - 19 Nov 2006 9:31 PM - 6 messages
I have several programs in which I use GetPrivateProfileString to read an INI file which is physically located on another computer (on a LAN). I've been doing this for years and have never had problems with it. Today I set up a new computer and the first time I tried to do this, ...
Score Tray icon menu does not disapear - vbPopupMenuRightButton usage
gsagie - 19 Nov 2006 7:41 PM - 4 messages
Hi, I want the tray icon popup menu to disappears when ever the user press left or right key off the menu. Although I'm using the following code:   Me.PopupMenu mnuPopup1, vbPopupMenuLeftButton Or vbPopupMenuRightButton The menu did not disappears, ...
Score SHBrowseForFolder has blank treeview
David G. McDivitt - 19 Nov 2006 3:34 PM - 12 messages
I have several VB programs that use SHBrowseForFolder with BIF_NONEWFOLDERBUTTON. They all quit working. The browse folder dialog comes up, but the treeview inside the dialog is blank. If I remove the BIF_NONEWFOLDERBUTTON flag and recompile, the programs work OK. The programs ...
Score Unnecessary newline char in saving text in file (Visual Basic)
debkumar.patra - 19 Nov 2006 3:07 PM - 2 messages
Dear friends, I facing a problem to write a text file from rich text box. My code snippet is as follows-     On Error Resume Next     Dim iFile As Integer     Dim filename As String ...
Score Howto Write a VB6 Compatible DLL?
coderpunk - 19 Nov 2006 4:12 AM - 6 messages
Flame away. I know its been asked before. I've even found some of the answers. But they don't work, are a mixture of old and new (and not being a VB programmer I don't know what's what) or are just plain ...
Next »