First - Create 3 new forms.
On form1 put a combo box and change its text to "Choose"
Create a command button too and on the caption write "Go!"

As it is shown on the screen shot on the list write "2x2" and "3x3".

Double click on the button and write those lines of code:
Private Sub Command1_Click() If Combo1 = "2x2" Then Form2.Show Else Form3.Show End If Unload Me End Sub
On form2 put 5 textboxes and a command button.
Change the caption of the Command button to "Calculate"

Double click on the Button and write this line of code:
Private Sub Command1_Click() Text5 = Text1 * Text4 - Text2 * Text3 End Sub
This is the formula to calculate the value of 2x2 determinant.
On form3 put 10 textboxes and a command button.
Change the caption of the Command button to "Calculate".

Double click on the Button and write this line of code:
Private Sub Command1_Click() Text10 = Text1 * Text5 * Text9 + Text3 * Text4 * Text8 + Text2 * Text6 * Text7 - Text3 * Text5 * Text7 - Text1 * Text6 * Text8 - Text2 * Text4 * Text9 End Sub
This is the formula to calculate the value of 3x3 determinant.
This is my first tutorial ever so, I apologize for any mistakes.
PS: Thanx to SaintLion


Sign In
Create Account


Back to top










