Hi, After starting below code, the output I got is:
-------------
day
minute
day
minute,minute
day
minute,minute,minute
--------------
It should be:
--------------
day
minute,
day
minute
day
minute
--------------
I don`t knowo why the backgroud worker starts more then 1 time on each steps, is...
In the code below DayTicker is started by
timer1.Tick += new EventHandler(DayTicker);
void DayTicker(object sender, EventArgs e)
{
timer1.Stop()
richTextBox1.Text += "\nTESTTTTTTT\n";
myProcess(0, 0, 0);
CheckTheOutput();
public void myProcess(int first, int second, int third)...
I have problem with setting timer interval propably because of the type conversion. Please see my code below.
--------------------------------------
TimeSpan HourNow = CurrTime.TimeOfDay;
TimeSpan HourScheduled = new TimeSpan (1,readint,RandomStartMin, 0);
TimeSpan Duration = HourScheduled -...
Hi, I`m using below code to connect to website. I want to connect to this site through the proxy server (I got servers with and some servers without authentification).
Please help.
use IO::Socket;
$Mhost="www.google.com";
$Msock = new IO::Socket::INET(PeerAddr => $Mhost, PeerPort => 80, Proto...
Please help, how to list all information (especially "Name" and "Active Directory Folder") from the "User Account"/"Member of" tab in Active Directory.
Thanks in advance.
Hi I have the below code inside 3 "For" loops. I need to insert in few cells the same formula with absolute references to $J$119 cell.
That code works but it inserts $J$119*100, $J$120*100, $J$121*100 like relative reference. Please help
Cells(i, j).Offset(k + Insert_row, 0).Offset(0...
Please can anyone tell me how to catch the closing event ( [X] button of my window) I need to kill all the threads running when someone would press [X] button.
Can somebody help me set the color priority of richtextbox to write one line in red color and the next one in for example blue. I tried:
------
richTextBox1.ForeColor = Color.Red;
richTextBox1.Text = "hey";
richTextBox1.ForeColor = Color.Blue;
richTextBox1.Text = "bye";
---------
But it change...
Please help me, I cannot access variable or checkbox state from another class. My code is:
Form1 kol = new Form1();
if (kol.checkBox1.Checked) StartVpnCon();
MessageBox.Show(kol.checkBox1.Checked.ToString());
-----------
But MessageBox always show "false" no matter of the real checkbox state.
Hello! I have a problem with starting notepad.exe from windows service. It starts but i cant see any window. I can only see that it starts from windows task manager.
Thx for help. My source is:
-----------------------------
protected override void OnStart(string[] args)
{
Process notePad...
Hello, I`ve got to subs like this (second one doesnt want to start thread):
-------------------------------------
public void button4_Click(object sender, EventArgs e)
{
this.demoThread = new Thread(new ThreadStart this.ThreadProcSafe));
this.demoThread.Start();
}
public void...
Hi, when I start from application my external program (execution takes 4 min) it wait until my external program exit, then i see my application window with textbox with the external program output. How to make textbox update in real time. source:
---------
Process myProcess = new Process()...
Hello, I need to start subroutine before MainLoop() (its a while loop) This is the sub:
--------
sub CheckTime {
$exeTime=18;
$Hour=shift(@_);
$loopStop=0;
while ($loopStop==0) {
sleep(1); # 1 = 1s
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time)...
Hello, I need to start subroutine before MainLoop() (its a while loop) This is the sub:
--------
sub CheckTime {
$exeTime=18;
$Hour=shift(@_);
$loopStop=0;
while ($loopStop==0) {
sleep(1); # 1 = 1s
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time)...
I need to parse 2 words between <td> brackets: "hello" and "bye"
$text= "<td class=sp></td><td>Hello</td><td class=sp></td><td>Bye</td><td class=sp>";
if ($text=~ m/<\/td><td>([^ ]*)<\/./g) {print "$1\n$2\n$3";}
but I only get first one "hello" and cannot parse "bye" word.
Please help
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.