Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
AnswerRe: TreeView [modified] Pin
Eddy Vluggen3-Apr-09 7:55
professionalEddy Vluggen3-Apr-09 7:55 
QuestionHow do i use this method in my program? IRawCDImageTrackInfo::get_ISRC Method Pin
monkh3-Apr-09 6:22
monkh3-Apr-09 6:22 
AnswerRe: How do i use this method in my program? IRawCDImageTrackInfo::get_ISRC Method Pin
led mike3-Apr-09 6:32
led mike3-Apr-09 6:32 
Questioncan someone help me figure out a right way to work with xml and array Pin
faizych3-Apr-09 5:23
faizych3-Apr-09 5:23 
AnswerRe: can someone help me figure out a right way to work with xml and array Pin
led mike3-Apr-09 5:38
led mike3-Apr-09 5:38 
GeneralRe: can someone help me figure out a right way to work with xml and array Pin
faizych3-Apr-09 6:46
faizych3-Apr-09 6:46 
GeneralRe: can someone help me figure out a right way to work with xml and array Pin
led mike3-Apr-09 8:18
led mike3-Apr-09 8:18 
AnswerRe: can someone help me figure out a right way to work with xml and array Pin
Mirko19803-Apr-09 5:42
Mirko19803-Apr-09 5:42 
QuestionUsing Visio 2007 Pin
cdpace3-Apr-09 5:01
cdpace3-Apr-09 5:01 
AnswerRe: Using Visio 2007 Pin
Deresen3-Apr-09 5:14
Deresen3-Apr-09 5:14 
GeneralRe: Using Visio 2007 Pin
cdpace3-Apr-09 5:17
cdpace3-Apr-09 5:17 
GeneralRe: Using Visio 2007 Pin
Deresen3-Apr-09 5:26
Deresen3-Apr-09 5:26 
GeneralRe: Using Visio 2007 Pin
Dan Neely3-Apr-09 5:33
Dan Neely3-Apr-09 5:33 
QuestionXML with sql 2005 Pin
Maverickcool3-Apr-09 3:47
Maverickcool3-Apr-09 3:47 
AnswerRe: XML with sql 2005 Pin
Le centriste3-Apr-09 3:50
Le centriste3-Apr-09 3:50 
QuestionDeserialise ACLs from HKLM\SOFTWARE\Classes\AppID\{ID}\LaunchPermissions Pin
DanielWehrle3-Apr-09 3:14
DanielWehrle3-Apr-09 3:14 
QuestionFishing for Ideas (C# file copy) Pin
compninja253-Apr-09 3:12
compninja253-Apr-09 3:12 
AnswerRe: Fishing for Ideas (C# file copy) Pin
Eddy Vluggen3-Apr-09 4:07
professionalEddy Vluggen3-Apr-09 4:07 
GeneralRe: Fishing for Ideas (C# file copy) Pin
compninja253-Apr-09 5:49
compninja253-Apr-09 5:49 
GeneralRe: Fishing for Ideas (C# file copy) Pin
Eddy Vluggen3-Apr-09 7:47
professionalEddy Vluggen3-Apr-09 7:47 
QuestionC# Networking: Handling Clients? Pin
Abydosgater3-Apr-09 3:10
Abydosgater3-Apr-09 3:10 
AnswerRe: C# Networking: Handling Clients? Pin
Skymir3-Apr-09 7:59
Skymir3-Apr-09 7:59 
QuestionDoes Click Once download files not modified? Pin
l.m.k3-Apr-09 2:45
l.m.k3-Apr-09 2:45 
AnswerRe: Does Click Once download files not modified? Pin
Henry Minute3-Apr-09 3:33
Henry Minute3-Apr-09 3:33 
QuestionMulti-Threading Pin
linto_113-Apr-09 2:44
linto_113-Apr-09 2:44 
The code shown below is with which im messed up............
The problem is 'thread1' and 'thread2' are working simultaneously but the output is not in the correct format. Please check this out and please help with proper solution. I want both load_1() and load_2() to be shown properly. it is very urgent. Waiting for your reply!!!



using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace Loading
{
class loading
{
public static void load_1()
{
Console.SetCursorPosition(0, 2);
for (int l = 1; l <= 50; l++)
{
Console.Write("\\\b");
Thread.Sleep(50);
Console.Write("|\b");
Thread.Sleep(50);
Console.Write("/ \b");
Thread.Sleep(50);
Console.Write("\b");
Console.Write("|");
}
}

public static void load_2()
{
for (int load = 0; load <= 100; load++)
{
Thread.Sleep(10);
Console.SetCursorPosition(25, 4);
Console.Write("{0}%", load);
}
}

static void Main(string[] args)
{
Console.SetCursorPosition(16, 4);
Console.Write("LOADING:");
Thread thread1 = new Thread(new ThreadStart(load_1));
Thread thread2 = new Thread(new ThreadStart(load_2));
thread1.Start();
thread2.Start();
thread1.Join();
thread2.Join();
}
}
}

LINTO

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.