|
It handles it much better than you do. How about a case where your application has a couple dozen forms and a couple hundred controls? I bet your method is pretty slow.
|
|
|
|
|
NSIS and many others manage.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
re infecta wrote: Could you give me some practical example or reference in web?
Speaking in terms of practicality, don't listen to MatrixCoder. Use the resource files as Christian suggests, because practically speaking you'll find more tools to help you with those (in regards to editing for multi-language that is), and INI files are a tad slower anyway.
|
|
|
|
|
MatrixCoder wrote: Using an Ini file would make the process of organizing text between controls and dialogs a lot easier.
Now does it really? I have some comments to add to this subject. First the question is requesting a -Best practice- solution. The best practice is NOT an ini-file approach. Even if it is easier to update and or add new language text to an application, coding it into the app is a different story. I believe, and here the best practice part will come in, you should consider a solution what uses as less code as practically possible. This will keep the change of errors down and will in most case result in a more readable and function orientated code. The framework can deal with all the pluming required for a multilingual application, why not use it? Don't underestimate the impact a different culture or region setting can have on the requirements of your app. There is a lot of joy to gain from producing a multilingual application.
Have fun coding it.
All this is of course my opinion and your comments is welcome.
Jelle
|
|
|
|
|
Hi Dear,
The way possible could be using database to handle it.Create table with with columns like id , code , conversion and languageid .then use a function or dll to convert it into required lanuage .
Take note Change in language would require you to reload application.
Thanks & Pleasure
Navneet Hegde
Nashik
Develop2Program & Program2Develop
|
|
|
|
|
You asked for best practices. They're covered here[^].
|
|
|
|
|
Although I have not done this yet, I do believe the best approach is the DB approach. A function wrapper to the DB using an ID would allow you to retrieve translations from multiple languages without application reloads, etc. Also, with a local caching mechanism this approach would be very close to the Resource file approach with regard to performance and would allow you the most flexibility.
Again, I have not done this and I would like to hear others thoughts as well before investing a lot of time on this effort.
I would also like to see a discussion on supporting multi currency but perhaps that should be a new message thread.
|
|
|
|
|
This doesn't work if you don't have a database.
There's no need to retrieve anything if you use the .NET methods. The CLR will do it for you out of the resources you include with your app. Why write a bunch of code when you don't have to write ANY?
|
|
|
|
|
Hi,
how to use Visual Source Safe in VB.Net?
thanks
Viji
|
|
|
|
|
What do you mean ? Do you want to control it, or just use it ? Do you even understand what it does ? I mean, it's hard to tell from your half question.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I am going to develop a third party dll(windows control collection). And i would like to allow consumer of that dll for a specific duration only.
how can u do it..?
thanks in advance..
regards,
LVPrasad Y
|
|
|
|
|
Basically, you would need to store the date your dll was installed, so that deleting it and reinstalling it will not reset it. Then, check it when you try to run. And, expect that anyone who wants to, will decompile your library and remove your security checks.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi, I have a usercontrol with a 3d appearance, created in vb6. Is there a way to get this to theme to the xp theme styles. I already have a manifest file setup for my exe and that didn't work for my usercontrol.
|
|
|
|
|
This might be what you need.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I have already tried these. My control still appears 3d.
|
|
|
|
|
|
I'm working with the Framework 2.0 Windows.Forms.Webbrowser making a tabbed browser. I'd like to mirror IE7's behavior of openning a link in a new tab on a middle mouse button click. While I'm able to this, I can't figure out how to prevent the directional-drag autoscrolling that seems to be the default behavior for the middle mouse click.
How can I disable or otherwise intercept the autoscroll feature? Thanks!
|
|
|
|
|
Can you please show us the code so we know what to work with? Like how your opening links in a new window for instance.
Posted by The ANZAC
|
|
|
|
|
It's not code I have that I'm having the problem with. The problem I'm having is with the latent behavior of the WebBrowser control. As in, if you happen to be using IE, move to some white space on the web page and hit the middle mouse button. If you're like me, you should get a little circle arrows pointing up and down; dragging your cursor away from the circle cause your page to scroll that direction.
In the WebBrowser control, this behavior occurs even when clicking on links. This is what I want to avoid. I'm hoping for some way to intercept and cancel, or disable this behavior on a the event of a middle mouse click that's found to be over a link element.
|
|
|
|
|
I understand the issue you're having but it would be good to see the code u are using to see if there is some way to program in an intercept for that particular IE Behaviour.
Posted by The ANZAC
|
|
|
|
|
Is there anyone who can explain Parameterised Queries.
I don't get it where the parameters are related to.
How do i write an Updatecommand with parameters, i tried something but it does not work.
Dim command As System.Data.OleDb.OleDbCommand = New System.Data.OleDb.OleDbCommand("Update(Agent)" & _
" SET Nummer_Naam = @NummerNaam, Agentnummer = @AgentNummer, Agentnaam = @AgentNaam " & _
" WHERE(Agentnummer = @agentNummerOud)")
command.Parameters.Add("@NummerNaam", OleDb.OleDbType.VarChar, 20, "NummerNaam")
command.Parameters.Add("@AgentNummer", OleDb.OleDbType.Integer, 10, "AgentNummer")
command.Parameters.Add("@AgentNaam", OleDb.OleDbType.VarChar, 20, "AgentNaam")
Dim parameter As System.Data.OleDb.OleDbParameter = command.Parameters.Add( _
"@agentNummerOud", OleDb.OleDbType.Integer, 10, "AgentNummer")
parameter.SourceVersion = DataRowVersion.Original
daAgent.UpdateCommand = command
daAgent.Update(dsAgent)
|
|
|
|
|
keninfo wrote: i tried something but it does not work.
What do you mean it doesn't work? Do you want us to guess?
My guess would be that you have not supplied the values for the parameters properly (hint: the last argument in Parameters.Add ). These are literal values. They will be the same every time the application is run. You might want to change these to the values you want the parameters to have.
|
|
|
|
|
But i don't know what @AgentNaam corresponse with, it should be a parameter, i guess.
Can you explain the following
command.Parameters.Add("@AgentNaam", OleDb.OleDbType.VarChar, 20, "AgentNaam")
I need to update a table with new values, which are inserted via textfields.
I don't get the way from textfield inserting till the actual update
I know, it seems stupid that i cannot manage this.
But i need some help to start.
|
|
|
|
|
keninfo wrote: But i don't know what @AgentNaam corresponse with, it should be a parameter, i guess.
Can you explain the following
command.Parameters.Add("@AgentNaam", OleDb.OleDbType.VarChar, 20, "AgentNaam")
Did you not read the documentation?
@AgentNaam is your parameter name (think of is as a variable name). When you use @AgentNaam in your SQL you get the value of the parameter. Just like you would a variable in VB.NET
The last argument is the value you want the parameter to have. Putting in "AgentNaam" will mean the parameter will always have that value. It is like writing the following in VB.NET:
Dim agentNaam As String = "AgentNaam"
keninfo wrote: I need to update a table with new values, which are inserted via textfields.
I don't get the way from textfield inserting till the actual update
Where you currently have the literal string values (That's the last argument of the Add method) you should change that to the appropriate values that have come from the text boxes.
|
|
|
|
|
Thanks for the reply,
Ok, can i use it like this?
command.Parameters.Add("@AgentNaam", OleDb.OleDbType.VarChar, 20, txtAgentNummer.Text)
If so, why is my table not updated after?
parameter.SourceVersion = DataRowVersion.Original
daAgent.UpdateCommand = command
daAgent.Update(dsAgent)
|
|
|
|