I want to calculate factorial with all proper validations. Can anyone tell me the functions to be use for this using VB.NET...pLz
deepsmehta
0
Newbie Poster
Recommended Answers
Jump to Posti use procedures
u have to rename some words in these code as it is my code
like (txtfirstnum.text = ur text box ) (txtanswer.text= ur answer box) thats all i thinkVALIDATION
Public Sub validation() If txtFirstNum.Text = "" Then MsgBox("First Number is Empty") …
Jump to PostPublic Class frmFactorialCalculator Private Sub btnCalFactorial_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalFactorial.Click Dim intNumber As Integer = 0 Dim IntFactorial As Integer = 0 Try intNumber = Val(txtNumber.Text.Trim) IntFactorial = fnGetFactorial(intNumber) lblresult.Text = IntFactorial Catch ex As Exception MessageBox.Show(ex.Message) End Try End Sub 'Factorial …
All 7 Replies
manutd4life
0
Junior Poster
Kalbintion
0
Newbie Poster
khaled_eltaweel
0
Newbie Poster
Netcode
33
Veteran Poster
lili22
0
Newbie Poster
hericles
289
Master Poster
Featured Poster
Netcode
33
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.