|
-
Aug 23rd, 2003, 12:18 PM
#1
Thread Starter
Lively Member
refresh dynamic label after config file update
Hello,
I have created a table in my DB with all label caption in different languages.
When I logon in my APP, I look the user language and take all caption from the DB to update the config file.
The problem is that I need to restart the APP to see the new labels.
Is there a way to refresh all control from the APP when the config file is updated ?
Thanks,
Sebastien.
-
Aug 23rd, 2003, 01:00 PM
#2
Sleep mode
Maybe this work ?
It forces the control to invalidate its client area and immediately redraw itself and any child controls .
-
Aug 23rd, 2003, 05:14 PM
#3
Thread Starter
Lively Member
Doesn't work, already try
I think the XML file CONFIG is loaded into memory when the APP is loaded, what I need is reload the config file into memory after having updated it.
Thanks
-
Aug 25th, 2003, 01:27 PM
#4
Thread Starter
Lively Member
In fact the config file is loaded into memory when the app is executed, after this time the file is never read until next run.
The section APPSETTINGS can't be updated into memory but if you create new section, you can re-read the config file and update it into memory.
I my case it is not possible, dynamic text are linked by VB to a record of the Appsetting section.
What I need is to create 2 APPs. The first one for the login and the update of the ConfigFile of the second App with label text of the language define in the user profile.
Then I need to pass information between APP1 and APP2 (login, authorisations, ...) and finally execute APP2.
Does anyone know how can I send data from APP1 to APP2 when I execute APP2 ? Other then via the configfile for security reason !!!
Thanks in advance.
-
Aug 25th, 2003, 01:59 PM
#5
You can use remoting to send things to different .NET apps but that is going to be mroe trouble than you need for what you want. Wouldn't it be easier to just not use Dynamic text? You can still use the appConfig file if you want although I'd suggest a different AppSettingsReader and an AppSettingsWriter. There are a bunch hanging around out there if you search or here is a generic one from a previous post:
http://www.vbforums.com/showthread.p...hreadid=243092
-
Aug 26th, 2003, 12:33 AM
#6
Thread Starter
Lively Member
Want I was thinking is someting like that : run APP2 /p1 = var1 /p2 = var2 ... /pn=varn.
just using parameters when call the APP2.
Isn't it possible ?
regards,
Seb.
-
Aug 26th, 2003, 09:58 AM
#7
Sure you CAN do it but SHOULD you? That would be a bit of a mess during depolyment and maintance.
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
|
Click Here to Expand Forum to Full Width
|