|
In a sense, yes. You create localized resource files and by dropping them into certain specially named folders, your application will be localized base on the relevant resource. For instance, if your culture is FR-Fr, then by dropping the localized version into the Fr-fr directory, you will see a localized French version.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks for the info was just curious. I thought maybe there was a way to dynamically load them. As an example (off the top of my head) if you had an app to teach a certain subject and you wanted to aim it towards different levels of audience you might have a beginners, inter. and pro and have resources for each.
Thanks
Mike
You can do anything you want but you pay for everything you do!
|
|
|
|
|
Well, you could do that with resources - it's certainly possible.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Where theres a will theres a way, always a work around.
Thanks
Mike
You can do anything you want but you pay for everything you do!
|
|
|
|
|
Usually this type of data would go in the app.config file. That allows it to be changed without a recompile, and also allows it to be encrypted (although that limits how easily it can be changed.)
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
I just had trouble to read the string from the file. I know its something like...
System.Configuration.ConfigurationSettings.AppSettings but got the message that the ConfigurationSettings is absolute and is replaced by ConfigurationManager, but when I try to use it, it doesn't recognize ConfigurationManager
So I just wondered in what type of event you will actually need a resources file?
Thanks for the quick response
He who laughs last is a bit on the slow side
|
|
|
|
|
Unless the connection string is never going to change, it isn't a good idea to put it into a resources file. The resources file requires a recompilation to cope with changes to it. You really should look at using the humble config file for storing connection strings.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi,i am having a form with many controls..like combo,text,radio...
and i am creatign a an XML file and storing controls values...
in an xml file...
but if i change the controls values and saved it it will overwrite...
Is their any method to append the xml fiel for new set off values...
using Xml Dom
pls help me
with Regards
prasad
|
|
|
|
|
Hi there,
I am making an window application and creating set up for that. But as we all know that this application will run on client computer if and only if .net framework is installed on that machine. now if framework is not installed on that machine then it will install the framework...but before installing the framework it prompts user to accept the licence agreement. i want to skip this step in my installation. so do anyone know how can i do it?
My working environment is c# .net 2005 window application.
Tarang Pandya
Sr. Software Engineer
Baroda
|
|
|
|
|
I don't think it is possible to make the .NET installer skip the MS license agreement and if it were I think it would be illegal as it is a binding agreement to the terms and conditions of Microsoft to use the framework.
|
|
|
|
|
Why would you want to do something like that?
I think it's not possible, and as already pointed out, most likely illegal.
Cheers,
Vikram.
The cold will freeze our stares
We won't care...
|
|
|
|
|
Ok ..actually the problem is that i want to make my installation a very striegh forward. End user has to click the setup.exe once and whole the set up will finish with out taking any sigle input from the user in any case. so when i run the setup if framework is not installed then it will install the framework silently behind the screen.
Can i run third party exe from my installer?
Tarang Pandya
|
|
|
|
|
What's the difference between Application.Exit(), Environment.Exit(), this.Close(),...?
Which one do you prefer?
|
|
|
|
|
this.Close() will close the current window and not necessarily close the application.
This should help with the difference between Application.Exit() and Environment.Exit():
Application.Exit vs. Environment.Exit
(Application.Exit() would be the best way to quit an app)
|
|
|
|
|
hi all,
i want to make a setup file in vc# 2005 in such a way that uninstall menu should appear in start menu so that user can uninstall the application from start menu itself without going to control panel.
thanks in advance.
|
|
|
|
|
1. Create a "Uninstall.bat" file and include the following line:
msiexec /x {your product code}
(Replace the "your product code" with your product code GUID.)
2. Add the BAT file to your application folder.
3. Add a shortcut that points to the BAT file and move this to "User's Program Menu".
4. Set the "ShowCmd" property of the shortcut to "vsdscMinimized".
-- modified at 8:25 Monday 2nd April, 2007
Thanks & Rgds,
Sri..
|
|
|
|
|
I need to use dde routines from a c# code.
What library, dll or other have i to add to the
reference of my project?
Has anybody a simple example that just
makes a ddeinitiate, dderequest and ddeterminate
to pass values between two applications running
on the same machine?
Thankyou
rodrigo
rodrigo
|
|
|
|
|
Hello,
I have a problem with my site and I am searching for a solution for allready 2 weeks. I hope someone here can help me.
I made a website by using visual studio 2005. The website is writting in ASP and C-Sharp.
Its a really big website where people are be able to upload pictures, mp3s and even chat with eachother.
Info
The website is made for a computer without harddisks. In the computer is a flashcard with a webbrowser on it.
When the computer starts its automatically loading the browser with the site.The site is on a server. Every client has an account with some space to save some pictures or mp3s.
That space is on another server where I store all the files.
If I get this done it will give me allot of power. I hope I can get it done.
Problem
Now I want to make an upload system so people can upload their pictures or mp3s to the server by using an USB-STICK. So the filebrowser should be integrated to the website and have the same layout as my website. It also should go imediatly to the USB-STICK and should not see the flashcard.Another thing is that I want to do it in ASP or C-Sharp and not using javascript or somthing else. I wonder or its possible but I hope so :P
Ending
I hope someone can help me with this problem.Greeting
PS. Sorry for my English
Dennis
|
|
|
|
|
Have you tried to use the fileUpload control? It is a new control to .net 2.0. If you are using .net 1.1 then you will have to go with a regular html upload control. The code would be like:
<input id="MyFile" type="file" runat="server">
Hope that helps.
Ben
|
|
|
|
|
thnx for the reply
this method is not working because on the computer is no existing explorer.
I need to make an explorer by myself.
greetings
|
|
|
|
|
IE Toolbar show up automatically after installing toolbar.
----------------------------------------------------------
Hi Friends,
Here i customized a toolbar( article from www.codeproject.com by Pavel Zolnikov band objects) for IE6. i created everything for toolbar installation and works fine. but i have some issues left in that,
1. if client system may have browser instance already opened and working for any webpage. if client install toolbar then all the browsers should show my toolbar automatically. similary after uninstall the same have to remove toolbar from all the browsers.
2. at present after installing toolbar, it was listed in View->Toolbars. But not checked by default. after checked manually the toolbar is shown. but i want it happen automatically.
please help me to complete this toolbar.
Thanks in advance.
Peer.
|
|
|
|
|
Hi,
I want to build a MDI application.
The workspace of my application (MDI child) has some controls inside of it. In the mean while i want to be able to controls such components in my main application code.
How can i do it if they arent instantiated?
Thx,
Nuno
|
|
|
|
|
I don't think it would be a good idea to Access Form controls from outside the form. One of the approach you can take is define public functions in the child forms and call these from the MDI Parent.
|
|
|
|
|
|
Can I suggest that you take a look at design patterns - specifically the MVC pattern. Have a read up on it, and see why this is not a good idea. More importantly, a good text on the MVC pattern will show you how to solve this issue in a better fashion.
You don't want to couple up the logic in a main form so that it knows how to update/control the controls in a child form. That is the responsibility of the child form. All you need to do is tell the child form WHAT you want it to achieve, and let it work out how to do it.
Deja View - the feeling that you've seen this post before.
|
|
|
|