Hi i want a modeless dialog box to show when my program is running but the box keeps "not responding" and crashes the program.No problem with a modal box.Whats up?
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace Project1
{
class Program : CDarkGDK
{
static void Main(string[] args)
{
InitDarkGDK("30820120300d06092a864886f70d01010105000382010d00308201080282010100eb7537ecc31458e7122942ea4f9a48e7532544906ff9974f3d67df78480a2a104687ca2dfdddcd8925f7f489d32cf9d4f2c5d0def0bb6ef939ee6c04dfd144ffaba37670b27e90dac515f5f0d581279486baae4bc91a9586ac7e5a70a5cabac9e7ece23b840503930a9b5a2af332145546f336f1e25fe9e400a4c64990e3bc9f49f157d91c15ec5bdc7b2a0a76f30e1da97b6e9ab77ec276740283e330a64bfab8751acd886fb8ccd5bea8d0d3640312d9398223e4d904fcf4134b56b1fb1a49178b82dc02328b2594f1f1a98dc5e4e51972182af95b1466cc72dfd3626abe477e0c682d4f36c5403706c66d17f2297a4cc21a8b647a1a3168323de6e1c6bb8d020111");
int max = 0;
int[,] array=new int[200,200];
oDBCore.Randomize(800);
Form form = new Form1();
form.Show();
while (oDBP.LoopGDK)
{
for (int i = 0; i < 100000; i++)
{
Calc(5, ref max,ref array);
string strg2 = max.ToString();
string strg3 = i.ToString();
oDBText.Text(10, 40, strg2);
oDBText.Text(10, 60, strg3);
for (int j=0;j<200;j++)
{
string sum = array[j,0].ToString();
oDBText.Text(80,j*15,sum);
}
oDBCore.Sync();
}
oDBCore.Wait(1000000);
}
}
static void Calc(int a, ref int max,ref int[,] array)
{
int b;
for (int i = 0; i < 9000; i++)
{
b = oDBCore.RND(a);
string strg = i.ToString();
oDBCore.CLS();
oDBText.Text(10, 0, strg);
if (b == 0)
{
array[i,0]++;
if (i > max)
{
max = i;
return;
}
return;
}
}
}
}
}