VB 2008 with BS2
Yoshti
Posts: 108
Hi all,
I'm struggling with vb 2008.
Right now I got the vb2008 to talk back and forth with a BS2 no problems.
I have a major issue with looping.
My application has to loop continuously to read a bs2 and populate a form.
The only way I got it to work is using a TIMER event.
I have no idea if I'm doing it right or not.
If I use a button to loop, then no other events can be executed. it is stuck in that BUTTON Click event.
I've tried some examples from some sites but the LOAD event does not load and/or I get an error that my looping is not working or the right place.
While I populate the form1, I must be able to show other forms as well. E.I :
I have a Compass from Parallax. And On form1 I get the DIRECTION only as a number. But If I want , I LOAD form2 That pops in the middle showing a nice drawing of a COMPASS and show also with a NEDDLE, where I'm going, all this with keeping all other info up to date on form1. Then I can click something else that pops in the middle as well and show other graphic.
The problem is where in the world do I do the looping? Timer event works but it seems not right to me. Or is it ?
I come from QBASIC and some VB5 or 6 can't remember.. It just to show you I'm an OLD' FART ... LMAO.
Please help.
The old days, we had a MAIN code, and we had to load a form manually, and the main was where everything was controlled.
Now , VB2008 express is a totally new way... I don't get it... it used to be fun....
Cheers
Yosh
I'm struggling with vb 2008.
Right now I got the vb2008 to talk back and forth with a BS2 no problems.
I have a major issue with looping.
My application has to loop continuously to read a bs2 and populate a form.
The only way I got it to work is using a TIMER event.
I have no idea if I'm doing it right or not.
If I use a button to loop, then no other events can be executed. it is stuck in that BUTTON Click event.
I've tried some examples from some sites but the LOAD event does not load and/or I get an error that my looping is not working or the right place.
While I populate the form1, I must be able to show other forms as well. E.I :
I have a Compass from Parallax. And On form1 I get the DIRECTION only as a number. But If I want , I LOAD form2 That pops in the middle showing a nice drawing of a COMPASS and show also with a NEDDLE, where I'm going, all this with keeping all other info up to date on form1. Then I can click something else that pops in the middle as well and show other graphic.
The problem is where in the world do I do the looping? Timer event works but it seems not right to me. Or is it ?
I come from QBASIC and some VB5 or 6 can't remember.. It just to show you I'm an OLD' FART ... LMAO.
Please help.
The old days, we had a MAIN code, and we had to load a form manually, and the main was where everything was controlled.
Now , VB2008 express is a totally new way... I don't get it... it used to be fun....
Cheers
Yosh
Comments
Yes when using a TIMER event, all other buttons are functional. And that creates a loop function. So it works the way it supposed to.
As for Realbasic. I read a bit about it. $$$ is involved, and I'm trying to cut as much as possible. Since I'll be spending here and there quite a lot... wiffy would kill me... !
I'll check it out in more details..
Thanks!
Yosh