Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - constante

Reply
 
Old 05-28-2009   #1 (permalink)
Georg


 
 

constante

hi

on a winform, made in Vb2005 , i want to save a date into al label . The
date shoud be the last day that is application is used. Therfore i thought
to store the day into a constante in the application. Next time the
application runs, i see the this date on my startupform. How can i managed
this ?

regards Georg



My System SpecsSystem Spec
Old 05-28-2009   #2 (permalink)
Family Tree Mike


 
 

RE: constante



"Georg" wrote:
Quote:

> hi
>
> on a winform, made in Vb2005 , i want to save a date into al label . The
> date shoud be the last day that is application is used. Therfore i thought
> to store the day into a constante in the application. Next time the
> application runs, i see the this date on my startupform. How can i managed
> this ?
>
> regards Georg
>
>
This is what Application Settings were designed for:
http://msdn.microsoft.com/en-us/library/k4s6c3a0.aspx.

Mike
My System SpecsSystem Spec
Old 05-28-2009   #3 (permalink)
Georg


 
 

Re: constante

Hi,
i did it your way.

at the end of the load of mine startupform i wrote "
My.Settings.LastUse = Today to put

but i get an error eg "property LastUse is read only."

Also i doubt about if its a user or an application setting because the
application will be insatlled on more than one Pc.

regards Georg


"Family Tree Mike" <FamilyTreeMike@xxxxxx> schreef in
bericht news:2F808078-DE89-4EA5-8EF8-5E567D03D326@xxxxxx
Quote:

>
>
> "Georg" wrote:
>
Quote:

>> hi
>>
>> on a winform, made in Vb2005 , i want to save a date into al label . The
>> date shoud be the last day that is application is used. Therfore i
>> thought
>> to store the day into a constante in the application. Next time the
>> application runs, i see the this date on my startupform. How can i
>> managed
>> this ?
>>
>> regards Georg
>>
>>
>
> This is what Application Settings were designed for:
> http://msdn.microsoft.com/en-us/library/k4s6c3a0.aspx.
>
> Mike

My System SpecsSystem Spec
Reply

Thread Tools



Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46