Philipp Lamp's Q&A profile
Visual Studio 2008 (Pre-release) Databinding to Attached DP's
Databinding to attached DependencyProperties works in code. But does not seem to get picked up from Markup in XAMLPad. Should it work, is this valid syntax <Rectangle Canvas.Left="{Binding Path=Canvas.Left, ElementName=Button1}" Thanks Ron @ Mobiform Hi Ron, There is a special syntax for that, for example: <DockPanel DockPanel.Dock="Left" Name="dp"> <TextBlock Text="{Binding ElementName=dp, Path=(DockPanel.Dock)}" /> </DockPanel> Notice the parenthesis around the Path. Thanks, Bea ...Show All
Windows Forms Datagrid + Append + Existing Excel
Hi I have a datagrid, and i have an Excel with already filled in data from the same grid. Now i wanted to Append the newly obtained data in the grid to the Excel. I know how to browse to that Excel on my local machine in C#, but i dont know how to append the grid current data to the existing data in Excel. I have exported the code to this excel from grid using the below code: foreach ( DataColumn col in table.Columns) { ColumnIndex++; excel.Cells[1, ColumnIndex] = col.ColumnName; } int rowIndex = 0; foreach ( DataRow row in table.Rows) { rowIndex++; ColumnIndex = 0; foreach ( DataColumn col in table.Columns) { ColumnIndex++; excel.Cells[rowIndex + 1, ColumnIndex] = row[co ...Show All
SQL Server SQL Server Compact Edition is not in the list of DataSources
Hi everyone, I am using VS2005, just installed SP1, and the help -> about window reflects this. I have also installed the SQL Server Compact Edition SDK, but when i try to add a new data source connection (following the MANY tutorials on this), i do not see an option for SQL Server Compact Edition nor do i see an option for SQL Server Mobile. I am at my wits end and i just got started! Yikes... Any thoughts on how to proceed Hi JadeS, Yes, I can see it in your screenshots. I have on mine one more that is the Mobile... I did just a test with another computer where it was not installed with VS2005 SP1 and CF 2 fully updated and just after the install was finished I did open VS and without to create a project I did open the ...Show All
Software Development for Windows Vista It works.. there was great rejoicing
Hello Everyone, I've created my own custom PropertyBindDialog because the one that Microsoft provides is pretty deficient. Unfortunately my own custom PropertyBindDialog will not be used after I call Activity.SetBinding - after I do this for a given property my own custom PropertyBindDialog is ignored and the Microsoft BindDialog is used. Here's some of my source code... The problem occurs when I call SetBinding on the property Test. After I call SetBinding, my PropertyBindDialog is no longer used when I want to edit the Test property - the Microsoft BindDialog is used and my custom PropertyBindDialog is ignored. Anyone out there have any ideas namespace MyActivityLibrary { public partial class MySpe ...Show All
SQL Server SQL 2005 fails to install workstation components and tools
Hello. When I install SQL Server 2005, it all goes well except that it fails to install these two: - SQLXML 4 - workstation components and tools When I try to install these two from the CD in the Setup folder of the CD 2 with the files sqlxml4.msi and sqlRun_Tools.msi (if I remember these names correctly), it gives me an error: 'Ce package d'installation n'est pas pris en charge par ce type de processeur' Sorry. My SQL CDs are in french, but it roughly translates to the message: This installation package is not taken by this processor. I thought that my hardware configuration does not meet the requirements. But I have a Pentium 4, 2Gig RAM, over 100Gig free HD space. Also I tried to install on other computers to no ...Show All
SQL Server IE7 and SSRS Document Map
The contents of document maps do not appear since I upgraded to IE7. They still appear for users on IE6. Reporting Services version is SQL2000. Have looked all over - this problem has been reported in a number of places but there seems to be no response / fix / work-around from MS. Can anyone help or at least comment Have you got a reference to a Tech Article or the hotfix id as our local support did not know about this and I cant seem to find a Q Article number for it. ...Show All
Software Development for Windows Vista Custom sequence activity: Collapsed by default?
Hi, I've write a custom activty that inherits from SequenceActivity. This activity is composed of two sub activities: handlexternalevent and callexternalmethod I would like that my custom activity looks like a basic activity (collapsed) and I don't want that, when the user drops the custom activity on a workflows, he sees the two sub activity. Any idea must be easy but i didn't find the trick. thx! Antoine If you derive from ActivityDesigner (as suggested earlier) instead of Sequential Activity Designer, then you're composite will look like any of the built in activities. I.E., you won't have to collapse it. You can also then add an ActivityDesignerTheme to control background and foreground color to set y ...Show All
Visual Studio Team System Database
Hi, Is the database created on the fly when a solution file is loaded to VSTE. because when i connect using sql server management studio i see the database when i have opened the solution file form VSTE. when i close the solution file from VSTE the database does not appear in sql server management studio. Will this cause any kind of a performance issue. Yes, in CTP5 the design-time validation database is recreated each time the project is opened. We realize this has performance impacts and are currently investigating possible solutions. Thanks for your feedback! -Jon ...Show All
Visual Basic Is it possible to host a .NET control in VB6 form?
It looks like most questions in this forum go unanswered, so hopefully someday before I retire I can check back here and find an answer. I am trying to use a component created in .NET on a VB6 form. I've seen information about creating type library's from .NET dlls that you can register so COM can see them, but thats a whole different monkey from turning a .NET dll into an ActiveX control. There's a CTP version available on our blog at http://blogs.msdn.com/vbteam/archive/2006/11/02/interop-roadmap-usercontrols-mdi-and-data.aspx . If you've got any questions on how to use it please post them here and we'll do our best to answer them. Thanks, Jonathan ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Custom Vertex Format
I have been playing around with creating my own custom vertex formats in XNA. To test whether it works I am creating a vertex format that is the same as VertexPositionColor. I created a struct with a Position, Color and SizeInBytes property. Creating the vertex element array is also no problem. Until here my vertex format and that of VertexPositionColoris exactly the samen. The only thing that is different is what both return in the GetHashCode method. I believe this value is used to actually use it (in combination with the vertex element array to index this value). In the GetHashCode method I return: this.Position.GetHashCode() | this.Color.PackedValue.GetHashCode(); I got this from this article . Can anyone tell me what I am doing wrong ...Show All
Visual Basic Looping
How do I setup a for next loop array to open files if I don`t know how many files are in the folder I figured out the memory exception. My dir is d: instead of c: Now I am getting"Index was outside the bounds of the array" I am still playing around with it though ...Show All
Software Development for Windows Vista Manifest files for Vista
Hi, For some of the exes of my product, I need administrative privilege. So I embed them in my application with "requireAdministrator". It works fine on Windows Vista and prompts for allow/deny or administrator uname/password as applicable. But the same program has non consistent performance on previous OS versions(XP, 2003 Small business etc). It shows blue screen sometimes for the applications where these manifest files are embedded. One can avoid these blue screens if the embedded manifest file is also present in the same directory as the exe for other OS. I do not want to make my application dependant on the presence of manifest file in the same directory. Is there a way out Is there a tool to find whether an embedde ...Show All
Visual C++ Change DLL Search Order Dynamically?
Is there a way I can alter the dll search order dynamically (launching executable process) * SetDllDirectory( ) only works with LoadLibrary/LoadLibraryEx * CreateProcess( ) doesn't seem to have any flags/parameters to toy with. * LoadLibrary( )/LoadLibraryEx( ) don't load executable bits for executing (only for resource manipulation) * Changing values in the registry upon load is unacceptable and would likely break anyway. Yea, I went down the Detours path but couldn't find a way to avoid having to write a copy of the original executable to disk so I abandoned it. If I could use Detours and pipe the output to a portion of memory and execute it, then I'd switch back to it. My only solution right now i ...Show All
SQL Server Running Total help...like Cyrstal XI
I can perform this running total easily w/ Cyrstal reports via the "Running Total" window where: 1. I want a certain expression, here would be the sum of a money column 2. I want it to total on this certain grouping 3. I want it to reset on this certain grouping So, let's say I have three groupings centering around time zones for the United States: 1. Inner most group is per a state's county 2. 2nd most is per actual state 3. Outter most is per state regions like P.S.T, M.S.T, etc. time zones. If my detail section has multiple rows b/c of my joins then the totals are duplicated. How can I do a running total like crystal and have it "reset" on the 2nd and 3rd groupings and only do the actual " ...Show All
Visual Studio Sandcastle, .NET Framework Doc Style?
I was hoping that Sandcastle would generate HTML similar to that seen in the standard MS documentation in VS 2005. I.e., for a given class, there are separate sections for public/protected methods/properties. The default HTML generated by Sandcastle is of a style I'm not familiar with and don't really care for (none of my parameter descriptions are shown!). Does anyone know how to generate the HTML documentation I described above The type of the parameter is supposed to appear in the parenthesis. In the July CTP, there was a bug that it did not. That bug was fixed in the August CTP. Anand.. ...Show All
