Welcome to Dream.In.Code
Become a VB Expert!

Join 137,234 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,680 people online right now. Registration is fast and FREE... Join Now!




visual basics help wih percentage code

 
Reply to this topicStart new topic

visual basics help wih percentage code, help with percentage code

alicia23
17 Feb, 2007 - 11:02 AM
Post #1

New D.I.C Head
*

Joined: 17 Feb, 2007
Posts: 3


My Contributions
hey everyone i have a homework assignement to create a small program that will calculate 4 percent of the amount entered in Total Sales Text box and then i have to assign the result to the caption of teh lable name lblCommission. Now i have all the objects created but i cant seem to get the percentage code right or get it to appear in the commission label. i would really appreciate the help.
thanx smile.gif
User is offlineProfile CardPM
+Quote Post

KeyWiz
RE: Visual Basics Help Wih Percentage Code
17 Feb, 2007 - 12:52 PM
Post #2

D.I.C Regular
Group Icon

Joined: 26 Oct, 2006
Posts: 428


Dream Kudos: 125
My Contributions
read the rules, post your code
User is offlineProfile CardPM
+Quote Post

orangeslide8
RE: Visual Basics Help Wih Percentage Code
18 Feb, 2007 - 05:44 PM
Post #3

D.I.C Head
Group Icon

Joined: 29 Dec, 2006
Posts: 190



Thanked: 1 times
Dream Kudos: 25
My Contributions
all you have to do is this well first put a button on your form but that it any way here
CODE

private sub button1_click ()
label1.text = Textbox1.text * .04
end sub

it is really quite simple
john
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 03:57PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month