Silkroad Online Forums

A community forum for the free online game Silkroad Online. Discuss Silkroad Online, read up on guides, and build your character and skills.

Faq Search Members Chat  Register Profile Login

All times are UTC




Post new topic Reply to topic  [ 23 posts ] 
Author Message
 Post subject: Anyone into VB?
PostPosted: Thu Oct 25, 2007 9:09 pm 
Banned User
Offline

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 :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

_________________
<<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
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 9:12 pm 
Active Member
User avatar
Offline

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?

_________________
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 9:16 pm 
Banned User
Offline

Joined: Mar 2007
Posts: 3806
Location: Heaven
I'm trying to program a stopwatch :P

_________________
<<banned from SRF for proof of botting. -SG>>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 9:18 pm 
Banned User
Offline

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
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 9:20 pm 
Banned User
Offline

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 :P

_________________
<<banned from SRF for proof of botting. -SG>>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 9:32 pm 
Advanced Member
User avatar
Offline

Joined: Sep 2006
Posts: 2446
Location:
Off Topic
vb.net? yuck.

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

Anywho, ill have a look

_________________
ImageImage


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 9:33 pm 
Ex-Staff
User avatar
Offline

Joined: Jan 2006
Posts: 2639
Location: 4 hour jack sessions with stallowned
<---Taking a VB class at HS, we have hardly done anything though....

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 9:35 pm 
Common Member
Offline

Joined: Aug 2007
Posts: 110
thought u ment victorian bitter/ VB the beer lol

_________________
<<banned from SRF for rules violations. -SG>>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 9:43 pm 
Advanced Member
User avatar
Offline

Joined: Sep 2006
Posts: 2446
Location:
Off Topic
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 :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

_________________
ImageImage


Last edited by Innovacious on Thu Oct 25, 2007 10:15 pm, edited 3 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 9:59 pm 
Casual Member
Offline

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
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 10:41 pm 
Banned User
Offline

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 :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>>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 10:44 pm 
Advanced Member
User avatar
Offline

Joined: Sep 2006
Posts: 2446
Location:
Off Topic
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 10:47 pm 
Banned User
Offline

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
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 10:58 pm 
Advanced Member
User avatar
Offline

Joined: Sep 2006
Posts: 2446
Location:
Off Topic
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 1:00 am 
Senior Member
User avatar
Offline

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... :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)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 2:36 am 
Frequent Member
User avatar
Offline

Joined: Aug 2007
Posts: 1415
Location: Off-Topic
Your asking at the wrong place... Go here

_________________
hurr durr


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 3:40 am 
Veteran Member
User avatar
Offline

Joined: Mar 2007
Posts: 3425
Location:
Off Topic
-Evan wrote:
Your asking at the wrong place... Go here


*sigh*

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 3:44 am 
Frequent Member
Offline

Joined: Jun 2007
Posts: 1138
Location:
Xian
I used a calculator today, yes, ALL BY MYSELF.

_________________
<<banned from SRF for bot admission. -SG>>


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 4:01 am 
Frequent Member
User avatar
Offline

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
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 4:51 am 
Active Member
User avatar
Offline

Joined: Jun 2007
Posts: 990
Location: Sitting at my computer?
i thought this was about beer, VB is aussie brand of beer (that tastes like crap)

_________________
Mini-City Pop
Mini-City Ind
Mini-City Trans
Image
Image
Thank you brentonsbbe359


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 9:43 am 
Banned User
Offline

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
 Profile  
 
 Post subject: Re: Anyone into VB?
PostPosted: Fri Oct 26, 2007 9:20 pm 
Common Member
User avatar
Offline

Joined: Dec 2006
Posts: 106
Location:
Athens
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 ....


Top
 Profile  
 
 Post subject: Re: Anyone into VB?
PostPosted: Fri Oct 26, 2007 9:45 pm 
Senior Member
User avatar
Offline

Joined: Aug 2006
Posts: 4093
Location: Earth
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 27 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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group