1,130 Posted Topics
Re: Look up the shell function... [code] Shell "C:\mybat.bat", vbHide [/code] and see if it will work for you... Good Luck | |
Re: Okay, we can see what your homework requirements are but what we cannot see is which part you are having a problem with. Where is your question on what part of that you are having a problem with? Good Luck | |
Re: Which mean that the data access layer (the provider or the dll's that provide that service) are not found. You may have to download a MDAC from MS to solve this problem... [url]http://search.microsoft.com/results.aspx?qsc0=0&q=MDAC&mkt=en-US&FORM=QBME1&l=1[/url] Good Luck | |
Re: Without having to change any of your code you can still accomplish what you want. In the forms design view, highlight the button and then goto its properties. Find the "default" property and make it true. This property tells the OS that this button is the default button to press … | |
Re: Please stop posting the same question... I have reported this and the rest of your duplicate threads [url]http://www.daniweb.com/forums/thread233750.html[/url] [url]http://www.daniweb.com/forums/thread233757.html[/url] [url]http://www.daniweb.com/forums/thread233748.html[/url] | |
Re: Celt.Max, the code you are using is for the VBA Listbox control found in Excel, access, etc. and while it is usable from VB6, it is not redistributable... IvanKenny, There are two ways in which to accomplish what you want... 1.) Use a listview control. 2.) Do a bit of … | |
Re: Time to use your friends (yahoo, google, ask, answers, bing) and search for... vb6 run at startup vb6 GetAsyncKeyState Good Luck | |
Re: Lida_Pink, Lets make sure of our definitions first... The [b]sum[/b] of numbers is, those numbers being added together, while the [b]product[/b] of numbers is, those numbers being multiplied together. So if you want the sum of numbers in a string then celt.max's code does work... [code] Option Explicit Private Sub … | |
Re: It may also depend upon your local settings on your computer. I don't know about brazil but some countries use the decimal/period character as a thousands seperator and since you have 30.5 and not 30.500 it may be stripping it. So to perhaps solve this you may want to read … | |
Re: None Case Sensitive [code] Option Explicit Option Compare Text Private Sub Form_Load() Dim S As String S = "This is a test" If Left(S, 1) = Right(S, 1) Then MsgBox Left(S, 1) & " matches" End Sub [/code] For case sensitive remove the option compare text.... Good Luck | |
Re: Please stop using SMS code it makes your post hard to decipher... First, create an access97 mdb or your sql database. Then use the data form wizard to create the base code for you. Good Luck | |
Re: Plz, Correct my Code:[code] RS.Find "'" & Text1.Text & "'='" & Text2.Text & "'" [/code] Good Luck | |
Re: Okay, let first start by reminding you of code tags... Then let me say where are you getting this error? What line and what are the state of your variables? Next up is how do you add, i.e. the use of addition, two string together? (Sarcastic, yes, I know). But … | |
Re: Using the common dialog control with the flag of defaultprinter=true is one way. The other is the API... [url]http://vbnet.mvps.org/index.html?code/system/defaultprinter.htm[/url] [url]http://www.tek-tips.com/faqs.cfm?fid=5479[/url] However, the API seems a bit outdated but checking with MS... [url]http://support.microsoft.com/kb/266767[/url] [url]http://support.microsoft.com/kb/246772/EN-US/[/url] [quote] With Windows NT 4.0 (and earlier versions), you cannot use: Either SetPrinter or SetDefaultPrinter to set … | |
Re: OldQ, for future reference you are using .NET code and are presently in the wrong forum. You need to post your Q's in the .NET forum... In vb6 there are two different ways to accomplish what you want. One is setfocus and the other is zorder. Good Luck | |
Re: A sequential file, text file, whatever, would be easy enough to search for contents so yes. As for copying a file from a CD to the hard drive is as simple as using FileCopy but going the other way will not be so easy. Good Luck | |
Re: Simple search from one of your friends (yahoo, google, ask, answers, bing) would provide you some information... [url]http://search.yahoo.com/search?p=vb6+multiple+instances+of+activex&toggle=1&cop=mss&ei=UTF-8&fr=yfp-t-701[/url] Good Luck | |
Re: Lets not forget the new speech recognition technology... [url]http://search.microsoft.com/results.aspx?form=MSHOME&mkt=en-US&setlang=en-US&q=voice+to+text+command[/url] Good Luck | |
Re: Hit CTRL+Break and see where the error is if this is your program you are talking about... Good Luck | |
Re: VB's IDE Menu>Project>Add Module Good Luck | |
Re: As for tutorials for either vb6 or any of the flavors of vb.net, you can use your friends (yahoo, google, ask, answers, bing) to find them. So you keywords would be vb6 read write consol. Then in this thread, is just a small sample of sites I have collected up … | |
Re: Look at the dateadd function.... Dim LastDayOfMonth As Integer LastDayOfMonth = Day(DateAdd("d", -1, Month(Now) + 1 & "/1/" & Year(Now))) Good Luck | |
Re: Search for automating outlook for the actual email part. Then search for ADO Tutorial and see [url]http://www.connectionstrings.com[/url] Good Luck | |
Re: If you are using an object, i.e. ADO and a Do While Loop you could do something like... [code] Dim Cnt As Integer adoRs.MoveLast Prog1.Max = adoRs.RecordCount adoRs.MoveFirst Do While Not adoRs.EOF 'populate grid... Cnt = Cnt + 1 Prog1.Value = Cnt adoRs.MoveNext Loop [/code] Good Luck | |
Re: [code] If Val(Text1.Text) < 0 Then Text1.Text = "-" & Text1.Text Else '... [/code] Good Luck | |
Re: Well it might be because you are in the wrong forum. This forum is for classic vb and not .net so it might be wise of you to PM a mod and have this thread moved to the correct forum. Good Luck | |
Re: And you problem is??? What piece of code? What are you trying to accomplish??? | |
Re: This is not an SMS site... EnumWindows, EnumChildWindows API's Good Luck | |
Re: There are several ways in which to add data to an array... [code] Dim S As String, MyArray() As String S = "test1,test2,test3,test4" MyArray = Split(S, ",") [/code][code] Dim MyArray() As Integer ReDim MyArray(3) As Integer MyArray(0) = 0 MyArray(1) = 12 MyArray(2) = 34 MyArray(3) = 43 [/code] [code] … | |
Re: Hit CTRL+Break and see which/where code is highlighted. Do you have Option Explicit (Require Variable Declaration) turned on? Good Luck | |
Re: rs.addnew rs.fields("somefield") = somevalue rs.update Good Luck | |
Re: The shortest easiest way as mentioned above is through creating a menu with a shortcut key... Use the menu editor and create the shortcut you need. Good Luck | |
Re: should it not be... [code] Adodc1.Recordset.fields("name") = txtname.text [/code] Good Luck | |
Re: Ya, know... I found a web site once that had a lot of information on this subject but now I can't find it.... Can't remember the name or search terms I used to find it.... Oh well.... See microsoft... [url]http://search.microsoft.com/results.aspx?form=MSHOME&mkt=en-US&setlang=en-US&q=speech+sdk[/url] Good Luck | |
Re: Well reading the help file on this it says that for better performance that you should use a query with a where clause... so... strSQL = "SELECT * FROM SomeTable WHERE SomeField = somevalue Set Rs = Db.OpenRecordset(strSQL,... Good Luck | |
Re: So it seems shashanderson, that you are making a fully independent database and front end. And I have to ask why? Accounting department of most large firms that do inhouse accounting will have this information and, hr will have access to some of this information already. Also, HR normally has … | |
Re: maheshsayani has it... For variables delclared publically within a form the variable must be qualified by the form name it was declared in... Form1.MyForm1Var = SomeValue SomeVariable = Form2.MyForm2Variable Good Luck | |
Re: No, but if you search Nextag.com or ebay you should be able to find full versions for real cheap. Good Luck | |
Re: Add list box to form. Double click it. (makes code window appear with default event for list box). Type in the controls name and then the period symbol ".". A list will/should pop up. Select the AddItem method and press F1. Read about it in help. Now select something else … | |
Re: Result = Left(String, Len(String) - 1) Good Luck | |
Re: RegDeleteValue and RegDeleteKey API's are what you are looking for. Good Luck | |
Re: Start new project, add text box, make sure text box has focus when you run it, scan something... Good Luck | |
Re: For almost any scheme that can be thought of to protect files on a drive, usb or otherwise, there are ways in which to get around that scheme. One of the simplest ways is to either try and hide the files or encrypt them or to setup your program with … | |
Re: Usually periphials like these come with SDK's or at least a program that installs a few dlls that allow you or the program to access the device. I would suggest that you contact the manufacturer for the SDK if the device did not come with one but I'm betting it … | |
Re: Wrong forum, please PM a mod to have your thread moved... Good Luck | |
Re: I thought I answered this before but then again... could have been a connection hiccup When comparing two text files for differences, there are many ways to accomplish this but since you have narrowed it down to a visual display, I would suggest that you use RTB's for the visual … | |
Re: You have two choices. The first is make your program a service (search for NTSVC.OCX). The second is to enter your program in the "run at startup" list (those are your keywords to search with). Good Luck | |
Re: See... [url]http://www.shrinkwrapvb.com/[/url] Good Luck | |
Re: Time to use your friends (yahoo, google, ask, answers, bing) and do some searching as you will find many an example. Also MS or the disks you installed from and/or the MSDN CD's have examples (not sure what you need but they are still there). Good Luck | |
Re: Well first, you are going to have to impersonate a user that has the rights to the folder... [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;285879[/url] Then see [url]http://www.connectionstrings.com[/url] for proper formatting of your connection string. Good Luck |
The End.