Code center > Darwinbots Program Source Code
Sentence Split
Numsgil:
I'm not 100% sure, but don't picture boxes have their own line commands?
so it would be:
pictureboxname.line(....
instead of just
line(....
Zelos:
really? ok I´ll give it a try then. lets hope ure right then im done and I can show you what ive been working on. so instant of line(blabla) I type ictureboxname.line(blabla) but I dont have to change the "blabla" right?
right now im not using this, but of curiosity, in a progressbar, how do I cchange so it increases/decreases?
Numsgil:
I've never played with progress bars to be honest. I bet they have a member function called value, or something along those lines, and another that's max vaue.
So maybe you'd do progressbar.value = 30 or something like that.
Greven:
Zelos alot of you questions can be answered by the 'Object Browser'.
It is located in 'View -> Object Browser', or just hit F2!
Here you can find (almost) all commands for Objects (picturesboxes etc.) and also other simple commands, though not all commands in VB is here (why I dont know).
In VB when you want to make something to an object (picturebox, text, label etc.) you often need to call their corresponding function:
example
'objectname.function parameters(for the function)'
For the progressbar, you set it by this:
(you can also set it in the properties on design-time, some objects have an additional properties window, to find it right click on the object in question, can choose properties, if it has an additional properties window it will popup)
--- Code: ---'Sets the minimum for the progressbar
ProgressBar.Min = 0
'Sets the maximum for the progressbar
ProgressBar.Max = 10
'When you need the progressbar to increase in value you write
'Were x is the value it should be increased with.
'Beware that if the .Value, gets over .Max it will raise an error!
ProgressBar.Value = ProgressBar.Value + x
--- End code ---
You need to threat all Objects/items in VB as real objects, like when you want to turn on you TV, you dont say just TurnOn... You need to use something like (okay I know, but it is just an analogy)
'If you use the remotecontrol
TV.RemoteControl.TurnOn = True
'If you push a button on the tv, it will be:
TV.TurnOn = True
(Bad example, but I hope it can be used to something)
PurpleYouko:
Only if he has a version with a decent help file.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version