TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ryan steenkamp
NA
3
0
Need VB.net help please.....
Jun 17 2010 4:43 AM
Hi guys Ive got a from with 4 textboxes on it, cost,selling,m/up,gp
when i enter cost and selling it works out the gp and m/up
Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Selling.TextChanged
Try
mup.Text = Format(Val((Selling.Text) - Val(Cost.Text)) / Val(Cost.Text) * 100, "0.00")
gp.Text = Format(Val((Selling.Text) - Val(Cost.Text)) / Val(Selling.Text) * 100, "0.00")
Catch ex As Exception
End Try
End Sub
this works but now i want the selling,gp and m/up to change when i change the gp and i cant seem to get that working
i've got the Fromula for that but i keep getting errors or it doesn't change
this is the second part
Private Sub TextBox4_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles gp.TextChanged
Try
'selling = cost * (1 + m/up%)
Selling.Text = Val(Cost.Text) * (1 + Val(mup.Text) / 100)
Catch ex As Exception
End Try
End Sub
any help would really be appreciated
thanks
Reply
Answers (
3
)
Crossword in Visual Studios 2008
Save Images in MSSQL 2008 Using VB.NET and Stored Procedure