constante

  • Thread starter Thread starter Georg
  • Start date Start date
G

Georg

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
 
Georg said:
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
 
Georg said:
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
 
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
 
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
 
Georg said:
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

You are correct that the "LastUse" property should be a User Setting.
Application Settings are not editable. Sorry! User Settings are not
readonly.

Mike
 
Georg said:
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

You are correct that the "LastUse" property should be a User Setting.
Application Settings are not editable. Sorry! User Settings are not
readonly.

Mike
 
hi,
it's done and works fine.
I did this also with the backcolor of my startupform by an colorpicker.color
In the settings there is a userBackcolor and saved. But all my form has now
the same backcolor. Is it possible to set the color and saved it for each
form separately by a constante.??
thanx, Georg.
 
hi,
it's done and works fine.
I did this also with the backcolor of my startupform by an colorpicker.color
In the settings there is a userBackcolor and saved. But all my form has now
the same backcolor. Is it possible to set the color and saved it for each
form separately by a constante.??
thanx, Georg.
 
Georg said:
hi,
it's done and works fine.
I did this also with the backcolor of my startupform by an colorpicker.color
In the settings there is a userBackcolor and saved. But all my form has now
the same backcolor. Is it possible to set the color and saved it for each
form separately by a constante.??
thanx, Georg.

I don't see why that should not be possible, though I have not tried. I
tend to leave the system colors to set the forms look and feel.

I would look in the debugger just before you set the forms color from the
setting to make sure the value is what you expect.

Mike
 
Georg said:
hi,
it's done and works fine.
I did this also with the backcolor of my startupform by an colorpicker.color
In the settings there is a userBackcolor and saved. But all my form has now
the same backcolor. Is it possible to set the color and saved it for each
form separately by a constante.??
thanx, Georg.

I don't see why that should not be possible, though I have not tried. I
tend to leave the system colors to set the forms look and feel.

I would look in the debugger just before you set the forms color from the
setting to make sure the value is what you expect.

Mike
 
Back
Top