|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual Basic General Discussionmicrosoft.public.vb.general.discussion
Windows Defender not compatible with VB5
Dan Ritchie -
1 Jul 2006 9:33 PM - 3 messages
I have been testing code out on machines with Windows Defender installed, and the anti-virus software causes VB applications to misbehave. Mouse buttons fail to work correctly with ActiveX controls. Turning off Windows Defender solves the problem. ...
A VB6 fan asks... What is the first OTHER language you would take on???
Alan Mailer -
1 Jul 2006 4:18 PM - 12 messages
The subject line kind of says it all: If you were to start down the road of learning a new programming language today (other than VB6), which would you choose... and why? For example, which language do you feel holds the most promise for the ...
Video problem
vul -
1 Jul 2006 2:17 PM - 6 messages
VB6 application uses many Sheridan controls on its forms. It works with SQL Server DB located on the company server. On some workstations (all of them bought at different time and have different features) everything works fine, on some of them some controls ...
Raw type cast
magne -
1 Jul 2006 10:11 AM - 10 messages
Using VB 6.0 I have a variable of type VT_I4 or Long. Actually this variable is not an integer, but a IEEE single value, the problem is just that it is not "given" to me as a Single. I know I can make a form of "raw typecast" by declaring two user defined ...
vb6 progammer hard to find - anyone know where?
michael -
1 Jul 2006 3:29 AM - 3 messages
Hi guys Sorry if this is considered as spam and if it is I apologise I am trying to find a strong VB6 programmer with a good knowledge of Transact Sql in the Miami FL area, but it seems that no one wants to go ...
m$'s Foibles Come Home To Roost
Stefan Berglund -
1 Jul 2006 2:29 AM - 3 messages
Just as I've predicted, m$'s foibles are just starting to come home to roost. Looks like they got caught with their hand in the proverbial cookie jar: [link] ...
Why does VB require a runtime library?
pcnerd -
1 Jul 2006 2:13 AM - 6 messages
Why is it that VB requires a runtime library, but some other languages don't? Some programming languages can create a truly standalone executable that doesn't have to rely on external files to run. Why doesn't VB create a truly ...
VB6 - Firing DLL-based forms as MDIChild?
MyndPhlyp -
30 Jun 2006 9:15 PM - 15 messages
What's the trick to getting forms compiled into a DLL to act as an MDIChild? I'm firing the DLL from an MDI Form. The DLL's form is marked MDIChild = True. But when the DLL is launched and the form is Show'd (whether vbModal ...
VB6 - Project References constantly getting changed!
MyndPhlyp -
30 Jun 2006 9:07 PM - 10 messages
My project insists on changing its References to the DLLs rather than retaining the VBPs. I'm using a MDI EXE as the base project. The various forms are (now) being built as DLLs. I've grouped the MDI and the forms into a project group. ...
strYear = %CURRENT YEAR%
jameshamilton777 -
30 Jun 2006 8:11 PM - 11 messages
Well, what I hope to achieve is to be able to place a token in my code such as %CURRENT YEAR%, that is replaced with, for example, 2006, when it compiles. I don't wish to use a constant within the application. ...
Formats for exporting sound and sound+still pics (slideshow + narration) - suggestions?
Marshal Anderson -
30 Jun 2006 5:04 PM - 3 messages
I'm putting together a package which guides users (kids) though the process of recording a narrative with pictures. While the main aim is getting the kids to think about narrative, it needs some form(s) of output - actually, the more the better. I want to be able to output as ...
Can't move MDI Parent form
nik -
30 Jun 2006 4:04 PM - 4 messages
I have a MDI parent form with various child-forms inside. I can resize, minimize, maximize the parent form, but can not move it. When I try to click on the title bar and drag it somewhere nothing happens. If I go to the edge arrows appear and I can resize it no ...
Old problem, still no solution? (modal form losing focus when parent form is minimized)
Marek -
30 Jun 2006 3:37 PM - 6 messages
This is a copy of old problem, however, even a year after I couldn't find a solution for this simple issue: ([link]) ...
Fill a Datagrid from a lookup table
Tony A. -
30 Jun 2006 2:18 PM - 2 messages
The application I'm working on has a lookup table (tblItem) that has two columns, ItemNum and Description. Orders will be entered using a Datagrid view that has three columns, OrderNum, ItemNum and Description. When the user enters the ItemNum, I'd ...
Row colour
stardust99_fr -
30 Jun 2006 12:53 PM - 2 messages
I am using an excel document which contains a column called "Colour" I'd like to know how to apply this colour to the row containing this colour. I'm using the following code so far, but the whole row has the color ...
Opening url's from access db
simond1 -
30 Jun 2006 12:43 PM - 4 messages
Hi All, I have a strange question :) I have an access DB that contains one table which contains a list of
URL's What I am trying to do in VB6 is connect to the DB and ask it to open
the first URL in the browser, then i will write some basic rendering
checks, then close the browser ...
rational rose + vb 6.0
adithebest -
30 Jun 2006 9:56 AM - 2 messages
Hi, I am searching for this now for more than a week. Please say if anyone can help me. I am using rational rose, and trying to create a vb form from it. the form comes out well. now, when i try to add a command button or a text box in rational rose and ...
I'd like to develop a COM add-in for Outlook....
ljh -
30 Jun 2006 7:47 AM - 3 messages
And I'm looking for any and all pointers to good tutorials about writing COM components for Outlook 2000, XP and 2003. This project will be a freeware project to help filter spam. Any links you could toss my way would be greatly appreciated. ...
Simulating keystrokes
Leon Johnson -
30 Jun 2006 7:44 AM - 2 messages
Hi, i will like to know how i can simulate a key press using vb6. For example writing code that would tab without me pressing the button. What api functions would i have to call. Can someone please point me in the right ...
Visual Basic 6.0
rahulvjti2001 -
30 Jun 2006 7:31 AM - 6 messages
Hello , I have a VB 6.0 Project On SQl Server 2000 Backend . I have a form on load of which the program stops executing and gives the "End Program" message. However the same form when put in a breakpoint at its load ...
Direct Text-to-Speech problem
Irfan S. Fazli -
30 Jun 2006 6:52 AM - 2 messages
Can any help or guide me how to handle the "Microsoft Direct Text-to-Speech" control in VB Further work will be involved in customising for the HINDI (Indias) language. Thanks. ...
Reading the content of a HTML file
mlsrinivas -
30 Jun 2006 6:08 AM - 8 messages
Hi, How to read the content of a HTML file from VB 6. The HTML is locally saved and my vb application has to read the content of the file. Especially the contents of a table in the HTML file. ...
VB6 - Vista
Mike Simpson -
30 Jun 2006 3:24 AM - 19 messages
Now that the Vista Beta 2 has been distributed for public use, has anyone here been able to install VB6 to run on this O/S ? Trying to install from the VB CD I get 'NTVDM encountered a hard error" and ...
Form Height is incorrect when displaying.
Larry -
30 Jun 2006 1:10 AM - 17 messages
This is really driving me crazy, In V6, I have code to position a form in the center of the screen. Theform.Move (Screen.Width - Theform.Width) / 2, (Screen.Height - Theform.Height) / 2 I am executing the program within the VB IDE. ...
Write ActiveX DLL in VB 2005 Express
Michael Powe -
30 Jun 2006 12:16 AM - 3 messages
Hello, I have an application that exposes a VB 6 ActiveX API. I can write DLLs that plug into the application and add functionality to the application. I write these DLLs by implementing an interface. I have been doing this in VB 6. On initial review, it appears that it ...
I18N help
kimwlias -
29 Jun 2006 11:54 PM - 4 messages
I am trying to make my VB application accept different languages. I read from a folder which contains ini files in there locales (en_US.ini, el_EL.ini, fr_FR.ini etc) The problem is that if the ini file is saved in ANSI encoding, the ...
Number of occurances
Brian Shafer -
29 Jun 2006 10:37 PM - 36 messages
I have a string that has text separted by comma's. something like "12, 131, 32, 131, 434, 53, 23" I what to find the number of groups of text i have there. 7 of them. 6 commas. I can't remeber the best way to do this. I was using the instr() ...
Using GZip decompression in VB 6
Seanie Boy -
29 Jun 2006 9:13 PM - 2 messages
Hi, Does anyone have any pointers on using GZip Decompression in VB 6. I am looking for a way to decompress .gz files/ Many Thanks sean ...
vb proximity query?
vonClausowitz -
29 Jun 2006 8:57 PM - 3 messages
Anyone know how to create a proximity query in VB? I would like to search a database on freetext using a proximity value. For example: lProximity = 10 (find word Y within 10 words of word X). word X = Anyone word Y = query ...
Automate a scanning process through VB6
Carl Imthurn -
29 Jun 2006 8:24 PM - 3 messages
Here's what I've been asked to do: From the click event of a command button, scanning software would be launched with the correct settings being passed in to the scanning application (resolution, contrast, color/b&w, balance, graphic type, ...
How Do I Com Wrap OCX files for a VB6 app?
Justin [497165] -
29 Jun 2006 8:05 PM - 22 messages
I have a few older applications that I want to get up and running in a U3 environment. If you don't know what U3 is that's fine. Just know that while in this environment I CAN NOT register the OCX files that I need to ...
Pass the name of a control?
HotRod -
29 Jun 2006 7:44 PM - 8 messages
I have a form that has a bunch of controls on it. Based on the selection criteria I want to make some changes to a bunch of the controls, to use a simple example I have three controls named Q1, Q2 and Q3 ...
Any mathematicians out there?
A_Republican -
29 Jun 2006 3:19 PM - 13 messages
Hello I am working on a ricochet function, which allows a shape\object to have a bounce effect when it hits a wall in a 2 dimensional environment. I'm confused on how I calculate the angle after it hits the wall. Which ...
Windows directory
Steven Rijkee -
29 Jun 2006 2:39 PM - 3 messages
Hi all, How can i find out if an certain dll is present in the windows directory? On all Windows platforms! GetWindowsDirectory only gives me the c:\windows path, not the c:\windows\system32 (i'm using XP) Pls help. ...
How to build the mazeman.txt file?
TOM - BP -
29 Jun 2006 2:37 PM - 8 messages
I am in the following project, and don't how to build the mazeman.txt file to work with my VB6 codes. Please help: I have to create a simple game called MazeMan in Visual Basic 5 or 6. The ...
How to open a QUERY made in MSAccess2002 in VB6?
puneetmehra.nsit -
29 Jun 2006 2:09 PM - 7 messages
Goodevening all. I am making a project in which i need to open:- 1)Table 2)Query made in MSAccess2002 in VB6. I think i should use DAO library. But can someone tell me the command i should write for button_click() in VB6 ...
SP execution
vul -
29 Jun 2006 1:12 PM - 8 messages
I have a stored procedure with parameters in SQL Server 2000 database. When I execute it in Enterprise Manager, it takes less than 1 second to return rows. When I use it in VB 6 code to populate ADODB.Recordset, it takes more than ...
How do I allow a file to be opened in my VB6 Program with the command line?
alex.lush -
29 Jun 2006 11:03 AM - 5 messages
I'm struggling for the correct terminology here but this is what I'm trying to do: I've created a simple viewer program that opens files and lets you view the contents. Ideally, what i now want to do is to be able to launch the viewer ...
How can I change the color of a point in a PictureBox?
Javad -
29 Jun 2006 9:39 AM - 2 messages
How? Thank you ...
PING: Karl E. Peterson - Moving the Type to a Class
MyndPhlyp -
29 Jun 2006 7:14 AM - 9 messages
In attempt to comply with your recommendation (at the grave risk if invalidating my membership in the Procrastinator's Club... gotta remember to return that application) I moved the Type into a Class. The unfortunate (but not unexpected) side effect is that I now have to treat it as an object ...
copy selected text to clipboard
mherman -
29 Jun 2006 2:40 AM - 4 messages
I'm trying to create a program that copies text to the clipboard once it is selected. From what i understand (wich my be completely wrong) sendmessage should make it pretty easy. What i did was create a basic VB6 project and put a timer on the form. ...
Using a card reader
Abby -
29 Jun 2006 2:40 AM - 3 messages
Hi all, I am using a card reader and trying to capture the contents on the magnetic strip of the card. I am able to read the Track1 and that is all I want.But it reads the Track2 and fills up the textbox which has the focus. ...
Implements - real use of?
Julian -
28 Jun 2006 10:12 PM - 7 messages
Hi Although I've read about the implements keyword it occurred to me that I don't think I've ever used it in a real program and wondered if I was missing something and what type of situations if any people found it useful. ...
It is illegal to call out while inside message filter
Kirby Keim -
28 Jun 2006 5:41 PM - 2 messages
I have a VB 6 function which creates an ActiveX object using CreateObject, and occasionally I get an error that says "It is illegal to call out while inside message filter". I have found in MSDN docs where this can occur in a ...
Textbox Vertical Scrollbar
Mario -
28 Jun 2006 5:28 PM - 7 messages
I'm using a textbox with a vertical scrollbar to display the communication between my PC and a Printer. Everytime I send or receive something to and from the printer, I add a line in the textbox.Text with vbNewLine at the end. ...
vbalgrid
hugonsantos -
28 Jun 2006 4:36 PM - 2 messages
Hi! I'm using vbalgrid component from vbaccelerator! It seems pretty good but now I'm stuck with something. I'd like to click with the right button on a row and bring a popupmenu. The problem is that I dont know ...
Problem with Error 52
Martin -
28 Jun 2006 2:40 PM - 23 messages
I have an app (VB6) that runs 24X7 that has crashed a couple of times with "Error 52 - Bad file name or number". I'm trying to pinpoint what's causing these crashes (I can't duplicate it in my development ...
List timezones
Ivan Debono -
28 Jun 2006 2:22 PM - 5 messages
Hi all, Is there a way to enumerate all time zones in the same way as display when setting the system clock? eg. (GMT +1:00) Amsterdam, Berlin... etc... Thanks, Ivan ...
Label.Text Property
NetGoofy -
28 Jun 2006 2:13 PM - 4 messages
Is there a way to change the Value of a Label.Text Property outside an Application, such as the contents of a data.txt file or ini file or something like that. I would like to be able to change this property without going into VB ...
Help with VB6 Creating Form
James Walker -
28 Jun 2006 2:11 PM - 3 messages
Hello, I'm using VB6 and would like to create a form that looks similar to the Microsoft Word (XP version) Options Form (In Word --> Tools --> Options), see attached file. The program that I'm working outputs around 5 different files per project. ...
Passing pointers to User Defined Types between VB EXE and DLL
Thomas Malia -
28 Jun 2006 12:21 PM - 28 messages
I want to pass data that is stored in a user defined type between a VB6 EXE and and VB6 DLL. My initial plan was to use code like the following but it doesn't seem to be working. any ideas?: ...
Determining how an ActiveX EXE was started
Thomas Malia -
28 Jun 2006 11:47 AM - 10 messages
If you create an ActiveX EXE and set it to "standalone" startup so that you can launch the program directly or launch it by referencing it in another program, is there any way, from within the ActiveX EXE to determine how it ...
Find out the IP-Adress of the Server from network share
Halimaji Nijazi -
28 Jun 2006 9:34 AM - 2 messages
Hi I have mapped some drives as network shares on my computer. I have several shares from several servers. Now I need a function to find out the IP-Adress from the server which hosts the share. So... how can I get these IPs? ...
update table set Time=
jas_s -
28 Jun 2006 6:27 AM - 8 messages
Table Fields are tbldate,empname,timein,timeout ,time(Short Time Formats) I inserted timein and timeout Then I used t1 = rs.Fields("timein") t2 = rs.Fields("timeout") t3 = t2 - t1 txtdiff.Text = Format(t3, "hh:mm") I got the correct time difference.But when I tried to update field ...
VB web browser freezing
mherman -
27 Jun 2006 9:26 PM - 2 messages
At my company we have a need for a web browser that is locked down. We were unable to block the View->Explorer Bar menu (wich let them browse the c drive) so we decided to try and make a web browser in VB6 using ...
Regular Expressions Reference Problems?
Advo -
27 Jun 2006 9:18 PM - 3 messages
Hi there, First post in here so Hey! Anyways, at work, we are using some code to do with Regular Expressions. Now this code seems to be working fine on ComputerA, but on ComputerB it doesnt work. So i've checked today, and its something to do with the references it ...
Help with reading CSV file
BCS -
27 Jun 2006 9:06 PM - 31 messages
I was trying to use the following code to read a CSV file row by row: Open MYFILEPATH & MyFile For Input As #1 Do While Not EOF(1) Line Input #1, LI This works except that LI being a string of just the first row in the CSV ...
It's hot, it's new
Rick -
27 Jun 2006 8:05 PM - 7 messages
Hi all: Have you ever heard of this error? Method 'Cols' of object 'IMSHFlexGrid' failed When trying to load data into a Hierargical Flex grid "manually" for a text file, using .addItem method. Note that the grid is an array of base "zero", and it's complaining for the ...
How to reference opened Excel spreadsheet (not active)
Jack -
27 Jun 2006 6:27 PM - 14 messages
Hello, When the spreadsheet is active I use the following code to reference it: Set moExcel = GetObject(, "Excel.Application") Set moExcelWS = moExcel.ActiveWorkbook.ActiveSheet but, if there are 2 sheets opened how to make a reference to the not active ...
VB6 - Windows Services or?
Charington -
27 Jun 2006 2:54 PM - 3 messages
Hi All I have a VB6 application running on a PC on a large network. My app communicates via TCP/IP to another application on another machine, processes the records and updates the various databases on the main server. ...
Problems with OpenFile Dialog
Sean Campbell -
27 Jun 2006 2:44 PM - 2 messages
Hi all! I have a problem with the OpenFile dialog that I use in my program. I created a Browse button to allow for the selection of a text file that is processed by my program. The Browse button works perfectly when the .EXE is ...
Current directory for executing module
Joachim -
27 Jun 2006 1:18 PM - 2 messages
I have tried the CurDir function, but sometimes it returns a directory of another drive - e.g. if I'm running my application in C:\myapp and I have another drive P, then the current directory for the P drive is sometimes ...
Cannot diable checkbox during Form_Load()
Peter -
27 Jun 2006 11:48 AM - 3 messages
Dear All Another strange problem: I have a checkbox control onto my form and in Form_Load() I specify check1.Enabled=False. However, after the form has loaded the checkbox control is still enabled. On the other hand if I put a button on the form which invokes ...
problems minimizing a form
Peter -
27 Jun 2006 7:28 AM - 5 messages
Dear All This also seems to have a simple solution but I haven't found it yet: My program has a main form(form1) and if a user presses a button then I open a second form(form2) using the statement ...
add text to bottom of richtextbox, simple method?
Mike Scirocco -
27 Jun 2006 7:10 AM - 9 messages
I'm trying to add text to the bottom of a richtextbox using VB6. Is there a simple way to do this? ...
commandline arg string from Proj/props in vb6 exe
hushtech -
27 Jun 2006 6:11 AM - 5 messages
How do I access the project/properties/make/command line arguments string with code in a compiled vb6 app. I want to click-start my app and have it use the string I created and use in dev mode. I know how to use the Command() ...
MAC-Adress of Server
Halimaji Nijazi -
27 Jun 2006 6:07 AM - 2 messages
Hi everybody (I have posted this before in the .net thread but i am using vb , so I post again in the right thread) My application is running on a share on the server. On Starting the application I would like to check the mac-adress of the ...
Keeping track of opened Excel sheet/workbook
Jack -
27 Jun 2006 4:31 AM - 6 messages
Hello, I am programming in visual basic and my application interacts with the Excel spreadsheet. I do not have any problem when there is opened only a single spreadsheet. However, if the user opens the second sheet when my application is running ...
Register ocx on server?
MP -
26 Jun 2006 10:16 PM - 9 messages
Hi all, hopefully this isn't too ot since it involves a vba routine(i think the question is general to vb though) working on a simple in house tool to run in autocad vba. on a simple form is an ocx stored(on my machine) at ...
OCX problem
mike -
26 Jun 2006 8:09 PM - 3 messages
Im doing a OCX with VB6, while i testing it i start it and it work fine when vb opens the browser and includes the ocx, and locally i have a test file where i've put the object tag and it work when the project is ...
Loading two different registry hives
Jerry West -
26 Jun 2006 7:33 PM - 2 messages
Is it possible to load HKU and HKLM at the same time? I'm accessing the registry of a computer over the network. I can load one or the other hive just fine on the remote system. But if I try to load both, i.e. one is ...
Rotating Shape in VB // Missing Form
Zach -
26 Jun 2006 7:32 PM - 4 messages
Hello, I have two questions: 1) I need to make a diamond shape on a form. To do this, I created a square and was trying to rotate it 45 degrees. Is this possible? If not, is there an easy way to make a diamond shape? ...
Playing with the Dark Side
Alastair MacFarlane -
26 Jun 2006 7:15 PM - 61 messages
Dear All, I have been looking at possibly, and I mean ONLY possibly venturing into VB.NET. I like the look of VB 2005. I am seriously deranged or what do the rest of the group really think? Are we all just frightened of tackling ...
Reading a chunk from a large file (> 2GB)
lalitm -
26 Jun 2006 6:50 PM - 3 messages
I'm trying to read in small chunks from a large file. I use the following code snippet: iFile = FreeFile Open sFile For Binary Access Read As #iFile sBuffer = String(guChunkSizeInBytes, " ") ...
Newbie: Save, retrieve user choices?
Ed -
26 Jun 2006 1:55 PM - 10 messages
I've done a bit with Word and Excel macros for about 2 years, and I've dabbled in VB6 only once or twice. I have the Learning Edition (I didn't take a class; I obtained this legally (AFAIK) from another ...
ANN - New Release for VB6: CodeSMART 2007
axtools.devteam -
26 Jun 2006 1:34 PM - 6 messages
To get it started, we still support the VB6 community and we strongly hope we will have your support as well - at least by reading this :-) And no, it's not a free tool, but since a new release in the VB6 world ...
Borland C++ Dll
sam -
26 Jun 2006 12:10 PM - 3 messages
How do i pass a cstring to a borland c++ dll? This does not work. Declare Function myC.dll Lib "mydll.dll" (ByVal Value As string) As Long TIA Sam ...
My Buttons Show up Win98 Style
Cyril Gupta -
26 Jun 2006 9:23 AM - 3 messages
I am facing a strange issue with my new VB.Net app that I am making on Windows XP. All my buttons, and controls have the WinXP look in design time, but as soon as I run them, the controls automatically change to Win98 style. ...
User-defined type as property?
Ivan Debono -
26 Jun 2006 8:48 AM - 6 messages
Hi all, I've got a class with an array of a user-defined type contained strings, integers, booleans and RECT structures. The class exposes a property in the form: Friend Property Get MyType(ByVal iPos As Integer) As typMyType ...
Event when moving a form
Peter -
26 Jun 2006 6:55 AM - 6 messages
Dear All I have a feeling that the answer maight be very simple but I have no idea at the moment: Is there a way to detect that the user has moved my form with the mouse? I thought that there is a event similar to "resize" but it does not exist? ...
simple listview question
Jim -
26 Jun 2006 3:17 AM - 3 messages
How do programmatically select a row in a listview to duplicate the way it would look if I single clicked the row The Follwoing code select the row but does not make it look the same as if I clicked it ...
Central Time on a Network
John Roy -
26 Jun 2006 2:16 AM - 3 messages
How can set the time on several computers on a net work in VB is this possible Or is there another way ? Any One ? Thanks John Roy ...
Can this QuickSort work?
RB Smissaert -
25 Jun 2006 9:19 AM - 25 messages
Got the following QuickSort from Rd Edwards (posted on Planet Source Code as well). I think the has coded and tested in VB6 and says it works fine, but when I run it in VBA it doesn't sort properly. ...
VBA Auto_Activate
PaulD -
25 Jun 2006 12:34 AM - 3 messages
I've been having a real (albeit stupid) problem getting Auto_Activate to work with sheets in my Workbook. I can work around it for my current app, but anticipate a need in the future for the built-in elegant way. ...
Run-time error '-3 (fffffffd)'
nime -
25 Jun 2006 12:18 AM - 7 messages
What is "run-time error -3" ? My code causes "run-time error -3" and stops running (debugging) with no clue. [attached file: run-time.GIF] ...
|
|||||||||||||||||||||||