|
simplicitylabs wrote: You mean, time travel isn't really possible??? Who's going to explain that to my
Have a look at this link[^]. The article is about Retrieving Non-Volatile USB Serial Number.
|
|
|
|
|
I go for the deadpan joke and it is the two follow ups the get the votes. Nice!
I suppose that type of joke doesn't work well on a forum.
|
|
|
|
|
Have a pair of 3s. 5 for humor averaged with a 1 for begging.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|
|
|
My apologies for the begging. A desperate man will do most anything to accomplish his mission.
It did, however, fuel a rather humorous exchange.
How's this: I have seen most of what I am looking for out and about, but not everything I need. If there is an example out there somewhere of using a USB thumb drive for a software key, I would appreciate the pointer.
Thanks.
|
|
|
|
|
I was teasing Colin for begging to get a 5 vote, not you.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|
|
|
|
I have used datagrid control,but I don't want others copy my data from datagrid cells,and I want these cells look like the label control, user only can see ,but can't copy! sorry for my poor english
|
|
|
|
|
|
hello!
hope you all are doing fine! i was just wondering if there is any way to get the process id of an application, from within an application! like i want to know what PID is assigned to the application when it is executed! if the application is executed multiple times, each instance displays its own PID! any solution for that??
Thanx in advance! !
Adeel
--
|
|
|
|
|
System.Diagnostics.Process.GetCurrentProcess().Id will return to you the PID of your application instance
|
|
|
|
|
Hi,
I have 2 forms. In the first form I declare a array :
public string[] Name_Menues = new string[10];
Name_Menues[1] = "Mareya" ;
Name_Menues[2] = "Mareya1";
Name_Menues[3] = "Mareya2";
Now I wana to show the value of this array in form2
messagebox.show(Name_Menues[1]);
But when I run it there is some problem and i think i use a wrong code.
please say what should I do??????
|
|
|
|
|
Alireza3839 wrote: But when I run it there is some problem
What exactly is "some problem"? It's hard to say what's wrong without any kind of error message.
If the array was not available in that scope, the code would not even compile, so you would not be able to run it at all. What are you doing to make the array available in the second form? Are you passing the array along in any way, or are you just creating another array with the same name, hoping that it would become the same array?
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: or are you just creating another array with the same name, hoping that it would become the same array?
You are so used to this, ain't you
|
|
|
|
|
Well, it says public doesn't it?
|
|
|
|
|
I have notice that the default members and properties in resource.resx file is internal in VS2005 by microsoft and there isn't any property that allows a resource file to be declared as public uncless declared explicitly. Is there anyway to set/change the behaviour of the resource file from internal to public class Resource1 {} and all it's members to be public as well whenever they are added. I couldn't figure it out can somebody help me in it.
Thanks
|
|
|
|
|
Hi there!
I want to save an encrypted password in a database in order to authenticate the users of my application (on C# 2.0).
So, I encrypted the password provided by the user, as following:
UnicodeEncoding unicodeEncoding = new UnicodeEncoding();<br />
byte[] passwordArray = unicodeEncoding.GetBytes(password);<br />
SHA1Managed sha1Managed = new SHA1Managed();<br />
byte[] encryptedPassword = sha1Managed.ComputeHash(passwordArray);
Then, I saved the password in 'varbinary(160)' field in a table of database (SQL Server 2005):
DataSet.Users.AddUsersRow(userName, encryptedPassword);<br />
UsersTableAdapter userTableAdapter = new UsersTableAdapter();<br />
userTableAdapter.Update(DataSet.Users);
How can I recover this encrypted password in order to compare it with a new encrypted password provided by the user?
This code:
byte[] passwordArray = row["Password"];
doesn't compile because "it can't convert object to byte[]".
Thank you, in advance.
--
Adrián Córdoba
|
|
|
|
|
Try casting it first:
byte[] passwordArray = (byte[])row["Password"];
|
|
|
|
|
Thank you very, very much!
--
Adrián Córdoba
|
|
|
|
|
In VS 2003 I used SBCollectionGenerator to auto-generate strongly-typed collections from .xml files. In VS 2005 the base classes and some interfaces are no longer accessible. Is there a work around or a new tool for VS 2005?
Thanks for help
|
|
|
|
|
|
hi how can i disable alt+f4 key please give me some clue if possible please send some sample
code in c#.
|
|
|
|
|
You might be able to with a system wide keyboard hook. Also, doesn't that close a program ? The onclosing event might be useful, you could write code to refuse to close, unless some condition is met ( such as, ALT is not held down )
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 )
|
|
|
|
|