|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual Basic General Discussionmicrosoft.public.vb.general.discussion
Error when closing out of VB 6.0
rkckjk -
23 Sep 2006 11:31 PM - 6 messages
I have VB 6.0 and VB .Net installed on my PC. When I open VB 6.0 and close it without being in an application or in an application, I get the following error: Visual Basic has encountered a problem and needs to close. ...
VB6 source code quality analyzer
qualitychecker@free.fr -
23 Sep 2006 9:13 PM - 7 messages
Hello Have a look at my VB6 source code analyzer. The aim is to detect lacks of sens or mitakes like division by 0, overflow or underflow, unreachable if conditions and so on. A VB6 add-in lets you transmit source files, you'll get the answer back ...
Need to read a large CSV file (>256 columns)
Richard -
23 Sep 2006 7:15 PM - 3 messages
We did receive a large csv file. I need to convert the CSV file to a recordset in VB6 but the CSV file is big an has more than 256 columns. The file cannot be opend with OLEDB (which we normaly use). I can't ...
Image (hDC) to grayscale ?
DanS -
23 Sep 2006 5:17 PM - 11 messages
Hi, Searching hi and low for a _fast_ function to do this. I had found a quick and easy method to do this using the GetPixel function, but it is very slow doing it pixel by pixel. 1) Get Pixel ...
DISCUSSION: Security issues using Access database
Faraz Azhar -
23 Sep 2006 9:51 AM - 8 messages
Hello I wanted to discuss with you programmers the security issues of using MS Access Database. I am building an application which will use this database to store user data. The purpose of this app would be to allow users to store files ...
VFP to VB.Net
Dorian C. Chalom -
23 Sep 2006 2:28 AM - 2 messages
Is there a way to convert a VFP app to a VB.Net app? ...
Err.Raise across multiple class instances.
franzdawg3 -
22 Sep 2006 10:08 PM - 2 messages
I have a series of classes in VB6 across 3 dlls that are being used to communicate with a larger application and I'm trying to propogate unhandled errors in these dlls back to the application level so that they can be logged into an error log by the application error handler ...
vb ado performance problem accessing SQL Server over a WAN
jhall@datalyzer.com -
22 Sep 2006 9:13 PM - 2 messages
I have a customer that is operating over a WAN on a T1 line. They are experiencing unsatisfactory performance. (they have tried using ODBC and OLE-DB connection) They gave the application 30% of the bandwidth a put a monitor on it. It never used more than 10% of the available ...
SaveSetting & GetSetting Registry functions
Darhl Thomason -
22 Sep 2006 7:20 PM - 18 messages
Can I use the SaveSetting and GetSetting functions for custom information for my app? What I'm thinking of is when I install the app on a user's system, if they have the network drive mapped to a different drive letter than I do, it ...
vb6 Multicolumn combo box
Darhl Thomason -
22 Sep 2006 6:26 PM - 9 messages
In Access2003 VBA, I can assign multiple columns to a combo box, and hide the column I don't want. In VB6, it does not appear that I can do that. However, I do know there is an index value for the items in the cbobox list. I'd like to associate a ...
vb.net and Windows Media
Mitch5713 -
22 Sep 2006 5:38 PM - 2 messages
Could you tell me where I can get a sheet that shows whats is and what is not compatible with vb 2005(is that the same as vb.net?) Can programs developed through the above run on Win xp media center edition, ...
VB.NET/COM/DLL
Bodger -
22 Sep 2006 5:13 PM - 2 messages
I have created a VB.NET COM DLL (Class Library). It is called from a VC++ program exe that is in turned called from another application. The VB.NET DLL is a trivial project with one Windows Form that contains ...
Listview - insert rows into Sql Server table
Sandy -
22 Sep 2006 4:09 PM - 15 messages
Hello - I have rows in a listview control that I need to insert into a table. Is it possible to do this and if so, does anyone have an example? Any help will be greatly appreciated! Sandy ...
Simple events
Rick -
22 Sep 2006 3:55 PM - 3 messages
Hi: I'm using a graphical 3rd party ActiveX Control that doesn't recognize the shift nor the control key for the OnMouseMove event. The application needs to process data only at certain points when the mouse moves on the control. ...
How to Load 2 Help files same project??
Mitch5713 -
22 Sep 2006 1:56 PM - 5 messages
I'm just about ready for distribution of app. The app has 2 help files one help file is loaded via the "Project" properties menu the other is loaded when the user selects Help on the program via this call ...
Newbie on API functions.
John -
22 Sep 2006 1:54 PM - 3 messages
I'm using VB6LE and would like to know if, and where, there is a list of available Windows API functions, with information listed for the arguments they take. I understand that most/all are written in C and the ...
Sub-menus - What is standard practice?
wxforecaster -
22 Sep 2006 1:25 PM - 4 messages
I have a program which contains a standard top-level menu created with the IDE Menu Editor. Beneath my "View" menu is a pull-down submenu containing a list of items that can be displayed/not displayed in the software. I use the ...
VB6 exe providing a service to clients
Nais2mitiu -
22 Sep 2006 1:01 PM - 10 messages
good afternoon ng'er, I'm gonna develop (in the shorter time possible) a VB6 program running on a server which has to aswer clients asking for some info. I plan to write a vb6 service using an array of winsock (udp). ...
Index of string
Joachim -
22 Sep 2006 11:47 AM - 6 messages
How can I get a certain character in a string? ...
Need help write binary registry value
osprey23 -
22 Sep 2006 8:18 AM - 2 messages
I managed write to registry key with string value using RegSetValueExString API calls, but I have no idea how I can write to registry key with binary value. I have the write the following information to the registry (assuming the key already exists, but I would like to change the value). ...
can't install MDAC without errors
Mike Scirocco -
22 Sep 2006 6:43 AM - 3 messages
Windows 98 SE, VB6 I get an error trying to create an ADODB recordset in Access, so I ran my Component Checker and it couldn't find an installed version! Apparently my MDAC got corrupted somehow. So I tried to install version ...
How to get text under the mouse?
Frank Rizzo -
22 Sep 2006 5:55 AM - 7 messages
Hello, I've inherited a project that uses a super-old version of ActiveReports (and has about a million reports). The customer is asking whether there is a way, they can click on a piece of text in the report ...
Multiple Monitors
contour -
22 Sep 2006 1:18 AM - 4 messages
XP says it can support up to 10 monitors. I have three and can't find any way to hook them up at the same time. Is there any one that knows how? One of the monitors is DVI only. Is there a specific video card? Multiple video ...
Any tips for unloading large collection?
mike -
21 Sep 2006 10:16 PM - 5 messages
Hello: We have recently run into a scalability problem with our current ActiveX DLL built in VB6. This DLL consists of a three level collection hierarchy. We have calculated over 100,000 objects are being loaded in memory by our users. Initializing is OK, Terminating is horrible. ...
vbChecked, vbUnchecked, vbYesNo, vbCrLf, etc.
Darhl Thomason -
21 Sep 2006 10:04 PM - 4 messages
What are these "vb" properties called? I'm looking for something that lists what they all are and what their appropriate usage is. Thanks! Darhl ...
File Extension Filter
Kevin E. -
21 Sep 2006 8:17 PM - 9 messages
What is the code to filter File extensions when using the application.GetFileOpen synax. ...
package & deployment wizard
Denman -
21 Sep 2006 7:18 PM - 5 messages
Hi. I am building a install package for distro on NT and XP. Should any of these default files be removed because they are OS related? TIA. asycfilt.dll comcat.dll oleaut32.dll olepro32.dll comctl32.ocx stdole2.tlb ...
Unique Listbox Sort Order
Brian -
21 Sep 2006 7:00 PM - 6 messages
I would like to sort the contents of a listbox... The items in the listbox are alphanumeric strings, either all Upper Case or all Lower Case What is the easiest way to sort the listbox with all lower case items listed ...
Autoruning a cd
Reggie -
21 Sep 2006 6:26 PM - 13 messages
I'm having a problem with my autorun code can anyone help me out..heres my what I have for my script so far [autorun] shellexecute= Test Folder\Try\test1.htm The problem I'm having is whenever the cd begins to auto load it fails ...
To Vb or not to VB
Mitch5713 -
21 Sep 2006 4:04 PM - 26 messages
I am looking for a few recomendations on the future of VB. I am currently using VB5.0 and I understand both it an 6.0 are no longer going to be supported. With this in mind what would be the best platform to ...
VB runtime error
DL -
21 Sep 2006 3:51 PM - 5 messages
Win2k sp4 If this is the wrong group please advise of the appropriate one, thanks An application from a developer, is falling over at one point on my PC with the following error (From Dependency Walker) Second chance exception 0xC000005 (Access Violation) occurred in ...
Q: Extracting graphics from an ImageList control
Richard J -
21 Sep 2006 3:21 PM - 4 messages
Hello group, I have an imagelist with graphics already inserted. However, I do not have the physical graphic files so I cannot remove any of the images. Is there any method of extracting icons from an imagelist control and saving ...
Help on rename a file name in dos command in VB program
Sarah -
21 Sep 2006 3:07 PM - 7 messages
Hi, In my VB program, there one task is to rename the file name first with datetime stamp, then do the rest of functions. But since dos only take 8 characters filename and 3 characters in extension, is there any other way I ...
Microsoft Interop Forms Toolkit 1.0
Paul Clement -
21 Sep 2006 12:25 PM - 12 messages
Microsoft Interop Forms Toolkit is now available: This toolkit helps you bring the power of .NET to your existing VB6 applications, by allowing them to display .NET WinForms from within the same application. Instead of upgrading the entire code base, these applications can now be extended one form at a time. The goal is a phased upgrade, with ...
Can I add columns to an existing recordset?
cowznofsky -
21 Sep 2006 12:12 PM - 8 messages
The title explains it. I want to do a query and then add some columns to the resulting ado recordset, iterate through the recordset and put values in the columns. My working alternative is to create a second recordset with the columns ...
Does .maxlength work here?
Howk013 -
21 Sep 2006 10:06 AM - 4 messages
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer) If KeyAscii <> 8 Then If KeyAscii < 47 Or KeyAscii > 57 Then KeyAscii = 0 End If End Sub Will a text1.maxlength = 9 work here? Cos it doesnt seem to acknowledge ...
Running Isnumeric on Array Textbox
Howk013 -
21 Sep 2006 3:42 AM - 20 messages
hi, this is what i wrote : Private sub text1_change(index as integer) Dim A as boolean, b as boolean for index = 0 to 2 if a = true then msgbox "ok", vbok if b = true then a = true if isnumeric(text1(index).text) then ...
Visual basic 6 , Tab pages, Database
Shahin.H -
21 Sep 2006 1:23 AM - 3 messages
I have a problem with my program, if someone could help me, I would be really grateful of him. here is my story: I am writing a program with VB6 which is connected to a Database (Access 2003). I have 3 tables which are related to each other. I made ralationship ...
VB6 Newbie - Progress Bar
jdoggz -
20 Sep 2006 10:20 PM - 12 messages
Hi, I'm new to VB6, and I would like to add a progress bar for an entire procedure. The procedure has several database connections which serve sql queries. It also imports and exports text files. I would like a ...
Understanding the functionality of the CommonDialog control
Carl Imthurn -
20 Sep 2006 9:43 PM - 5 messages
This is my first shot at using the CommonDialog control... The following code is in an ActiveReports report event: If MsgBox("Do you wish to save this report as a PDF file?", vbYesNo, "Save as PDF") = vbYes Then ...
User Control Lose Focus
Brian -
20 Sep 2006 9:42 PM - 4 messages
I've got a form with several user controls loaded. My question... can a specific User Control lose focus... not the specific elements contained on the user control, but the entire control itself. Maybe more specifically, the user control form has the LostFocus event... ...
cant paste in C++
Seffys -
20 Sep 2006 9:21 PM - 5 messages
hello, i can copy text prom C++ but i cant paste it to C++ why?? if i copy from C++ i can paste to another app. thnks. ...
Windows Defender...
Dan Ritchie -
20 Sep 2006 9:00 PM - 2 messages
I would like to test my programs compatibility with the latest version of Windows Defender, however, I do not want to install if I won't be able to remove it. Does anyone know if you can remove the program completely? ...
Starting a program when Windows XP loads
Mikelos -
20 Sep 2006 6:31 PM - 2 messages
When installing on Windows OS's prior to XP, the following Start Menu tree in P&D Wizard places a shortcut to MGSoft Reminder in the Startup folder, and the application starts minimized in the task bar on windows loading. ...
Help in obtaining list of install software in VB6
Steven Poon -
20 Sep 2006 4:18 PM - 4 messages
Hi, I'm developing a client/server application to monitor installed applications over the network and to uninstall any unauthorized software, illegal copies by users or application no longer in use. The server program will be written in VB6 and use in WinXP SP2, while the viewer side will be install in both ...
VB6 Option Group
Darhl Thomason -
20 Sep 2006 3:25 PM - 25 messages
I have a group of option buttons. I'm trying to select which one is selected in my code. I have them assigned in an array with unique .index values. When I try to read "optSortOrder.Index" I get "Method or Data ...
emdedding an OCX file in VB
NAJH -
20 Sep 2006 3:02 PM - 3 messages
Hi, I've created a simple VB application which includes a SWF (shockwave flash file) on a form. I'd like to run the executable from a CD-ROM so I don't really want to have to install anything to each pc I use it ...
Sorting an array of string
Francois Houde -
20 Sep 2006 2:47 PM - 24 messages
Hi all ! I have the following situation and I have to find a fast way to sort my array of string. I can put the 3 millions string in an array but I don't have a clue on how to find a fast sorting algorithm. Quick sort will ...
Adding Code to a Command Button Added At Run Time
Kevin E. -
20 Sep 2006 1:15 PM - 12 messages
I have a poject with a form which has a Command Button, Text Box, and Label control added to it at run time. It has taken me at least three hours (I'm extremely new at programming) to figure out how to add the three controls to ...
How do I wait?
Bruce Bowler -
20 Sep 2006 1:01 PM - 39 messages
I'm jumping back into VB programming after a long (10+ year) absence. I think it was VB3 when I last programmed in VB. I've downloaded the VB Express from MS and most everything is coming back, but I'm reasonably certain that way back then there was a sleep (or pause ...
Seeing DLL code in different VB instance
hon123456 -
20 Sep 2006 9:04 AM - 8 messages
Dear all, I want to debug and trace a DLL project. I open two instance of VB. One is the DLL project. Another one the the standard EXE main project. I want to step into and trace the code of the DLL ...
MS: Vista Apps Must Be 'Cool'
Kevin Provance -
20 Sep 2006 2:34 AM - 31 messages
Guess my VB6 apps won't be making the cut. ===================================================== [link] By Nate Mook, BetaNews September 19, 2006, 5:10 PM In an open letter posted on MSDN, Microsoft's Windows chief Jim Allchin ...
Combo box values based on selection in another combo box
Darhl Thomason -
19 Sep 2006 10:49 PM - 6 messages
I have an Access app that I am attempting to port over to VB6 so I distribute it to people that don't have Access on their machine. This function works great in Access, but I can't get it to work in VB6. ...
help please! reading text re post
jonathandrott -
19 Sep 2006 9:30 PM - 3 messages
I'm trying to read specific information from a text file. I need to get stuff like invoice date, invoice number and account number (9/18/06, 586007, 1543 respectively) i was able to use a stream reader ...
ShellExecute can't open files that WinExplorer can
hsifelbmur -
19 Sep 2006 7:53 PM - 5 messages
Our VB6 application opens documents using shellexecute and the following code: lRet = ShellExecute(GetDesktopWindow(), sOperation, sFile, sArgs, sDirectory, sShowCMD) where... GetDesktopWindow = Windows API function that returns a handle to the desktop window sOperation = "open" sArgs = "" sDirectory = vbNullString sShowCMD = SW_SHOW = 5 ...
VB Query
Taylortot -
19 Sep 2006 7:47 PM - 6 messages
Hello, I'm new to VB and am trying to accomplish the following logic: When the end user enters an address and hits the filter button it does the following within the DAO library: Filter Button Functionality: Run ActiveAsset_SelQry If [Ruca_Subclass] = "A" or "B" ...
Anyone Using RegFree Com with VB6?
Anthony -
19 Sep 2006 7:42 PM - 9 messages
I am really excited about it (should I be?) since it (looks like it) enables VB6 application deployment without end-users needing admin rights (like Vista wll need) because there is no registering of com components with the registry. Does anyone have any example manifests, or some good links (not the msdn ...
RTF printing problem
Dale -
19 Sep 2006 7:14 PM - 11 messages
I'm printing a RichTextBox's formatted contents. It prints everything just fine, but only the top half of the last line on a page. I tried this: Printer.Orientation = vbPRORPortrait Printer.Print "" ...
To write to a file at a specific position
Madhur -
19 Sep 2006 6:01 PM - 7 messages
Hi I am making a tool in VB 6.0 to convert Server Side Java script to JSP. Hence there is a need where i need to write to a file at a specific position or line, after i have read the whole file once. I ...
VB6 to convert textfile data
Al -
19 Sep 2006 4:26 PM - 8 messages
I am having difficulty solving a textfile import issue. The portion of the textfile below needs to be imported by a propritary software's import feature. I have no control over the import requirements. What I need is to ...
File exists
Les -
19 Sep 2006 4:03 PM - 33 messages
I remember a while back someone had suggested a simple way of deciding whether a file existed or not. The problem I have had is by testing the file it gets created with 0 bytes present and then requires me to do a delete ...
simple textbox label question
dman -
19 Sep 2006 2:54 PM - 21 messages
Hi. Is there a way to give a textbox a label(caption) without using a label control? Thanks. ...
ActiveX exe and NTService gives problems
Tweety77 -
19 Sep 2006 1:21 PM - 2 messages
Current situation just after installing the components: A ntservice executable (which runs in current user running space) connects to an activeX exe (using set object = new componentobject) and this works fine. component runs and does what it must do. An other executable connects to the same activeX exe and also get the ...
multiboot ?
PC -
19 Sep 2006 11:07 AM - 4 messages
dont know if this is the right newsgroup,if not please advice me there is this computer that has windows xp installed by accident a new version of windows was (almost) installed but the accident was seen, and the install aborted (probably by just ...
populating form from database w/ code instead of data control
sjk153 -
19 Sep 2006 3:55 AM - 3 messages
Hello All: I am using an Access database and want to create code to mimic the actions of the data control. I created a form to link to 1 table using the data control and now would like to be able to do that through code. I confirmed ...
Read content of a foxPro 2.6 .mem file
Carlos Aguilar Sol -
19 Sep 2006 3:01 AM - 3 messages
Hi, Is there a way (or function) to read the content of a .MEM file created with FoxPro 2.6? Perhaps some vb6 code that emulates both of this foxpro functions to make the content of the .MEM file readable: ...
October 2001 MSDN Disk
mas5867 -
19 Sep 2006 2:30 AM - 3 messages
Was wondering if anyone has for sale or download the October 2001 MSDN Disk. Thank You. ...
Free VB5 Compiler?
Andrew Burton -
18 Sep 2006 11:47 PM - 13 messages
Perhaps this is a dumb question, but I was wondering if there's such a things as a free VB5 or VB6 compiler? I like using the VB5CCE as a way to prototype VBScript/ASP code, and over time some of those prototypes ...
Formula for DIB layout
mayayana -
18 Sep 2006 11:21 PM - 7 messages
Is there some kind of formula for mapping specific bitmap pixels to a DIB? This would be 24-bit. What I'm thinking of is to do something like put, say, a blue border on the outside 10 pixels, all ...
Confused about XML and XPath
YYZ -
18 Sep 2006 8:41 PM - 5 messages
Given this XML file: <LT> <Borrower> <FirstName>111Jean</FirstName> </Borrower> <Borrower> <FirstName>222Sean</FirstName> ...
Multiple Forms
KAB -
18 Sep 2006 7:02 PM - 18 messages
Hi All: Just a quick question..... When a program has multiple forms and associated code for each form, what determines which form and code is executed first? Thanks KAB ...
HELP - How in VB6 to parse XML data ???????/
Nick -
18 Sep 2006 3:59 PM - 5 messages
I posted this last week and I guess it must have been lost in the shuffle.... if anyone has advice it is greatly appreciated. ... I wrote a script in ASP to parse XML data retrieved from a remote website. Everything worked fine. Now I need to port it over to VB6 ...
VB6 And Wheel mouse
Lou -
18 Sep 2006 3:00 PM - 6 messages
I posted this several time with no success. My wheel mouse does not work in the VB6 IDE. It works everywhere else. I have been dealing with this for a long time now and have just excepted this but I hear it works for other people. ...
Newbie needs advice on email attachment.
John -
18 Sep 2006 2:45 PM - 13 messages
I am trying to find a way to open a default email browser then add an attachment from a VB6 program. I can get it to work with OE but cannot find a way to make Mozilla Thunderbird attach my file. As I have the VB6 ...
VB6 : Destroying tenths of thousands of objects
Olivier BESSON -
18 Sep 2006 2:32 PM - 112 messages
Hello, I've a problem with on of my VB6 program that is "full" object and use between 100 000 and 1 000 000 objects. It start correctly, do the job correctly but at the end when i set all my ...
Contolling printer settings from a VB module.
DocMac -
18 Sep 2006 12:52 PM - 3 messages
Dear All, I have a module that carries out various end of month procedures for me, part of this includes printing a number of reports. Because some of the reports are external I need to print them on headed paper in a ...
Installer advice
Tim B -
18 Sep 2006 9:44 AM - 2 messages
I have a VB application that uses either a SQL / MSDE database (MSDE for stand alone installations), what is the best installer product on the market I should consider when shipping my application? Any thoughts are greatfully received. Regards Tim ...
Question: Dispose with shared members
demon -
18 Sep 2006 9:10 AM - 3 messages
I'm having this class Public Class TestClass Implements IDisposable Dim Conn As SqlConnection Public Sub New(ByVal connectionString As String) Conn = New SqlConnection(connectionString) ...
disable restore contorl for mdi child forms
Muhammad Ahsin Saleem -
18 Sep 2006 6:17 AM - 13 messages
hi i have a problem that in my mdi form when i open a child form in maximized state it has restore control button and i want to disable that button whan the form has opened up so that client can not restore ...
MSDN that came with VB6
mas5867 -
18 Sep 2006 5:13 AM - 5 messages
I was wondering if anyone has the MSDN disks that came with Visual Studio 6. Mine have been damaged and teh MSDN 2005 doesn;t work the same as the one that comes with VS6 Thank You ...
IDE Project Menu -> References - missing...
Desi -
18 Sep 2006 2:03 AM - 3 messages
Pushing things a bit too hard I guess. The "Project" menu, "References" menu item is missing. Anyone seen this behavior before? Is there a keyboard combo to summon it? The "Components" menu item is still there. Also how does one ...
Using string variable as database connection
sjk153 -
17 Sep 2006 8:16 PM - 10 messages
I want to use a string variable when creating a connection to an Access Database in VB 6.0 so the user can select the file. I have created a form and the code to capture the file path and store it in a variable as follows. ...
Re: Re: Popup menus
mas5867 -
17 Sep 2006 6:51 PM - 3 messages
Yes thank you....it worked somewhat. I had the cmdbutton in a fra, so I had to add the left and top in addition. But do you know instaed of usng a form I could use like a context menu? ...
ENTER key
Bill Hall -
17 Sep 2006 2:50 PM - 2 messages
Could anyone please explain why, on some of my VB applications, the ENTER key is recognised, and sometimes it isn't? I'm writing school Maths apps; the students have to do a calculation, then enter the numerical answer. The student keys in a number (say, three digits) in a text box and then ...
Popup menus
mas5867 -
17 Sep 2006 6:10 AM - 6 messages
Okay I have a command button, when I click on that button I want a menu to display. Basically like when u right-click on a form a contect menu appears when you right-clicked. But I would like this to happen when a button is clicked and the menu to display right below the button. I have tried creating a form and displaying this form below it, but depending on the resolution it does not always put the form (or menu) where I want it. Please help. ...
|
|||||||||||||||||||||||