|
dan neely wrote: do you mean convert the crypttext into something that looks like ABLKSJFHUIWKLDHALSDHQWE...
Yes, and your suggestion should work fine for what I want to do...
Thank you.
|
|
|
|
|
Or you could try UUEncoding, which isnt exactly what you have requested, but at least you wont be reinventing the wheel.
|
|
|
|
|
Although not strictly letters, maybe a simple hex representation is sufficient,
i.e. replace each encrypted byte by two characters in [0-9A-Z].
byte.ToString("X2") would do that for you.
And byte.Parse(string, NumberFormat.HexNumber) would undo it.
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
|
|
|
|
|
If acceptable that'd be a better solution than mine, but I suspect the all uppercase letter requirement is due to interfacing with a crufty legacy system not new development that is potentially changeable.
--
If you view money as inherently evil, I view it as my duty to assist in making you more virtuous.
|
|
|
|
|
I thought the best avilable way to ensure security for my software is to access the hard disk serial number of the end user. I know this was have alot of problems, but I have no better. I need to know the easest way to acheive this effectivly, and if there is more effective way?
Yasser Abu Elmakarem
|
|
|
|
|
The "best" way for you may not be the best way for your customer.
I for one will not buy a license that is fixed to a specific piece of hardware, since
as soon as my hardware needs a replacement, my software needs a new license resulting
in unnecessary hassle and cost.
I like the concept of dongles, i.e. a small USB device that holds the key for the
licensed app or apps (Google for "software protection", Wibu, Safenet, and others).
As a customer I can now move may app+key to whatever machine a like, but I can run it
only on the machine that has the dongle.
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
|
|
|
|
|
I want to open my executable file on a system has no (dot net framework) istalled on it. Should I install dot net framework every system I copy on? Please I need a solution
Yasser Abu Elmakarm
|
|
|
|
|
There are some very expensive applications which will "bake" the .Net runtime into your executable so they will run without .Net being installed. However, it is fairly trivial to include the .Net redistributable as a dependency in an installer so that it will be installed if it is not present.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Can you help me about textbox control?
I am a student from Macedonia who is new in c#.
The problem is
I am enter number 54324 in textbox control.
when I press button "count"
I want label.text to get this value from textbox= 5+4+3+2+4
I need this help immediatly so if you can, help me
Thank you!
kpp
|
|
|
|
|
You will need to extract every character from the textbox, convert it to int and add to a variable which will be counting sum of the digits. You can access individual characters like this: mystring[i]. Use Int.Tryparse to convert it to integer.
|
|
|
|
|
I will help yopu a bit, but its homework and you need to do it yourself.
convert to string
split string
convert each character to number
add numbers
you may want to use a loop.
|
|
|
|
|
Thank you for your support & help, I am new in c# and, I already solve this problem, sitting 23 hours in front of my machine!
I use function substring!
I would be like this:
for(i=0;i<textbox.length;i++)
{
sum="sum" +="" textbox.substring(i,1);
}
thank="" you="" again,="" but="" my="" application="" still="" is="" not="" finished.
can="" i="" ask="" for="" help,="" next="" time,="" when="" needed?
sorry="" bad="" english="" in="" some="" parts="" the="" text!
ciao...="" now="" maybe
=""
<div="" class="ForumSig">kpp
|
|
|
|
|
i have a datagrid and its column name is Session.
I have a table in that 3 fields are there.They are Morning ,Evening,and Afternoon.They are checkboxes.These fields are saved as YES/NO in database.I want to retrieve data from database to datagrid in a single cell like Morning ,Evening,Afternoon .........I want to retrieve ColumnHeader in table instead of checkbox
if u need more clarification pls ask me?
|
|
|
|
|
|
Just wondering if it is possible to set the following using .Net 1.1
- Registry Auditing
- Registry Permissioning
- NTFS Auditing
Any sample code will be of real help, thanks!
h.
before c# there was darkness
|
|
|
|
|
In Net 2.0 you can use System.Security.AccessControl namespace for various options but in .Net 1.1 the only option is using P/Invoke
|
|
|
|
|
Hy
I have a ListBox and I want to make a selection of a item but I don't want to see the selected item with an fill rectangle, I want like in C#. If I press "dad" in C# Visual Studio 2005 I see a listbox with a selection and the rectangle is no fill.
thx
|
|
|
|
|
uh...I think this is what you want
use the selecteditem event or similar to unselect your selection
|
|
|
|
|
Dear sir:
I have written one test page for up-loading the large file.
In this page:
上传
In my HttpModule, I call the function
HttpWorkerRequest.GetPreloadedEntityBody for testing.
But I cann't get the correct pointer. Null is returned from this function.
I donn't know the reason, Do you know this reason?
Thanks!:
|
|
|
|
|
Hi,
I have designed some programs on SWT and Swing using Java. There are many similar features that both c# and java have. When programming with Java I was using just one window(form) and than embed a necessary panel to it. Panels are designed seperately and named differently. For example one panel named SavePanel.java is used to save an entry(think about an address book). When the saving process is done, other panel named SearchPanel.java is called to the window. So when the user presses a button, a panel that is related to that process is called to the form.
In C# I can't find any feature like this. When I create a panel, I cannot add buttons or textboxes to them. The visual editor cannot show them.
I don't want to design one form for saving and one form for searching. Just one form is enough. According to the process that user wants some part of the form will be change. And changing part have to be designed easily using visual editor.
If any of you made something like this before, or any idea similar to this problem, please help me. Any articles, documents or related websites will be helpful.
Thanks
|
|
|
|
|
You have to add and remove UserControls to your main Form. A UserControl for Save and one for Search. Depending on what to do, add either of them to the Form.
UserControls can be designed with the Designer (Editor).
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Hi Friends,
I need to create a service(windows) in c#.
The service has to monitor the database,(a purticular Port)
If any changes are made in Database(insert,delete etc), it has to show a
popup message (like Record inserted).
How can I approach for this.If possible send the required code.
Regards
Lakshmi
Lakshmi
|
|
|
|
|
|
I need some code to prevent my application from running if it is already running. c# visual studio 2005
|
|
|
|
|
Google for single-instance application
|
|
|
|