Answer Questions
Lenin82 Why does the ContextSwitchDeadlock happens?
I got following error in a very basic VSTO Excel Workbook project. My method responds to a hyperlink, sets some integer values in a 10x10 cells array; and then user rng.Find() to find a specific string. However, the last part is when the while loop continues trying to get the next string with rng.FindNext(foundRange). The strings are found, but then Excel does not return from it (it takes all my CPU time); and finally, I got this error. Conte ...Show All
K8CPA How to make a column's width 50% of the grid's width?
hello, is this possible. Something like <columnDefinition width="0.5"> or <columnDefinition width="50%"> doesn't seem to work. thanks in advance Kimme If you really want one column to be 1/2 the width even with other columns present, you can also use a value converter. By binding the width of the grid to the width of the column, and using a value converter to apply the 1/2 you c ...Show All
RJW1958 Source code control
Dear All, I am using the VS.NET 2005 professional. I have a few developers working on the same project. I would have to have the source safe control the same as it was in VB6. What else would I need to have the source safe server installed and also the projects source code can be shared and developed by multiple developers Regards, LG Hi, I'm not sure I understand what you mean. I've ...Show All
Johan Traa Should I use the Constructor, the Initialized or the Loaded Event?
hello I have a .XAML Page class. I want to bind some data within a ListView object within it. I am confused as to when one would use the Constructor, when one would use the Initialized event and when one would use the Loaded event. Could anyone clear this up for me thankyou. Chaz provides some great info on the sequence of events, but to answer your question directly: Loaded would be the best place to ...Show All
padlewski Help on ProjectNode.AddReference
Hi, Has anyone any experience with ProjectNode.AddReference() I'm trying to dynamically add references to a project. I succeed when adding specific files that are part of my application, but for some reason I'm struggling to add .Net assemblies such as System. I think I'm probably missing something quite simple, but I can't see the wood for the trees. Here's the code: class myProject : ProjectNod e { void MyMethod() { VSCOMPONE ...Show All
Chill Phil Error: "Error reading setup initialization file" from autorun
I have been trying to install the MSVC++.net /Visual Studio and have run into a problem. I am using the 2003 academic version and would like to install this on a Pentium M system running XP Pro SP2. It is an HP notebook, so if there is a conflict there . . . The error I get when either autorun or exploring->setup.exe runs is: "Error reading setup initialization file" which is in a window/graybox with a button that has no ...Show All
Beat Unable to pick my sc package from tools-options-source control
Hi All, I am trying to write a Source Control Package using C#. I have been taking help from the sample code that comes with SDK 2005 documentation. The sample code 'SccPkg' has been written in C++. Furthermore, this sample code implements interface IPackage. I created my package by using the wizard to create extensibility package. I did not have to implement IPackage. Then I added my own toolbar and menus. I also implemented the interface ...Show All
CheFowajuh Is it possible to override build dependencies from a different project?
Hello, I am not sure it is possible to achieve what I am trying to do, but in general it is an ability to override default build targets for the project from another project. Let's say we have project MyProj that is simple C# class library. By default it will use the following build dependencies defined in Microsoft.Common.targets: < PropertyGroup > < BuildDependsOn > BeforeBuild; CoreBuild; AfterBuild </ BuildDepend ...Show All
John van Kaam Anyone knows how to draw a vertical text?
Hi, Does anybody know how to draw a vertial text in Avalon I've tried the rotate transform but it doesn't as i expected, have any ideals Thanks, Dat Dang Dat, if you mean East Asian vertical text, we unfortunately do not support this in v1. The frustrating thing about vertical text using the rotate transform is that the margins are calculated before the transform ...Show All
jchen Injecting a target before the build
Hi I'm modifing a .target file for building .Net 1.0 & .Net 1.1 within VS. As neither versions of csc support the /keycontainer command-line option, I'm trying to inject a target before the build that will check that and emmit a more meaningfull message. I've tryed both this: <PropertyGroup> <CompileDependsOn>CheckUnsupportedFeatures;$(CompileDependsOnOn)</CompileDependsOn> </PropertyGr ...Show All
Har_ish Is it Safe?
We are building a new business application, we want to know the risks that we will face with WINFX, Do you recommend building the UI Layer with winfX or Not Thanks, but I think this articles tells me when to use it. but I'm asking about the risks; bugs, Changes may be made in the next framework release.... I'm asking this question because we are making a huge business application and we want to determine wh ...Show All
Gary Chang Sum/Average does not check for overflow
Why Sum / Average run in unchecked context I.e. long [] numbers = { long .MaxValue/2, long .MaxValue/2, long .MaxValue/2}; var averageNum = numbers.Average(); Result in -1,53722867280913E+18. int [] numbers = { int .MaxValue/2 , int .MaxValue/2 , int .MaxValue/2}; var numSum = numbers.Sum(); Result in -1073741827 Any reasons for this I don't see smiles in you ...Show All
Ian Tien What causes CommandBinding.CanExecute delegate to be invoked ?
I have a button that executes a command when it's clicked. I have a CommandBinding instance associated to that command, and also methods to: * Allow/disallow execution * Preview execution * Handle execution All 3 are being called. It's obvious when the last 2 will be called but not the first one. Depending on a specific application state, my CanExecute method will return true or false. When the application starts it returns false which makes the ...Show All
Hemant Rao Outlook blocked my script help
hello all i am developing an outlook addin and while executing him an error occured, the outlook asked me if i want to block my script in the future and i accedantily clicked yes.... now when i run my add in i cannot see the addin in the outlook screen, what can i do to restore my add in...... Please this is driving me crazy Itzik You mention a Script being blocked, this is not an Addin if the above doesn't hel ...Show All
kiran pavuluru Missing ORM Features
Hi, Been playing with the preview and saw in the doco that mapping inheritence is not supported. This is fundamental to an ORM. Without it polymorphic queries are not possible. Not only this, but all ORMs I've worked with (Persistence, TopLink, Versant, Hibernate, NHibernate) support the standard 3 ways of mapping inheritence to a relational model. This is equally important because alot of legacy schemas out there use a combination of the ...Show All
