chrisharden's Q&A profile
.NET Development .NET String Class
Hi folks, I'm just wondering if anyone can point me at a tutorial for using the String class included with the .NET framework I'd like to use it in a Managed C++ Winforms app. The MSDN entry for String class is describing all functionality. http://msdn2.microsoft.com/en-us/library/system.string.aspx Be sure your language filter (top of page) is set to include C++ ...Show All
Visual C# this one is a doozy!!!
I am using Visual C# to develop a sudoku program. I have been working on it for a couple weeks now. The one thing I want it to do is to generate the puzzles through a random algorithm. The rules are a little complex but I managed to simplify them a little for the program. The one problem I am having is actually with C# itself, I don't believe it is my code because I have rewritten the algorithm numerous times. Here is the problem. The values for the puzzle are generated randomly inside a loop in the algorithm. I handle duplicated keys but making the loop reloop on the same index. Well somewhere along the loop C# goes into a frenzy and throws ...Show All
Visual FoxPro Memo File Corruption on VFP9 ONLY
I am just beginning work for a new client. This client wanted a VFP5 app upgraded to VFP9..they're using Novell (lastest version). After the conversion (very little changes needed to be made), they started getting file and memo corruption errors as well as indexing errors. I took a copy of the data and tried a recopy using SCATTER MEMO MEMVAR to a new fresh data file (using GATHER MEMO MEMVAR) in VFP90. I got the same errors. (Running XP Professsional) So, just to be sure (my version of VFP9 is new), I tried the same thing on VFP8. NO ERRORS! Then I took the new data file (8.0) and ran it through the same ...Show All
Architecture Layered Architecture across Boundaries
Hi, I would like to know, how separating layered architecture across boundaries can increase performance and scalability. We have a scenario where client insists on the Presentation Layer on a separate machine and the application server on a separate machine and the interaction between them is going to be using Web Services. Web Services are arguably slow and how can the performance improve against having the UI Layer and Business Layer in the same box. Thanks. If the Web Service layer causes a performance hit in the UI this can usually be sucked up with some creative UI design such ...Show All
Windows Forms I don't know this is an easy thing to answer but how do you save it as a dll?
Yea, I really have no experience with any computer stuff, but this Terrarium game seems interesting, but I am not sure if I am even correct on this, but it seems as if you need to save your codes as a dll, but I do not know how to save it as a dll... could someone please help me out In the Solution Explorer window, right-click on your project and select Properties. There's a dropdown labeled output type, select class library there. If you're having this kind of problem, though, you might want to start with some simpler applications than Terrarium. ...Show All
Windows Forms Could not load file or assembly Interop.SHDocVw
I get the below error when loading the windows form designer in Visual Studio 2005. It only happens on forms that include an undocked MS word preview section. It worked fine when I had the project in VS2003. Has anyone had this problem before Does anyone know how to fix it Cheers Paul. Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Hide at System.Reflection.Assembly.nLoad(AssemblyName fi ...Show All
Visual Basic Trying to set MaskedTextbox Height Property
I am trying to find a way to adjust the height of a MaskedTextBox. The height seems to depend only on the font size. I tried to create my own class and use SetStyle to allow me change the height but it didn't seem to have any effect. I set the parameter to True and False, both with the same result. The height changed according to the font size and I could not change it. The code is shown below. What is the purpose of the FixedHeight style Is there a way to control the height of the MaskedTextBox Public Class Form1 Dim WithEvents MTB As MyTextBox Public Class MyTextBox Inherits MaskedTextBox Public ...Show All
Windows Forms clickonce with xp theme
can anyone please help me with the following: to add xp theme to an application i've added to the application manifest: <dependency><dependent assembly><..... "microsoft.windows.common-controls"... while publishing with clickonce, clickonce overwrites the application manifest file. is there a way to preserve the xp theme entry in the manifest. thanks in advance, kaufman Easier method is to use Application.EnableVisualStyles method, see http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx . VS will take care of setting the right dependency ...Show All
Windows Forms How to populate a listview?
Please help, i want to populate my listview from a datasource, how do i do that all i can find in the web is adding single listitems and subitems, i'd appreciate any help. and also, deleting multiple items.. thanks in advance. Just iterate through your DataSource (i.e., DataTable), and inside the loop, apply the same method you found in the web in adding ListItem (SubItem) in your ListView. As for deleting multiple items, you need to loop through your LitViewItems (Items property) backward, and delete the item you want using the Items.Remove or Items.RemoveAt methods. Regards, -chris ...Show All
Visual Studio Express Editions Data bound combo box
I'm trying to load a combo box with a simple table containing a number of cities. However, when I debug the program and select a city, the previous city selected changes to the current selection. For example: My list is Vancouver, Montreal and Ottawa, in that order. If I select Ottawa, and then hit the pulldown box again, my list becomes Ottawa, Montreal and Ottawa. If I then select Montreal, my list becomes Ottawa, Montreal and Montreal. Has anyone seen this yet and if so, do they know how to fix it I'm a VB newbie, so this may be something simple that I'm overlooking. Thanks in advance. Sounds to ...Show All
Microsoft ISV Community Center Forums Is an Excel bug that set PivotItem.Visible to true will generate 1004 Macro Error?
In a Excel PivotTable, I want to programically hide or show some PivotItems of a PivotField. To hide, it works fine (just set mPivotField.PivotItems("xxx").visible = False). However, to show, it does not work: mPivotField.PivotItems("xxx").visible = True. Program breaks with an error 1004, macro error. When try to record a macro for setting a non-visible PivotItem to visible, macros recorded is to use ...PivotItem("xxx").visible = True. However, this generated macros never works as it generates 1004 error. So, now my solution is let user manually set all pivot items to be visible first and click a button which will ...Show All
Visual Studio Adding a new file to a project programatically
Hi, I would like to create a new form object and write it out as a new .CS file and then add it to the project Solution. Any ideas how can this be done Regards, Laadlaa. Hi, You need to use EnvDTE.Project.ProjectItems.AddFromTemplate, which requires the template of the form and the destination name. See the docs. If you don’t want to create the form from a VS template but creating it from scratch, then once created the file use AddFromFile or AddFromFileCopy to add it to the project. -- Best regards, Carlos J. Quintero MZ-Tools: Productivity add-ins for Visual Studio You can code, design and d ...Show All
Visual Studio Team System VSTS and Speed. International team.
Hi all, I have an urgent question: Our VPN VSS connection between continents based on VSS/SOS and VSS 6.0d (and VStudio .NET) is terribly slow. Does the migration to VSTS and its source control system solve our problems Here the details of our current environment: We have serious VSS performance issues within an international group developing software, The developers are in located in California, Texas, Germany and Italy. We are starting now our first really international project with programmers in 4 countries. The source code size is still small (8Mbytes code) but will probably be some 100-200 Mbytes in two yea ...Show All
Visual Studio Extend visual Studio help with intranet help
Hi! I would like to know if there is any way to extend the help in Visual Studio 2005 What I want to do is to add a source where VS searches for help when you press F1. There is already the local help, online help with CodeZone, etc... But I would like to add mine via an intranet. It would be easier to maintain than a .msi that you redistribute to every users... I heard about extending the search toolwindow through a webservice, but I don't know how to implement this, and if this support the F1 key.... Can someone help me with that thanks! Phil I have a sample at http://workspaces.gotdotnet.com/ccipowertoys name ...Show All
Visual C++ deprecated C functions
When I compile my project in Visual Studio 2005 Express Edition (Beta 2), I get warnings about functions being deprecated. I added STRSAFE_NO_DEPRECATE and _CRT_SECURE_NO_DEPRECATE to the preprocessor, but I still get all the warnings. We don't have any one header file that I could use to disable the warning with a pragma, so is there another way to turn off the warnings Thanks, Cari i don't see how the deprecated string function prototypes can be "left alone" given that wchar.h includes the following: #ifndef _CRT_INSECURE_DEPRECATE #define _CRT_INSECURE_DEPRECATE #endif i have a lot of code that has ...Show All
