User Profile
Collapse
-
i have no idea on how to use a streamwriter -
i found out something. it actually doesn't hang. it just takes a long time to process.
any way to shorten the process?Leave a comment:
-
it still hangs. i tried lowering the value to 200,000 but it doesn't show the "ArgumentOutOfR angeException" error messageLeave a comment:
-
there is no error message. the program just hangs. you need to open up the task manager and end task it to close it.Leave a comment:
-
no. i am able to convert long strings but not extremely long. the string that i want to convert contains about 2millions charactersLeave a comment:
-
checking of hextoascii code
Hi, i would like to know whether this code can be improved. because each time i convert extremely long strings, my exe hangs (does not respond).
Code:private string HexString2Ascii(string HexString) { StringBuilder Sb = new StringBuilder(); for (int i = 0; i <= hexTextBox.Text.Length - 2; i += 2) { Sb.Append(Convert.ToString(Convert.ToChar(Int32.Parse(HexString.Substring(i,
-
my program will hang when it processes that much of a string. so i'm thinking of dividing the whole string up and processing.
then at the end of the day, combine all the processed strings....Leave a comment:
-
as i'll be working with very long strings, my program can't process so much characters. so i need to divide the string into segments to decode the different segments. then after that combine all the segments together. i'm working with a hex to ascii converter btw.
private string HexString2Ascii (string HexString)
{
StringBuilder Sb = new StringBuilder() ;
for (int i = 0; i <= hexTextBox.Text .Length...Leave a comment:
-
dividing stringbuilder and appending together
How do i divide the length of the string by 4?
and then find how many characters each string builder should handle.
and after that append all the results together. -
-
i managed to solve the problem. had to turn off word wrap and put both scrollbars.
now there's another problem, i can't convert the stuff i pasted. program hangs as well. i'm doing a hex to ascii converter.
i turned off word wrap and put both scrollbars as well. but it isn't working. could it be my code?
private string HexString2Ascii (string HexString)
{
StringBuilder...Leave a comment:
-
it's actually not the code. it's when i paste my extremely long string the program doesn't respond. hangs in a way.
no commands are executed yet. just the pasting of an extremely long string of numbers. is it because the textbox is unable to read that much of chars?Leave a comment:
-
-
-
prevent program from hanging
i need to input a huge amount of text to decode for my hex to ascii decoder. the exe hangs whenever i paste the texts in to the textbox.
i've set my textbox max length to max already.
could something be done to prevent this from happening? -
ah thanks. i didn't know i had to set the keypress for the event.
thanks tlhintoq!Leave a comment:
-
[code=cpp]
private void textBox1_KeyPre ss(object sender, KeyPressEventAr gs e)
{
string bob = e.KeyChar.ToStr ing();// Put a breakpoint here to see what each KeyChar is.
if (e.KeyChar == 1)
{
((TextBox)sende r).SelectAll();
e.Handled = true;
}
}
[/code]
this doesn't work. do i need to change textBox1 to my textbox's...Leave a comment:
-
-
-
Ctrl + A to select all text in textbox
how do i make ctrl+A to work?
i have a textbox with text and i want to ctrl A it to select all of the text. instead of highlighting the whole textbox with my mouse.
TIA
No activity results to display
Show More
Leave a comment: