Click here to Skip to main content
15,887,214 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Sorting date column in datagridview Pin
helelark1232-Aug-09 2:32
helelark1232-Aug-09 2:32 
GeneralRe: Sorting date column in datagridview [modified] Pin
pekatete30-Oct-09 12:36
pekatete30-Oct-09 12:36 
QuestionI failed to create an excel data sheet from my vb.net application Pin
Zizo_nis1-Aug-09 22:51
Zizo_nis1-Aug-09 22:51 
AnswerRe: I failed to create an excel data sheet from my vb.net application Pin
dan!sh 1-Aug-09 23:02
professional dan!sh 1-Aug-09 23:02 
GeneralRe: I failed to create an excel data sheet from my vb.net application Pin
Zizo_nis11-Aug-09 4:48
Zizo_nis11-Aug-09 4:48 
Questionthread problem Pin
hassanasp1-Aug-09 4:26
hassanasp1-Aug-09 4:26 
AnswerRe: thread problem Pin
Dave Kreskowiak1-Aug-09 5:04
mveDave Kreskowiak1-Aug-09 5:04 
Questionproblem with thread program converting from c# to vb.net Pin
hassanasp1-Aug-09 3:02
hassanasp1-Aug-09 3:02 
i try to convert c# code to vb.net code but i have probelm with execute displayMessage in Main sub .I am trying to covert the code at many websites which provide coverting service but most of it have the same error
can any one concert it to vb.net code
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace ConsoleApplication13
{
class Program
{
private class Massegeinfo
{

private int iterations;
private string massage;
public Massegeinfo (int iterations,string massage)
{
this.iterations=iterations;
this.massage=massage;
}
public int Iterations{get{return iterations;}}
public string Massage{get{return massage;}}
}
public static void displayMessage(object state)
{
Massegeinfo config=state as Massegeinfo ;
if (config==null)
{
for(int count=0;count<3;count++)
{
Console.WriteLine("a thread pool example");
Thread.Sleep(1000);
}

}
else
{
for(int count=0;count < config.Iterations;count++)
{
Console.WriteLine(config.Massage);
Thread.Sleep(1000);
}
}


}
static void Main(string[] args)
{
ThreadPool.QueueUserWorkItem(displayMessage);
Massegeinfo info = new Massegeinfo(5, "A thread pool example with arguments");
ThreadPool.QueueUserWorkItem(displayMessage, info);
Console.WriteLine("Main method complete. press enter");
Console.ReadLine();
}
}
}

Ahmed hassan

AnswerRe: problem with thread program converting from c# to vb.net Pin
Henry Minute1-Aug-09 3:09
Henry Minute1-Aug-09 3:09 
GeneralRe: problem with thread program converting from c# to vb.net Pin
hassanasp1-Aug-09 3:18
hassanasp1-Aug-09 3:18 
GeneralRe: problem with thread program converting from c# to vb.net Pin
Dave Kreskowiak1-Aug-09 5:03
mveDave Kreskowiak1-Aug-09 5:03 
AnswerRe: problem with thread program converting from c# to vb.net Pin
Dave Doknjas1-Aug-09 12:55
Dave Doknjas1-Aug-09 12:55 
Questiondynamically change field height in crystal report Pin
JC.KaNNaN1-Aug-09 0:30
JC.KaNNaN1-Aug-09 0:30 
QuestionStoredprocedure execution error. Pin
specialdreamsin1-Aug-09 0:29
specialdreamsin1-Aug-09 0:29 
AnswerRe: Storedprocedure execution error. Pin
Moreno Airoldi1-Aug-09 1:53
Moreno Airoldi1-Aug-09 1:53 
GeneralRe: Storedprocedure execution error. Pin
specialdreamsin1-Aug-09 2:01
specialdreamsin1-Aug-09 2:01 
GeneralRe: Storedprocedure execution error. Pin
Moreno Airoldi1-Aug-09 2:11
Moreno Airoldi1-Aug-09 2:11 
GeneralRe: Storedprocedure execution error. Pin
Dave Kreskowiak1-Aug-09 4:54
mveDave Kreskowiak1-Aug-09 4:54 
Questionproblem related to gridview Pin
nazimghori31-Jul-09 23:26
nazimghori31-Jul-09 23:26 
AnswerRe: problem related to gridview Pin
Mycroft Holmes31-Jul-09 23:38
professionalMycroft Holmes31-Jul-09 23:38 
QuestionReading sectors Pin
rezamirhashem31-Jul-09 22:47
rezamirhashem31-Jul-09 22:47 
AnswerRe: Reading sectors Pin
Eddy Vluggen1-Aug-09 0:18
professionalEddy Vluggen1-Aug-09 0:18 
QuestionHow can made safer application that is not detect by antivirus? Pin
Le@rner31-Jul-09 21:04
Le@rner31-Jul-09 21:04 
AnswerRe: How can made safer application that is not detect by antivirus? Pin
Eddy Vluggen1-Aug-09 0:25
professionalEddy Vluggen1-Aug-09 0:25 
AnswerRe: How can made safer application that is not detect by antivirus? Pin
Dave Kreskowiak1-Aug-09 4:50
mveDave Kreskowiak1-Aug-09 4:50 

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.