Results 1 to 7 of 7

Thread: refresh dynamic label after config file update

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    68

    Question 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.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Maybe this work ?

    It forces the control to invalidate its client area and immediately redraw itself and any child controls .

    VB Code:
    1. Me.Refresh()

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    68
    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

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    68
    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.

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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

  6. #6

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    68
    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.

  7. #7
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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
  •  



Click Here to Expand Forum to Full Width