I want to read the content of the input textbox, and put it in an bytearray.
But i cant find an solution

Maby someone can help.
Thanxs in advance,
This post has been edited by modi123_1: 28 January 2013 - 09:34 AM




Posted 28 January 2013 - 09:27 AM

This post has been edited by modi123_1: 28 January 2013 - 09:34 AM
Posted 28 January 2013 - 09:43 AM
Posted 28 January 2013 - 09:44 AM
Curtis Rutland, on 09 July 2012 - 01:38 PM, said:
Newbie/Rookie said:
// All of this different triggering mechinisms call the same single [il]SavePreferences()[/il] method
btnSave(object sender, eventargs e)
{
SavePreferences(preferencesPath);
}
<KeyboardShortcut control+s bound to save>
<Touchscreen guesture swiping from lowerleft to upperright bound to save>
SaveMenuItem(object sender, eventargs e)
{
SavePreferences(@"C:\prefs\test.txt");
}
SaveContextMenu(object sender, eventargs e)
{
SavePreferences();// No parameter method overload
}
FormMain_Closing(object sender, eventargs e)
{
if (IsDirty) SavePreferences();
}
// Try #1 - May 1, 0900hrs
// code
// code
// code
// Try #2 - May 2, 1700hrs Okay, plan B. What if I do it *this* way
// code
// code
// code
// Try #14 - May 3, 0500hrs after 5 cans of RedBull. Maybe I should get some sleep. I can't think of anything else but this last idea
code
code
code
Posted 28 January 2013 - 09:55 AM
Posted 28 January 2013 - 10:43 AM
Posted 28 January 2013 - 10:49 AM
Posted 28 January 2013 - 12:30 PM
Newbie/Rookie said:
// All of this different triggering mechinisms call the same single [il]SavePreferences()[/il] method
btnSave(object sender, eventargs e)
{
SavePreferences(preferencesPath);
}
<KeyboardShortcut control+s bound to save>
<Touchscreen guesture swiping from lowerleft to upperright bound to save>
SaveMenuItem(object sender, eventargs e)
{
SavePreferences(@"C:\prefs\test.txt");
}
SaveContextMenu(object sender, eventargs e)
{
SavePreferences();// No parameter method overload
}
FormMain_Closing(object sender, eventargs e)
{
if (IsDirty) SavePreferences();
}
// Try #1 - May 1, 0900hrs
// code
// code
// code
// Try #2 - May 2, 1700hrs Okay, plan B. What if I do it *this* way
// code
// code
// code
// Try #14 - May 3, 0500hrs after 5 cans of RedBull. Maybe I should get some sleep. I can't think of anything else but this last idea
code
code
code
Posted 28 January 2013 - 02:52 PM
Posted 29 January 2013 - 04:32 PM
private void btn_Click(object sender, EventArgs e)
{
byte[] data = File.ReadAllBytes("a.txt");
int[] totals = new int[256];
foreach (char b in data)
{
++totals[b];
}
}
Posted 29 January 2013 - 05:52 PM
Posted 29 January 2013 - 09:47 PM
DamianMRLY, on 28 January 2013 - 10:43 AM, said:
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
