Vui's Q&A profile
Visual Studio classname value
How can I get the classname value via an expression I want to use the classname of a class which is already in my solution. Can you provide some additional context What language is this Are you trying to get the name of the class in a VS package, VS add-in, VS macro, or from code that actually references the classes in your project ...Show All
Visual Basic Reading every XML in a folder
On startup i would like the app 2 read every XML in a folder and then do the things said in the XMl, basically i want someone to combine thes 2 pieces of code together cause i hav no idea how Used to read every .txt in a folder: Dim App_Path = My .Application.Info.DirectoryPath Dim desktopDir As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) Dim dirName As String = Path.Combine(desktopDir, App_Path) Dim dir As New DirectoryInfo(dirName) For Each file As FileInfo In dir.GetFiles( "*.txt" ) Me .Menu.DropDownItems.Add(file.Name ) What the app does to the XML: ...Show All
Software Development for Windows Vista HandleExternalEvent Problem
Please fix the following, or give a workaround. workflow only accepts the exact event type not even an inherited event type e.g. event hierarchy ---------------------- eventParent | eventChild workflow ------------ send "eventChild" -> HandleExternalEvent( eventParent ) => exception unable to deliver Can you provide a code example showing your EventArgs and Event declaration from your Local Services I would like to provide more information but I am not 100% sure of the scenario that you are describing. Steve Da ...Show All
Visual Studio Signing a delay-signed assembly
In our current build process, assemblies are delay-signed during the initial build. All developers have the public keyfile (via source control) in order to make this possible. This results in partially signed assemblies whenever a compile is done on a developer's workstation (which is ok because developer machines also bypass strong name validation for our public key). On the build server, an additional task is performed (we currently use nant) which re-signs each assembly after it is compiled (this time doring a full signature using the full key). Therefore the output of the build server is a fully valid strongly named as ...Show All
Visual Studio Team System Destroy in TFS Beta 3
How I can permanently destroy folders in source control That feature was cut for V1. You can still delete the item from version control, but it will still be in the repository (in a deleted state), available for you to undelete later if desired. You can always change permissions on the item to prevent undelete (remove the PendChange permission) if that's a concern. We've had customers ask about reclaiming space from deleted items, and we're considering what we can do in V1 to help with that. ...Show All
Visual C++ MFC80D.dll not found
Hi all. I've been reading previous posts on this problem, and I'm still stuck. Here's the deal: I'm working on a collection of classes from a VC6 project. They all embedded a manifest file in the exe via the resources, these I have deleted. They do all build to a folder which contains a .manifest.exe file as well, but I've tried the macro which was shown in one of the folders for stdafx.h and it didn't help. I also just turned on embedding a manifest file, and for one project this worked fine, for two others I've tried, I still get the error. I cannot see any difference between the three projects, the embedded manifest was the same ( just sa ...Show All
Windows Forms DataGrid Null Items
When I have an object datatsource bound to the grid and the user deletes a text box column entry or changes a check box to false in the grid, the grid errors with can not convert system.dbnull to string and the update errors with must have a value for the check box. It appears that the grid is setting empty strings to null and unchecked check boxes to null. How can I prevent this I really would like to do the buisness rule checking and error handling in the buisness object. That is not a bunch of exception handling and guessing in the grids error event. For the b ...Show All
Windows Forms IExtenderProvider for DataGridViewColumn's doesn't work
Hi, I'm trying to extend the DataGridViewColumn's dialog with some properties. It works fine with the DataGrid control and the table styles, respectively column styles. With .NET 2.0 and DataGridViewColumn the extending component's "CanExtend" is still called with the DataGridViewColumn instances and returns "true", but no properties are being displayed in the edit columns dialog of the grid. And now the question is: how can I extend the column properties using the IExtenderProvider-interface The extender component is shown below. using System; using System.ComponentModel; using System.Collections.Generic; using Sys ...Show All
Software Development for Windows Vista Unable to add Custom properties to Activity
Hi, I am not able to add custom properties to the Activities in Visual studio 2005 IDE using the Property window. Though I am able to see all the properties added to the activity thru code in the workflow that is using this activity. Thanks & Regards, Rajesh I guess I was asking if it would be possible for the Workflow team to include such functionality into the base class designer for all workflows, since, unlike custom controls where this behavior is acceptable, workflows are almost never derived/used in the fashion required to make design time use of the custom properties. The current behavior makes sense i ...Show All
Visual C++ Converting Entered TEXT into integer
My only apology is that I am a long time C programmer and I want to manipulate things directly. Now that said, someone please direct me in the correct way to analyze a TEXT string in visual C++. Basically I want to read a string from a user enterable text window convert it into an integer and check it for proper range and send it to an embedded system in raw 16 bit form. My difficulty appears to be that there is no way to go direct from System::String^ (Textbox format) to an integer. I would think that this is a common thing to do but my investigation leads me to some weird convoluted solutions. This is how easy ...Show All
Visual Studio Express Editions Directory Verification
Hi All, I have developed a piece of software that creates directories for our firm. This creates a standard set of them so as not to have to create all of them every time. (This is a big time saver). What i would please like to know is, how do i verify a directory so that i do not create to very similiar. e.g. Our directories will always begin with "M:\PROJECTS\K199 Project name" but what can hapen is: "M:\PROJECTS\K199_Project_name" - somebody using it and using underscores instead of spaces. this can then creat 2 very simulair names ! Now the drive & base directory will always remain the same but the ...Show All
Visual Basic Listview Cannot Display other language
I am developing an application using standard components and listview. Why the the components in my application cannot keyin and display other characters like Chinese characters I have set the Regional location and the Input Locales to Chinese. Any solutions Please help! Thanks a lot. I need to display multiple languages in a listview control as well. Has anyone found a solution or can point me in the right direction Many thanks. ...Show All
Visual Studio Express Editions Need help understanding new array usage in Visual Studio 2005
Hello all, I’ve recently started working in Visual Studio 2005 Express Edition (VS05EE) and I’m trying to get my brain wrapped around this new way, new for me, of creating Arrays. For one thing I have notice that Index property is gone, so I am having trouble figuring out how I am supposed to tell VS05EE that what I am trying to do is create an Array. Let me tell you what I trying to do, and see if anyone can help me out with some sample code that I can look at, hopefully with some explanation, so I can see if I can figure this out. I work support a CAD program, I am developing a launcher that will allow my users to ...Show All
Microsoft ISV Community Center Forums Detecting which version of MS Office is installed (for templates)?
How does one go about installing Word dot templates and Excel xla addins without knowing what version of Office is being used I found this article which talks about Office 2000: http://msdn.microsoft.com/library/default.asp url=/library/en-us/odeopg/html/deovrdeployingcustomtemplate.asp but when I try to follow these directions, my dot and xla are not available when I startup Word or Excel. Once I move the Word dot template to Program Files\Microsoft Office\Office\Startup (for Word 2000), then it will work. Once I move the Excel xla addin to Program Files\Microsoft Office\Office\XLStart (for Excel 2000), then it will work. It doesn't sound ...Show All
Windows Forms Training Server Available
I've created a Training server which can be found at: <a href="http://www.terrariumgame.net/Training">http://www.terrariumgame.net/Training</a> The purpose of this server is to have a Ecosystem where people just learning Terrarium can compete without having to worry about a dominating species. This server will be monitored by the admins to control the population. I'll rely on&nb ...Show All
