Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Vb calculator help

Featured Replies

My layout:(this is a test)(i have everything i want to know embedded into picture)

 

 

 

fhf.jpg

wii_wheaton.png

[software Engineer] -

[Ability Bar Suggestion] - [Gaming Enthusiast]

Dim monsterxp As Integer 'declare variables

Dim amount As Integer



Private Sub Command1_Click()

   monsterxp = Text1.Text     'copy text box values to variables

   amount = Text2.Text

   Text3.Text = 4 * amount * monsterxp 'calculate and output in the text box

End Sub

 

 

 

kinda crude way of doing it but since im assuming your the only one using it, it should work (dont enter 0's or letters ;)) you may also have to rename the text boxes depending on how you set it up, just use something that explains what they are better than i did

to added to cem22lp's post.

 

Private Sub Button1_Click()

  'Declare your variables

  Dim MonsterExp as integer

  Dim Amount as integer

  Dim TotalExp as double

  'Check they have only entered numbers in the textboxes

  if isnumeric(textbox1.text) and isnumeric(textbox2.text) then

     MonsterExp = textbox1.text

     Amount=textbox2.text

     TotalExp=(4 x MonsterExp)*Amount

     textbox3.text=MonsterExp

  else

     msgbox("You must only enter numbers into the textboxes")

  End if

End Sub

 

If you add a picture box to the form and then double click the picture box it should give the option to add a image to the picture box

[hide=Drops]

  • Dragon Axe x11
    Berserker Ring x9
    Warrior Ring x8
    Seercull
    Dragon Med
    Dragon Boots x4 - all less then 30 kc
    Godsword Shard (bandos)
    Granite Maul x 3

Solo only - doesn't include barrows[/hide][hide=Stats]

joe_da_studd.png[/hide]

  • Author

the codes aren't working, everytime i click "calculte" nothing happens, can someone help?

wii_wheaton.png

[software Engineer] -

[Ability Bar Suggestion] - [Gaming Enthusiast]

Never put your output (answer) in a textbox. It makes no sense, just use a label. It's probably not working because you need to change the names of the things on your form to match the code exactly.

 

 

 

Post the code here.

  • Author

they one joe said.. ok here is what my forum contains:

 

item-name

 

cmd button-calculate

 

txtbox-monsterHp

 

txtbox-MonsterAmount

 

Label-TotalExperence

 

 

 

can someone make a code based on this?

wii_wheaton.png

[software Engineer] -

[Ability Bar Suggestion] - [Gaming Enthusiast]

Are you using VB.NET or VB 6?

It would help if we had the code you wrote, so that the code we right will be formated to it and all you have to do is copy and paste. And if your thinking about including it on a web page your going to want it written in vbscript or better yet javascript. Vb script only works on IE explore, even firefox can't understand it, and since there so simaler always use javascipt.

 

 

 

Though if you just want to run this on your pc visual basics fine.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.