|
Hi I’m going to decrypt a string that my supplier is going to send to my aspx-page.
I’ve got the key to use when I decrypt using Rijndaels algorithm.
I think I should use the System.Security.Cryptography.RijndaelManaged class but have problem setting the Key property.
Here Is my code:<br />
<br />
RijndaelManaged myRijndael = new RijndaelManaged();<br />
byte[] key;<br />
char[] base64CharArray = new char[16];<br />
base64CharArray = "1234567890123456".ToCharArray();
<br />
string base64String = new string(base64CharArray);<br />
<br />
key = Convert.FromBase64String(base64String);
I got the following runtime error:
An unhandled exception of type 'System.FormatException' occurred in CryptoDev.exe
Additional information: Invalid character in a Base-64 string.
_____________________________
...and justice for all
APe
|
|
|
|
|
hi
now am going to have a traffic network map from autoCad , its now well understood as lines,circles,curves (shapes and only shapes) , i want to identify the street , intersection , square so that i may apply my calculations on it due to entered data on those elements ( street,square,intersection ) .
the problem is turning lines and curves into traffic elements .
i had an idea too , am not going to enter the network from autoCad but i will build my own drawing tool in the program so elements identification is solved in that way .
want your opinions .
thanks alot .
Amr Abbas
|
|
|
|
|
I think you need to look at GIS (Geographical Information System) software rather than AutoCAD. AutoCAD is really not designed to handle geographic information (even although some people insist on using it for the purpose).
I would recommend that you look at products by ESRI, MapInfo, or if you have an especially large project, Smallworld (Now part of GENS - General Electric Network Solutions)
Do you want to know more?
WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums
|
|
|
|
|
Hello,
I have looked at the documentations of the NSpring Framework from Jeff Varszegi and the log4net framework. Can anyobdy explain me the differences between these two frameworks?
thx
mathon
|
|
|
|
|
How can I load records column-wise instead of row wise in a datagrid from a database or an object.
|
|
|
|
|
Hi
I want to know how can I write a Grid just like Microsoft winform DataGrid
with DataSource and DataMember support. I want to know how binding and painting occures.
thanks
Farshid
|
|
|
|
|
There are actually several articles here in CP that cover this topic specifically. I would suggest here[^].
- Nick Parker My Blog | My Articles
|
|
|
|
|
Very possible, but very difficult.
Its a fun thing to do However, for a company its not worth the effort. U can save some money (time = money) if you buy a finished grid solution.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
Is there is any method to join between the progressbar value and any object running like web browser,
Or i must make it manually in the webBrowser.Navigating event
and ifso what is this method
ByMindOnlyYouCanDoIt
|
|
|
|
|
hi everybody ...
is there any way to assign tooltips for combobox items when the it is expanded (dropped down)
thanx
Mr.Cooper
Mr.Cooper
|
|
|
|
|
hi
please tell me how to transfer the data from .dat file to sql database table by implementing dts in c#.net
Thanking you,
Thiru
|
|
|
|
|
|
is there a simple way to set up docking windows in an mdi app? ive looked at the few articles we have here but all of them are different and none really contain step-by-step direction on creating your own. id prefer not to use someone elses code and instead write something on my own is there a simple way to set up docking windows or not and can someone point me to a step by step article on creating them?
|
|
|
|
|
Hi,
I use ProgressBar and Label for Copy files from a directory to different directory to display status of progress. ProgressBar to display progress and Label to display current file number of progress.
But while procedure Copy running then Lable don't update it's values, when procedure Copy finish only then Lable update last it's value.
I used Refresh method of Label but procedure Copy terminated when I move main Windown.
My code:
private void Copy_File()
{
string SourceDir = "C:\\Source", DesDir = "C:\\Destination";
string[] sFileArr = System.IO.Directory.GetFiles(SourceDir);
string sSourceFile, sDesFile;
if (sFileArr.Length>0)
{
this.progressBar.Minimum = 0;
this.progressBar.Maximum = sFileArr.Length;
for(long iFile = 0; iFile < sFileArr.Length; iFile++)
{
sSourceFile = sFileArr[iFile];
sDesFile = DesDir + "\\" + System.IO.Path.GetFileName(sSourceFile);
this.Lable.Text = iFile.ToString();
this.progressBar.Value = iFile;
this.Lable.Refesh();
System.IO.File.Copy(sSourceFile, sDesFile, true);
}
}
}
Thanks,
|
|
|
|
|
Take a look at Application.DoEvents()[^].
You can also try doing what you are doing on a different thread and use Control.Invoke() to call back to the UI thread to do updates.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
I want to get system data and time.Which namespace should I reference? Any example?
Thanks!
|
|
|
|
|
Have you even tried simple intellisense search?
Very simple: DateTime. Specifically System.DateTime. For detailed information visit: MSDN[^]
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
Yes,I should have.
Thanks!
momer
|
|
|
|
|
No problem.
I little tip... Install MSDN library on your computer. Its virtually all the information you need at your finger tips. If you can't find it www.google.com is next
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
hi all
can anyone recommand a good C# design patten book?
thx
koo9
|
|
|
|
|
|
how do I create a label (not the text kind, but the kind that is used via "goto") that can be referenced from a different form than the active form.
thanks,
Stephen
|
|
|
|
|
Never use goto. Bad practice. You can find a better way of doing the same thing.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
try a function
and try a dlegate to point to it in the ather form then write in this function the code u want to be excecuted after referencing
ByMindOnlyYouCanDoIt
|
|
|
|
|
I am trying to create a basic image viewer. I've looked all around the web and can't find any code to port to C# for image panning. What is the best way to implement image panning in C#? Would I have to do something like draw/remove x pixels depending on mouse movement or is there already a way to do it? Also, if you have a url with code in another language for image panning, please supply it Thanks.
|
|
|
|