Jian Hu's Q&A profile
Visual Basic File system watcher
I have a win program that sits in the system tray, watches for new files in a folder, and then processes and appends info to them. I am using the file system watcher control in VB.net 2005. Everything works fine when you just copy a file into the folder for testing. However, when I use the program that will be creating the file, it throws an error saying that the file is in use by another process. Is there anyway I can have my app check if the file is in use, and wait until it isn't before it does it's processing Is there something else I'm missing Right now all my processing code is triggered from the file system watcher control's file crea ...Show All
Windows Forms how can i trap the forms on closing event from a menu item
I am out of hair! New to .net so be kind... I have been trying to get my "exit" menu item to trap the on closing event that the close X button does. When i click the X i get the on closing event and i can do what i need to there but when i simply code "application.exit" the on closing event doesn't&n ...Show All
Visual C# Show Console
I want to ask how I can show results or something in console while I am usinf windows application or Forms Thank you ,,, Karthik Thank you all guys It is working now ...Show All
Smart Device Development API for GPRS signal
I need to read from GSM/GPRS modem of my pocket pc the GPRS signal. Which are the API to use I would prefer not use the openNETcf class, and I use vb.net 2003. thanks Nicola there is very little to help you with this, I think you will maybe have to use openNet. As you are using vb.net 2003, you can at least use the free version! ...Show All
Windows Forms Avoid prompt of template save OR what makes word to prompt .dot file save?
Hi, We've developed VSTO 2005 Word Application, which uses our own template file(xyz.dot). However, when users close the document, they get prompted for save of normal.dot file - WHICH we don't use in our application. This happens only for few users. (If they open normal word doc, there is no prompt). This is the sequence of events which happen in Doc_Load - Create custom toobar dynamically - Enable/Disable menu items , based on few rules - Attach our application's template ( xyz.dot) - Attach an XML Schema Activities during doc edit session, would be one of the above only. No additional steps being done. My Questions: ...Show All
Windows Forms ToolboxBitmapAttribute doesn't work
Could anybody explain me what happens Code is below: C#: [ System.Drawing.ToolboxBitmapAttribute(typeof(MyClass), "myicon.ico") ] public class MyClass: Component {...} VB <System.Drawing.ToolboxBitmapAttribute(GetType(MyClass), "myicon.ico")> _ Public Class MyClass Inherits Component ... End Class I have place the above component into Toolbox, but its icon remains "sprocket". No rebuilding and no replacing help. I have  ...Show All
Software Development for Windows Vista Root Namespace for VB Project
It seems that I am required to have a Root Namespace specified in the project options for my Workflow Assembly. If I do not have a root namespace specified I receive the following error: option 'rootnamespace' requires ':<string>' I have currently only tried this in VB.NET and not C#, so I don't know if this happens in both languages. Is this some sort of a bug I like to expicitly declare my namespace for each class and remove the root namespace. This used to be a bug in beta1, but should have been fixed in the latest beta2 release. Shelly ...Show All
Visual Studio Express Editions Project Files
MSVC++ 6.0 had a wonderful feature in which during the compile process of the main code (which had, of course, user #include file(s) in it), the environment would identify ("discover") *all* header files upon which the project was based - automatically. Do the later MSVC versions have this capacity If so, how do I set up my environment to make this happen and where in the IDE would these files be displayed Thanks. This could be done using multiple ways in VC2005. Some using the IDE and other using a compiler switch (/I). Take a look at http://msdn2.microsoft.com/en-us/library/73f9s62w.aspx where ...Show All
Visual C++ Timing the compiler
The Visual C++ 2003 linker has an undocumented /TIME option which reports how much time the linker has spent on each phase. Is there a corresponding option for the compiler It would be helpful to know exactly how long each file took to compile. I have a 146-file project taking nearly 30 minutes to build; it would be quite helpful to find out where the delays are. You can add the (also undocumented) /Bt option to the command-line: this will give you some idea of how long the front-end (c1xx.dll or c1.dll) and the back-end (c2.dll) take to compile each file. ...Show All
Visual Studio Team System After VSSConverter, the .sln file still point to VSS, not the VSTS Source COntrol
Hi: Maybe I missed something, but I have a question like to ask everybody who know the steps. I have a Visual Studio 2005 solution with 2 projects and 1 web site. This solution was originally controlled by Visual SourceSafe 2005 and worked since Dec CTP released. Now I want to change the source control to Team System Version Control, which is in the TFS April CTP edition. I followed the steps in Migration Walkthroughs with Walkthrough: Preparing to Migrate from Visual SourceSafe to Team Foundation and Walkthrough: Migrating from Visual SourceSafe to Team Foundation The migration is fine, the errors showed tha ...Show All
Visual Studio Team System Install Testing Tools
Hi, I installed VS 2005 Beta 2 (not from Team Suite dvd, but from VS 2005 DVD) and then installed Team Foundation Client. I can connect to Team Foundation and make most of the PM tasks, but I don't have the Testing tools. What is necessary to get those tools Thanks a lot For convenience, let's end this thread here and shift to: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=5088 --- Eric Jarvi http://blogs.msdn.com/ejarvi ...Show All
Visual C++ Error PRJ0019 : A tool returned an error code from "Performing registration" ProjectName
Hi, I'm facing one problem when compiling vc6 project into vc8 compiler. Error PRJ0019 : A tool returned an error code from "Performing registration" PantherConfig I have gone thru a number of links providing solution for this but couldn't get correct solution. I think it is having problem in registration dll but not sure. In Build log it is telling that "Cannot open the specified file testerinfoerrors.err for reading" while this file is existing. Please highlight some point over this. Thanks in advance. Madhur Josh, I have had this same error come up. In brief, it is the build step that runs regsvr32. The regsvr32 progra ...Show All
Windows Forms Can't drag-drop a link from a webbrowser control or IE
I'm trying to allow dragging of a link from a web page to an area in my app. Even though I set the DragDropEffect to Copy, it stil displays the "No" icon and the DragDrop event doesn't fire. I can drag the icon in the address bar just fine. Does anyone know how to get link dragging working with IE ...Show All
Smart Device Development .NET Conversion problem
Hi. I have a .NET 1.1 project which works great. I want to convert this to .NET 2.0 (both CF) I have a UI problem here. In my project I have events and delegates on the main UI. in .NET 1.1 I get no errors, everything works fine - I also get no errors from the UI Designer in VS2003 When converted to .NET 2.0 in VS2005 (yes I did update the framework/platform in the project after the VS2003 project conversion to VS2005) - I get a UI Designer error: The type 'System.Windows.Forms.Form' has no event named 'OnStatusChange'. Hide Edit at System.ComponentModel.Des ...Show All
Visual Basic Exception handling doesn't catch errors
I seem to be missing a fundamental point regarding exception handling. My understanding is that when an error occurs, it can be caught by Catch without abnormally terminating the program. Mine will always abnormally terminate when an error occurs. An example is below. When the connection fails to open, the application breaks instead of executing the Catch block. Why Try cnSQL.Open() xMainMenu.ShowDialog() Me .Close() cnSQL.Close() Catch exc As Exception MessageBox.Show("Error Connecting to Database: " & exc.Message) intLoginAttempts += 1 MsgBox("Login Failed, " & maxLoginAttempts - int ...Show All
