thank you very much , this is exactly what i need, excellent thanks
coolpjmartin
Posts
-
Process.start wait for a callback -
Process.start wait for a callbackHi, I have two .net application (exe). Prog1 and Prog2 What I would like to do is run the first program (prog1) and then from "prog1" run the second prgram "prog2" at this point I want "prog1", to wait until "prog2" (does not exit) but gets to a certain point in its process, so I will need to send a callback to "Prog1" I know I can use process.start to call the second program, and I can also wait until the program has exited, but what I cannot work out is how to wait until a call back is recieved and send that callback to prog1. Can anyone help please c# or vb.net I don'y mind.
-
How to Get the MSI installer PathThank you very much, worked great
-
How to Get the MSI installer PathHi I have created a .NET application with a custom installer, that all works fine. After the installation process I need to access a file that is located inside the folder where the MSI installer / setup is located. The problem I have is I cannot work out how to get the path for the MSI installer / setup. Can anybody please help and advice me the best way to get this path while I am still inside the "Commmited" of the installer vb.net or C# either will be fine. Thanks
-
How to Get the MSI installer PathHi I have created a .NET application with a custom installer, that all works fine. After the installation process I need to access a file that is located inside the folder where the MSI installer / setup is located. The problem I have is I cannot work out how to get the path for the MSI installer / setup. Can anybody please help and advice me the best way to get this path while I am still inside the "Commmited" of the installer vb.net or C# either will be fine. Thanks
-
clipping an image region and saving as new imageHelp wanted clipping an image region and saving as new image.... Can someone please help me. What I what to do is display a picture (image) and drawer a clip region using the mouse on a selected area on the image, this could be a retangle, square or a freehand shape. I can display the image and clipped region using WPF as below. But what I cannot work out is how to save the clipped region of the image as a new bitmap image. The same problem if I create a image using pathgeometry, I cannot work out how to save the cropped part of the image. If there is an alternative method instead of using WPF, please advice me. c# or vb I don't mind, I just need a solution. Thanks // Sample 4 // Create the image to clip. Image myImage = new Image(); Uri imageUri = new Uri(@"C:\\Documents and Settings\\All Users\\Documents\My Pictures\\Sample Pictures\\Water lilies.jpg", UriKind.Relative); myImage.Source = new BitmapImage(imageUri); myImage.Width = 200; myImage.Height = 150; myImage.HorizontalAlignment = HorizontalAlignment.Left; // Use an EllipseGeometry to define the clip region. EllipseGeometry myEllipseGeometry2 = new EllipseGeometry(); myEllipseGeometry2.Center = new Point(100, 75); myEllipseGeometry2.RadiusX = 100; myEllipseGeometry2.RadiusY = 75; myImage.Clip = myEllipseGeometry2;