Forum: Visual Basic 4 / 5 / 6 Aug 9th, 2009 |
| Replies: 4 Views: 622 I have not seen any significant disadvantages of using control array except it slightly increase difficulty in managing your controls. Moreover, control array is not applicable in every program. |
Forum: Visual Basic 4 / 5 / 6 Aug 6th, 2009 |
| Replies: 4 Views: 622 Control array simply is a group of control that share the same name, same type, and same event procedures that increase flexibility of Visual Basic 6:
Being share the same name and same event... |
Forum: Visual Basic 4 / 5 / 6 Jan 2nd, 2008 |
| Replies: 1 Views: 805 Wrong section, goto Software Development -> Visual Basic, and post there, you might get better chance of getting answer. |
Forum: Visual Basic 4 / 5 / 6 Dec 30th, 2007 |
| Replies: 5 Views: 1,321 http://www.program-transformation.org/Transform/VisualBasicDecompilers |
Forum: Visual Basic 4 / 5 / 6 Dec 25th, 2007 |
| Replies: 24 Views: 6,052 frmsummary.lblfname0.Caption = frmWage.lblfirstname.Caption |
Forum: Visual Basic 4 / 5 / 6 Dec 24th, 2007 |
| Replies: 2 Views: 2,802 I am not sure because I haven't program in VB6 for so long. I think Form.Visible would be the answer because if Form.Visible = false which mean the form doesn't not appear in the screen. |
Forum: Visual Basic 4 / 5 / 6 Dec 24th, 2007 |
| Replies: 1 Views: 2,158 Percentage = Vote/Total_Vote * 100 |
Forum: Visual Basic 4 / 5 / 6 Dec 22nd, 2007 |
| Replies: 3 Views: 1,467 I don't understand your problem. You should describe little more detail. |
Forum: Visual Basic 4 / 5 / 6 Apr 4th, 2006 |
| Replies: 6 Views: 3,796 you mean this ?
Public Function NOTCH(test2 As Integer, ByVal offset As Integer) As Boolean
Dim NotchCharacter As Integer
NotchCharacter = offset + 1
if (test2 = 1) and (NotchCharacter =... |
Forum: Visual Basic 4 / 5 / 6 Mar 22nd, 2006 |
| Replies: 2 Views: 1,385 Asc : This function convert first letter in the string to ANSI code.
Example:
Msgbox(Asc("A"))
Mid : Returns a Variant (String) containing a specified number of characters from a string.
... |
Forum: Visual Basic 4 / 5 / 6 Mar 21st, 2006 |
| Replies: 17 Views: 7,092 I write simple date sort, hope you like it |
Forum: Visual Basic 4 / 5 / 6 Mar 20th, 2006 |
| Replies: 17 Views: 7,092 You can use listview component. |
Forum: Visual Basic 4 / 5 / 6 Jan 21st, 2006 |
| Replies: 10 Views: 4,505 Sorry for my late reply. Because I haven't check DaniWeb for a month now. VB and C++ is much different. you cannot use VB code in C++. so it won't work. I am not good in C++ because I just start... |
Forum: Visual Basic 4 / 5 / 6 Oct 12th, 2005 |
| Replies: 4 Views: 2,040 This is what you mean ?
Private Sub Form_Load()
Text1.MultiLine = True
Text1.ScrollBars = 2
End Sub |
Forum: Visual Basic 4 / 5 / 6 Oct 11th, 2005 |
| Replies: 10 Views: 5,871 I test it, it is working fine, Here this is what i am testing with
random.exe code in C++
#include <time.h>
#include <fstream>
using namespace std;
void main()
{ |
Forum: Visual Basic 4 / 5 / 6 Oct 11th, 2005 |
| Replies: 6 Views: 3,737 In this code I write 2 functions, one function convert from char to binary and another one is for convert from string to binary code.
Private Sub Form_Load()
MsgBox (char2bin("a"))
... |
Forum: Visual Basic 4 / 5 / 6 Oct 11th, 2005 |
| Replies: 6 Views: 3,737 you mean convert char to binary code example
"5" = 00110101
"a" = 01100001
this is what you mean ? |
Forum: Visual Basic 4 / 5 / 6 Oct 9th, 2005 |
| Replies: 13 Views: 3,374 Because I don't have 24 hours internet. and my connection is slow. |
Forum: Visual Basic 4 / 5 / 6 Oct 9th, 2005 |
| Replies: 13 Views: 3,374 |
Forum: Visual Basic 4 / 5 / 6 Oct 8th, 2005 |
| Replies: 13 Views: 3,374 It will return remainder from division of 2 numbers
example
a = 10 mod 3 ' // a = 1
a = 11 mod 3 ' // a = 2
a = 3 mod 3 '// a = 0
a = 12 mod 3 '// a = 0 |
Forum: Visual Basic 4 / 5 / 6 Oct 8th, 2005 |
| Replies: 10 Views: 5,871 how many line in your text file ? |
Forum: Visual Basic 4 / 5 / 6 Oct 8th, 2005 |
| Replies: 13 Views: 3,374 you could try this one
If X Mod 2 Then
' // Odd Number Here
Else
' // Even Number Here
End If |
Forum: Visual Basic 4 / 5 / 6 Oct 6th, 2005 |
| Replies: 10 Views: 5,871 maybe something wrong with your C++ code, can you post your C++ random number code, and also check your "\random.txt", if there something wrong with the file.
... |
Forum: Visual Basic 4 / 5 / 6 Oct 6th, 2005 |
| Replies: 10 Views: 4,505 put this code on the top of your code
Private Declare Function sndPlaySound Lib "winmm.dll" Alias _
"sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
and
If... |
Forum: Visual Basic 4 / 5 / 6 Oct 5th, 2005 |
| Replies: 4 Views: 5,826 Atn is arctangent
let talk about math
tan(x) = sin(x) / cos(x)
cos(x) = sqr(1 - sin(x)^2)
tan(x) = sin(x) / sqr(1 - sin(x)^2)
so we got ArcSin = X / sqr(-X * X + 1)
and ArcCos = 90 -... |
Forum: Visual Basic 4 / 5 / 6 Oct 5th, 2005 |
| Replies: 10 Views: 5,871 why don't you random number using VB, why using C++ random number ? |
Forum: Visual Basic 4 / 5 / 6 Oct 5th, 2005 |
| Replies: 10 Views: 9,496 you can use Shell Function
Syntax : Shell(PathName, [WindowStyle])
example :
Private Sub Form_Load()
Shell ("notepad")
End Sub |
Forum: Visual Basic 4 / 5 / 6 Oct 5th, 2005 |
| Replies: 10 Views: 4,505 Private Declare Function sndPlaySound Lib "winmm.dll" Alias _
"sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Private Sub Form_Load()
result =... |
Forum: Visual Basic 4 / 5 / 6 Oct 4th, 2005 |
| Replies: 10 Views: 4,505 First you have to delcare this API
Private Declare Function sndPlaySound Lib "winmm.dll" Alias _
"sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
after that |
Forum: Visual Basic 4 / 5 / 6 Oct 4th, 2005 |
| Replies: 8 Views: 11,396 here is my count down code
Private Sub cmd_Click()
Timer1.Enabled = Not Timer1.Enabled
cmd.Caption = IIf(Timer1.Enabled, "Pause", "Start")
End Sub
Private Sub Form_Load()
... |
Forum: Visual Basic 4 / 5 / 6 Oct 4th, 2005 |
| Replies: 4 Views: 5,826 try this function :
Public Function ArcCos(ByVal X As Double) As Double
If X <> 1 Then
ArcCos = Atn(-X / Sqr(-X * X + 1)) + 2 * Atn(1)
Else
ArcCos = 0
End If... |
Forum: Visual Basic 4 / 5 / 6 Oct 2nd, 2005 |
| Replies: 11 Views: 2,479 and i got another one line solution
SIDE = IIf(Z Mod 2, W - (V / 3600#), W + (V / 3600#)) |
Forum: Visual Basic 4 / 5 / 6 Oct 2nd, 2005 |
| Replies: 11 Views: 2,479 first i check grandfilth code pattern
then we got
If Z = 1 Or Z = 3 Or Z= 5 Then
SIDE = W - (V / 3600#)
Else
SIDE = W + (V / 3600#)
End If |
Forum: Visual Basic 4 / 5 / 6 Oct 2nd, 2005 |
| Replies: 11 Views: 2,479 if Z is interger, you also can do this way without using If
SIDE = W + ((-1) ^ Z)*(V / 3600#) |
Forum: Visual Basic 4 / 5 / 6 Aug 23rd, 2005 |
| Replies: 4 Views: 1,905 You mean this one ?
Private Sub Form_Load()
Me.FontName = "Verdana"
MsgBox (Me.TextWidth("Hello"))
End Sub |
Forum: Visual Basic 4 / 5 / 6 Aug 5th, 2005 |
| Replies: 10 Views: 3,897 try this one
Option Explicit
Dim SecLeft As Integer
Dim MinLeft As Integer
Private Sub cmdBreak_Click()
cmdbreak.Enabled = False ' To stop them resetting ! |
Forum: Visual Basic 4 / 5 / 6 Aug 4th, 2005 |
| Replies: 2 Views: 5,347 there are alot of way to do that, I give you 2 ways to do that
First Way : using Change Event
Private Sub Text1_Change()
Dim LastStart As Integer
LastStart = Text1.SelStart
... |
Forum: Visual Basic 4 / 5 / 6 Jul 29th, 2005 |
| Replies: 2 Views: 2,538 I think there is infinity loop somewhere. Did you try other windows ? |
Forum: Visual Basic 4 / 5 / 6 Jul 28th, 2005 |
| Replies: 10 Views: 3,897 hey Coma, long time no see! how are you.
and about code, I have change some of your code, i make it simple as possible and work very fine too.
Option Explicit
Dim SecLeft As Integer
Dim... |
Forum: Visual Basic 4 / 5 / 6 Jun 3rd, 2005 |
| Replies: 24 Views: 10,920 Randomize will generate different random number everytime ;)
here this is syntax for Randomize
Randomize (Optional Seed)
if you are omitted the seed, the system timer is used for the seed... |