|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual Basic General Discussionmicrosoft.public.vb.general.discussion
Frank -
31 Dec 2005 6:05 PM - 8 messages
Hello, I have problem with passing parameter from one subroutine to the function in another sub. When I insert Chr(13) directly into WriteFile() function like that: rtn = WriteFile(ComHwnd, Chr(13), 1, BytesWrite, b) ...
Marvin van Dongen -
31 Dec 2005 4:12 PM - 8 messages
Hello, I have a VB App wich updates an Access DB by using ADO. The problem that I am faced with now, is the following: -I run 2 instances of my app. -I open the same record in both instances ...
Arpan -
31 Dec 2005 8:07 AM - 2 messages
To search for a string in a ComboBox, one can use the SendMessage API with the wMsg parameter set to CB_FINDSTRING along with the corresponding wParam & lParam parameters. I did like to have the equivalent wMsg, wParam & lParam parameters for a ImageCombo. Any ideas ...
inquirer -
31 Dec 2005 7:21 AM - 12 messages
I have a VB6 program which calls a useform in which the user enters a filename. I then call a subroutine which processes data in the file. In the subroutine I have a progress bar which shows progress of the file ...
VBADummy -
31 Dec 2005 12:28 AM - 4 messages
I have an add-in for Word2003 that I didn't write and it was working fine for several months. Day before yesterday, I clicked on the icon and it's not working properly. I get the error: Requested member of the collection ...
myob@beatles.com -
31 Dec 2005 12:23 AM - 7 messages
Need some help on how to get the hourglass to show when calling a stored procedure. code Screen.MousePointer = vbHourglass DoEvents Me.Refresh Call fn_900StoredProcedure("usp_GetMonthlyImports", mcnnSC) Screen.MousePointer = vbDefault MsgBox "Back" problem is that the mousepointer never changes to the hourglass while the stored ...
Frank -
30 Dec 2005 10:28 PM - 2 messages
Hello, I have found this on MSDN site: osWrite.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL); How to use it in vbasic? ...
UK GENT -
30 Dec 2005 7:17 PM - 6 messages
I bought a piece of software and on loading it a message appears saying Visual basic 6.0 tool kit has encountered an error and has to close. I am running Windows XP and have service pack 2. Does anyone know what is causing this please? Do I need to reinstall ...
Arpan -
30 Dec 2005 6:02 PM - 2 messages
I am importing all addresses existing in users' Outlook Express Address Book in a ListView (the Form which houses this ListView is a part of a web browser project). The ListView has 2 columns -the 1st one lists all the Contact names (along with an image; that's why I am using a ...
Tim Baur -
30 Dec 2005 5:49 PM - 22 messages
This is an odd piece of behavior. Can anyone explain it? I'm guessing it has something to do with a null pointer behind the scenes. * * * * * * * * Private Sub Test() Dim s1 As String * 5 MsgBox "START 1" & s1 & "END 1: " & Len(s1) ...
Larry -
30 Dec 2005 5:49 PM - 2 messages
Microsoft Visual Basic Studio 2005 Express Edition When I try to do a Search on "Customize the News Section", it generates an error message, “Search Failed this operation is only supported on Windows 2000 SP3 or later operating systems. Click help for more information.†...
wxforecaster -
30 Dec 2005 5:25 PM - 11 messages
I have an MDI form with a menu, and a bunch of MDI child forms. I would like to create a separate menu on the MDI child form itself, but this does not seem to be possible? When I create a second menu on the child with the menu ...
William E. Rubin -
30 Dec 2005 5:08 PM - 4 messages
In the various code that gets run at compilation time (such as UserControl_Initialize), is there a way to detect (during execution) whether it is compilation time or not? ...
David -
30 Dec 2005 3:27 PM - 8 messages
Is there any built-in function in VB6 that allows me to delete a folder on the network without using filesystemobject? I have a routine that moves files from one folder to another and I need to remove the "source" folder ...
zoneal -
30 Dec 2005 2:12 PM - 4 messages
i want to create a class that has properties that are classes, themselves, that also have properties (much like userform.controls.count). i've never had the need to do this, but now i want to know the best way ...
TeamEftia -
30 Dec 2005 7:09 AM - 4 messages
Hi, I have created a type like this.. Public Type Records ParName As String ParType As String ParLength As Integer ...
PC -
30 Dec 2005 2:24 AM - 3 messages
i would like to have a control that is transparent but that would have mousedown,mousemove,mouseup events and will show on top of any other control in essence a transparent label control,but that will be lower in the z-order ...
Bob O`Bob -
30 Dec 2005 12:13 AM - 45 messages
I need some code (hopefully very efficient code) to reverse the order of a specified number of bits from a Long or Integer. It will always be either the (low-order) 8 bits or 4 bits, though handling other sizes would be nice. ...
mscir -
30 Dec 2005 12:08 AM - 5 messages
I'm using an mschart control to display 1-3 columns of data using ..ChartType = VtChChartType2dLine, and I'd like to place a vertical line on the chart the full height of the charted data at a point between the ...
Frank -
29 Dec 2005 11:11 PM - 2 messages
Hello, I know that controls can be used with Form object only. Is it possible to have something similar to Timer with the module only? Frank ...
WB -
29 Dec 2005 10:15 PM - 2 messages
I implemented some of the features outlined in the book. Specifically, the TextList object. I use the object to populate a list of employees. The problem is surfacing when employees are terminated. There is no need for ...
williamerubin -
29 Dec 2005 8:54 PM - 9 messages
When I try to compile my app (in VB6), it compiles, then writes the EXE, and then the VB6 IDE itself crashes. The EXE that it wrote always seems to be perfectly fine. I have narrowed the problem down to subclassing - if I turn subclassing ...
Dan -
29 Dec 2005 5:39 PM - 6 messages
How can I find out keyboard navigation keys for controls such as a ListBox or MonthView? Specifically, how do I indicate that I want to select a specific entry or date? Dan ...
BCS -
29 Dec 2005 4:46 PM - 5 messages
I have an application that goes to a FTP site and retrieves a file. Everything is working fine, but I would like to give the user some status information based on the response from the FTP Server. For instance, if the site returns code 226 (Transfer Completed) then I want ...
Joe Plocki -
29 Dec 2005 4:26 PM - 20 messages
I've got a product in the field, and for one customer, on his workstations, I get a different result from a Format$() call than I do on all of my systems in-house, his server, and all of my other customers' servers and ...
Robertico -
29 Dec 2005 2:22 PM - 5 messages
I need some advice about the following. I have to read a file with names and add them to a ListView. A lot of names occur more than once, so i want to add them only once and add the occurrence before the name. (First column is occurrence and second name) ...
chuckd777 -
29 Dec 2005 2:19 PM - 7 messages
Is there a way to trim an integer? Say I have a number that is 45.5 I would like to trim it to just 45 Dont want to use round because 46 will not work Is there a way to do this besides converting the ...
Suhredayan -
29 Dec 2005 12:32 PM - 3 messages
I have Oracle DB Table with one of its column (VARCHAR). I read and write to this column in UTF8 format [non-english or English] using VC application then everything works fine. But if I use a VB application to read the data[non-english] and ...
Igor -
29 Dec 2005 9:56 AM - 3 messages
Hi everyone! I have a problem with calling .NET assembly dll function from VB6 program. I created an assembly in Visual studio .Net 2003 with framework v1.1.4322 installed, exported type library, processed registration for assembly and got reference to it from Visual Basic 6. The created VB6 program worked ...
Deon Thomas -
29 Dec 2005 9:21 AM - 4 messages
Hi, All Could anyone please help.I 'm accessing Mysql with C# using ODBC .I run run two aggreate queries on the server side.The applications is scheduled to run every second for realtime monitoring purposes.I use a thread to tigger the monitoring.However the application utilizes ...
Memore -
29 Dec 2005 8:19 AM - 6 messages
Hi, I see many examples to apply Microsoft Active Accessibility with C++, but I am not sure how to declare that with VB6? Thanks! mm ...
dnm77 -
29 Dec 2005 7:17 AM - 2 messages
Hi , I can't see Setup and Deployment Projects in the File > New Projects Menu in VB 2005 Express Edition Beta 2. Where can i found ? ...
Les -
29 Dec 2005 5:46 AM - 11 messages
Hopefully I can describe this properly. I have a text box with horizontal scroll bar on my form and when I place text in the Text1.text property the scroll bar adjusts as you would expect. However if the enduser edits the ...
Jack -
29 Dec 2005 5:44 AM - 6 messages
Hello, I need to find out programmatically whether one particular process is running. I can see it in Task Manager under Processes tab but it is not shown under Applications tab. How to enumerate those processes? Yor help appreciated, Jack ...
dey.indranil -
29 Dec 2005 5:06 AM - 3 messages
Hi, I have a problem.I performed a build on a vbp and got an exe out of it. When I edited the vbp I saw that the first two lines indicated the path of the olelib stdole2.tlb.(as the Reference tag) ...
sid -
29 Dec 2005 3:01 AM - 4 messages
I have a project that processes messages, each message has a unique identifier. The application makes use of a string variable to hold the identifier of the previous message and compare it to the identifier of the new message. (works most of the time) ...
SpokaneDude -
29 Dec 2005 1:17 AM - 7 messages
Has anyone else tried to convert a VB 6 program to VB Express using the
VB Express Upgrade tool? When I do it, not only do I get errors, but
all of the converted forms are blank! Any ideas?
--
SpokaneDude
------------------------------------------------------------------------
Posted via [link]
------------------------------------------------------------------------ ...
PC -
29 Dec 2005 12:57 AM - 6 messages
on a form i have a label control in the forms Resize event i have the following code: -------------------------------------------------- Label1.Height=Me.ScaleHeight * .5 -------------------------------------------------- i want it for the user to be impossible to make the form's height any smaller when the labels height is smaller then say 2000 twips ...
TxITGuy -
28 Dec 2005 10:27 PM - 3 messages
I am having a confusing issue with the behavior of Printer.ScaleLeft and Printer.ScaleTop as compared to PictureBox.ScaleLeft and PictureBox.ScaleTop. According to the documentation, the PictureBox control is useful to layout a print job without using paper (and to provide Print Preview functionality) ...
iankarlin -
28 Dec 2005 9:07 PM - 3 messages
Hi, I'm trying to disable interupts in an event handler I have in a vb6 program. I'm looking for either a dll to use that would disable them or a way to be able to use x86 assymbly commands to do this. ...
Dan -
28 Dec 2005 6:51 PM - 6 messages
I have a form for which KeyPreview is True. In its Form_KeyPress method I am successfully detecting the Enter key. However, it doesn't execute KeyPress for other keys such as PageUp, PageDown and F2. How do I detect those keys? ...
Bpk. Adi Wira Kusuma -
28 Dec 2005 6:10 PM - 3 messages
I wish to get the information number of received/sent data when I'm online/internet by a dial-up. How to get its information? Can u give its source code? and, Can I detect dial-up which I use to connect? ...
yan -
28 Dec 2005 6:04 PM - 3 messages
I was just assigned to a new project, which requires to fill in fields in a pre-defined PDF template from a VB application. The VB app will allow a user to enter data into database from the VB interfaces. When a button ...
raj arul -
28 Dec 2005 9:45 AM - 3 messages
name:raj arul, mail_id:wait4u_it***@yahoo.co.in i was created treeview,i added 1,0000 above treenodes. i am not able to find out number nodes.use the tree object find the number of nodes it is give negative number ,but i need fully postive ...
Robertico -
28 Dec 2005 9:45 AM - 4 messages
Why is vb converting Val(&HB000) to -20480 and not to 45056 ??? Whats going wrong ? Robertico ...
Boki -
28 Dec 2005 8:53 AM - 9 messages
Hi All, Sometimes, I have to process the ACK byte, it only 1 byte. If I try to receive data by: Buffer = mscomm1.input I will put ACK and DATA together. Q: Can I read only 1 byte to my buffer ( other data still keep in mscomm's buffer )? ...
AGP -
28 Dec 2005 8:20 AM - 17 messages
Ive read some articles on creating a manifest file so that on XP machines my controls display with the OS theme. This has worked great for the last couple years. Ive had a user recently report that the MSFlexgrid control ...
Lorin -
28 Dec 2005 6:30 AM - 2 messages
VB6 SP6 Need to get sector size of any hard disk. Running Win XP. GetDiskFreeSpace can do this for older OS, however reading the help description implies bad data returned for sector size on larger >2G drives. Also, where is Win32API.txt or .MDB or equivalent for things like ...
tom -
28 Dec 2005 6:18 AM - 2 messages
is there a vbs script that allow me to quickly enable and disable c:\windows\system32\drivers\etc\HOSTS if enable then disable if disable then enable ...
Frank -
28 Dec 2005 5:20 AM - 3 messages
Hello, I use CopyMemory() to convert 4 bytes into long like that: Dim lMediaID As Long CopyMemory lMediaID, b.bBytes(0), 4 lMediaID is a retrieved object handle used in another API. However that another API complains about invalid handle, which puts in doubt ...
DanS -
28 Dec 2005 4:34 AM - 5 messages
What I said buddy, was that 'This, I think, is as complete of a solution as you are going to find anywhere, and this reply is probably the only you are going to get with any useful info because of your attitude.' ...
Boki -
28 Dec 2005 4:02 AM - 5 messages
Hi All, Could you please advice how to clear/CLS debug window ? Best regards, Boki. ...
news.microsoft.com -
28 Dec 2005 2:53 AM - 3 messages
Dear All, When I set InputBufferSize = 10240 and InputLen = 0 but I can only get 320Byte a time..., but my device will send >4KB a time. P.S I am using a virtual serial port by Bluetooth. Best regards, ...
Frank -
28 Dec 2005 1:08 AM - 8 messages
Hello, I am not sure how to use WriteFile() API. Can I use string like below: Dim lpString As String Dim BytesWrite As Long Dim b As OVERLAPPED rtn = WriteFile(ComHwnd, lpString, Len(lpString), BytesWrite, b) ...
WB -
27 Dec 2005 9:08 PM - 4 messages
When a control is given a validate event, does the lost focus event still fire after validation? That is what is happening to me, and I thought if I set Cancel = true inside the validate sub that the lostFocus event wouldn't ...
A -
27 Dec 2005 8:42 PM - 3 messages
Hi all Before, I had a path, e.g. a\b\c\d, which I split on the '\' sign and created a tree. Now, I have the tree, I want to build the path? tia. ...
Frank -
27 Dec 2005 7:03 PM - 6 messages
Hello, Is there API allowing to delete the whole section [] in .ini file? For example: how to delete, or remove value after "=" for all keys listed in [PREFERENCES] field below: [PREFERENCES] ...
Matt -
27 Dec 2005 5:18 PM - 3 messages
I run VB6 on two different computers (both WIN XP). On one computer, when I run the debugger in break mode, the current values of any variables are displayed when I move the cursor over the variable name. At the other ...
Boki -
27 Dec 2005 12:42 PM - 5 messages
Hi All, Baisc question. I don't know the two parameter are what for ... I almost can't feel the difference when I adjust them: 1. inputbuffer 2. inputlen ...
EdmundHSmith -
27 Dec 2005 7:58 AM - 3 messages
I have a hit a snag, Currently I am using the WebBrowser control for my VB6 project. The problem is that when I Navigate to a website,it will popup a javascript error. Is there anyway to suppress this javascript error on the WebBrowser control? ...
Jonathan Wood -
27 Dec 2005 6:46 AM - 11 messages
Greetings! Some time ago, I created a setup program for a Visual Basic application (non ..NET). I used Visual Studio 2003 to build the setup program as one of the Setup and Deployment Projects. That setup program was in the form of an MSI file and ...
Mehdi Hasan -
27 Dec 2005 2:19 AM - 34 messages
Hi all, For my client I have to build a onscreen keyboard just like the onscreen keyboard of win2000/xp. For this, I need implement the following features in a form/window- *Form will not be activated by mouse click in the client area (Below the ...
Ian Davies -
27 Dec 2005 12:29 AM - 2 messages
I am using ShellExecute to open a website in browser window from my VB app. Is there a way of displaying the browser window not seperately but in a form in my app or even in some sort of control such as an image control so that ...
Dan -
26 Dec 2005 6:49 PM - 3 messages
I have a MonthView control where I am setting the initial date via the Value property. When the form is first displayed, it highlights and circles today's date, regardless of the initial date that I defined. I have a Label control ...
Rick -
26 Dec 2005 6:46 PM - 4 messages
Hi, all. In VB6, I have to make a program that upgrades certain files in a system where an initial SETUP.exe had been run. In certain situations, I have to install new, third party ocxs. How can I register the ocxs that have values, passwords, etc. using VB6. ...
Robertico -
26 Dec 2005 6:40 PM - 11 messages
I need to convert a time stamp represented as hexvalue e.g 0x01BB011B51BE6E80 to a date time. Never found an understandable explanation about filetimes. So how to do this ???? Robertico ...
john dekker -
26 Dec 2005 5:46 PM - 14 messages
what do i have to do to my vb6 app, to make it work on foreign versions of the OS? i have an .exe that works on 99.99% of the machines it is installed on. it installs (via inno setup) on a japanese windows machine. but when the ...
Rick -
26 Dec 2005 5:03 PM - 2 messages
In VB6 I can use: App.Major App.Minor App.Revision to get the Application's complete version number. However, this only applies to exe file that is being executed. ...
DanS -
26 Dec 2005 4:02 PM - 40 messages
Hi, Does anyine know of a way to count the number of files in any given path w/o recursively looping a Dir() through the path. I'd like to show a progress bar in a search utility I am coding. To do so ...
David De Bono -
26 Dec 2005 3:17 PM - 7 messages
Hi, I have one class, lets call it MyClass. In that class I have a reference to a class called Language. The app only load MyClass and need to address some properties in the Language subclass, for exmple: MyClass.Language=1 ...
JustLearning -
26 Dec 2005 2:34 PM - 2 messages
When i run my program on some machines I get a 713 error class not registered msstdfmt.dll despite the fact that the file in in the windows/system32 folder What is up? ...
Robertico -
26 Dec 2005 1:35 PM - 4 messages
How to find the parent folder (full path) from a file ? Robertico ...
Revolution -
26 Dec 2005 9:22 AM - 3 messages
Dear All, -> Here is my Requirement -> I Added the Microsoft Office Library in References -> I Added the Microsoft Excel Library in References -> I did the following Coding ------------------------------------ Private Sub Save_Button_Click() On Error GoTo ErrDesc ' The below commented code is also not working ...
Robertico -
26 Dec 2005 7:39 AM - 3 messages
I need to open a file for Binary Access and read some bytes. So i want to create a function to read these bytes from that file. Is it possible to use the filenumber from the Freefile function as argument ...
Luiz Horacio -
26 Dec 2005 1:55 AM - 3 messages
Hi, I make a query and it returns 1 or more rows that contains text in RTF format. These texts would be sent to a RichTextControl, and should be shown one after the other. My (stupid) problem is that I can't find a way of making this... The control ...
Frank -
26 Dec 2005 1:37 AM - 3 messages
Hello, I have 3 questions regarding HTML Help. 1. When distributing with my software is it enough just to include .chm file? Is .chm file viewer integral part of Windows? ...
Temp795 -
25 Dec 2005 10:53 PM - 7 messages
Hi, I have a problem and I just can’t get my brain wrapped around the solution and was wondering if anyone has any ideas on how to fix this. I query a d-base and it returns date and time stamp(s) back to me. Now the d-base can ...
Fern G -
25 Dec 2005 7:24 PM - 9 messages
I need to add to a tree view the components of a path. Here is my code Set mynod = TreeView1.Nodes.Add(mynod.Key, tvwChild, s1(i), s1(i)) This works when the key is unique, but throws an error when not unique. ...
Kc -
25 Dec 2005 4:11 PM - 2 messages
Ivar, many thanks for your help, it was a very helpfull site. Your best bet is to get the API guide and Viewer from [link] Look at the various graphical bits including FloodFill, FillRect and the ...
Jerry Chen -
25 Dec 2005 11:13 AM - 2 messages
why no form be shown in task bar? I want to show a form in taskbar by setting it's property ShowInTaskBar to true, but I dont see it occur in taskbar.I dont know what happened. ...
Doug van Vianen -
25 Dec 2005 6:01 AM - 3 messages
Hi, In a VB6 program I have a button which when pressed is supposed to cause the printer options box to show so that the user can change the printer settings such as Print Mode, Paper Size etc. When I first wrote the program my ...
|
|||||||||||||||||||||||