|
|
now you are getting the hang of it
Omit Needless Words - Strunk, William, Jr.
Vista? Photoshop Preview Handler here
|
|
|
|
|
Nice for me, what about a new one that differs from those in your blog, in the lounge ?
|
|
|
|
|
|
Quartz. wrote: WW-DO-TRIC-O-MIN-DO-CO
A series ???, or just explanation ?
|
|
|
|
|
you have to tell me what is it
|
|
|
|
|
www.trickofmind.com really nice one, I am glad I did it.
|
|
|
|
|
Quartz... wrote: need any explaination !
I do.
|
|
|
|
|
1 => One
11 => One 1
21 => Two 1
1211 => One 2 One 1
EACH ONE LITEREALLY READS THE PREV. ONE
the next will be
111221 One 1 One 2 Two 1
Omit Needless Words - Strunk, William, Jr.
Vista? Photoshop Preview Handler here
|
|
|
|
|
nice ony really, mayt I ask you how did you think about that.
|
|
|
|
|
By reading the question a loud, number of times,
Omit Needless Words - Strunk, William, Jr.
Vista? Photoshop Preview Handler here
|
|
|
|
|
Very very nice really, do you have a puzzle now ?
|
|
|
|
|
i will post it in the lounge
Omit Needless Words - Strunk, William, Jr.
Vista? Photoshop Preview Handler here
|
|
|
|
|
What makes you come here ???
Thanks for coming . Leave a note
keep smiling
"People do not know they will live their lives over. Traders do not know they will make the same bargains again and again. Politicians do not know that they will shout from the same lectern an infinite number of times in the cycle of time. Parents treasure the first laugh from their child as if they will not hear it again. Lovers make love the first time undress shyly, show surprise at the supple thigh, the fragile nipple. How would they know that each secret glimpse, each touch, will be repeated again and again, exactly as before."
-Alan lightman
|
|
|
|
|
No magic nor mystery Just check for the RSS for blogs entries[^] which lets one inform about any recent posts in CP blogs
|
|
|
|
|
Welcome
DARE NOT LEAVE THE PAGE WITHOUT WRITING A NOTE
OTHERWISE ALL BAD THINGS WILL COME TO YOU IN THE NEXT 7 DAYS
AS THEY SAY IN THE "TRUE" CHAIN MAILS
"Not everything that counts can be counted..."
-Albert Einstein
-- modified at 21:33 Tuesday 25th October, 2005
|
|
|
|
|
Really got scared thats why leaving this message for you.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Reply again ,
The founder of the Code project is going to BAN all the users, who goes to a profile page but not reply to the comments
if you have heard of yahoo message scam you will know what i mean
|
|
|
|
|
Quartz... wrote: if you have heard of yahoo message scam you will know what i mean
Ya i have... thats why again doing it..
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi
i want to know "static public string GetStringRegistryValue(string key, string defaultValue)
{
RegistryKey rkCompany;
RegistryKey rkApplication;
rkCompany = Registry.CurrentUser.OpenSubKey(SOFTWARE_KEY, false).OpenSubKey(COMPANY_NAME, false);
if( rkCompany != null )
{
rkApplication = rkCompany.OpenSubKey(APPLICATION_NAME, true);
if( rkApplication != null )
{
foreach(string sKey in rkApplication.GetValueNames())
{
if( sKey == key )
{
return (string)rkApplication.GetValue(sKey);
}
}
}
}
return defaultValue;
}
will u explain what is rkcompany and rkapplication. i am new to dotnet.i have understood each and every piece of the program except this.
just enjoy while working with the new thougts and fresh ideas
|
|
|
|
|
Hey korupally
rkCompany and rkApplication are two local registry key variables which is defined by me.
And which takes value from the TWO CONTANTS COMPANY_NAME and APPLICATION_NAME
If you see the global constants of the page code you will see i have defined values for these two constants
So the reason for using these registry keys is to get and set the registry value for the product.
let me know if that answers your question
|
|
|
|
|
This is the message earlier posted by you. Please Scroll below for my reply.
Hey korupally
rkCompany and rkApplication are two local registry key variables which is defined by me.
And which takes value from the TWO CONTANTS COMPANY_NAME and APPLICATION_NAME
If you see the global constants of the page code you will see i have defined values for these two constants
So the reason for using these registry keys is to get and set the registry value for the product.
let me know if that answers your question
Hello sir,
First of all, i am very thankful to you for the reply given by you.My name is venkatreddy. Presently i am working in a very small company. I know dotnet for the last 6 months. I know all the basics but this program is a little complex for me. I have understood every part of the program except these getregistrykey value and setregistrykey value. I have understood the explaination given by you. But i have some more doubts please answer them. i am eagerly waiting for your reply sir.
My doubts are:
private void frmMain_Load(object sender, System.EventArgs e)
{
strCulture = RegistryAccess.GetStringRegistryValue(@"Language","en-US");
Here your getting the value of strCulture from the registry for the default language english[I think so]. Here i think language is a key word understand by the registry and 'en-US' is the default language. I think that here we are getting the registry value for the particular language which we want to use in our application [like french,german etc.,] i think first we have to get that particular registry value from the registry and later we will use it in our application. To do this why u have declared the two global constants and why u have assigned the two values "Code project" and "Globalization sample".
[private const string COMPANY_NAME = "CODE PROJECT";
private const string APPLICATION_NAME = "GLOBALIZATION SAMPLE";]
and what is this 'Software Key'. Sir, Can u explain a little more about this please sir.
Sir, i am sincerely requesting you to answer my doubt.Please alot a very few minutes of your precious time.
Here i am eagerly waiting for your reply.
Thanking you sir.
just enjoy while working with the new thougts and fresh ideas
|
|
|
|
|
korupally wrote: private void frmMain_Load(object sender, System.EventArgs e)
{
strCulture = RegistryAccess.GetStringRegistryValue(@"Language","en-US");
This particular function is caled to find out whether the user has used earlier the application and set a default langaage for the application
RegistryAccess.GetStringRegistryValue(@"Language","en-US");
It will read the value from [HKEY_CURRENT_USER\Software\CODE PROJECT\GLOBALIZATION SAMPLE] in the registry run regedit to find this value
If the value [Language] is already there it wil take the value from there
OR
WHEN THE APPLICATION IS RUN THE FIRST TIME AND THERE IS NO VALUE FOR Laaguage in that registry key the last parameter [ "en-US"] in the function set
the value of [Language] to be "en-US" and create the key HKEY_CURRENT_USER\Software\CODE PROJECT\GLOBALIZATION SAMPLE
korupally wrote: Here your getting the value of strCulture from the registry for the default language english[I think so]. Here i think language is a key word understand by the registry and 'en-US' is the default language. I think that here we are getting the registry value for the particular language which we want to use in our application [like french,german etc.,] i think first we have to get that particular registry value from the registry and later we will use it in our application. To do this why u have declared the two global constants and why u have assigned the two values "Code project" and "Globalization sample".
[private const string COMPANY_NAME = "CODE PROJECT";
private const string APPLICATION_NAME = "GLOBALIZATION SAMPLE";]
Now you undersand we are saving the value of the DEFAULT LANGUAGE IN REGISTRY
where should we save it in a user created Registry key so that user created registry key is
HKEY_CURRENT_USER\Software\COMPANY_NAME \ APPLICATION_NAME
whose value comes to
HKEY_CURRENT_USER\Software\CODE PROJECT\GLOBALIZATION SAMPLE
if your company name is verizon inc and your product name in Invoice applicatin you can initialize them as verizon and verizoninvoice
and the Key created in registry will be
HKEY_CURRENT_USER\Software\Verizon\Verizon Invoice
HOPE this helps
|
|
|
|