Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Loop Through DataGrid Pin
Anonymous17-Jan-05 12:04
Anonymous17-Jan-05 12:04 
GeneralRe: C# Loop Through DataGrid Pin
epinaud25-Jan-05 6:28
epinaud25-Jan-05 6:28 
GeneralSQL Connection Pin
.gonad13-Jan-05 10:44
.gonad13-Jan-05 10:44 
GeneralRe: SQL Connection Pin
Colin Angus Mackay13-Jan-05 11:41
Colin Angus Mackay13-Jan-05 11:41 
GeneralRe: SQL Connection Pin
Paul Lyons13-Jan-05 15:16
Paul Lyons13-Jan-05 15:16 
GeneralRe: SQL Connection Pin
Colin Angus Mackay13-Jan-05 22:13
Colin Angus Mackay13-Jan-05 22:13 
GeneralRe: SQL Connection Pin
.gonad14-Jan-05 2:01
.gonad14-Jan-05 2:01 
GeneralFile sharing error / multiple processes in one click event... Pin
new_phoenix13-Jan-05 9:50
new_phoenix13-Jan-05 9:50 
Two general questions...

First, I have SEVERAL system.Diagnostics.process events running in just ONE menu click event, but the thing is that only the FIRST process gets run, while the other processes are ignored. What is the reason for the other processes being ignored? Do I need to implement each of the processes using a multi-threaded approach? If so, is there a good article written on all of the steps required for multi-threading?

Second, I am implementing a C# windows application that accesses several graphics files based upon the menu item that is selected by the user. The problem is that when a different menu item is selected, the graphics items are NOT RELEASED, and thus they cannot be overwritten with graphic file replacements. The error message thrown is that there is a file sharing error. Is there a way that I could somehow RELEASE the graphics programmatically so that there would not be a file sharing error thrown, and if so, what is the syntax?

I would imagine that it would need to use a foreach loop with relation to a directory and would somehow utilize the control.Dispose() method ie.

string strDirectory = System.IO.Directory;
foreach(Control control in strDirectory)
{
control.Dispose();
}

Am I on the wrong track, or is there a way of RELEASING the files so that they are no longer in SHARE MODE so that they could be overwritten? Would appreciate some further assistance. Confused | :confused:
GeneralRe: File sharing error / multiple processes in one click event... Pin
Dave Kreskowiak14-Jan-05 4:29
mveDave Kreskowiak14-Jan-05 4:29 
GeneralRe: File sharing error / multiple processes in one click event... Pin
new_phoenix14-Jan-05 11:44
new_phoenix14-Jan-05 11:44 
GeneralRe: File sharing error / multiple processes in one click event... Pin
Dave Kreskowiak14-Jan-05 12:16
mveDave Kreskowiak14-Jan-05 12:16 
Generalapplication automatically does a repair Pin
econnor13-Jan-05 9:50
econnor13-Jan-05 9:50 
GeneralRe: application automatically does a repair Pin
Steve Maier13-Jan-05 10:31
professionalSteve Maier13-Jan-05 10:31 
GeneralRe: application automatically does a repair Pin
econnor13-Jan-05 10:41
econnor13-Jan-05 10:41 
GeneralUserControl _Click Event Pin
Radgar13-Jan-05 9:44
Radgar13-Jan-05 9:44 
GeneralRe: UserControl _Click Event Pin
Stefan Troschuetz13-Jan-05 23:30
Stefan Troschuetz13-Jan-05 23:30 
GeneralRe: UserControl _Click Event Pin
Radgar14-Jan-05 7:59
Radgar14-Jan-05 7:59 
GeneralSystem.messaging Pin
Esmo200013-Jan-05 9:17
Esmo200013-Jan-05 9:17 
GeneralRe: System.messaging Pin
Christian Graus13-Jan-05 9:39
protectorChristian Graus13-Jan-05 9:39 
GeneralRe: System.messaging Pin
Esmo200014-Jan-05 4:52
Esmo200014-Jan-05 4:52 
QuestionChange So Text Fits? Pin
Snowjim13-Jan-05 9:10
Snowjim13-Jan-05 9:10 
GeneralHiding Files Pin
kshet2613-Jan-05 7:56
kshet2613-Jan-05 7:56 
GeneralRe: Hiding Files Pin
Dave Kreskowiak14-Jan-05 4:21
mveDave Kreskowiak14-Jan-05 4:21 
GeneralRe: Hiding Files Pin
kshet2614-Jan-05 5:23
kshet2614-Jan-05 5:23 
QuestionReopen Tree after update? Pin
Snowjim13-Jan-05 7:09
Snowjim13-Jan-05 7:09 

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.