Answer Questions
Joe Rohde - MSFT FileSystemWatcher hell... stops watching after event
I created a FileSystemWatcher object to watch for newly created files. Once a file is created, the FileCreated() method is called through the FileWatcher event handler. Problem is, after this happens, FileWatcher doesnt seem to listen anymore. I have to create a new FileWatcher every time the event is fired and the method completes. Below is my code. This is a seperate class from the Main class. From the Main, I call this class to set up and cre ...Show All
Jerry Boggess Moving a shape with mouse
i 'm new in C# but i have an old hope to make a program using shapes and figures and moving them with mouse. my problem is : is there a way to restor previous image or background after moving the figure, like a CAD software does !! Thanks X 10000. Very Helpful... Thanks 30000 http://www.codeproject.com/csharp/drawtools.asp Howdy, This depends on the scenario you are in, but everything is pos ...Show All
Ernest L WDS(BETA2) ,IE7(beta) and OneNote 2007
Good Morning All, My question is twofold. I am running XP(sp2), IE7 and OneNote2007. When accesing OneNote it states I have to download/install WDS 3. I do the download, but WDS wont load or start. I have tried numerous times (rebooting, clean istalls of XP, Office and WDS) with no luck. Any suggeations Any help will be appreciated. John Smith Hello Paul, After going back through KB articles, , I foun ...Show All
Sree C int dividing
ok,,,, i have a problem dividing 2 ints... heres the code: int w = image.Width - 146; &n ...Show All
Peter.Kortman Problem solved
this is the function I use : //gets file path in "str_file" , resize image about "Percent" and save the new image to path "toDir public static void ImageResize(string str_file, string toDir, int Percent) { Image imgPhoto = Image.FromFile(str_file); float nPercent = ((float)Percent/100); int sourceWidth = imgPhoto.Width; int sourceHeight = imgPho ...Show All
Lars Larsson Help to get the knowledge of C#
Hi I hv been in development field more than 7 years. So far I hv been using VB6 as a development tool and Oralce as my back-end. (Using multi tier architecture or COM) Now I need to consontrate on Visual C# 2005 (Or 2003) to start a large project in C# in ourcompany. Is it possible me to learn Visual C# 2005 with only having VB6 experiance Is there any tutorials or any e-books available It would be easy for me If you recommend any good sites ...Show All
Isolated How do I test a button when running an event?
I have a start button which runs a section of code continuously - how do I test the stop button while this code is running Here some sample code for using threads. I added 2 button event handlers to stop the thread loop First one will end the loop by using a variable to stop it Second one will abort the thread directly U dont need to use the thread.join method ... Lets say u start the threa ...Show All
Pejacepoha Determining Class Dependencies
Is there an easy way using the Class Diagram tool (or any other way for that matter) of determining classes that depend on a given class. Its easy to determine dependancy through inheritance, but not through association (say one class instantiates another class as an object). The only way I've found to do this is in the class diagram using a round-about sort of method: select the class I need to find the dependancies to, rename it, and then wait ...Show All
KAL9 Why IDE remove my custome controls from form often?
I have suffered a lot (really alot!) from losing code and the very slow speed of design mode form drawing in VS2003 IDE. I have lost so many times window code whenever I used subclassed control in design mode. Most of time I create my own driven control and use it in design mode after register it into toolbox. IDE removes my custome controls from the window form when I open the form in design mode. It drives me crazy....!!! It is not limit ...Show All
Linda Call How to create a windows services using C#?
Hi, I'm trying to develop a windows services in Visual Studio 2005. When I chose File | New | Project, if the Visual C# is chosed as Project types, there is no Windows Service templates there. The template only appears when you use VC++. Is there anybody that can tell me why and how Thanks. Regards, Chris If you can't find the template, you can still create a Windows Service by deriving from System.Se ...Show All
Michael L. Georgia How to run AT Commands from C# for WinXP?
Hi, I want to communicate with modem and want to run AT Commands in C# 2003. I don't know how to do it Can you help me that either i can send SMS using modem AT commands to SMSC. Thanks. Hi, You should use Serial Communications to send AT commands, you can use MsComm32 in this... simply Right Click on the Toolbox Choose "Customize Toolbox..." Select and add the "Microsoft Communications Control" Then you will have an object of mscomm32 ...Show All
Michael Lowe How can I disable particular rows in a datagrid?
Hi all, thanks in advance for taking the time to help! :) I'm coding a win application using C#, the winform contains a datagrid with information plus two columns of buttons that coresponds to each row. To explain it in a simplified way... The program works by going through a user defined csv file containing a list and attempt to match each entry with the ones in the database, and if there's a match, the extra information in the datab ...Show All
CrispinH How do I open a an MDIform from a nonMDI form?
I'm new to C#. How do I close my current form and open a new one This does not seem to work: Form mainForm = new MDIParent1 (); mainForm.Show(); this .Close(); Thank you! You would need to 1) start the form via another thread or 2) start the form via a stub class: public class StubClass { /// <summary> /// The main entry point for the application. /// </summary> ...Show All
paulmig commandline poblem
i am using this code to assign commandline for my appication but nothing is happenning when i pass the commandline, why /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { string [] cmdList = Environment.CommandLine.Split(' '); // First command-line param is the exe name, second param is the mode if (cmdList.Length >= 2) { if (cmdList[1].In ...Show All
Tommi Enenkel Do application settings work across cultures?
I’m using the Application Settings (via the project properties for a C# assembly) in order to store default values for the application, but I’m finding that the auto-generated code doesn’t work across different regional settings. For example, if I use it store a float value called “Increment” with a value of 0.5 when set to an English culture, then the following code is generated: [global::System.Configuration.UserScopedSettingAttr ...Show All
