ltca's Q&A profile
Visual C# Is it possible to add to a system class?
For example could i add a method to System.Array I know i could create a new class that inherits but would be nice to just tag it onto the system class! Thanks Not in C# 2.0 or less. In C# 3.0 you can create what they call "Extension methods" that essentially add a method to a class. See http://www.interact-sw.co.uk/iangblog/2005/09/26/extensionmethods for more details. ...Show All
Software Development for Windows Vista Notifying a Distributed Workflow of State Changes
Picture this scenario: You have a central workflow, hosted however you see fit (WCF, Web Services, Remoting, whatever) and you have three different Windows Forms applications consuming this workflow. Each application can cause the workflow to change state, but I also want each application to listen for state changes to the workflow . My current train of thought involves linking the Windows Forms applications in a peer network, and whenever one peer changes the state of the workflow, the other peers are notified via service messages. The problem I'm having is that the peer network isn't functioning properly - using PNRP the peers don't detect each other reliably (sometimes they do, sometimes they don't). So, I'm wondering: do I take t ...Show All
Visual Studio Express Editions Painting into an image box
Hi I know you can draw lines and things into a picture box with picturebox.CreateGraphics.DrawLine(Pens.Green, 5, 5, 6, 6) etc But why will it not work with variables in place of the 5, 5, 6, 6 Is there a way of painting a custom colour instead of a pen colour Is there a better thing to use that allows me to just change pixel coordinate colours as it is easier to imagine and write code for, this is confusing to me. Ah yes! That works! But... it only paints into roughly half the picture box... And it has slightly different shades of blue and green - how can this be I only chose blue and green! The drawing disappears if I switch to a diff ...Show All
Visual Basic Trouble Including Image Files with a Program Distribution through the Resources folder
I'm having some trouble including three image files I need via the Resources folder. In my Resources view, the only 'Persistence' options are 'Linked at compile time' and 'Embedded in .resx' - trying either one, I get a System.ArgumentException when I try to load the images from "Resources\image.gif" - I have three other images that load perfectly find from "Resources\otherimage.gif" - what am I doing wrong Hi, Try putting all other files in the BIN folder of your project/solution as i've been told by my lecturer, that is the 1st place the Visual Studio IDE-compiler looks for files. Try also ( if you wish ), files in the main folder of your project/solution. You woul ...Show All
Visual Studio Express Editions unhandled exception message
is there a way to aquire the message that the details of the exception makes. Not the exception.message property i am talking about the part that says "arguementexception was unhandled" In addition, there is a global routine already in place that will handle any exceptions which haven't been handled: Select MyProject, Application Tab, Application Events, select MyApplicationEvents and add code to the MyApplication_UnhandledException() event. You can also prevent the application from closing after an unhandled exception. ...Show All
SQL Server Subquery Question
I'm trying to write a very specific subquery. My table data looks like this. jobname1 complete destinationA jobname1 complete destinationB jobname1 not-complete destinationC jobname2 complete destinationA jobname2 complete destinationB jobname2 complete destinationC jobname3 complete destinationA jobname3 complete destinationB jobname3 complete destinationC The result I need is the job name of all unique job names whose records are ALL complete. So, in the case above, I need the names of jobname2 and jobname3. Here's what I have so far, but itt is so far returning no results: Select jobname from table where NOT EXISTS (Select * from table where table.job_status != 'complete' ...Show All
Visual C# Move mouse programatically?
Is there any way to direct a mouse cursor to a specific point on the screen Yes but not as easy as moving the mouse. You'll have to pinvoke the SendInput Win32 API: http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/sendinput.asp https://blogs.msdn.com/robgruen/archive/2004/05/10/129221.aspx ...Show All
.NET Development XmlValidatingReader does not give any validation error
Hi I am using XmlValidatingReader to validate my XML with schema. There is a particular validation error that does not appear when I use the XMLValidatingReader, but it is shown when I try with XML SPY. I am sure XML spy is right in this particular case as I can see manually that the schema does'nt allow a particular element and it appears in the XML document. Is this a bug in microsoft If you need more details, please let me know. Below is the XML file I am trying to validate < Command > < Step > < Para > One or more of the following may be evidenceTAT probe icing: </ Para > </ Step > < List > < ListItem > < Para > autothrottleand Referenc ...Show All
Visual Studio VSTA SDK
Hi, I've downloaded and installed the Visual Studio 2005 SDK v3 August CTP which is supposed to contain the latest version of the Visual Studio Tools for Applications toolkit (according to this page http://msdn2.microsoft.com/en-us/vstudio/aa700828.aspx ). In the SDK directory I can find the samples (ShapeApp) however it appears that no documentation has been installed. Is the documentation in the August CTP or do I have to download an additional or alternative version of the SDK Regards, Anthony Williams Yes I had seen that post however if you follow the link at the bottom of the post then you simply get redirected to the standard download page and instructions to download the August CTP! ...Show All
Visual Studio Team System Schema Compa Using a project as Target Schema
Hello, I noticed that a project can be used as the Target Schema in a schema compare. Is there anyway to update the project with what is currently in the source database The script that is generated is SQL meant to be run on a database and the 'Write Updates' button is greyed out. Are there any plans to implement the ability to directly update the code of the project via the Schema Compare It could also be useful to be able to compare project to project and then update accordingly. I was just curious if anyone else had similar thoughts or answers. Thanks, - Grant Thank you for the feedback:-) and I do hear you. We have heard this alot from customer with the recent CTP and at Tech Ed. We trying ...Show All
Windows Forms Making a typed resource file public
Hi! I made this question before during the beta period but I'm coming back just in case something changed after the final release of vs2005. Is there any way for a typed resources class to be generated as public so that they are accessible by other projects expect the project containing it. The ResXFileCodeGenerator custom tool generates this class as friend. The only work around I found is to clear the custom tool property from the resource file to executer the resgen.exe manually. Isn't there any other more elegant way Hi, I have fixed the tool, it should be working fine in VB.Net projects by now. Please let me know if it's still broken. Sorry for the trouble. Gokhan gokhan (AT_SIGN) altinoren (DOT) com ...Show All
Windows Live Developer Forums How to get the rss content displayed in my personalize page through Windows Live Platform?
I want to get the rss content displayed in my personalize page in Windows Live in my application. However, the source contents in the web page are all javascript codes, I am not able to get the content I need(for example: the news I can read in my personalize page). Does Windows Live have some APIs which I can use to get the information Thanks for your reply. Just to be clear, you're asking if there's a way to get the list of RSS feeds you've subscribed to off of Live.com As far as I know, that's not available. ...Show All
Windows Live Developer Forums Send MSN message using C#
Is there any way to use MSN API in C#, I want to put feature in our current applicaiton to Send message to Perticular MSN Id..using its API or SDK. How can i achieve above goal. Thanks in Advance... Ronak Hi, This has been views 125 times still no answer. I am wondering whether Windows Live Messanger Team ever looks at this Forum or not. I just want to send Message using MSN throught c# .. Let me know if this is possible and if it is Yes, then how to do it. I have read couple of articles but they all talks about Addin Properties.. No body knows how to login , send message and log off .. MSN or Windows Live Messanger using C#... Ronak ...Show All
Visual C++ Visual Express to Standard Edition.
Visual Express to Standard Edition. I downloaded Express to evaluate C++ 2005. A problem with FileStream was resolved by opening and closing the stream for each action to my database. On a large report doing random reads endless opens and closes might be a problem. On the Standard Edition can I use MFC CFile IO instead of FileStream using the new syntax (i.e. gcnew etc.). Another issue of concern is debugging. On versions 2003 and 2005 express everything of interest to a malfunctioning function is out of scope - including the argument to that function. Has this been addressed on the 2005 standard edition Re: Visual Express to Standard Edition - resolved. All problems relating to FileStream have been resolve ...Show All
Windows Forms Clear Results...
Hello, I am trying to clear my results from my dataGrid...i have the following code but it breaks on the last bracket in the code for some reason but here is the code, check it out private void button3_Click( object sender, System.EventArgs e) { //try //{ this .theDataset = new DataSet("Customers"); this .theDataset.Tables.Clear(); this .theSQLDataAdapter.Fill( this .theDataset); this .dataGrid1.SetDataBinding( this .theDataset,"Customers"); //} //catch(Exception eq) //{ // MessageBox.Show(eq.Message.ToString()); //} } } } Your .Fill() is probably not creating a Table called "Customers". Try this: this .theDataset = new DataSet(&qu ...Show All
