Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score I got an error
lubian - 30 Dec 2006 6:08 PM - 20 messages
When i start runtime i get an error that say "runtime error 5" invalid procedure call or argument.What can be reason for that?Also have buttons, but it shouldnt run those clicks before they are pressed. my form load do this: ...
Score What is the best method to retrieve real date from computer?
Jack - 30 Dec 2006 5:03 PM - 8 messages
Hello,            Sometimes computer has the clock set to the date, which is not a real date. What will be the best method to check that? Is there maybe some entry in the registry keeping track of  the current ...
Score datacombo prob
Rajiv Vaishnav - 30 Dec 2006 12:37 PM - 2 messages
hi there, I have a data combo box populated with database values Now my problem is i get the values from database perfectly but when i run the form i see the combo box empty before clicking it but when i click it , ...
Score getting error Invalid Property Array Index!
Zairay - 30 Dec 2006 8:54 AM - 7 messages
Hi All, I'm trying to update two text fields in my database (access) leader and co-leader. In two comboboxes names are loaded. When I choose a name the recordid of this name should be passed into the two fields. When I add only one ...
Score Folder Size?
Lorin - 30 Dec 2006 7:22 AM - 2 messages
How to get Folder Size in bytes? I can use FileSystemObject (this is fast!), but do not want to - trying to eliminate all FSO ops. Can recurse using FindFirstFile, FindNextFile, and add file bytes but this is too slow. Is there an API that will do this? ...
Score component to manipulate files and file system
Daniel - 30 Dec 2006 5:21 AM - 3 messages
I need to programmatically find files on my hard drive and change certain attributes of those files.  I don't remember the component(s) to reference in the project.  Would someone tell me what component and files I need to ...
Score Flash to VB syntax conversion
DeathCrud - 29 Dec 2006 9:35 PM - 3 messages
Does anybody know how I would do the equivilent of this in VB?... In Flash I can do this...           var o:Object={};           var s:String="foo"; ...
Score Resources to Learn VB.Net
Cameron - 29 Dec 2006 8:25 PM - 6 messages
What resources could I obtain to learn VB.Net? I have programed for about 5 years in VB 6 and have to migrate. ...
Score How to modify label.text in a dynamically generated label
vbnewbie - 29 Dec 2006 8:10 PM - 9 messages
I am having problems accessing properties of dynamically generated objects. Can someone please help? In a nutshell: My app creates an equal number of checkboxes and labels that share the same Tag number. The checkboxes name is a concatenation of "chkCancel" and a number that ...
Score Image1.Picture = "C:\anypicture.jpg gives Type mismatch error?
Lamont - 29 Dec 2006 7:55 PM - 12 messages
I started to write code to walk through a directory and resize some picture files. At this point my VB6 program has only a command button and an image control and th following three lines of code. Private Sub Command1_Click() ...
Score Loading VB3 project into VB6 causes 'binary format' error
Tony Girgenti - 29 Dec 2006 6:02 PM - 7 messages
Hello. I'm attempting to load a VB3 project into VB6.  When i do, i get the following error for most of the forms and modules. "'LINKFORM.FRM' is in binary format and cannot be loaded into VB6.--Continue ...
Score Setting the values of UDTs
sid - 29 Dec 2006 4:06 PM - 52 messages
I want some help/clarification on the use of UDTs. If I have an UDT can I assign all of its values at once ? When I tried using the first method only the first value was assigned ? Any Help is appreciated. ...
Score Need help with deleting string
lubian - 29 Dec 2006 1:20 PM - 10 messages
Hello. I have command button that add user to file and to list box and also creating user dir. Now i have another button for deleting user, but i need help here with removing user string from txt file. Private Sub cmdAddUser_Click() ...
Score Re: Good resource for Classes - best practices
Ralph - 29 Dec 2006 12:49 PM - 2 messages
<snipped> And perhaps worth only 61 cents. Ms. Kurata was more author than authority in this early book. I say 'was', because to her credit, her knowledge and understanding of OO has visibly grown since then. "Doing Objects" is an interesting book, once you have ...
Score Multi Threading Application using VB6.0
narwa.damodar - 29 Dec 2006 7:02 AM - 8 messages
hi to all, i will be thankful to you if you provide me the best way to implement the multi threading concept using VB6.0. in present application i am using two Timers and this application is interfacing with Hardware  (PCI based CARD) which is used to send and ...
Score Split a 100 page doc and taking a keyword off each document
rmugrad02 - 29 Dec 2006 2:50 AM - 3 messages
I have a 100 page word document that is a mail merge.  Each document we will say is a new document and a SSN is located on each doc in the same location.  Is there a way to split the documnet in to single pages and ...
Score Vote requested
aalaan - 28 Dec 2006 5:50 PM - 12 messages
Good Morning All Some of you will doubtless have been following my various fumblings as a very raw beginner. I am making very good progress with the help of one kind regular off group. But I am very interested in the various other threads ...
Score How can a program know if it is running in the IDE?
Stan Hilliard - 28 Dec 2006 5:20 PM - 3 messages
How can a program know if it is running in the IDE? Stan Hilliard ...
Score Problem with database, Newbie help call
Rajiv Vaishnav - 28 Dec 2006 3:39 PM - 3 messages
hi there, I am badly confused as what to use dao or ado ??? i tried puting one ado control it works fine, but i have one combobox in which the data is fetched from other table to insert in to the other table, ...
Score Odd errors and freezing
mayayana - 28 Dec 2006 6:23 AM - 5 messages
I'm throwing this out to see if it might ring a bell for anyone. I'm not sure if I have a bug in my software or something else. The symptoms are very unique: Win98SE. I have my own HTML editor, which uses ...
Score Creating timer object (without creating a form)
Nav - 28 Dec 2006 2:36 AM - 6 messages
Hi I want to use the timer function in a dll. Is there any way to create an object of this class, without first having to create a form and adding the "timer control" to it? I have used the following code. But it doesnot work. ...
Score How to find the CPU utilization of a PC?
Nav - 28 Dec 2006 2:29 AM - 4 messages
Hi Is there a method through which I could find the CPU utilization of a PC? A function similar to GlobalMemoryStatus, which gives you the memory load of a computer (among other info), will be useful. Thanks in advance. Navonil ...
Score Good resource for Classes - best practices
Rico - 27 Dec 2006 10:45 PM - 7 messages
Hello, I'm looking for a bit of a crash course on how to properly put together a connection class and a customer class.  This will be done in Access VB as well as VB6, so anything that uses one or the other (or both) as an example ...
Score Possibly OT: Updating a text file remotely
q3537wh - 27 Dec 2006 8:38 PM - 4 messages
This question may be a bit OT because 1) I don't know if it's actually doable and 2) if so, I don't know if VB is the best tool to use. But all I have is a little experience with server side programming with VB, ...
Score Cannot read from text file. Command()
kuba - 27 Dec 2006 8:07 PM - 14 messages
Hello All, I have a file associated with my application.  I would like to be able to double click on the file and launch the application with some custom settings as defined in the contents of the text file. I use the ...
Score Speed up reading from file into SQL using ADO
Matt Williamson - 27 Dec 2006 7:20 PM - 12 messages
I'm reading from a fixed length file into a SQL database. Currently, I'm doing it record by record, but I think I could get much better performance if I did a bulk insert. I'm just not sure how to go about doing it. I have ...
Score display text in a label.caption without flashing?
Terethian - 27 Dec 2006 5:25 PM - 3 messages
I am making a game and part of the code is the npc's speaking so the text in the caption refreshes for each letter the npc's are saying. This causes a flashing effect no matter what I do. Even making the label opaque and setting ...
Score Invalid Path Error in connecting to network drive Database
adv - 27 Dec 2006 1:30 PM - 6 messages
I am using VB6 + Access2003 Program. I installed the program on Windows ME while the database is in another computer (with shared folder) that I reach through network drive mapping in the Win ME computer (i.e.: "G:\db.mdb"). ...
Score GridView
Bhagya - 27 Dec 2006 11:37 AM - 2 messages
Pls help..This is the scenario I have Name: TextBox Address: TextBox Add Button I enter Name Address and click add, one row gets added in the GridView. I again select Name Address and add another row in the GridView. ...
Score DateTime.Now.Ticks.ToString("x")
SK - 27 Dec 2006 7:57 AM - 15 messages
Hello everybody! As I see, this is a function in dot.net to convert curent date in nanosecond units and than to then string. How can I do this in VB? Thank you, SK ...
Score VB6 in Vista
Kevin Provance - 27 Dec 2006 7:40 AM - 37 messages
Gents - Is it trtue that I heard that dtoring data in files within the program folder is no longer going to work? How about the registry? Or should I just start using the SHGetSpecialFolder to put my data in it ...
Score How to refer to a control using a variable.
Terethian - 26 Dec 2006 11:10 PM - 5 messages
I have 20 player images and 20 monster images and I need to handle them for a game by refering to all of them in all combinations therefore I need to be able to refer to a control in a better way.... Here is what I have: ...
Score Is size change of exe from vb3 to vb6 normal ?
Tony Girgenti - 26 Dec 2006 9:57 PM - 7 messages
Hello. I created an EXE (in VB6) for a set of 18 modules and seven forms originally written and executed using VB3.  The first thing i noticed is that the vb6.exe is 720KB and the vb3.exe 473KB. ...
Score End if statement
DaveM101010 - 26 Dec 2006 9:20 PM - 6 messages
This is a basic statement that keeps getting a compile error....no code above or below but won't complile...please help...doesn't make sense??????? If  rbStartDate.Checked then lblStartDate.Text = mcDates.SelectionStart end if ...
Score HTTPS Post and Visual basic
SK - 26 Dec 2006 5:10 PM - 3 messages
Hello everybody, I am searching an example how to make http post in visual basic (I need to post zipped file, not xml file), but google returns mostly (only?) pages with examples in dot.net. Can someone, please, give me some pointers how to do this in visual basic? ...
Score Between keyword
Haider Shah - 26 Dec 2006 3:11 PM - 4 messages
Hi i am using vb6, so any body inform me the following statment. If (x >= Shape1.Left And _            x <= Shape1.Left + Shape1.Width And _            Between(y, Shape1.Top - 50, Shape1.Top + 50)) Or _ ...
Score please help me out
Ravi - 26 Dec 2006 2:37 PM - 2 messages
hi to all, can anybody plz help me out to find .tiff files dpi. can i read the file header and get the dpi. using XResolution or YResolution. OR any other way.... plz help me out.... thanks.. ...
Score strange behaviour,any explanation ?
PC - 26 Dec 2006 12:18 PM - 5 messages
Option Explicit Private Type aLong     L As Long End Type Private Type aString     S As String * 2 End Type Private Function Long2String(TheLong As Long) As String     Dim Str As aString ...
Score Shortcut Key for end statements and curly braces
IJALAB - 26 Dec 2006 9:29 AM - 4 messages
Hi All, I have a lengthy code in vb and i am using visual studio 6.0. What is the shortcut key to move to an endif statement of a particular if statement...and end of curly braces if i select the start of that ...
Score Copying files in a certain date range to other locations
aalaan - 26 Dec 2006 4:21 AM - 45 messages
Hope everyone had a great Christmas. Using vb5 I am trying to loop through a folder and select files within a certain date range and copy to another location. Someone here gave me the syntax (or maybe I got it via Google) and I now can't find it. Can someone ...
Score lenght of a string (winsock)
PC - 25 Dec 2006 9:39 PM - 10 messages
as i understand it vb uses 2 bytes for every character in a string (in memory) if a string is output to a printer/textbox/label , then vb uses 1 byte for every character so,if i have the string "This is a test", then in memory it is 28 bytes ...
Score Water Cad
Rafael Salazar - 25 Dec 2006 6:48 PM - 8 messages
I need the WaterCad Software. *** Sent via Developersdex [link] *** ...
Score List XML doc field names
Vlad - 25 Dec 2006 1:35 PM - 3 messages
I am a bit new to using xml so apologies if my termiminology is incorrect. Is it possible to list all the field names from an XML document in the same way that you can with an ADO recordset? If so please could someone point me in the right direction - some ...
Score need help to save data in access table from vb form
Mohsin - 25 Dec 2006 9:35 AM - 3 messages
Hi there ( Christmas Greetings) I am constructing some forms on which data will be entered. I need to save this data to either a database (access or oracle) or spreadsheet (excel) so that it can be stored and referred to for future use. ...
Score Swithcing Language
Syed Zeeshan Haider - 24 Dec 2006 3:46 PM - 3 messages
Hello Everybody, I have VB6 EE on WinXP SP2. I am trying to create a bilingual software with some text controls which should accept only Arabic based languages' input. Is there any way to switch system's language from English to Arabic or Urdu in Visual Basic 6? ...
Score number fields
wilfried - 24 Dec 2006 12:58 PM - 2 messages
I want to give in where I can find the stamp in my books).and in each book I can put 50 stamps (with documentations about the composer and his works, where he was born, died, ....). So I have created two fields ...
Score Accessing System Date withOUT calling a WinAPI function
canoe414 - 24 Dec 2006 9:06 AM - 2 messages
OS: Win2000Pro SP3 app: VB6 SP3 I'd like my VB6 app to access the system date in a way not obvious to crackers poring over its native-compiled executable i.e. a way that does NOT use an WinAPI function. ...
Score How can I pass information to an App with Shell?
Stan Hilliard - 24 Dec 2006 3:04 AM - 27 messages
I want one application to start another and to inform the shelled-to program of a path and the name of a file. How can I do this? Information woll be appreciated, Stan Hliliard ...
Score String comparing on specific formats
Benwah - 24 Dec 2006 2:30 AM - 3 messages
I was just wondering if anyone knew a better/more efficient way to compare 2 strings to see if their format matches. Below is what I am currently using, just seems to be a little messy right now.....maybe I am wrong and I want ...
Score VB6 Animation control intercepts KeyDown event
Brandon - 24 Dec 2006 1:30 AM - 2 messages
I need to use the KeyDown event in a form to capture arrow key input.  I also need to use an animation control on the same form.  However, the animation control seems to intercept the KeyDown event and won't allow the key input to ...
Score Merry Christmas and Happy New Year
Norm - 24 Dec 2006 12:33 AM - 2 messages
I wanted to wish everyone here a very happy holiday season and hope you all have a very good New Year. I have received a lot of help over the years from this newsgroup, in questions I have asked and reading answers to others questions. ...
Next »