Be a Supporter!

VisualBasic

  • 417 Views
  • 6 Replies
New Topic Respond to this Topic
Vortex
Vortex
  • Member since: Aug. 27, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
VisualBasic 2006-11-03 14:44:06 Reply

Is there any one there thats good at visual basic programming and can help me an easy program that i have to do for HW in my VB class. its a simple program but i dont know the code to use to get it to work , if theres any one willing to help ill tell you what i have to do
( i doubt its more than5 lines of code , the project sounds imple)

Vortex
Vortex
  • Member since: Aug. 27, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to VisualBasic 2006-11-03 14:56:51 Reply

C'mon , Any body ! ='(

Casualty
Casualty
  • Member since: Sep. 15, 2004
  • Offline.
Forum Stats
Member
Level 35
Musician
Response to VisualBasic 2006-11-03 15:14:28 Reply

Could you at least explain the project? =P

Vortex
Vortex
  • Member since: Aug. 27, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to VisualBasic 2006-11-03 15:21:09 Reply

Yes =p
the project is
you make a lable that says " enter a two digit number in the text box"
i made that lable , named it lblinstructions
and i made the text box , no text in it , and names it txtdigits
the object is say you type in the nmber 56
theres a lable that says digit one
and a lable that says digit two
next to digit one , 5 is supposed to come up
next to digit to 6 is supposed to come up
if you write 23 in the text box , digit one should have 2 next to it
and digit two should have a 3 next to it and so on

i made a lable that says digit one:
and a lable that says digit two:
with blank lables next to em both , each named lblnum1 and lblnum2
i can get the full number you type to come up in one with

Dim lblnum1 As Integer

then for the button that makes the program show the two numbers
i wrote
lblnum1.caption=txtdigits
but i dont know how to split it up so the first number comes up in lblnum1 and the second digit comes up in lvlnum2

i know this is long but i tried to explain it as clearly as i could , any help id <3

Vortex
Vortex
  • Member since: Aug. 27, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to VisualBasic 2006-11-03 15:27:06 Reply

*Sniffles*

Casualty
Casualty
  • Member since: Sep. 15, 2004
  • Offline.
Forum Stats
Member
Level 35
Musician
Response to VisualBasic 2006-11-03 15:27:30 Reply

It's homework so I won't make it for you =P But if you search Google for "Visual Basic Left Right Function" you should find something.

This is A way of doing this, there are others but this works.

authorblues
authorblues
  • Member since: Jun. 21, 2005
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to VisualBasic 2006-11-03 16:00:41 Reply

At 11/3/06 03:27 PM, Casualty wrote: This is A way of doing this, there are others but this works.

a very poor way, i would say. lets see if i can remember basic syntax...

Dim FullNum as Integer
Dim DigOne as Integer
Dim DigTwo as Integer

FullNum = 23

DigTwo = FullNum Mod 10
DigOne = FullNum \ 10


BBS Signature