-
To All Proffessionals Programmers, May I have your help Please?
Dear Proffessionals Programmers:
Good Afternoon:
"I made a project by using Visual Basic.Net which consist of three forms
1-Form1 consist of :
a)TextBox.
b)two buttons.Button one its text(add) and button two its text(Password).
c)listbox.
Any thing written in the textBox will be added to the listbox as an item
when you click Add Button and the code under that button is:
"ListBox1.Items.Add(TextBox1.Text)"
2- Form2.vb will be shown when you press the password button in Form1.vb
and its consist of:
a)TextBox1(For entering Password)
b)TextBox2(For confirming Password)
C)Two Buttons. (Ok and Cancel button)
3) The Third Form (Form3.vb) will be shown when you click any items in the
listBox in Form1.vb and its consist of:
a)TextBox(Which ask you to enter the password that you enter it in Form2.vb)
b)one button which is Ok button."
"When I run this program every thing are working in a good maner the add
button which add items to the listbox and the password system.all of the
program work ok.but when I close the program and I open it again every thing
are lost, the items that I added to the list box and the password which is
defined as a
"Public string " in a serparet moduel.
I lose all the data and every time I open the program I have to enter new
password and new items to the ListBox.
At the End I want to specify my question
"How can I save the items that I added to the ListBox and also How can I
save the password is there any code or any way that help me to do so?"
if you know please tell me cause you may be dont see it a big problem as
me.
Thank you for reading this message
My best wishes
Husam
-
Re: To All Proffessionals Programmers, May I have your help Please?
There are 3 VERY easy answers to your queestion:
1) save the "data" into a Database (Access is ALWAYS a possibility)
2) Save the entries into a Standard Text (*.txt) file, using standard routines
to read and write Disk files
3) save the entries to the System registry.
The choice is up to you.
Arthur Wood
"husam" <husamal_ahmadi@yahoo.com> wrote:
>
>Dear Proffessionals Programmers:
>Good Afternoon:
>
>"I made a project by using Visual Basic.Net which consist of three forms
>1-Form1 consist of :
>a)TextBox.
>b)two buttons.Button one its text(add) and button two its text(Password).
>c)listbox.
>
>Any thing written in the textBox will be added to the listbox as an item
>when you click Add Button and the code under that button is:
>"ListBox1.Items.Add(TextBox1.Text)"
>
>2- Form2.vb will be shown when you press the password button in Form1.vb
>and its consist of:
>a)TextBox1(For entering Password)
>b)TextBox2(For confirming Password)
>C)Two Buttons. (Ok and Cancel button)
>
>3) The Third Form (Form3.vb) will be shown when you click any items in the
>listBox in Form1.vb and its consist of:
>a)TextBox(Which ask you to enter the password that you enter it in Form2.vb)
>b)one button which is Ok button."
>
>"When I run this program every thing are working in a good maner the add
>button which add items to the listbox and the password system.all of the
>program work ok.but when I close the program and I open it again every thing
>are lost, the items that I added to the list box and the password which
is
>defined as a
>"Public string " in a serparet moduel.
>I lose all the data and every time I open the program I have to enter new
>password and new items to the ListBox.
>
>At the End I want to specify my question
>"How can I save the items that I added to the ListBox and also How can I
>save the password is there any code or any way that help me to do so?"
>
>if you know please tell me cause you may be dont see it a big problem as
>me.
>
>Thank you for reading this message
>My best wishes
>Husam
>
>
-
Re: To All Proffessionals Programmers, May I have your help Please?
"husam" <husamal_ahmadi@yahoo.com> wrote
> At the End I want to specify my question
> "How can I save the items that I added to the ListBox and also How can I
> save the password is there any code or any way that help me to do so?"
>
> if you know please tell me cause you may be dont see it a big problem as
> me.
I have to wonder how a programmer can loose site of the fact that they
need to write code to obtain a certain behaviour.
I've seen the above question so many times, it still leaves me thinking people
must think computers are magic boxes.
How about answering this question;
When you open MSPaint and draw a picture, then close it and open another
instance of MSPaint again; Why don't you see your picture anymore?
If you can answer that correctly, you will have learned the answer to your
own question....
LFS
-
Re: To All Proffessionals Programmers, May I have your help Please?
Larry,
On this particular newsgroup, your reply is fairly typical, but still very
UNhelpful. I would go on, but I have better things to do.
Scott Hutchinson
s.c.o.t.t.h.u.t.c.h.i.n.s.o.n@usa.net
(to contact me, remove all dots left of @)
"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:3d6d85ac@10.1.10.29...
> "husam" <husamal_ahmadi@yahoo.com> wrote
> > At the End I want to specify my question
> > "How can I save the items that I added to the ListBox and also How can I
> > save the password is there any code or any way that help me to do so?"
> >
> > if you know please tell me cause you may be dont see it a big problem as
> > me.
>
> I have to wonder how a programmer can loose site of the fact that they
> need to write code to obtain a certain behaviour.
>
> I've seen the above question so many times, it still leaves me thinking
people
> must think computers are magic boxes.
>
> How about answering this question;
>
> When you open MSPaint and draw a picture, then close it and open another
> instance of MSPaint again; Why don't you see your picture anymore?
>
> If you can answer that correctly, you will have learned the answer to your
> own question....
>
> LFS
>
>
>
-
Re: To All Proffessionals Programmers, May I have your help Please?
Actually, since he provided the MSPaint example, I would say that it is
at least moderately helpful - though it obviously requires husam to
think about how a program behaves more than Arthur's answer does. It
wasn't a RTFM or 'call us once you've completed Programming 101.
--
Greg
"Scott Hutchinson" <scotth@nospamplease.com> wrote in message
news:3d6da2d1$1@10.1.10.29...
> Larry,
>
> On this particular newsgroup, your reply is fairly typical, but still
very
> UNhelpful. I would go on, but I have better things to do.
>
> Scott Hutchinson
> "Larry Serflaten" <serflaten@usinternet.com> wrote in message
> news:3d6d85ac@10.1.10.29...
<clip>
> > How about answering this question;
> >
> > When you open MSPaint and draw a picture, then close it and open
another
> > instance of MSPaint again; Why don't you see your picture anymore?
> >
> > If you can answer that correctly, you will have learned the answer
to your
> > own question....
> >
> > LFS
-
Re: To All Proffessionals Programmers, May I have your help Please?
A typical response from this group would have been to tell him he had no problems
and to shut up and accept the way his program is working, because that's
just the way it is.
The paint example was far more helpful.
"Greg Brunet" <GBrunet@NOSPAMSemperSoft.com> wrote:
>Actually, since he provided the MSPaint example, I would say that it is
>at least moderately helpful - though it obviously requires husam to
>think about how a program behaves more than Arthur's answer does. It
>wasn't a RTFM or 'call us once you've completed Programming 101.
>
>--
>Greg
>
>"Scott Hutchinson" <scotth@nospamplease.com> wrote in message
>news:3d6da2d1$1@10.1.10.29...
>> Larry,
>>
>> On this particular newsgroup, your reply is fairly typical, but still
>very
>> UNhelpful. I would go on, but I have better things to do.
>>
>> Scott Hutchinson
>
>> "Larry Serflaten" <serflaten@usinternet.com> wrote in message
>> news:3d6d85ac@10.1.10.29...
><clip>
>> > How about answering this question;
>> >
>> > When you open MSPaint and draw a picture, then close it and open
>another
>> > instance of MSPaint again; Why don't you see your picture anymore?
>> >
>> > If you can answer that correctly, you will have learned the answer
>to your
>> > own question....
>> >
>> > LFS
>
>
-
Re: To All Proffessionals Programmers, May I have your help Please?
Christians seem so much more tender in the mouth of lions.
"MMFAN" <mmf@mmf.org> wrote in message news:3d6ee281$1@10.1.10.29...
>
> A typical response from this group would have been to tell him he had no
problems
> and to shut up and accept the way his program is working, because that's
> just the way it is.
>
> The paint example was far more helpful.
>
> "Greg Brunet" <GBrunet@NOSPAMSemperSoft.com> wrote:
> >Actually, since he provided the MSPaint example, I would say that it is
> >at least moderately helpful - though it obviously requires husam to
> >think about how a program behaves more than Arthur's answer does. It
> >wasn't a RTFM or 'call us once you've completed Programming 101.
> >
> >--
> >Greg
> >
> >"Scott Hutchinson" <scotth@nospamplease.com> wrote in message
> >news:3d6da2d1$1@10.1.10.29...
> >> Larry,
> >>
> >> On this particular newsgroup, your reply is fairly typical, but still
> >very
> >> UNhelpful. I would go on, but I have better things to do.
> >>
> >> Scott Hutchinson
> >
> >> "Larry Serflaten" <serflaten@usinternet.com> wrote in message
> >> news:3d6d85ac@10.1.10.29...
> ><clip>
> >> > How about answering this question;
> >> >
> >> > When you open MSPaint and draw a picture, then close it and open
> >another
> >> > instance of MSPaint again; Why don't you see your picture anymore?
> >> >
> >> > If you can answer that correctly, you will have learned the answer
> >to your
> >> > own question....
> >> >
> >> > LFS
> >
> >
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks