Glenn Wilson's Q&A profile
Visual Studio 2008 (Pre-release) Intellisense problem
Hi! I installed Visual Studio to a clean installation of Windows Vista RC2. After installing Linq Preview, I have the known problem of intellisense completion. If I write: ArrayList list = new and then press space bar, intellisense doesn't give me suggestions. Same problem with the override keyword. I usually solved this problem by resetting the environment and by using the uninstall c# ide support script. The problem is that now, if I execute the script, I receive this error: Uninstall LINQ Enabled C# IDE Support was unsuccessful. Some files that need to be restored are currently in use. Is there any workaround I have VB installed and the smart tags functionalities work well. Thanks ...Show All
Visual C++ Change in behavior of properties from VC7.1 to VC8
In VC7.1 in the property pages for a project, if I entered a relative path for an include file on the "Additional Include Directories", then the IDE showed valid paths relative to the project file. In VC8, relative paths are all relative to some path in the install directory NOT my project. How can I get the VC7.1 behavior This new behavior is not intuitive. I never place my files relative to the install directory. Ah - I answered without checking first. Bad. Entering $(ProjectDir)\ does not bring up any autocompletion. Entering $(ProjectDir)\..\ still brings up the wrong tree relative to the install directory. In 7.1 I could enter ..\ and it would provide auto completion directories relat ...Show All
Visual Studio Sandcastle issue? Error: Unresolved assembly reference
I'm trying to build documentation for a class library that contains references to a few CrystalReports components. I tried the steps described on the Sandcastle blog to add the dependent information, but I now have this message which stops me from creating the documentation: Error: Unresolved assembly reference: CrystalDecisions.ReportAppServer.CommLayer (CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304) required by CrystalDecisions.CrystalReports.Engine The problem here is that this component ( CrystalDecisions.ReportAppServer.CommLayer ) is not available to you when have VS 2005 installed and simply use Crystal Reports for .Net which is included with VS 2005 ...Show All
Smart Device Development Get rid of/disable X
I'm developing an MFC app for a Pocket PC type device. Most of my dialogs were automaticly given an OK in the upper right corner that caused that dialog to close and I disabled it but replacing the void OnOK() function with one of my own. However the main window is given an X in the corner that causes the window to close (and dosn't even stop the program), i've tried replacing OnOK() OnCancel() OnClose() OnDestroy() without any sucess of intercepting/detecting when the user pressed the X. How can I do it As I said, it dosn't actually quit the program, it just hides it, it's still running in the backround so I will at least want to put something there so it will shut down the program correctly. ...Show All
Windows Forms Updating a specific row in Access database
Hi, I have another question regarding my database application. After my other question being answered here , I was able to populate a listbox with data from a column of an Access database. I now need to edit a specific item of the listbox and then update it in the database. The idea is the following: below the Listbox is a Textbox and a button labeled 'Update'. The user selects an item from the listbox and then writes something in the textbox below. When the Save button is pressed, the content of the textbox replace the value of that specific item in the database. How can this be achieved Or is there an easier way similar to what I have in mind And I don't have a DataSource associated with my project. (please refer to the code for ...Show All
Smart Device Development Creating reports in apocket pc application in VS.net2005.
I want to know how to create a crystal report(or just a report document) in apocket pc to print it. I want to print the reports from the pocket by a small printer .please I need a sample code. Can I use the word or Excel by writing a code HOW THANKS...................... Hi, neither word or excel expose a programmatic interface. Your only real way is to do it yourself, and use something like PrinterCE for the printing Pete ...Show All
Visual C# A problem with WebBrowser control
Hello, I have a very strange problem with the WebBrowser control... When the WebBrowser control have the focus, all my main menu strip shortcuts stop working, and when I set the focus to another control it start working correctly. How can I solve that Your help would be greatly appreciated. Hi, I have created a sample application with webBrowserControl and WebBrowsersShortCutsEnabled property is also set to false. But it runs fine... What actuly you are doing with web borwser control as i think some thing is wrong with in you code... ...Show All
.NET Development Problem in Deep Cloning
Hi all, I'm trying to deep clone a set of TreeNodes using Serialization.But i'm unable to get the object i stored in the Tag property of the TreeNode,instead i get null.All the child nodes of the TreeNode are cloned properly but the Tag value is not. The following is the code i use for cloning... private Object DeepClone( Object original) { // Construct a temporary memory stream MemoryStream stream = new MemoryStream (); // Construct a serialization formatter that does all the hard work BinaryFormatter formatter = new BinaryFormatter (); // This line is explained in the "Streaming Contexts" section formatter.Context = new StreamingContext ( StreamingContextStates .Clone); ...Show All
.NET Development How can I use the .NET Framework to find out if an app is installed?
I have a program that shows a list of files and the user can click on a file and that app opens up. Well if the user trys to open a file that does not have an associated app installed on the system, I'd like to give them more information. Is there any way to determine what applications are installed on a computer by using the .NET Framework. There are some great ideas you suggested, but I am looking more for a precursor to the Open With dialog... perhaps enumerating all the registered file types on the system to determine if the file the user is trying to open has an installed program that will handle it. I don't want Windows interjecting because I want to be able to tell the user in plain language that if the file they are trying to ...Show All
Windows Forms System component model with custom combobox column
Hi, I have a custom combo box column for a dgv. i've set the datasource and display member. The problem i am having is: When the combo value is changed, the value in the cell remains the same. The issue could be about binding or selected value changed i don't know. Someone please let me know the direction, better in form of reading for me to better get a grip upon what i am doing. For now i need to be able to make the combo keep the value the user selects. If not a solution, can i have some directions Thanking you all, hrubesh Imports System.ComponentModel <System.ComponentModel.LookupBindingProperties( "DataSource" , "DisplayMember" , "valuemember" , "lookupmember" )> _ Public ...Show All
Visual Studio 2008 (Pre-release) How do I get from System.Windows.Controls.Image to bitmap (e.g. jpeg)
Is it possible to get a bitmap representation of an Image object, or some other object generated from XAML primitives Thanks. Hello, Maybe this one would be helpful: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=646708&SiteID=1 Edmundas ...Show All
Windows Forms Too Many Handles - Do would YOU code it ?
I have a Diary application that needs to show a long list of 'Groups' down the left, each of which with a '+' that can op[en up to show people, and dates across the top. It needs to have smooth scrolling up and down and left/right. There could be 2000+ groups down, each which can open up to 50+ people in each. I have created a nice control based on a grid design and it works fine with limited volume of data. The problem is when a lot of data is loaded and therefore a lot of User Objects are created in the control it has a problem with Creating a Windows Handle. Thought I could get around the problem by only making the objects that would be viewable in the control Visible as they were scrolled in and Invisible as they scrolled ou ...Show All
Visual Studio 2008 (Pre-release) how to make ContentControl re-evalute ContentTemplateSelector?
I have a ContentControl with an associated ContentTemplateSelector returning one of two DataTemplates. Which DataTemplate is returned, depends on a boolean property of the selector. Here's some (abbreviated) code to illustrate this: XAML: <ContentControl x:Name="contentControl" ContentTemplateSelector="{StaticResource myContentSelector}" MouseRightButtonDown="OnSwitchContentTemplate"> ... </ContentControl> "code behind": private void OnSwitchContentTemplate(object sender, RoutedEventArgs args) { BoolDataTemplateSelector selector = contentControl.ContentTemplateSelector as BoolDataTemplateSelector; selector.SwitchValue = !selector.SwitchValue; } BoolDataTempla ...Show All
Visual C++ C1189 Please use the /MD switch for _AFXDLL builds
This is a new project and in the wizard I select that this was to be a dialog based program with a static linked library and did not select that it was to be a DLL. If I could get back to the wizard I would change the static library to shared to see if that had any effect, but I don't know how to get back to the wizard without having to rewrite all of the stuff I've already written. What do I need to change to get rid of this error Thanks, Ken Open Project->yourProjectName Properties... Select Config Props->C++/Code Generation : Runtime Library = /MD for release and /MDd for debug. -- SvenC ...Show All
Software Development for Windows Vista How to Track StateMachine Workflow in Database?
1. I tried to modify the Hands-On Lab Sample "Hosting Workflows to a StateMachine Workflow" from Sequtial Workflow to a StateMachin one , but it didn't work, the Sequntial one worked fine, and when i changed it to a StataMachine one, then the database stored nothing, and TryGetWorkflow Method always return null. Is there anything different between storing Sequntial Workflow and StateMachine one 2. If the question above resolved, can I get the running Workflow's current state's allowed Events like the Property stateMachineInstance.MessagesAllowed in Hands-On Lab Sample "Creating State Machine Workflows" 3. How to store WorkflowRuntime itself in Database and get it by somethine like Application Guid later ...Show All
