Evan Haklar's Q&A profile
Visual Studio 2008 (Pre-release) DataContext lost in a ModelVisual3D??? Is it a bug?
Hi all. At the end of this post I added 2 pieces of code. Basically, the second one is the same as the first one but wrapping the _itemContent with a Viewport3D so that 3D animations are possible on the list items. In both cases the _itemsContainer.ItemsSource is set in the code behind in the Loaded event handler of the Window. However, the 2nd code doesnt work and after many experiments I detected that the DataContext is lost. My question is: is this supposed to happen For some reason the VisualBrush "blocks" the cascading of the DataContext Is there another way to create a 3D ItemTemplate The Templating2 sample here http://msdn ...Show All
Visual C# HELP US!!!
Hi We are at least 4 or 5 people on this forum that are trying to get an answer for this question: We make our own .dll in managed code c#, and when we use DllImport, we get the exception for invalid entrypoint.. why I saw on a site this definition EntryPoint This specifies the name or ordinal value of the entry point to be used in the DLL. If not given, function name is used as entry point. but we give the fuction name and still that exception... Help Us guys. Thanks!!! DLL writen in managed code is not a regular Win32 module, meaning it has a different overall structure when it comes to exporting functions. You only need ...Show All
Visual Studio Express Editions How do I change the primary key of my SQL data base?
I set the primary key of my SQL DataBase to First_Name, Last_Name, Birth_Date. So, the records are in First_Name, Last_Name sequence. I want the sequence to be Last_Name, First_Name. How do I change it hi, first of all primary key doesn't have anything to do with your columns sequence the columns sequence depend on your design wich column you want it to be the first one the last thing is that you can't depend on firstname , lastname, birthdate to be primary keys at all because names can be duplicated and you might have 2 persons have the same name or birth date hope this helps ...Show All
Visual Studio 2008 (Pre-release) Animate Enumeration Values (Feb CTP)
Hello everybody I'm using the Feb CTP of WinFX and I was wondering if I could animate the values of an enumeration. Acording this page, http://blogs.msdn.com/expression/articles/538345.aspx#1.4, it's seems to be possible by using Microsoft Expression Interactive Designer: "Support for animating enumeration values — for example, you can now animate Visibility of elements" So, how can I do this in XAML I've try this but it's not working as I don't know which Animation type to use: <Button Name="m_MyWPFMediaPlayerHidePlayListButton" Content="Hide PlayList" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="5"> &nb ...Show All
SQL Server Implicit conversions using UDTs
I've written a CLR UDT that basically wraps a COM FILETIME. While using and testing this UDT, I've come across some unusual behavior that I can't seem to track down. My question is this: When I make the T-SQL statements DECLARE @ft dbo.MyFileTime SET @ft = 0x0123456789ABCDEF What's happening within the SET statement My first surprise was that it succeeded. Then I thought, "The hex value, I understand, is implicitly a BINARY or a VARBINARY. Underneath, with those attributes, MyFileTime is also implicitly a Binary or a Varbinary. Maybe it's simply performing a direct assignment " MyFileTime is prefaced by ...Show All
Windows Forms How to change a property path in the File System Editor?
Hi, I'm building an installer in Visual Studio 2005 in C#, based on a solution where I have multiple Installer class for different projects. I call my installer class from a Custom Action. I would like to change the property of a File System Property entry before the copy of the file.The path is requested to the user during the Custom action execution. I can't use the default requested installation path because I have 3 differents path to manage during the installation How to retrieve from Custom Action the paths values selected by the user I already try to pass data trough Context.Parameters keys but it's not working. Any ...Show All
Visual Studio Team System Delete files from local folder
Hi, We have the following problem: When Developer A deleting files in his local folder (which mapped to Workspace), and Developer B makes changes in the same folder and checked in the changes, Developer A is trying to Get Latest Version but get no files at all. The solution is to create a new workspace and then Get Latest, but it's makes us a lot of problems. Thanks, Michael Quite true- the user should get the changed files from source control, though not downloading the unchanged files is expected. Apologies for the misread of the scenario. One question which could help pinpoint the issue- what folder does D ...Show All
Windows Forms Icons not showing up on Treview
I am using VS 2005 Beta and I have a Treeview UserControl that I built for a menu. I added an imageList to the control and added some icons that I want to associate with the control. When I build the solution and view the UserControl placed on a form in the designer, I can see the icons. However, when I run the solution's executable I do not see the icons in the Treeview. It is like the images are not getting placed into the output of the build or something. I have managed to break this in two seperate places. I cannot for the life of me figure out what I missing since this used to work. Anyone ran in ...Show All
Visual Studio Express Editions Using Classes and Structs
I am confused on using Classes and Structs. Can anyone shed light on what MS has changed about them example this code generates a ton of weird errors #include <windows.h> class CIGECORE { public : LPSTR sAppTitle; int iPosX; int iPosY; int iWidth; int iHeight; }; That would be Gdi32.lib. FWIW, I just googled GetStockObject, the first link is MSDN, and the MSDN page at the bottom tells you what to link to ( if you ever have these sort of troubles again ). I tried a couple from ...Show All
Visual Studio Tools for Office Serious Error while debugging
Hi, While debugging the VSTO application, I am getting following error: "ContextSwitchDeadLoack" The CLR has been unable to transition from COM context 0x159ba8 to COM context 0x1598c8 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use ...Show All
Visual Studio Express Editions missing project template, Windows Service (.NET)
I'm trying to create a managed service using VC++ 2005, express. I've done this once a couple of weeks ago but now, either I'm missing something very obvious or somewhere the project template has gone missing. When I select File->New-> Project, I can't see windows service (.NET) under the list of installed templates. If anyone can spot what's missing I'd be eternally grateful. are you sure I've built a service using express once already and there's a section on creating services in the online documentation. ...Show All
Windows Forms Subcribing to a parent event from a child....form / usercontrol...
RE: Windows Forms / User Controls and VB.NET From within a user control, how can i recieve notification when the control's parent form is closing. I want the notification before anything is disposed so that i can save control states to the registry, namely, the user's last known listview column widths. I'm thinking of subcribing to the parent form's closing even ...Show All
Visual C++ The debugger isn't displaying std::wstring values
I have tried to use an std::set<std::wstring>, and the debugger appears to have a problem with displaying the values that are stored in the set (this also happens when using std::wstring as the key value in a map. Sample code: #include <set> #include <string> int main() { std::set<std::wstring> test; test.insert( L "1234567" ); // this is displaying correctly in the watch window test.insert( L "12345678" ); // this is displaying garbage in the watch window return 0; } This isn't a major problem, but makes it more difficult to use std::wstring. ...Show All
SQL Server Setting up a database
Hi people, I'm in the process of trying to set up my first SQL Server database and things aren't going as per the book! (surprise, surprise). The 'Identity Specification' option during Table creation, is 'greyed out' and won't let me set (Is Identity) to 'Yes' or anything else for that matter. I guess that there's a simple answer to this one, but as a newbie to SQL Server ( and VB 2005) I'm curently at a loss. Can anyone point me in the right direction Niknek Did you specify an integer value for the column `(e.g. int, bigint...= Then you should see the option not greyed out. HTH, jens Suessmeyer. ...Show All
Windows Forms CheckedListBox - how do I get checked items in ItemCheck event
Hello All, Using: Private Function GetCheckedItems() Try Dim obj As Object Dim strFlds As String For Each obj In Me.cmbFieldList.CheckedItems() ' Cast the  ...Show All
