Of course... you are using windows.... So this was an inappropriate
response... Doh!

> -----Original Message-----
> From: Bailey, Mark [mailto:[EMAIL PROTECTED]
> Sent: July 6, 2005 12:04 PM
> To: 'Unmoderated discussion of advanced .NET topics.'
> Subject: RE: [ADVANCED-DOTNET] Windows Form branding
>
>
>
> Sorry if I misunderstood but it sounds similar to something
> we did here (dynamically setting captions).  Our approach was
> to use a user control.
>
> E.g.
>
> <DC:DynamicCaption id="company_name" runat="server"/>
>
> The control will use the page name it is on, and id to read
> its caption from an xml file (using xpath), or in your case
> from whatever stores the company / product name. E.g
>               '(xpCaptions is a cached XPathDocument
> containing captions)
>             Dim nav As XPathNavigator = xpCaptions.CreateNavigator()
>             Dim xpathstr As String =
> "string(captions/screens/[EMAIL PROTECTED]'" &
> System.IO.Path.GetFileName(Me.Page.Request.PhysicalPath).ToLow
> er & "']/[EMAIL PROTECTED]'" & Me.ID.ToLower & "']/@value)"
>             Return CType(nav.Evaluate(xpathstr), String)
>
> I am sure others may recommend using a resource file (not
> tied to the page).
>
> mb.
>
>
>
> > -----Original Message-----
> > From: Unmoderated discussion of advanced .NET topics.
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> Barnaby Gray
> > Sent: July 6, 2005 11:35 AM
> > To: [email protected]
> > Subject: [ADVANCED-DOTNET] Windows Form branding
> >
> >
> > I have a C# .NET application with lots of strings added
> > through the visual designer (thus stored in the form's .resx
> > file) specifying the application's company name and product name .
> >
> > What I want to do is change all of these instances to tags,
> > for example <COMPANY_NAME> or <PRODUCT_NAME> and then
> > dynamically replace these tags when the application runs with
> > a company name/product name etc of my choosing.
> >
> > I'm guessing this involves hooking into the process .NET uses
> > to extract the strings from the resx file and diplay them -
> > does anybody know how i might be able to go about this?
> >
> > Cheers,
> >
> > Barnaby
> >
> > ===================================
> > This list is hosted by DevelopMentorR  http://www.develop.com
> >
> > View archives and manage your subscription(s) at
> http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to