Click here to Skip to main content
15,895,884 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionDoes .NET Framework have a Software Licensing manager ? Pin
theory200623-Mar-09 8:02
theory200623-Mar-09 8:02 
AnswerRe: Does .NET Framework have a Software Licensing manager ? Pin
Simon P Stevens24-Mar-09 0:19
Simon P Stevens24-Mar-09 0:19 
QuestionWindows CE application and i am using opennetcf. Please help Pin
bheeem22-Mar-09 21:02
bheeem22-Mar-09 21:02 
AnswerRe: Windows CE application and i am using opennetcf. Please help Pin
Eddy Vluggen22-Mar-09 23:05
professionalEddy Vluggen22-Mar-09 23:05 
GeneralRe: Windows CE application and i am using opennetcf. Please help Pin
bheeem22-Mar-09 23:10
bheeem22-Mar-09 23:10 
GeneralRe: Windows CE application and i am using opennetcf. Please help Pin
Eddy Vluggen22-Mar-09 23:43
professionalEddy Vluggen22-Mar-09 23:43 
GeneralRe: Windows CE application and i am using opennetcf. Please help Pin
bheeem23-Mar-09 2:33
bheeem23-Mar-09 2:33 
GeneralRe: Windows CE application and i am using opennetcf. Please help Pin
Eddy Vluggen23-Mar-09 3:05
professionalEddy Vluggen23-Mar-09 3:05 
The suggestion came from the example on the Microsoft site;
Dim newThread As Thread = New Thread(AddressOf ThreadMethod)
newThread.SetApartmentState(ApartmentState.MTA)

' The following line is ignored since
' ApartmentState can only be set once.
newThread.SetApartmentState(ApartmentState.STA)

Console.WriteLine("ThreadState: {0}, ApartmentState: {1}", _
    newThread.ThreadState, newThread.GetApartmentState())

newThread.Start()

' Wait for newThread to start and go to sleep.
Thread.Sleep(300)
Try
    ' This causes an exception since newThread is sleeping.
    newThread.SetApartmentState(ApartmentState.STA)
Catch stateException As ThreadStateException
    Console.WriteLine(vbCrLf & "{0} caught:" & vbCrLf & _
        "Thread is not In the Unstarted or Running state.", _
        stateException.GetType().Name)
    Console.WriteLine("ThreadState: {0}, ApartmentState: " & _
        "{1}", newThread.ThreadState, newThread.GetApartmentState())
End Try
(Source[^])
It doesn't feel quite logical, as Sleep is a static member. Thread isn't the same thing as Thread2, but I can't see any other differences Confused | :confused:

I are troll Smile | :)

GeneralRe: Windows CE application and i am using opennetcf. Please help Pin
bheeem23-Mar-09 20:29
bheeem23-Mar-09 20:29 
GeneralRe: Windows CE application and i am using opennetcf. Please help Pin
Eddy Vluggen23-Mar-09 21:47
professionalEddy Vluggen23-Mar-09 21:47 
AnswerRe: Windows CE application and i am using opennetcf. Please help Pin
Alan N23-Mar-09 6:46
Alan N23-Mar-09 6:46 
GeneralRe: Windows CE application and i am using opennetcf. Please help Pin
bheeem23-Mar-09 20:25
bheeem23-Mar-09 20:25 
Questionnavigating through a dataSet loaded via XML Pin
birdofprey0022-Mar-09 12:11
birdofprey0022-Mar-09 12:11 
AnswerRe: navigating through a dataSet loaded via XML Pin
led mike23-Mar-09 7:43
led mike23-Mar-09 7:43 
QuestionUsing Repeater control not giving desired result Pin
priyanshu9021-Mar-09 23:14
priyanshu9021-Mar-09 23:14 
QuestionRe: Using Repeater control not giving desired result Pin
Eddy Vluggen22-Mar-09 1:30
professionalEddy Vluggen22-Mar-09 1:30 
AnswerRe: Using Repeater control not giving desired result Pin
priyanshu9022-Mar-09 2:47
priyanshu9022-Mar-09 2:47 
GeneralRe: Using Repeater control not giving desired result Pin
Eddy Vluggen22-Mar-09 4:08
professionalEddy Vluggen22-Mar-09 4:08 
GeneralRe: Using Repeater control not giving desired result Pin
priyanshu9022-Mar-09 4:52
priyanshu9022-Mar-09 4:52 
AnswerRe: Using Repeater control not giving desired result Pin
thyrith31-Mar-09 5:28
thyrith31-Mar-09 5:28 
QuestionDoesn't Windows Service respond to Windows Hibernate Event? Pin
Jason_Shen21-Mar-09 5:31
Jason_Shen21-Mar-09 5:31 
GeneralRe: Doesn't Windows Service respond to Windows Hibernate Event? Pin
led mike23-Mar-09 5:57
led mike23-Mar-09 5:57 
Question"Invalid Assembly file" error while registering file to Global Assembly Cache ???? Pin
RA|-|UL PATEL20-Mar-09 20:53
RA|-|UL PATEL20-Mar-09 20:53 
AnswerRe: "Invalid Assembly file" error while registering file to Global Assembly Cache ???? Pin
Ravadre24-Mar-09 10:33
Ravadre24-Mar-09 10:33 
QuestionReusing TCP connection when using HTTPWebRequest Pin
michalJ20-Mar-09 15:13
michalJ20-Mar-09 15:13 

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.