Forum: Visual Basic 4 / 5 / 6 Oct 3rd, 2007 |
| Replies: 4 Views: 6,799 Do you have to input the date before the app separates them. Or does the app get the date from the computer? |
Forum: Visual Basic 4 / 5 / 6 Sep 4th, 2007 |
| Replies: 4 Views: 1,132 Lets say the sub is in Form2 and it must be called via Form1. Declare the sub in Form2 as Public. To call it via Form1, write this code in Form1: Call Form2.Subname where Subname is the name of the... |
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2007 |
| Replies: 5 Views: 1,896 |
Forum: Visual Basic 4 / 5 / 6 Aug 12th, 2007 |
| Replies: 5 Views: 1,896 Thanks. I'll be checking on this when I have time. |
Forum: Visual Basic 4 / 5 / 6 Aug 11th, 2007 |
| Replies: 5 Views: 1,896 No, it won't do. I want a form to display only the cpu and ram usage. It would be an eyesore if it also displays processes that use them. Thanks for the reply btw. |
Forum: Visual Basic 4 / 5 / 6 Aug 10th, 2007 |
| Replies: 4 Views: 672 You can use Data control to connect a database to a project. |
Forum: Visual Basic 4 / 5 / 6 Aug 10th, 2007 |
| Replies: 5 Views: 1,896 Anyone here know the code to view the cpu/ram usage at anytime? Yeah, I know its in the task manager but I want to create a small form and place it on my desktop. |
Forum: Visual Basic 4 / 5 / 6 Aug 1st, 2007 |
| Replies: 2 Views: 2,930 |
Forum: Visual Basic 4 / 5 / 6 Jul 9th, 2007 |
| Replies: 11 Views: 2,676 |
Forum: Visual Basic 4 / 5 / 6 Jul 8th, 2007 |
| Replies: 3 Views: 1,381 You can use the function IsNumeric to check if a certain string is numeric or not. It is numeric if it contains only numbers and only one "-" (negative sign). If no text is entered in the textbox,... |
Forum: Visual Basic 4 / 5 / 6 Jul 7th, 2007 |
| Replies: 11 Views: 2,676 I would suggest the KeyPress and GotFocus functions. If one gets focus, the other is disabled. Then, if a specific key is pressed (enter or esc), the other is again enabled. |
Forum: Visual Basic 4 / 5 / 6 Jun 28th, 2007 |
| Replies: 9 Views: 1,740 Sorry, I couldn't visualize your problem. Could you post some screenshots please? |
Forum: Visual Basic 4 / 5 / 6 Jun 9th, 2007 |
| Replies: 3 Views: 2,490 |
Forum: Visual Basic 4 / 5 / 6 Jun 9th, 2007 |
| Replies: 10 Views: 6,144 The answer is dog. So the code must check if the option button for dog is clicked or if the value is true. By the way, how does your app check the answer? Does it have a command button to check or... |
Forum: Visual Basic 4 / 5 / 6 Jun 7th, 2007 |
| Replies: 4 Views: 2,667 End is not advisable to use. Unload me is actually fine by itself. |
Forum: Visual Basic 4 / 5 / 6 Jun 6th, 2007 |
| Replies: 3 Views: 718 The first line means getting a function "GetPixel" from gdi32.dll
Forgot about the others. |
Forum: Visual Basic 4 / 5 / 6 May 25th, 2007 |
| Replies: 4 Views: 1,444 It does.. I mean a space character " ". So.. it would look like Format(x, "!@@@@@@") & " "; |
Forum: Visual Basic 4 / 5 / 6 May 25th, 2007 |
| Replies: 4 Views: 1,444 Why not add a space every after 1 digit number? |
Forum: Visual Basic 4 / 5 / 6 May 25th, 2007 |
| Replies: 7 Views: 3,148 No, UCase and LCase actually are the opposite of what he is trying to do. |
Forum: Visual Basic 4 / 5 / 6 May 24th, 2007 |
| Replies: 9 Views: 1,886 |
Forum: Visual Basic 4 / 5 / 6 May 24th, 2007 |
| Replies: 9 Views: 1,886 Er, no, I can't seem to understand your explanation. So far, there is Oct and Hex functions but for the others, I guess you have to convert manually. And, if you don't mind, please explain a little... |
Forum: Visual Basic 4 / 5 / 6 May 24th, 2007 |
| Replies: 9 Views: 1,444 I see. What are food1, food2 etc? You did not specify what they are. |
Forum: Visual Basic 4 / 5 / 6 May 23rd, 2007 |
| Replies: 9 Views: 1,444 ck_chick is an integer. An error appears when ".value" is added to assign a value to integers and others such.
I think he means that the ck_chick.value = 0 is highligted when the error... |
Forum: Visual Basic 4 / 5 / 6 May 22nd, 2007 |
| Replies: 9 Views: 1,444 You don't need to add ".value" to assign values for integers. Example: "ck_chick = 0" |
Forum: Visual Basic 4 / 5 / 6 May 22nd, 2007 |
| Replies: 9 Views: 1,975 projectname.exe isn't enough to make apps run on other computers because those computers may lack some components needed by the app (vb components for example). The best way is to run the Setup &... |
Forum: Visual Basic 4 / 5 / 6 May 18th, 2007 |
| Replies: 7 Views: 3,148 Dunno if it words but try using Ascii conversion. |
Forum: Visual Basic 4 / 5 / 6 May 6th, 2007 |
| Replies: 5 Views: 3,010 If there are any textboxes in the form (which I'm sure there are), don't connect them to the database. Then if there is a button that adds the data into the database, then get the data from the... |
Forum: Visual Basic 4 / 5 / 6 May 4th, 2007 |
| Replies: 6 Views: 3,752 I see. Please take this into consideration. Let's say a frog is in front of a car going left. The moment the frog's right touches the car's left, then a collision should already occur. So the code... |
Forum: Visual Basic 4 / 5 / 6 May 4th, 2007 |
| Replies: 6 Views: 3,752 Are you saying that the frog must be under the car for a collision to occur only for the timer with two cars, or for all cars? |
Forum: Visual Basic 4 / 5 / 6 Apr 30th, 2007 |
| Replies: 4 Views: 1,584 What version of MS Access is it? Correct me if I'm wrong, but I think that VB6 doesn't recognize Access database later than 2000. Meaning Access 02/03 cannot be used. Dunno about the other versions... |
Forum: Visual Basic 4 / 5 / 6 Apr 27th, 2007 |
| Replies: 4 Views: 1,584 What database are you using? MSAccess? Others? |
Forum: Visual Basic 4 / 5 / 6 Apr 26th, 2007 |
| Replies: 2 Views: 3,006 There are 10 different results. The frequency array stores the frequency of each result. For example, if the value of frequency(1) is 5, it means that out of 40 students, 5 gave a score of 1. In the... |
Forum: Visual Basic 4 / 5 / 6 Apr 22nd, 2007 |
| Replies: 9 Views: 8,364 The line replaces the Frame1.Top to the negative value of VScroll1.value
Try Frame1.Top = 0 - VScroll1.Value |
Forum: Visual Basic 4 / 5 / 6 Apr 22nd, 2007 |
| Replies: 11 Views: 3,097 Could you specify which second = txtdisplay.text causes the error? And what type of error it is? |
Forum: Visual Basic 4 / 5 / 6 Apr 21st, 2007 |
| Replies: 4 Views: 1,114 Perhaps you can use Hour(Time), Minute(Time), and Second(Time) to get the hour, minute and second respectively for each of the two time points. |
Forum: Visual Basic 4 / 5 / 6 Apr 21st, 2007 |
| Replies: 11 Views: 3,097 Ok, so you have made the equals into a label as well and it has an index of 4? Let's look at your lblsign_click Sub. It assigns a value to first, then deletes the text in txtdisplay, then assigns the... |
Forum: Visual Basic 4 / 5 / 6 Apr 20th, 2007 |
| Replies: 11 Views: 3,097 Whoops! What's gotten into me? My memory must be fading, or maybe I'm just too sleepy right now. Once again, everyone, I'm sorry for double posts. I do hope this will be the last time.
Er, wrong... |
Forum: Visual Basic 4 / 5 / 6 Apr 20th, 2007 |
| Replies: 11 Views: 3,097 Like I said in my second post, I didn't see that you have already assigned numbers for your variables and that you reversed the assigning process to second. Now, however, I figured out another... |
Forum: Visual Basic 4 / 5 / 6 Apr 20th, 2007 |
| Replies: 11 Views: 3,097 Sorry for the double post. I didn't see the assigning of the variables the first time. Please look in the sub Eq_Click(), txtdisplay.Text = second must be second = txtdisplay.Text. You reversed the... |
Forum: Visual Basic 4 / 5 / 6 Apr 19th, 2007 |
| Replies: 11 Views: 3,097 You didn't assign the numbers to first and second. And in Private Sub cmdEq_Click(), you can remove the sign = lblsign(Index).caption because it is not necessary and if not removed will alter the... |