Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can i make exe of my appliction? Pin
Obaid ur Rehman5-Apr-07 20:34
Obaid ur Rehman5-Apr-07 20:34 
Questionxml document Pin
Tauseef A5-Apr-07 20:23
Tauseef A5-Apr-07 20:23 
Questionwhat are the new softwares for screen capturing [modified] Pin
khema5-Apr-07 19:49
khema5-Apr-07 19:49 
AnswerRe: what are the new softwares for screen capturing Pin
shrinerainxp5-Apr-07 21:35
shrinerainxp5-Apr-07 21:35 
GeneralRe: what are the new softwares for screen capturing Pin
khema8-Apr-07 18:05
khema8-Apr-07 18:05 
GeneralRe: what are the new softwares for screen capturing Pin
khema8-Apr-07 18:31
khema8-Apr-07 18:31 
Questionhow to know if someone visited my site? Pin
Nekshan5-Apr-07 19:36
Nekshan5-Apr-07 19:36 
QuestionHow to solve"Cross thread operation not valid" error when programming with C#.net Pin
sweenySL5-Apr-07 19:34
sweenySL5-Apr-07 19:34 
Hi im devloping a client server program using C#.

What it basically does is the Server can connect 3,4 clients and they can send messags.

To do this i didnt use threads.
My problem is when client send a message to server it is not receved to the server.
Then it indicate a error "Cross thread operation not valid."
This is the solution i found form this site.
---------------------------------------------------------
Private Strt As System.Threading.Thread ;

Strt = New System.Threading.Thread(AddressOf MyThread1)
Strt.Start();

Sub MyThread1
' Working code
' Working code
' Working code
' Working code
' Working code
' Working code

AccessControl()

End Sub

Private Sub AccessControl()
If Me.InvokeRequired Then
Me.Invoke(New MethodInvoker(AddressOf AccessControl))
Else
' Code wasn't working in the threading sub
' Code wasn't working in the threading sub
' Code wasn't working in the threading sub
' Code wasn't working in the threading sub
' Code wasn't working in the threading sub
Button2.Visible = True
Button3.Visible = True
Opacity = 1
ShowInTaskbar = True
End If
End Sub

---------------------------------------------------------
but the problem is hence i do not use threads do i need to create threads to solve this problem?

Im developing the program using C#, so do i need to implement it in a same way of this code?

Thank you so much..

sweenySL
AnswerRe: How to solve"Cross thread operation not valid" error when programming with C#.net Pin
Obaid ur Rehman5-Apr-07 20:31
Obaid ur Rehman5-Apr-07 20:31 
AnswerRe: How to solve"Cross thread operation not valid" error when programming with C#.net Pin
shrinerainxp5-Apr-07 21:24
shrinerainxp5-Apr-07 21:24 
AnswerRe: How to solve"Cross thread operation not valid" error when programming with C#.net Pin
Luc Pattyn6-Apr-07 4:39
sitebuilderLuc Pattyn6-Apr-07 4:39 
QuestionError in saving excel file Pin
Manish_Home5-Apr-07 19:32
Manish_Home5-Apr-07 19:32 
AnswerRe: Error in saving excel file Pin
roel_v5-Apr-07 21:22
roel_v5-Apr-07 21:22 
QuestionDatatable Pin
AnhTin5-Apr-07 18:46
AnhTin5-Apr-07 18:46 
AnswerRe: Datatable Pin
_mubashir5-Apr-07 20:53
_mubashir5-Apr-07 20:53 
AnswerRe: Datatable Pin
Harini N K6-Apr-07 0:32
Harini N K6-Apr-07 0:32 
QuestionHelp!!! Declare a varied-length array of structures and the use of marshalling? Pin
peary5-Apr-07 18:21
peary5-Apr-07 18:21 
AnswerRe: Help!!! Declare a varied-length array of structures and the use of marshalling? Pin
Luc Pattyn6-Apr-07 4:50
sitebuilderLuc Pattyn6-Apr-07 4:50 
QuestionC# Pin
rednexhex5-Apr-07 16:59
rednexhex5-Apr-07 16:59 
AnswerRe: C# Pin
Sathesh Sakthivel5-Apr-07 17:12
Sathesh Sakthivel5-Apr-07 17:12 
AnswerRe: C# Pin
Rudolf Jan6-Apr-07 0:30
Rudolf Jan6-Apr-07 0:30 
QuestionCall an Executable from C# with Administrative rights Pin
ke3p_up5-Apr-07 16:40
ke3p_up5-Apr-07 16:40 
AnswerRe: Call an Executable from C# with Administrative rights Pin
shrinerainxp5-Apr-07 21:26
shrinerainxp5-Apr-07 21:26 
GeneralRe: Call an Executable from C# with Administrative rights Pin
ke3p_up5-Apr-07 22:41
ke3p_up5-Apr-07 22:41 
Questionsockets question Pin
dino20945-Apr-07 15:45
dino20945-Apr-07 15:45 

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.