Sean Sandys - MS's Q&A profile
Windows Forms How to draw ImageList items with ImageAttributes applied
Hi all, My control has a property of type ImageList. When drawing out the images, I use the ImageList.Draw() method to obtain true quality. However, in my control, I also need to draw a "selected" image a bit darker. Herein lies the problem. The ImageList.Draw() method does not provide any overload which accepts an ImageAttribute instance (I use ImageAttribute object and set Gamma property to a higher value to paint the image darker). If I use Graphics.DrawImage() and pass in ImageAttribute instance, the image becomes jagged and doesn't look as nice as when it gets drawn with ImageList.Draw(). Is there anyone who k ...Show All
Visual Studio Package Load Failure Again
When i run a perfectly compiling project, i get a package load failure error following which the sample.xxx file that gets created has no items in the toolbox. When i open a new .xxx file from My Templates there is only a cursor blinking. it does not take me to a designer page as expected. When i open the file manually i dont see any xml code at all. I cant understand why this happens. Does this happen when you try and create a new DSL project You may need to run the “Reset the Visual Studio 2005 Experimental hive” tool and try again. Failing that, try reinstalling the DSL Toolkit. Howie Hilliker ...Show All
SQL Server Error loading Oracle DATE data
Hello. I'm trying to put in an SQL server database some data extracted from Oracle Server 9i. During the load process, the "OLE DB Destination" in the task chokes up when it finds a record containing the date '0197-01-01 00:00:00' (i got this by putting the error output to a column of type varchar(50)). I can't use the Condicional Split's date functions to filter this out because they also choke on the strange date. Can anyone give a sugestion Thanks in advance, Hugo Oliveira SQL will not recognize that as a date. Valid ranges for a datetime column are January 1, 1753, through December 31, 9999. If you want to ...Show All
Software Development for Windows Vista Vista
I have just become a member of Technet plus. I have installed Vista beta on my puter. I keep having this Windows Security pop-up everytime my anti-virus hiccups. Is there a way to stop this It is the pop-up to accept or deny permission for my anti-virus to run. I agree with user001 we need some kind of protection! If we can't us norton tell us what will work on Vista Pam ...Show All
Visual C# COM+ documentation for C#
Hello. Where can I find a good documentation about COM+ for beginners Thank's. ...Show All
Visual Studio Team System Code Profilter listing function names as hex codes (instead of name)
When running the VSTS code profilter, the report lists the "Function Name" as codes like 0x60000008, Line Number is "0", and Source Code File Name is <blank>. Any idea why the profiler appears to not be picking up the info from my assembly/project Chances are that when the report is being generated from the .vsp file, symbols can't be found for whatever reason. It's actually a pretty common snag but in most cases can be easily corrected. Here's an article on the topic that might help: http://blogs.msdn.com/scarroll/archive/2005/04/13/407984.aspx Eric Jarvi http://blogs.msd ...Show All
Windows Forms How to deploy an application
My question is this: I have my main app called MainApp.exe, it uses a dll called MyDLL.dll, let's say that MyDLL.dll has a method that does a sum of a+b. I deploy my application and everything is fine, a few days later I want MyDLL.dll to do a multiplication instead of a sum, how do I deploy the new dll without redistributing&nb ...Show All
Visual Basic File Access Denied
I'm using the following code to look for Access Databases on my computer: For Each foundFile As String In My .Computer.FileSystem.GetFiles( Me .txtSearchDirectory.Text, FileIO.SearchOption.SearchAllSubDirectories, Me .txtSearchText.Text.Trim) lstResults.Items.Add(foundFile) Next I get the following error when I attempt the search: Access to path 'C:\b\sp2' denied. The part that is confusing me is that I'm an administrator on the machine so there is no reason why I should be denied access to anything at all. How do I make it so that each and every directory is searched ...Show All
Visual Studio Show more than one Property in a Compartment
Hello, In the Documentation of the September Release, I remember it was a document wich explains how to show more than one Object property in a Compartment, is this possible with the last release How Can I do it Thank you very much! Rafa Cabedo. Rafa, I assume you mean the " Compute a property value based on others " example where name and type was displayed in the compartment If yes, this example can be found in the document named "Example.ValidationandConstraintsDSLNov2005" that is part of the zip file that can be downloaded here . Hope this helps, Edward ...Show All
Visual Studio 2008 (Pre-release) Persistent installation errors with Beta2/RC0 : "Beta 2 was not attempted to be installed."
When I run the installer, it take about 10 miniutes of "installing" before there is an error, the error is below. I've seen that there are threads describing a similar error with earlier drops, but I didn't see any mention of a way out. I'm running on XP, I've run the removal tool but still I get the error. Has anyone else installed this drop on XP Is anyone else having this install problem with XP or other [05/24/06,12:27:29] Windows Communication Foundation Beta 2: [2] Error: Installation failed for component Windows Communication Foundation Beta 2. MSI returned error code 1603 [05/24/06,12:27:39] WapUI: [2] DepCheck ...Show All
Visual Studio Tools for Office Autosave
In my addinn I want to catch the saveevent from the user. I use the before_save event. My problem is that that event also is thrown on autosave. This is not wanted. Is there a way for me to differenciate between the two events neoret Not sure about the "tell the difference" part, never looked but you CAN turn off the AutoSave options in Startup and then "Restore" them in Shutdown ... this.Application.Options.BackgroundSave = false; this.Application.Options.AllowFastSave = false; this.Application.Options.SaveInterval = 0; Assuming your user doesn't go re-enable them, you should be good ...Show All
.NET Development N- Tier Architecture in ASP.NET 2.0
Hi .. I have to create n-tier architecture for my new project with visual studio 2005, asp.net 2.0 and SQL 2005.. I had seen my sample applications for that but they all are using a single project and creates Business and DataAccess class in App_Code directory so i am confused whether to use differenct projects (say one for BAL , one for DAL ) or to merge them in the single project... Any idea on which approach is better for a long term project... Thnx in Advance, Aryan Hi Marius Gheorghe n Ajakeman, Thnx for reply ... :) Any idea about if i use different project for Each Layer then will i be able to use the advantag ...Show All
Software Development for Windows Vista Handling concurrent development of workflows
Hi, how does everyone handle several developers working on the same workflow We're developing a code based state machine workflow and need several developers to concurrently change different parts of the workflow. However, due to the generated components (.designer.cs but mainly .resx and .layout) the merging is almost impossible. How are people handling this Would using a XOML based workflow be more appropriate If so, is there a way to convert an existing code based wf to XOML Thanks -- Nuno Numo, I think the following sample should help you: http://www.masteringbiztalk.com/blogs/jon/PermaLink,guid, ...Show All
Windows Forms Parent - Child windows
Hello all, i think this is pretty easy question for you, but i have no idea how i can do it. I want to have a windows application in which the main window will be always open and the "child" window will open inside the main (all the children windows will open inside the main). Something like a form with some menu items and when you click on them they open other forms in the main window's area. How can i set that the main window will be the "main", how about the settings i have to set to tell the children windows that are accually "child" and how to set the area (in the main window) in which the children windo ...Show All
Visual Basic quicksort not that quick
hi, i am trying to sort a long list of strings (100,000+) in order to identify unique values in the list. So, i've basically tried Array.Sort, which is nice (but i'm not sure which sorting algorithm it uses) but seems to be rather slow, so i tried implementing my own Quicksort (from the msdn library) but that also seems to take 10mins+ (i gave up at this point) for a list of 131,000 strings. I've tried sorting the list in Textpad - which takes seconds, and even doing the same in excel (granted for half the list) takes seconds, so i'm wondering: a) what algorithm is textpad or excel using b) surely there's a better way than the quicksort alth ...Show All
