f-l-i-p's Q&A profile
Windows Forms Drag and Drop exception using design surface
Martin, I have an application that I created that has a design surface. I am getting an exception when dragging and dropping a component on the design surface. The component is already on the design surface before dragging it. The exception locks up the GUI thread and it is not easily repeated. Here is the exception: System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.Design. ...Show All
Visual C# Multiple Threads and Synchronizing Output to a Log File
Hello everyone... I'm working with a multi-threaded application. I believe I have it to the point now where several different threads can write to one common log file. Writing to the log would be used at initial startup and for an occasional exception, and is not something that would not happen very often. What I'd like some advise on is making sure the act of writing to the log is thread safe, in that when a thread writes to& ...Show All
Smart Device Development Device Emulator and connection to Desktop
Can somebody please explain how connection to the desktop is supposed to work, reliably I've tried to get the emulator to connect to the desktop and have gotten it to work, but it's really, really inconsistent. I get it to work and next time I start the emulator it no longer works. Then after futzing around with cradling and uncradling for a while it starts to work again. I'm trying to debug an application with a Web Service which is calling th ...Show All
.NET Development Aboout the XmlNameSpace.
As i know, If you want to use XML namespace in XmlDocument or XmlPathDocument, you must manual add the namespace to a NameTable, then add it into the XmlDocument or XmlPathDocument. I have question: 1. If i don't add namespace in the NameTable object, can the Document maitian auto 2. Is there any way to load the xml namespace auto while load the source. Thanke you for your answer. The namespace manag ...Show All
Visual C# How I can execute exception handling from windows service ?
I Faced problem when i build windows service that that class contain Exception handling , the exception not execute, i think may have a method to execute the ecxception. ...Show All
Visual Studio custom tool registration
Hello, it there any way how to register managed custom tool (in VsPackage) into VS I found ProvideGeneratorAttribute in msdn documentation, but it seems to be missing. ProvideObjectAttibute do part of the job (regarding docs) but not the main part. I'd like some ProvideXXX attribute even for this. Thanks in advance I found it: [ Guid ( "77BAF5D3-55AA-4878-BB75-D42747562E7D" )] [ ProvideObject ( typeof ( GDataSetG ...Show All
Visual Basic Double-Precision floating point number
I have the value -> 20.116840233680467360934721869444 When I use it in my program it truncs it to -> 20.116840233680467 I declare it as a double. Is there a way to make it not trunc Declaration/Assignment: Private chains As Double = 20.116840233680467 Thank you. here is an overview http://www.ondotnet.com/pub/a/dotnet/2001/07/30/vb7.html try decimal it has 12 bytes percision, double only has 8 bytes. this could be interesti ...Show All
Smart Device Development minimize by code ?
Hi, how can i minimze a form by code. i still want my form to be on the 'running programs' list. 10X, Just for closure, this thread is answered here . ...Show All
Smart Device Development CE 5.0 Devices - Visual Studio 2005
Hi, I am using VS2005 to build CF2.0 application. I used 2003SE emulator and WM5.0 device to test my app. I used CAB project to build the CAB file for the application. My CAB file works on both 2003 and WM5.0 devices. I just want to know if the same CAB file will work in Ce 5.0 devices Because CE5.0 devices come with different processor types. Is the VS2005 CAB project generated CAB file is Device Independant Do I have to make any changes ...Show All
SQL Server Where to begin?
Hi, I'm totally new to sqlexpress and I'm trying to create a database to store websites that my desktop application will manipulate; however, I don't know where to start, I've read many articles on msdn but they all are either non-existent or wasn't very helpful. All I want to do is create a table. Do I use vb.net express 2k5 or sql server express manager I figure MS have to have created some kind of GUI for designing databases, if not I guess I ...Show All
.NET Development Access to a smartcard private key
Hi all, I'm trying to access a private key (X509 certificate) stored in a smartcard (Gemplus GemSAFE Card CSP), but i always get the same error: System.Security.Cryptography.CryptographicException: Hay mas datos disponibles. (In english, "More info is available") at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) at System.Security.Cryptography.Utils._GetKeyParameter(SafeKeyHandle hKey, UInt3 ...Show All
.NET Development Having problems running a web service in Visual Studio 2005
I created a web service following the steps laid out in http://msdn2.microsoft.com/en-us/library/87h5xz7x.aspx I have encountered several problems. 1. When I open the project I get the following. "The site http://localhost /BriConvert1 has not been configured for use with ASP.NET 2.0. Microsoft Visual Studio has been designed for use with ASP.NET 2.0. If not configured some features may make incorrect assumptions, and pages desi ...Show All
Windows Forms Unhandled Exception Handler without form
I am creating a windows application that does not have any forms. It is supposed to run in the background as scheduled. How can I manage all unhandled exception (as you would using Application_Error in ASP .NET) if my code is in a class&nb ...Show All
Visual Basic How can i that one of function's parameters will be null/defult?
How can i that one of function's parameters will be null/defult like: public function Hello( ByVal the_name as string , ByVal nice_level as integer ) Hello("joy",10) Hello("joy") I want to do a defult of nice_level will be 0. VB also supports marking arguments with the Optional keyword and providing a default value, but C# and other languages don't support this and have a hard time ...Show All
Visual C# Identifying Italic Text
Suppose I am having a particular text in either MSWord or in a RichTextBox. If I select a particular part of the text, I would like to identify all the words given in italics in that particular fragment and convert it into Regular Text and also give them within <i> and </i> tags. Could u pls tell me how it is possible joseph5600 wrote: Thanks for the reply. I am getting the t ...Show All
