Anyone into VB?

Anything else. Post a funny site or tell us about yourself. Discuss current events or whatever else you want. Post off topic threads here.
Post Reply
TwelveEleven
Veteran Member
Posts: 3806
Joined: Sat Mar 17, 2007 1:11 am
Quick Reply: Yes
Location: Heaven
Contact:

Anyone into VB?

Post by TwelveEleven »

Well, so I've finally started VB/C/C++, and now I encountered my first problem.. (And yes I don't know any tech forums :P)

I'm trying to make a stopwatch, but it ain't really working out..

So if you have some VB knowledge, please help me:

Visually: Image
Code: Image


<3,
twelve
Last edited by TwelveEleven on Thu Oct 25, 2007 9:17 pm, edited 3 times in total.
<<banned from SRF for proof of botting. -SG>>

User avatar
TacticalMedic
Active Member
Posts: 610
Joined: Mon Jan 29, 2007 9:30 pm
Quick Reply: Yes
Location: BG

Post by TacticalMedic »

I believe I know even less than you, care to explain what exatcly are you doing? Writing programs?
Image

JacksColon wrote:yes, but which one do you think enjoys taking it in the ass? that's the ultimate question and deciding factor for me :P

TwelveEleven
Veteran Member
Posts: 3806
Joined: Sat Mar 17, 2007 1:11 am
Quick Reply: Yes
Location: Heaven
Contact:

Post by TwelveEleven »

I'm trying to program a stopwatch :P
<<banned from SRF for proof of botting. -SG>>

Luoma
Veteran Member
Posts: 3895
Joined: Thu Sep 14, 2006 8:23 am
Quick Reply: Yes
Location: Artists Corner & Aege

Post by Luoma »

lol i recently started working a little with VB, got as a calculator O.o

that is too hard for me =(
<<banned from SRF for proof of botting. -SG>>

TwelveEleven
Veteran Member
Posts: 3806
Joined: Sat Mar 17, 2007 1:11 am
Quick Reply: Yes
Location: Heaven
Contact:

Post by TwelveEleven »

Luoma wrote:lol i recently started working a little with VB, got as a calculator O.o

that is too hard for me =(


I read simple, and thought that would be something for me lol :P
<<banned from SRF for proof of botting. -SG>>

User avatar
Innovacious
Advanced Member
Posts: 2446
Joined: Mon Sep 11, 2006 9:24 pm
Quick Reply: Yes
Location: Off Topic
Contact:

Post by Innovacious »

vb.net? yuck.

I still use 6. So does my college, .net kills the network :banghead:

Anywho, ill have a look
ImageImage

User avatar
PB_and_J
Ex-Staff
Posts: 2639
Joined: Sun Jan 01, 2006 2:18 am
Location: 4 hour jack sessions with stallowned

Post by PB_and_J »

<---Taking a VB class at HS, we have hardly done anything though....
Image

GEF_Slayer
Common Member
Posts: 110
Joined: Tue Aug 21, 2007 1:29 am

Post by GEF_Slayer »

thought u ment victorian bitter/ VB the beer lol
<<banned from SRF for rules violations. -SG>>

User avatar
Innovacious
Advanced Member
Posts: 2446
Joined: Mon Sep 11, 2006 9:24 pm
Quick Reply: Yes
Location: Off Topic
Contact:

Post by Innovacious »

well, i just made a simple form with a label a timer and a button.

Used your code and it worked

Code: Select all

Private Sub Command1_Click()
  Timer1.Enabled = True
End Sub

Private Sub Timer1_Timer()
  Label1.Caption = Format(Val(Label1.Caption) + 0.01, "fixed")
End Sub


although your interval is wrong on your timer, 1000 is a second. If your doing milliseconds in that format then thats still wrong, should be 10 i think (unless its dif in vb.net)

edit: oooh :banghead: you must be doing it in milliseconds cus there arnt 100 seconds in a min, lol

ANOTER edit: your errors seem to be with the label. Have you named it right?

I FOUND THE SOLUTION

youre using vb 6 code. in vb.net they replace .caption with .text for some stupid reason
Last edited by Innovacious on Thu Oct 25, 2007 10:15 pm, edited 3 times in total.
ImageImage

flynch
Casual Member
Posts: 55
Joined: Sun Sep 30, 2007 1:24 am

Post by flynch »

autoit wud be better tbh. i prefer c++ but for sumthin so simple your better off with autoit. u cud do it in 10 lines. i'd write it now 4 u but im feelin sik and i only hav 1 hand hence the shit gramma

TwelveEleven
Veteran Member
Posts: 3806
Joined: Sat Mar 17, 2007 1:11 am
Quick Reply: Yes
Location: Heaven
Contact:

Post by TwelveEleven »

Innovacious wrote:well, i just made a simple form with a label a timer and a button.

Used your code and it worked

Code: Select all

Private Sub Command1_Click()
  Timer1.Enabled = True
End Sub

Private Sub Timer1_Timer()
  Label1.Caption = Format(Val(Label1.Caption) + 0.01, "fixed")
End Sub


although your interval is wrong on your timer, 1000 is a second. If your doing milliseconds in that format then thats still wrong, should be 10 i think (unless its dif in vb.net)

edit: oooh :banghead: you must be doing it in milliseconds cus there arnt 100 seconds in a min, lol

ANOTER edit: your errors seem to be with the label. Have you named it right?

I FOUND THE SOLUTION

youre using vb 6 code. in vb.net they replace .caption with .text for some stupid reason


Ok, thanks. But i'm using vb 2008 beta 2 since you're wondering. Thanks for that though :) <3 i'll see if it works now
<<banned from SRF for proof of botting. -SG>>

User avatar
Innovacious
Advanced Member
Posts: 2446
Joined: Mon Sep 11, 2006 9:24 pm
Quick Reply: Yes
Location: Off Topic
Contact:

Post by Innovacious »

TwelveEleven wrote:Ok, thanks. But i'm using vb 2008 beta 2 since you're wondering. Thanks for that though :) <3 i'll see if it works now


Lol, i really should upgrade to a newer version of vb shouldnt i
ImageImage

TwelveEleven
Veteran Member
Posts: 3806
Joined: Sat Mar 17, 2007 1:11 am
Quick Reply: Yes
Location: Heaven
Contact:

Post by TwelveEleven »

Innovacious wrote:
TwelveEleven wrote:Ok, thanks. But i'm using vb 2008 beta 2 since you're wondering. Thanks for that though :) <3 i'll see if it works now


Lol, i really should upgrade to a newer version of vb shouldnt i


guess so, minor question. When i 'build' something, where can i find the build file? (as in where does it save to?)
<<banned from SRF for proof of botting. -SG>>

User avatar
Innovacious
Advanced Member
Posts: 2446
Joined: Mon Sep 11, 2006 9:24 pm
Quick Reply: Yes
Location: Off Topic
Contact:

Post by Innovacious »

TwelveEleven wrote:
Innovacious wrote:
TwelveEleven wrote:Ok, thanks. But i'm using vb 2008 beta 2 since you're wondering. Thanks for that though :) <3 i'll see if it works now


Lol, i really should upgrade to a newer version of vb shouldnt i


guess so, minor question. When i 'build' something, where can i find the build file? (as in where does it save to?)


you dont build stuff in vb 6. You just run it, if you want a .exe in vb 6 you have to go to file/make "projectname".exe

the version youre using is different by the sounds of it
ImageImage

User avatar
PR0METHEUS
Senior Member
Posts: 4093
Joined: Tue Aug 22, 2006 7:30 pm
Quick Reply: Yes
Location: Earth
Contact:

Post by PR0METHEUS »

So is this VB 6.0 or VB.NET? I'm more familiar with VB 6.0 myself. Trying to get a VB programming job actually... *crosses fingers*

Innovacious wrote:I FOUND THE SOLUTION

youre using vb 6 code. in vb.net they replace .caption with .text for some stupid reason


Yeah I was just going to say, the compiler was not recognizing Timer1.Caption (blue underline). Normally if you Just type the class name and a period (aka Timer1.) it will give you a list of valid classes you can use. I'm guessing Caption does not show up in that list.
Missing the good times in SRO... :love:

SRO:
1x, STR Blader (Thebes)
54, STR blader (Venice)
0x, INT wizard (Venice)
19, INT spear (Venice)
34, STR rogue/bard (Venus)
0x, STR blader (Venus)
8x, INT bard/cleric (Gaia)

User avatar
-Evan
Frequent Member
Posts: 1415
Joined: Sat Aug 04, 2007 5:43 am
Quick Reply: Yes
Location: Off-Topic

Post by -Evan »

Your asking at the wrong place... Go here
hurr durr

User avatar
Midori
Veteran Member
Posts: 3425
Joined: Wed Mar 07, 2007 1:43 am
Quick Reply: Yes
Location: off topic

Post by Midori »

-Evan wrote:Your asking at the wrong place... Go here


*sigh*
Image

†erminal
Frequent Member
Posts: 1138
Joined: Mon Jun 04, 2007 2:51 am
Quick Reply: Yes
Location: Xian

Post by †erminal »

I used a calculator today, yes, ALL BY MYSELF.
<<banned from SRF for bot admission. -SG>>

User avatar
-Evan
Frequent Member
Posts: 1415
Joined: Sat Aug 04, 2007 5:43 am
Quick Reply: Yes
Location: Off-Topic

Post by -Evan »

X-Lax wrote:
-Evan wrote:Your asking at the wrong place... Go here


*sigh*


what's your point?
hurr durr

User avatar
DeathBeforeDishonor
Active Member
Posts: 990
Joined: Sun Jun 10, 2007 1:05 am
Quick Reply: Yes
Location: Sitting at my computer?

Post by DeathBeforeDishonor »

i thought this was about beer, VB is aussie brand of beer (that tastes like crap)

TwelveEleven
Veteran Member
Posts: 3806
Joined: Sat Mar 17, 2007 1:11 am
Quick Reply: Yes
Location: Heaven
Contact:

Post by TwelveEleven »

TehUrbanNinja wrote:i thought this was about beer, VB is aussie brand of beer (that tastes like crap)


Gimme a leffe double/blond MmMMmMmmmM, now THAT'S beer!
<<banned from SRF for proof of botting. -SG>>

User avatar
micheal_safian
Common Member
Posts: 106
Joined: Sun Dec 31, 2006 3:43 am
Quick Reply: Yes
Location: Athens

Re: Anyone into VB?

Post by micheal_safian »

TwelveEleven wrote:Well, so I've finally started VB/C/C++, and now I encountered my first problem.. (And yes I don't know any tech forums :P)

I'm trying to make a stopwatch, but it ain't really working out..

So if you have some VB knowledge, please help me:

Visually: Image
Code: Image


<3,
twelve

:D :D :D
man read the error man the line u wrote the Label class doesn't got Caption property use instead Label1.Text property.As the caption property has changed in VB.net to Text property ....

User avatar
PR0METHEUS
Senior Member
Posts: 4093
Joined: Tue Aug 22, 2006 7:30 pm
Quick Reply: Yes
Location: Earth
Contact:

Re: Anyone into VB?

Post by PR0METHEUS »

micheal_safian wrote: :D :D :D
man read the error man the line u wrote the Label class doesn't got Caption property use instead Label1.Text property.As the caption property has changed in VB.net to Text property ....


man read the above posts in this thread man... Perhaps use punctuation too?

A few people have already pointed out that the compiler cannot find the .Caption class, and have suggested using .Text instead. :P
Missing the good times in SRO... :love:

SRO:
1x, STR Blader (Thebes)
54, STR blader (Venice)
0x, INT wizard (Venice)
19, INT spear (Venice)
34, STR rogue/bard (Venus)
0x, STR blader (Venus)
8x, INT bard/cleric (Gaia)

Post Reply

Return to “Off Topic Lounge”