|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual Basic General Discussionmicrosoft.public.vb.general.discussion
Database connection problem on VB6.0
Engada -
24 Feb 2007 11:20 PM - 15 messages
I have an application written in VB6.0 which has previously been interfacing with MS SQL server 2000, which I have moved to Postgres 8.2.3. When attempting to create an ODBC workspace, the application now errors on the following line of code: ...
MS Word Text Box Find and Replace
call_me_sol -
24 Feb 2007 3:50 PM - 3 messages
Hi - First, let me say that I have absolutely no VB experience. Here's what I'm trying to accomplish (and it doesn't really sound too difficult for you VB experts out there :)) Using MS Word, I have created a text box (created with the Control ...
Help in translating C to VB
Joris van Lier -
24 Feb 2007 1:43 PM - 2 messages
Hi all, i found some C code that exactly does what i need to: turn on or off the email led on my acer laptop, actually it allmost does what i need to, because i need to do that in VB6, ...
Find Coords within X Radius
Zairay -
24 Feb 2007 10:00 AM - 5 messages
Hi All, I need to run through a recordset with Lat Lon coordinates and find out if they are within X radius from a certain coord. The coords are build up like this: 321600 (degrees, minutes and seconds). The centergrid could be for example: 321600, 063312 and the radius 15 ...
Broadcast message on lan
PC -
24 Feb 2007 9:34 AM - 4 messages
i have a 3 computer lan, is it possible using vb, for any computer on the lan to send a message, so that it is received by every other computer i have seeked on the net, and found something about 'broadcasting' a ...
MS Winsock Control ports don't free up
Jimmy B -
24 Feb 2007 3:22 AM - 10 messages
Sorry to post this here, but I haven't been able to find anything online about this one. I've had a small client/server app. for years where the client just uses WSClient.Connect to automatically select a free port and ...
Closing Recordset Object
kramer31 -
24 Feb 2007 12:12 AM - 6 messages
Hi. I have an application that runs many queries. I'm using an ADODB.Recordset, so 1) should I close the recordset between queries? 2) should I delete and reallocate the recordset obj between queries? ...
There seems to be a bug in Vista's file sharing that causes the ADO Database open command to hang if
jwogden -
23 Feb 2007 11:20 PM - 17 messages
There seems to be a bug in Vista's file sharing that causes the ADO Database open command to hang if the database is open on the host computer. I setup a shared folder in Windows Vista giving assess to everybody. ...
Localized Error Messages
Robert Morley -
23 Feb 2007 8:01 PM - 15 messages
Hi all, I'm looking into the possibility of localizing error messages coming from an ActiveX DLL that I've designed, and I'm wondering what the best approach is. Is there an easy way of doing this sort of thing right within the DLL (the ...
Shell on Vista
vovan -
23 Feb 2007 7:54 PM - 14 messages
Is there any way to run Shell command in VB6 app running on Vista with admin rights? I know that everything that worked on XP must be redesigned in order to run on Vista. I'm trying to do it step by step. Now I have a problem with Shell running ...
Shell syntax
vovan -
23 Feb 2007 6:39 PM - 5 messages
I need to run Shell command from VB6 application and I'm not clear with its proper syntax. This code works: Shell "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe " & """" & strAppPath & "\WorkorderXML.dll" & """" ...
RegAsm.exe on Vista
vovan -
23 Feb 2007 3:05 PM - 5 messages
My VB6 application uses DLL developed in VB2005. It may be changed very often and everytime VB6 application unregisters an old version, replaces with a new one and registers a new version by using RegAsm.exe I'm doing it this way: ...
Switch to Process by Code
Jonathan -
23 Feb 2007 2:07 PM - 3 messages
I am trying to start another EXE with my code and I want it to stay active. The problem is that when the other EXE puts up its splash screen, it somehow become inactive and no process has the focus. I Shell the other EXE like this: ...
End If without block If
baked potato -
23 Feb 2007 12:53 PM - 10 messages
I get this compile error when i click my update command button "End If without block If". However it does change the record that i edit. Here is my code: Private Sub cmdUpdate_Click() If (datAudit.Recordset.State And adStateOpen) = adStateOpen Then ...
VB DVD app no sound in Windows Vista
Woodie M -
23 Feb 2007 5:48 AM - 2 messages
I have a DVD player app in VB6 using the DX9/directshow objects MSVidWebDVD and MSVidCtl. It works fine in XP, but with Windows Vista everything works exept I get no audio on any DVDs. I know this is pretty obscure, but I'm ...
about Google API key
shajahankvp -
23 Feb 2007 5:14 AM - 4 messages
hi, i am developing a VB.NET application that makes use of Google Search API. On running the application i got 'Un authorized Google API key" Exception. i already have an Google account. ...
Compairson to a fixed length string
Marv -
22 Feb 2007 10:07 PM - 7 messages
I have a fixed length string that I am trying to see if it has any value then given it when defined. Dim FLS as String * 5 I have tried any number of means including If Trim(FLS) = VBNull ' it doesn't ...
Overflowing a Long
AmiDaniel -
22 Feb 2007 9:52 PM - 118 messages
Hi all, I've yet again found myself baffled by how complicated VB makes relatively simple tasks, and I was hoping someone might be able to shed some light on a solution to my problem. My problem can be simplified to the following: if I have a Long ...
finding applications data folder from common dialog
Newman99 -
22 Feb 2007 8:52 PM - 2 messages
I’m using the common dialog “Show Open”. I’d like to leave the path set to the last folder used, however if the user desires to return to the applications data folder it takes many clicks to drill down to it. I can’t imagine most customers even being ...
FYI - Daylight Savings Time affects MS apps
Kevin Provance -
22 Feb 2007 7:37 PM - 2 messages
I don't know if this really applies to VB6, but it's interesting nonetheless ============================== Dear Valued Microsoft Customer, In 2005, the United States government passed the Energy Policy Act of 2005. This act changes the start and end dates for Daylight Saving Time (DST) as ...
need tabstrip and imagelist help
caver_dave -
22 Feb 2007 7:33 PM - 3 messages
i am using the tabstrip control and i want to use 16*16 icons in the tabs i can initialise the control like this: Set TabStrip1.ImageList = ImageList1 however i keep running into trouble with this statement: Set TabStrip1.Tabs.Item(1).Image = ImageList1.ListImages(1).Picture ...
how does a recordset work ?
John S -
22 Feb 2007 6:43 PM - 5 messages
Hello All, My memory capacity is 384 MB and I have opened a DAO recordset that is larger than the capacity successfully. It has 900000 records. Each record contains 1000 characters. Though I have opend it successfully, but I still ...
Printing in IE with no prompt
Saga -
22 Feb 2007 4:47 PM - 9 messages
VB6/ SP5/ IE 6 I build an HTML file, display inside Web browser; however, I need it to print directly to the default printer. No dice, prompt (print dialog box) always appears. I have Googled and found various answers using same technique but ...
Best Vista Setup for Development
Rick Raisley -
22 Feb 2007 4:47 PM - 52 messages
Okay, I write programs for resale (very low distribution) and realize I must have a Vista environment available for testing, at least, and possibly for development. At the very least, I need to test my programs using Vista, and include instructions on how to install (using admin, XP Compatibility Mode, ...
Vista Change Specifics
Rick Raisley -
22 Feb 2007 4:35 PM - 27 messages
Okay, the more I read through the various threads on Vista and security and file locations, the more confused I get. So, if possible, I'd like to get some specific recommendations on changes and/or file locations for a group ...
timezone on remote pc
Christophe -
22 Feb 2007 4:12 PM - 4 messages
Hello, I have to ghange the time zone on nt remote machines. I use timezonedefinition.reg and timezoneinformation.reg or a C++ program with RegOpenKey, RegSetValueEx, etc functions. But in both cases, I have to reboot the pc after. Is there another way in order to avoid booting pc? ...
Printing the contents of a datagrid
Patrick Hill -
22 Feb 2007 3:41 PM - 2 messages
Hi everyone thanks for all your help with my first dive into datagrids. Is there a way to print the contents of a datagrid? I have a datagrid on a form with data and I want to print just the stuff that's in the grid. I know ...
AT Command in VB6
nokia33948 -
22 Feb 2007 2:32 PM - 7 messages
Hello, I have wrote an application that can send and receive sms's thorugh a Falcom Samba75 GSM Modem. I have got a problem when sending the sms, using the "GSM" character set: if I want to write the "€" symbol into ...
file sizes
jackthelad5 -
22 Feb 2007 2:03 PM - 9 messages
Hi can anyone tell me how to count the total size of some files in a folder using VB6. Jack ...
Darn custom MsgBox!!
Ivan Debono -
22 Feb 2007 9:47 AM - 9 messages
Hi all, I've got a problem !!! HELP!! I've got an activex exe that starts various threads in the background, similar to a print spooler. The activex exe has a main form that displays a list of active threads. ...
WebBrowser as Control array
Amit -
22 Feb 2007 5:10 AM - 4 messages
How can I use WebBrowser_DocumentComplete when WebBrowser is being used as a control array? Thanks ...
Select Case - abominable?
Jerry West -
22 Feb 2007 4:14 AM - 19 messages
Given that thread I posted "Empty string equivalent to vbNullString" brought up a lively discussion on Select Case statements, and given that I like them over several If Then Else constructs, I thought I ask why it is that others ...
Moving a file
Richard -
22 Feb 2007 3:10 AM - 4 messages
Can anyone tell me how to move a file from one folder to another in VB6? Thank you for any and all help Richard ...
(O.T.) online univ programs?
MP -
22 Feb 2007 1:56 AM - 5 messages
Anyone know of good University offering online programs in programming/analysis/design? I see that since my background is not in computers I'm really slow at trying to teach myself via this fantastic ng and reading books alone. I'd like to learn more about the architectural/design phase and object ...
Maybe a dumb user q - How do you find out the path to the user
Lorne Steiner -
22 Feb 2007 1:39 AM - 8 messages
Maybe a dumb user question, however...how do you find out the path to the user folder, is it an API call? Also will this work under both XP and Vista. Thanks in Advance Lorne Steiner ** definately NOT an MVP <g> ...
Security - Active Directory Good Practices
Sandy -
22 Feb 2007 1:19 AM - 8 messages
Hello - I have an application that uses a Sql Server database as a backend. The app has several forms that are only to be seen by Admin type people and the other forms are seen by regular users. The way I dealt with this was to have ...
ListView: what it is after removing all columns?
Jack -
21 Feb 2007 11:23 PM - 7 messages
Hello, I have run into situation I want to remove all ListView columns. I've done that and I have still ListView object on screen. But what kind of control it is now? ...
collections large remove or clear
graham_s -
21 Feb 2007 5:53 PM - 7 messages
am using VB5 to produce an app that does 3D plotting of structures (buildings etc). The structure is a collection of elements and each element contains collections of local axes and faces (the shape of the beams) which are themselves collections of node points (x,y,z) for subsequent API drawing. ...
More VISTA questions
bartj -
21 Feb 2007 4:48 PM - 6 messages
Hello, I have an app developed on vb5 that currently runs on a group of 20 win2k PCs. The program does testing on some external hardware and writes the result data (ascii text files) to a mapped network drive. There are also files written to the local machine. I have not seen any ...
VB6 MSXML2.XMLHTTP40 Error
doug -
21 Feb 2007 4:03 PM - 3 messages
I have a VB6 program that I use to check content on our websites. We have regionally distributed sites so I loop thru and execute cthe same content checks for each site (only the IP part of URL is different). Been running ...
Viewing records (first, previous, next, last)
baked potato -
21 Feb 2007 2:06 PM - 8 messages
Hi, I'm wondering if anyone can help with viewing records. Ive tried several examples and adapted them to suit my program but they havent worked. Obviously im doing something wrong. If anyone can help it would be much appreciated! ...
VintaSoftTwain.NET Library v2.1 has been released.
support -
21 Feb 2007 1:37 PM - 4 messages
VintaSoftTwain.NET Library is a pure .NET Library which allows to control work of scanners, cameras and any other TWAIN devices. With this library you can fully control the image acquisition process, use the automatic document feeder, clean up images using noise removal, ...
How to add a hyperlink text in a text box?
Peri -
21 Feb 2007 6:40 AM - 3 messages
Dear All, Can anyone please help me out to add a hyperlink text in a text box so that when ever the user clicks the link the IE Explorer should open and display the page. Regards, Peri ...
How do I read all the files in a folder sorted by Created Date Time.
Peri -
21 Feb 2007 5:07 AM - 3 messages
Dear All, I am developing 2 applications. The first application will keep on generate a new file in a span of 30 milliseconds with some valid data inside. The second application will keep on read the file from the same folder and ...
VB6 Professional installed on Vista Compatability Issues
Michael Adkins -
20 Feb 2007 10:32 PM - 15 messages
I have been running Microsoft VB6 Professional for quite a while on Windows 2000 Professional without any problems. The VB6 service pack that I was running under 2000 was SP3. I installed VB6 on my new Windows Vista Laptop and first found out that you ...
"Back" button
mike7411@gmail.com -
20 Feb 2007 6:50 PM - 4 messages
I was just wondering if there is a "Back" button in Visual Basic 6.0. For instance, if you do a "Go to Definition", the "Back" button would take you back. I can't seem to find it. Thank you. ...
Looking for an example of drop and drag image please
Ron Ehrlich -
20 Feb 2007 3:01 PM - 10 messages
We have spent two long weeks looking on the web for an example of VB drop and drag that, during the drag, the image is continuously displayed; i.e., the image flows, not just some box or outline. We found one for VB6 that works ...
Shell API
Ron -
20 Feb 2007 9:53 AM - 14 messages
Hi All Can you use the Shell API with VB6 SP6 and XP Prof? If yes how do I add to my program please. ...
Wrong version of Dll
Alastair MacFarlane -
20 Feb 2007 9:14 AM - 4 messages
Dear All I am using Office 2003 and want to add Microsoft Office Shortcut Bar from a previous version onto my pc. The executable (MSOFFICE.EXE) when I open it under the dependency walker, I get the error message: Warning: At least one module has an unresolved import due to a missing ...
Empty string equivalent to vbNullString
Jerry West -
20 Feb 2007 12:57 AM - 11 messages
Are these the same? Dim sString as String sString$ vbNullstring At this point, before any data has been assigned to sString$, is it equivalent to vbNullstring? An API call like, say, FindWindow, would treat them the same? JW ...
Excel, Datatypes
kramer31 -
20 Feb 2007 12:56 AM - 16 messages
Hi. I'm writing a VB application that among other things parses an Excel worksheet. Now in a particular cell, say 5, 5, there might be a number or some text and the number might be an integer or a floating ...
Browse for Folder
Alan D. Ayers -
19 Feb 2007 10:38 PM - 4 messages
Ok I am going cross eyed looking at this. We are so close. I can browse for folder and if I have a default folder on a mapped drive it works but if my default folder is a network share it does not ...
Copy to Clipboard
SVogt83 -
19 Feb 2007 10:29 PM - 20 messages
I am writing a program to simply copy the command line to the clipboard so taht i can past the full file name somewhere else. The problem is that the clipboard is erased after teh program is closed. Is there any way to stop this? ...
Need to pull HARD DRIVE serial number in DOS!!!!!
Marcelo -
19 Feb 2007 5:40 PM - 16 messages
Hi, Who would of thunk but yes DOS is still needed! I have a need to pull Hard drive info and Bios Info from a dos prompt. This PC(s) will not have a OS. So I need the EXE to running in native Dos mode. ...
VB6 - Saving query results as XML
Bod -
19 Feb 2007 2:33 PM - 5 messages
Hi, How can I issue a SQL query from my VB program and get the results back as XML? Normally I do: strSQL = "SELECT * FROM MyTable" RS.Open strSQL, conn, adOpenKeyset, adLockOptimistic to return an ADODB recordset (RS). However if I want the results as XML I could use ...
Help needed for use of shell command under VISTA
Lorne Steiner -
19 Feb 2007 2:08 AM - 10 messages
I have tried, but can not get the Shell command to start Adobe Reader (VB6) and open a PDF file. Works great under XP. I know it must have to do with security rights because if you turn off user account control it works fine. ...
Handling pop up window in VB
Prashant Sahay -
18 Feb 2007 2:58 PM - 10 messages
How can I handle POP up windows in VB. I know it can be done by using newWindow2 or newWindow3 event of window class but I am afraid I dont know how to code. Please help me to do this atleast. ...
|
|||||||||||||||||||||||