|
Ah... guessing what it is people are asking is becoming an art in and of itself....
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Programming may be an art form, contributing to CodeProject is one for sure
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
As much as your stack and heap supports.
Regards,
Valan
|
|
|
|
|
Hello,
I am trying to handle the LButtonUp message of form title bar.
The message is getting invoked only for double Click on title bar.
How can i handle the LButtonUp event on Form title bar??
Thanks.
Gajesh
|
|
|
|
|
Hi,
if nothing else works for you, you can always override the WndProc method;
here is an example from my CodeRescue article for getting hotkey messages:
protected override void WndProc(ref Message m) {
if(m.Msg==0x0312) {
int lParam=(int)m.LParam;
if(lParam==0x00710002) RescueCode();
}
base.WndProc(ref m);
}
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hello
VS 2005
I am creating a setup project using the deployment project.
I have added a user interface to the setup. Right click setup project | View | User interface.
The problem I am having is I need to have dialog with 2 radio buttons i.e.(A and B). If the user selects A they will enter the details of something (will need 2 text boxes). If they select B then they will need 4 text boxes.
BTW, The user interface dialog boxes are not very flexible as you cannot drag and drop you own controls on to it.
Is there a way to have 2 radio button and hide or make visible the text boxes that the user will enter into.
Many thanks for any help or suggestions,
Steve
|
|
|
|
|
Deployment is done with an msi, and no, you can't just build your own dialog forms for it.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Hello,
I thought maybe you could point me in the right direction of using the dialog boxes that come with the setup editor.
Based on the conditions of using 2 radio buttons, it will display either 2 text boxes or 4.
Thanks for any more suggestions,
Steve
|
|
|
|
|
|
Hi I am working on a windows Application. I want to store the Passwords in SQL server 2005 in encrypted format. How to do this?
And Again how to validate the credentials with an user input
|
|
|
|
|
If you do not need to retrieve the password that was stored, you can use a hash version of it. When a user enters his username and password in your application, you would hash the password and compare it to the hash that you have in the database to see if it matches.
If you need to have a way to retrieve the password, you cannot use hash, you need to apply an encryption algorithm to be able to decryt it later.
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Thanks for reply
Can you just send me a sample of hashing.![Rose | [Rose]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
You have two types of hashes you can do, MD5 or SHA1. The following method gives you a SHA1 hash string of the string it receives.
public string CreateSHA1PasswordHash(string inputString)
{
SHA1 sha1 = new SHA1CryptoServiceProvider();
byte[] buffer = Encoding.UTF8.GetBytes(inputString);
byte[] cipher = sha1.ComputeHash(buffer);
StringBuilder sb = new StringBuilder(cipher.Length * 2);
for (int i=0; i<cipher.Length; i++)
sb.Append(cipher[i].ToString("x2"));
return sb.ToString();
}
Hope this helps.
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Typically, you'd use the Cryptography namespace, pick an algorithm, salt your password and pass a hash into SQL Server. Then you'd pass the user input, also salted and hashed, to a stored proc that returns if the username/password combination is valid
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
|
Hello...
Are there any possibilities to get all available domains in network ?
(Just like the login windows. The user can choose domain from DropDownList)
Thanks...
|
|
|
|
|
|
Hi,
I have a problem installing my windows service on a windows 2003 Server, user is a administrator.
I have no problem installing the same service under Windows XP.
I get the following error message:
An exception occurred while trying to find the installers in the c:\program files\archivetool\archivetool.exe assembly.
System.Reflection.ReflectionTypeLoadException: One or more of the types in the assembly unable to load.
Aborting installation for c:\program files\archivetool\archivetool.exe.
Rolling back assembly 'c:\program files\archivetool\archivetool.exe'.
Affected parameters are:
assemblypath = c:\program files\archivetool\archivetool.exe
logfile = c:\program files\archivetool\archivetool.InstallLog
Searching internet forum I get the idea that something with the .net Framework 1.1 ( which is the framework I need to run my service) is wrong. But I checked that the newest version of the .net Framework 1.1 for windows 2003 server is installed.
Does any of you have an idea? Iam really stuck.
thanks.
Leia2011
|
|
|
|
|
Hi, check out this page: http://blogs.msdn.com/suzcook/archive/2003/08/11/57236.aspx[^]. It shows how to get more information about the exception and hopefully you will find out why this exception is being thrown.
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
hello Everybody,
As their is an tag in html MARKQUEE which moves.
Same can we do in c# windows application.
Regards,
rahul saini
|
|
|
|
|
if u give me some code i will help u?
Nikesh Kr. Yadav
CSS Infotech
Sec- 31
Gurgaon,
Haryana(India)
|
|
|
|
|
Hello Nikesh,
Actually I m new with c#.
I had never use this.
I will be highly thankful if you will help me.
Regards,
rahul saini
|
|
|
|
|
what do u want to do with marquee in C# Explain something more
Nikesh Kr. Yadav
Programing is easy in .Net
|
|
|
|
|
Thanks,
Actually i am working on an stock management system.
I want to show those products in markquee whose quantity is less then 50.
Regards,
rahul saini
|
|
|
|
|
I m just giving u hints
1. First of All Applly Query to Take out the records.
2.Then fill them in a particulary lable by using
lable1.text="xyz";
for(index=0; index<=4000; index++)<br />
{<br />
label1.Location.X = index;
lable1.Location.Y = index;
}
Do this for each product
Nikesh Kr. Yadav
Programing is easy in .Net
|
|
|
|