Jimbo M's Q&A profile
Windows Forms OnClosing() e.Cancel == true on entry
Under what conditions is e.Cancel set to true when OnClosing() is called for a form I've overridden the fuction and sometimes get called with e.Cancel == true when the form's 'x' button is pressed. Is my override responsible for initializing e.Cancel to false Thanks, Ray There a number of situations where OnClosing will be called with Cancel equal to true: If: 1. a derived Form overrides OnClosing and sets Cancel to true and then calls base.OnClosing 2. the Form's OnValidating sets Cancel to true 3. the Form is a MDI child or is owned by another Form and its parent OnValidating sets ...Show All
Windows Forms How to Determine my Eyesight Radius
This might be a dumb question, but how do I determine what my own creature's eyesight radius is Is there a formula to derive it from the EyesightPoints Attribute If so, how do I access the values of an Attribute programatically (I am new to C#). Well, it's a bit more complicated than that. If you want to set&nb ...Show All
Smart Device Development Remote Spy suddenly stops reporting window messages
Hi, Has anyone else had problems using Remote Spy provided with Visual Studio 2005's Smart Devices functionality I have been seeing an issue which pretty much makes it unusable in my scenario. What happens is I can connect to a Windows Mobile 2005 device via ActiveSync (or an emulator via DMA) and obtain a list of windows. However if I select a given window and attempt to view the window messages being sent to it the log suddenly stops after the first couple of messages. For instance if I attempt to log the window messages sent to the rich edit control within Pocket Word and proceed to type a couple of characters I may see the WM ...Show All
Windows Forms Dynamic control docking
Hi, can anyone tell me if VS 2005 Beta 2 contains a control that will allow me to dock a user control / form I'm interested in getting the sliding docking feature found in VS 2003 / 2005; the one where you can pin a panel if required (ala Toolbox, Server Explorer etc). Thanks for your help Graham There is no support for docking windows in Windows Forms 2.0. We do have a sample internally that mimics the Visual Studio 2005 docking windows implementation. This sample will be posted to the MSDN smart client dev cetner before Visual Studio 2005 ships. - mike ...Show All
.NET Development The GC is not Disposing the object.
I am writing an applicatio to dispose off the object of the class with the help of text shown in RED COLOR but i receive the message "C:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\ConsoleApplication6\CH2_08.cs(34): Destructors and object.Finalize cannot be called directly. Consider calling IDisposable.Dispose if available." Plez show me the method of disposing off the object. using System; class CH2_8 { static int ReferenceCount; private static void IncrementReferenceCount() ...Show All
Visual Studio Why is interacting with Visual Studio so clumsy?
I recently downloaded the VS2005 SDK (formerly VSIP), and I was extremely disappointed by the whole thing. Why is it so difficult to build an add-in Why do I have to know about the different interfaces, and why can't I access strongly-typed property classes You guys should really take a look at Jamie Cansdale's ManagedAddin framework. It's so easy to use. You specify the menu navigation commands in a hierarchial XML format. You create stand-alone command classes that get called from that XML structure. It doesn't make interacting with the IDE any easier, but it sure takes the befuddlement out of the basics, which is a real barrier to entry ...Show All
Visual Studio Microsoft.Common.targets should provide means of diverting final .pdb location
We've long had the practice that we always produce full symbols for all of our builds. For developer builds we let the .pdb files sit next to the executable that they're for, but for production builds we shunt them all off to a "symbols" directory and from there they may be archived and copied off to various useful places. One of those places would be our own symbol server in order to faciliate both live and postmortem debugging of our commercial builds. The practice of always producing full symbols is endorsed by the "Framework Design Guidelines" as I recall. At any rate, we craft our projects to set "OutputP ...Show All
Windows Forms about this forums
Locking this thread. Future discussion about this should take place in the site feedback forums. http://forums.microsoft.com/forums/default.aspx ForumGroupID=14 ...Show All
.NET Development casting error?
Hi, I am creating an application which consumes a web service. I get a run-time error at this line: cert = (System.Security.Cryptography.X509Certificates.X509Certificate2) System.Security.Cryptography.X509Certificates.X509Certificate2.CreateFromCertFile(certificate); where private System.Security.Cryptography.X509Certificates.X509Certificate2 cert = null; and certificate is the name of the certificate file. The error message is something like this: System.InvalidCastException was unhandled Message="Unable to cast object of type 'System.Security.Cryptography.X509Certificates.X509Certificate' ...Show All
Visual Studio Team System How to clean TSF install
So, after 9 hours of attempting the install (December TCP) I cumulated so many errors... I was able to get through the install at some point (yes, I followed the documentation and user the same user names etc.), but I hit the 404. Tried to fix it, then got another error. Fixed that, but the install now cannot connect sometime to Analysis sometime to Reports. I think the whole thing is trashed at this point. I would like to know a way to completely remove the components at least I'll be able to get some other work on visual studio. Then I'll wait for a couple of months until the build gets more stable (and I can actually use my own user names ...Show All
.NET Development Private key public key signedXML
The signing key of the signedXML object should be the public key or the private key How do I use a .cer file to sign a signedXML object. How do I find the password for the files I should be using a .cer file correct and not a .pfx or other type of certificate How would this be different if you wanted the signature enveloped Thanks, this example was very helpful. ...Show All
.NET Development Processes + Sub Processes
Hi. I know how to get a list of processes. I want to be able to "follow" or "trace" a particular process. Now, the way my application works is that if the user enters a url, it launches the url in IE. That's all very well. This will be 1 process as IEXPLORER. Now depending on the url, if the url say, is a link to a live stream, the stream could be launched in Windows Media Player or some other 3rd party program - whatever it is, this will be another process. IE will nicely open this/execute this for us. That's great. However I want to be able to know or find out what IE launched as another process of it's own - ...Show All
Visual C++ Problem calling a function as thread
i get an debug assertion failed (file: wincore.cpp line: 884) when i call the following AfxBeginThread. The function CardThread will do some I/O on a usb device. Then i trace down the problem, it's caused by calling UpdateData(TRUE) as i wanna display what i read from the device to a dialog box. it's a dialog based application with only one main dialog box. if i keep on clicking ignore when the debug assertion comes up whenever it comes across UpdateData, i get the right outcome at the end as well. AfxBeginThread( (AFX_THREADPROC)CardThread, this ); Tracing the problem, CardThread->doRead->UpdateData(TRUE); what's the ...Show All
.NET Development XSLT and Windows Application
Hi, I'm a newbie to XSL/XML.I have a winApp in which gives the user the flexibilty to import data in any format excel speed sheet,CSV and so on. My question is how do I map the incoming and outgoing data into XML.Can I even use XSLT in winapp(Is it possible ) or Do I need to create maps(we are not using BizTalk) to convert the imported data into a required format. I'm confused... what is the best approach. Thanks in advance. In the meantime, you can convert .csv to XML using this sample code: http://www.gotdotnet.com/Community/UserSamples/Details.aspx SampleGuid=DDE579F1-836A-4562-A3CB ...Show All
Visual C# C# and Lotus Notes
Does anyone have any suggestions for using C# to do a lookup in Lotus Notes address book Any Help would be apppreciated Thank You It's actually very simple. Create a new project in VS.Net 2003/2005. Add a reference to to Domino to it (right click on the References in the Solution Explorer, switch to the 'COM' tab, locate "Lotus Domino Object" and click OK). Now in your code add a 'using Domino' statement on top of your class. In your method you can now create a new NotesSession object as follows: NotesSession session = new NotesSession (); session.Initialize( "" ); NotesDatabase db = ses ...Show All
