|
Silkroad Online
|
Silkroad Forums
|
Affiliates
|



|
|
View unanswered posts | View active topics
|
Page 1 of 1
|
[ 23 posts ] |
|
Author |
Message |
TwelveEleven
|
Post subject: Anyone into VB? Posted: Thu Oct 25, 2007 9:09 pm |
|
Banned User |
 |
Joined: Mar 2007 Posts: 3806 Location: Heaven
|
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  )
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:
Code:
<3,
twelve
_________________ <<banned from SRF for proof of botting. -SG>>
Last edited by TwelveEleven on Thu Oct 25, 2007 9:17 pm, edited 3 times in total.
|
|
Top |
|
 |
TacticalMedic
|
Post subject: Posted: Thu Oct 25, 2007 9:12 pm |
|
Active Member |
 |
 |
Joined: Jan 2007 Posts: 610 Location: BG
|
I believe I know even less than you, care to explain what exatcly are you doing? Writing programs?
_________________

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 
|
|
Top |
|
 |
TwelveEleven
|
Post subject: Posted: Thu Oct 25, 2007 9:16 pm |
|
Banned User |
 |
Joined: Mar 2007 Posts: 3806 Location: Heaven
|
I'm trying to program a stopwatch 
_________________ <<banned from SRF for proof of botting. -SG>>
|
|
Top |
|
 |
Luoma
|
Post subject: Posted: Thu Oct 25, 2007 9:18 pm |
|
Banned User |
 |
Joined: Sep 2006 Posts: 3895 Location: Artists Corner & Aege
|
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>>
|
|
Top |
|
 |
TwelveEleven
|
Post subject: Posted: Thu Oct 25, 2007 9:20 pm |
|
Banned User |
 |
Joined: Mar 2007 Posts: 3806 Location: Heaven
|
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 
_________________ <<banned from SRF for proof of botting. -SG>>
|
|
Top |
|
 |
Innovacious
|
Post subject: Posted: Thu Oct 25, 2007 9:32 pm |
|
Advanced Member |
 |
 |
Joined: Sep 2006 Posts: 2446 Location:
|
vb.net? yuck.
I still use 6. So does my college, .net kills the network
Anywho, ill have a look
_________________

|
|
Top |
|
 |
PB_and_J
|
Post subject: Posted: Thu Oct 25, 2007 9:33 pm |
|
Ex-Staff |
 |
 |
Joined: Jan 2006 Posts: 2639 Location: 4 hour jack sessions with stallowned
|
<---Taking a VB class at HS, we have hardly done anything though....
_________________
|
|
Top |
|
 |
GEF_Slayer
|
Post subject: Posted: Thu Oct 25, 2007 9:35 pm |
|
Common Member |
 |
Joined: Aug 2007 Posts: 110
|
thought u ment victorian bitter/ VB the beer lol
_________________ <<banned from SRF for rules violations. -SG>>
|
|
Top |
|
 |
Innovacious
|
Post subject: Posted: Thu Oct 25, 2007 9:43 pm |
|
Advanced Member |
 |
 |
Joined: Sep 2006 Posts: 2446 Location:
|
well, i just made a simple form with a label a timer and a button.
Used your code and it worked
Code: 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  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.
|
|
Top |
|
 |
flynch
|
Post subject: Posted: Thu Oct 25, 2007 9:59 pm |
|
Casual Member |
 |
Joined: Sep 2007 Posts: 55
|
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
|
|
Top |
|
 |
TwelveEleven
|
Post subject: Posted: Thu Oct 25, 2007 10:41 pm |
|
Banned User |
 |
Joined: Mar 2007 Posts: 3806 Location: Heaven
|
Innovacious wrote: well, i just made a simple form with a label a timer and a button. Used your code and it worked Code: 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  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 SOLUTIONyoure 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>>
|
|
Top |
|
 |
Innovacious
|
Post subject: Posted: Thu Oct 25, 2007 10:44 pm |
|
Advanced Member |
 |
 |
Joined: Sep 2006 Posts: 2446 Location:
|
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
_________________

|
|
Top |
|
 |
TwelveEleven
|
Post subject: Posted: Thu Oct 25, 2007 10:47 pm |
|
Banned User |
 |
Joined: Mar 2007 Posts: 3806 Location: Heaven
|
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>>
|
|
Top |
|
 |
Innovacious
|
Post subject: Posted: Thu Oct 25, 2007 10:58 pm |
|
Advanced Member |
 |
 |
Joined: Sep 2006 Posts: 2446 Location:
|
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
_________________

|
|
Top |
|
 |
PR0METHEUS
|
Post subject: Posted: Fri Oct 26, 2007 1:00 am |
|
Senior Member |
 |
 |
Joined: Aug 2006 Posts: 4093 Location: Earth
|
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... 
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)
|
|
Top |
|
 |
-Evan
|
Post subject: Posted: Fri Oct 26, 2007 2:36 am |
|
Frequent Member |
 |
 |
Joined: Aug 2007 Posts: 1415 Location: Off-Topic
|
Your asking at the wrong place... Go here
_________________
hurr durr
|
|
Top |
|
 |
Midori
|
Post subject: Posted: Fri Oct 26, 2007 3:40 am |
|
Veteran Member |
 |
 |
Joined: Mar 2007 Posts: 3425 Location:
|
-Evan wrote: Your asking at the wrong place... Go here
*sigh*
_________________
|
|
Top |
|
 |
†erminal
|
Post subject: Posted: Fri Oct 26, 2007 3:44 am |
|
Frequent Member |
 |
Joined: Jun 2007 Posts: 1138 Location:
|
I used a calculator today, yes, ALL BY MYSELF.
_________________ <<banned from SRF for bot admission. -SG>>
|
|
Top |
|
 |
-Evan
|
Post subject: Posted: Fri Oct 26, 2007 4:01 am |
|
Frequent Member |
 |
 |
Joined: Aug 2007 Posts: 1415 Location: Off-Topic
|
X-Lax wrote: -Evan wrote: Your asking at the wrong place... Go here*sigh*
what's your point?
_________________
hurr durr
|
|
Top |
|
 |
DeathBeforeDishonor
|
Post subject: Posted: Fri Oct 26, 2007 4:51 am |
|
Active Member |
 |
 |
Joined: Jun 2007 Posts: 990 Location: Sitting at my computer?
|
|
Top |
|
 |
TwelveEleven
|
Post subject: Posted: Fri Oct 26, 2007 9:43 am |
|
Banned User |
 |
Joined: Mar 2007 Posts: 3806 Location: Heaven
|
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>>
|
|
Top |
|
 |
micheal_safian
|
Post subject: Re: Anyone into VB? Posted: Fri Oct 26, 2007 9:20 pm |
|
Common Member |
 |
 |
Joined: Dec 2006 Posts: 106 Location:
|
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  ) 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:  Code:  <3, twelve
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 ....
|
|
Top |
|
 |
PR0METHEUS
|
Post subject: Re: Anyone into VB? Posted: Fri Oct 26, 2007 9:45 pm |
|
Senior Member |
 |
 |
Joined: Aug 2006 Posts: 4093 Location: Earth
|
micheal_safian wrote:
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. 
_________________ Missing the good times in SRO... 
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)
|
|
Top |
|
 |
|
Page 1 of 1
|
[ 23 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 13 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|