Search:
Type: Posts; User: Reroto
Search:
Search took 0.03 seconds.
-
November 28th, 2013, 06:41 PM
Yeah, that's for find the index of the button clicked, anyway i have done a better way without using a part of the text
results[this.Controls.OfType<Button>().ToList().IndexOf((sender as...
-
November 28th, 2013, 05:44 PM
A bit long but works
options[x].Click += delegate(object sender, EventArgs e) { results[int.Parse(this.Controls.OfType<Button>().Where(s => s.Text == (sender as...
-
November 24th, 2013, 05:51 PM
Ok send or post it i'll try to help you
-
November 24th, 2013, 03:58 PM
Convert the secure function to encrypt a list of byte[] instead of only one array and i can help you in code
(ps: the max value of a byte array is the Int32.MaxValue)
-
November 24th, 2013, 03:58 PM
More info? Anyway... list.Distinct()
-
November 24th, 2013, 03:06 PM
Probably the first array was of a different encoding, try using ASCII or Default
-
November 9th, 2013, 10:07 PM
Ultimate edition xD
public static void Main()
{
int[,] lol = new int[3, 7]{
{1, 2, 3, 4, 5, 6, 7},
{8, 9, 10, 9, 8, 7, 11},
...
-
November 9th, 2013, 05:19 PM
That's it
static int[] Min2d(int[,] a)
{
int rows = a.GetLength(0);
int columns = a.GetLength(1);
int[] min = new int[columns];
for...
-
November 9th, 2013, 03:48 PM
Why? It's not c++, it's c#, an advanced object-oriented language.
Anyway...
static int[] Min2d(int[,] a)
{
int[] min = new int[a.GetLength(0)];
for (int i =...
-
November 9th, 2013, 07:13 AM
//.....
int[,] lol = new int[3, 7]{
{1, 2, 3, 4, 5, 6, 7},
{8, 9, 10, 9, 8, 7, 11},
{5, 4, 4, 2, 1, 0, 6}};
int[] min = Min2d(lol);
...
-
November 7th, 2013, 07:31 AM
public struct Tile
{
private const int MAXLAYERS = 4;
private const int MAXDATA = 5;
private int tileAttribute;
private int[] tileLayer;
...
-
October 31st, 2013, 12:45 PM
Maybe i have a better solution
public static int test(int thisval)
{
Thread.Sleep(1000 * thisval);
return thisval;
}
-
October 27th, 2013, 04:57 AM
Try in this way
foreach (ErrorButton er in this.Controls.OfType<ErrorButton>())
{
er.Reset();
}
-
October 23rd, 2013, 10:49 AM
Can you explain better(with c# examples) how you would like to use them?
Anyway for the second struct this work?
[StructLayout(LayoutKind.Sequential)]
public struct IMGSTRUCT
...
-
October 10th, 2013, 05:01 PM
This works fine for me
void comboBox1_DrawItem(object sender, DrawItemEventArgs e)
{
if (e.Index < 0) return;
if...
-
October 8th, 2013, 03:02 PM
Try this
do
{
Console.Write("Enter a lower case letter: ");
c = Console.ReadLine().ToCharArray()[0];
if (Char.IsLower(c) &&...
|
Click Here to Expand Forum to Full Width
|