View Full Version : Visual Basic Coding Help
[UFP]Ghost
25 Sep 2008, 03:05
I post help topics in here way too often :p But you guys seem pretty smart and usually can help so I thought it was a good place to ask, not that I can think of anywhere else I can ask.
I had successfully made a bunch of programs for my ti-84 calc and then after 30 minutes of videos on youtube moved to freebasic then straight to visual basic. So try not to make things too complicated :P
I'm using visual basic 6
I was wondering if you could help me with a few random things for my program.
1) Is there a way to make a scrollbar?
2) Is there a way to add one of those squares with a bunch of lines in the corner to allow the resizing of a window?
3) I have a menu, can you direct me somewhere where icna find help for or help me with how to code the: save, close, undo, copy, past & cut options from the file menu.
My main concern is 1 since the window is quite long vertically and on smaller resolutions i cuts off the bottom half.
Thanks,
BoggyP
1) Stop using VB
2) Start using C++
3) ???
4) Profit!
robowurmz
25 Sep 2008, 17:08
What he said.
It's true that C++ is more popular, has greater performance abilities, and is generally better than VB in most ways; VB still has its place. VB is easier to learn, is simpler, is quicker to put something together with, and still allows a programmer to make a decent quality program.
If you intend on making very high quality programs or intend on selling what you are making, then C++ is where you should be. If you are just messing around and trying to learn general programming, then VB is a good start. Once you learn 1 programming language, all others are fairly easy to learn.
SupSuper
25 Sep 2008, 19:33
Ghost;670343']I post help topics in here way too often :p But you guys seem pretty smart and usually can help so I thought it was a good place to ask, not that I can think of anywhere else I can ask.
I had successfully made a bunch of programs for my ti-84 calc and then after 30 minutes of videos on youtube moved to freebasic then straight to visual basic. So try not to make things too complicated :P
I'm using visual basic 6
I was wondering if you could help me with a few random things for my program.
1) Is there a way to make a scrollbar?
2) Is there a way to add one of those squares with a bunch of lines in the corner to allow the resizing of a window?
3) I have a menu, can you direct me somewhere where icna find help for or help me with how to code the: save, close, undo, copy, past & cut options from the file menu.
My main concern is 1 since the window is quite long vertically and on smaller resolutions i cuts off the bottom half.
Thanks,
BoggyP1) I assume you mean more than just dropping in a scrollbar component. To make scrollable stuff, you can either use Frames or look here (http://www.vbaccelerator.com/home/vb/code/libraries/subclassing/Adding_Scroll_Bars_To_Forms__PictureBoxes_and_User Controls/article.asp).
2) Changing the window's BorderStyle should do it.
3) You'd have to be more specific on *what* you're trying to save, close, etc. To put it generically: For cut, copy and paste, there's a Clipboard object. For open and save, you can use CommonDialogs (the typical Open/Save windows) to get the filename and then load/save data on them with methods to operate on files. For new and close, there's probably methods for creating/closing windows.
Really though, this is the kind of thing you can just Google and avoid getting into language wars. :p (I've never used VB myself)
[UFP]Ghost
26 Sep 2008, 02:02
1) I assume you mean more than just dropping in a scrollbar component. To make scrollable stuff, you can either use Frames or look here (http://www.vbaccelerator.com/home/vb/code/libraries/subclassing/Adding_Scroll_Bars_To_Forms__PictureBoxes_and_User Controls/article.asp).
2) Changing the window's BorderStyle should do it.
3) You'd have to be more specific on *what* you're trying to save, close, etc. To put it generically: For cut, copy and paste, there's a Clipboard object. For open and save, you can use CommonDialogs (the typical Open/Save windows) to get the filename and then load/save data on them with methods to operate on files. For new and close, there's probably methods for creating/closing windows.
Really though, this is the kind of thing you can just Google and avoid getting into language wars. :p (I've never used VB myself)
All the stuff I found confused me :P
1) I know C++ is better but I want to start with VB and then move on.
1.1) This is not for profit or anything like that, it's simple for the purpose of creating a program.
2) I'll try that link
3) I got the second problem last night after playing around for a long time, but thanks :)
4) for save, which is really the only specific one, could I save the values in the text boxes?
5) I still don't really get the scroll bar feature. My teacher said he'd try to help me as he does know how to program. I'm not sure if he knows VB but hes smart so he'll probably be bale ot figure it out. If so then he said he will explain hwo it works to me, but if he can't then I've gotten nowhere, the stuff on those sites is a bit confusing to me.
SupSuper
26 Sep 2008, 16:26
Ghost;670435']4) for save, which is really the only specific one, could I save the values in the text boxes?This video should help: http://www.youtube.com/watch?v=GDHkg2tZgvs&feature=related
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.