VB School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB Expert!

Join 300,360 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,725 people online right now. Registration is fast and FREE... Join Now!




[Help] Listing Text

 

[Help] Listing Text

MuSSi

2 Jul, 2009 - 05:56 AM
Post #1

D.I.C Head
Group Icon

Joined: 5 Jun, 2009
Posts: 84



Thanked: 1 times
Dream Kudos: 50
My Contributions
Hey Guys,
I'm wondering what would I do to make a list of uneditable numbers and could also add onto them so for example:
CODE

(Default when program is run)
1
2
3
4
5
6
7
8
*Add a 9 with a button*
*Delete 7 with a button*

I hope somebody understands what I mean,
Thanks!

User is offlineProfile CardPM
+Quote Post


MuSSi

RE: [Help] Listing Text

2 Jul, 2009 - 05:59 AM
Post #2

D.I.C Head
Group Icon

Joined: 5 Jun, 2009
Posts: 84



Thanked: 1 times
Dream Kudos: 50
My Contributions
Hey Guys,
I'm wondering what would I do to make a list of uneditable numbers unless of course adding and deleting by buttons so for example:
CODE

(Default when program is run)
1
2
3
4
5
6
7
8
*Add a 9 with a button*
*Delete 7 with a button*

I hope somebody understands what I mean,
Thanks!
User is offlineProfile CardPM
+Quote Post

MajorWalrus

RE: [Help] Listing Text

2 Jul, 2009 - 06:17 AM
Post #3

D.I.C Head
**

Joined: 22 Apr, 2009
Posts: 97



Thanked: 9 times
My Contributions
I guess I don't understand. Where do you want this list to be? In a form control? In a file?
User is offlineProfile CardPM
+Quote Post

vb5prgrmr

RE: [Help] Listing Text

2 Jul, 2009 - 06:30 AM
Post #4

D.I.C Regular
***

Joined: 21 Mar, 2009
Posts: 459



Thanked: 30 times
My Contributions
Use a list box control, or a combo box control...


Good Luck


User is offlineProfile CardPM
+Quote Post

MuSSi

RE: [Help] Listing Text

2 Jul, 2009 - 05:28 PM
Post #5

D.I.C Head
Group Icon

Joined: 5 Jun, 2009
Posts: 84



Thanked: 1 times
Dream Kudos: 50
My Contributions
i want it to be on the form so that theres
2 buttons on the side
and the text on the other side, but not just text printed over the form i wanted a component or whatever its called

Edit: I want the numbers to be there that the users inserted every time the program runs,
if you could tell me how to do that with a save button or something that would be great,
Thanks~

This post has been edited by MuSSi: 2 Jul, 2009 - 05:31 PM
User is offlineProfile CardPM
+Quote Post

zippp

RE: [Help] Listing Text

2 Jul, 2009 - 09:38 PM
Post #6

New D.I.C Head
*

Joined: 22 Jun, 2009
Posts: 39



Thanked: 4 times
My Contributions
ok you have to save to a file, and then load the file that you saved.

in the form_load section you must load the last saved information. actuly you have first to check if the file exists and then load it.

and in the form_unload section you have to save the file to a specific location.

this is how you save the information.

CODE

Private Sub Form_UnLoad()
Open "C:\" & ("mynumbers.txt") For Output As #1
Write #1, textbox1.text ' this is if you store the numbers in a textbox
Close #1
End Sub


So , when you close the program, the numbers added will be automaticly saved in C:\mynumbers.txt

i won't show you the code, i`ll let you try to make the load section. if you can't just replay here and i`ll help you smile.gif
User is offlineProfile CardPM
+Quote Post

BetaWar

RE: [Help] Listing Text

2 Jul, 2009 - 10:37 PM
Post #7

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 4,729



Thanked: 269 times
Dream Kudos: 1400
My Contributions
Merged
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 07:49PM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month