Michael Donoghue's Q&A profile
Visual C# RTM Web refactoring... Serious problems!!
I am amazed that the refactoring support in VS2005 is in this state. It is utterly useless. How can they claim to have Refactoring support for web projects I have a Solution that contains one web project and two library projects. It is NOT a complicated solution (~150 .cs files and maybe 100 .aspx and .ascx skin files). And when I try to use ANY of the refactoring tools that have been provided in Visual Studio 2005, it takes an eternity (over 2 minutes) and I normally give up on it... This includes, Find References, Rename, etc... No matter what I do, it iterates through EVERY aspx file in the web project ! ! I choose a method and selec ...Show All
Windows Forms Why is VS 2003 Designer Mode so slow in loading some forms?
On my forms with many (50+) controls it takes many MINUTES to load the form in designer view. The problem is magnified with forms using UserControl derived formss. I'm using a more than adquate system too. Is there a fix or a workaround to address this or at least improve it because it really hinders rapid development when you have to wait minutes each time the designer needs to be re-loaded, which is basically every time the header file is modified. Thank you for any advice! (i am using managed c++) I'm having this same problem, and it's making those of us at the office who do use .NET to pu ...Show All
Visual C# Bizarre optimisation issue
Hi all, I have a very strange C# issue with a task that should be very simple. The context: I have an ArrayList of 'person' objects, each with user-specific information, which I want to use to replace node elements in an XHTML template. I am going to the person object and calling a method GetTemplateFindReplace, which defines the XML nodes to replace and the values to replace them with, in Dictionary<string,string> format. public Dictionary<string, string> GetTemplateFindReplace() { Dictionary<string, string> findReplace = new Dictionary<string, string>(); findReplace.Add("firstName", th ...Show All
Software Development for Windows Vista Lost connection to the network
I am using a Windows XP Pro workstation at work. This workstation loses connection the network every two hours. The PC has been replaced the ethernet cable has been replaced at my end and the end at the switch. The power cable and all other cables have also been replaced. We are using novell, I think that there is a problem with the novell log in with the person who sits at my workstation during the day. The I.T. department really isn't doing much but, I do have admin privileges because I'm working help desk support for cablevision customers. If anyone has any ideas for me please respond. ...Show All
Visual C++ Tips for speeding up debugging (stepping through code)?
I've got one particular large C++ project that, in VC 2005, when stepping through code in the debugger, it takes approximately 2 seconds for each hit of the F10 key (i.e. each line of code) to be executed. I've tried many things to attempt to speed it up: disable intellisense, renaming feacp.dll, removing all additional output windows, watch, breakpoints, etc, removing navigation bar from text editor window, disabling anti-virus on the machine, closing all other apps. It's always the same speed. Running on a dual P4 2.8 gig with 1 gig of memory, and hyperthreading enabled. Are there any other tips for speeding up debugging in the ...Show All
Visual Studio Tools for Office How can I load VSTO project from Winform Application?
It may sound like a silly question: "How can I load Excel Workbook in VSTO from Winform Application " I'd like to use VSTO for the statistical report on data. When I build and debug the workbook, it works fine; however, I'm having trouble loading the workbook from another application. Loading dll file with showdialog() only shows the class file associated to the excel project instead of entire VSTO project. Please help~~~ In your WinForm app: 1. Set a reference to the Excel PIA (Microsoft Excel 11.0 Object Model on the COM page of the References dialog box). 2. If you want, add an Imports ...Show All
Visual Studio Express Editions App_Data folder question. Please help
I have VS 2005 and SQL Server 2005 Standard version. During installtion of VS2005 I didn't select to install SQL Server 2005 Express as I thought that I have SQL Server 2005 STD version so dont need Express to be installed to save space. Now .... When I try to read starter kits available on ASP.NET like Personal starter kit, I have folder called App_Data which has personal.mdf DB. When ever I open DB says SQL Server express needed to function properly. Is it necessary to have Express installed to work with VS2005 App_Data folder (mean attaching db in folder and to work with .NET store prodecure). Thanks ...Show All
Microsoft ISV Community Center Forums Accessing Tables in Access 2000 that are linked from an SQL Server using VB code
Hello, I am not sure if I am posting to the correct forum, but here it goes: I am trying to create an Access 2000 application to pull data from a table that is linked to a SQL Server Database using VB code. However, I cannot seem to get it to work, as I keep getting type mismatches and object not defined errors. I would post my code, but I have made a complete mess of it. Would anyone be able to show me simple code to accomplish setting up the connection Thank you!!! Nick Are you working in Access, Visual Basic 6.0 or Visual Basic.NET/2005 ...Show All
Windows Forms Getting currently selected value from Dropdownlist box!
Hi all! How can I get the currently selected value from a dropdownlist box and compare it with a result from a dataset specific field Thank you ! Thank you for your help but still I have a problem.Here is the code but it is giving me always the value at Index 1. I want to check the availability of the currently selected DDL value from the value returend in the Dataset and if it exist to appear as a selected value for DDL: string suppCode; string confCode; foreach (DataRow dr in dsSupp.Tables[0].Rows) { if (ctrl == cSupp) { suppCode = cSupp.SelectedItem.ToString(); if (dr["Id"].ToString()== ...Show All
Visual Basic Help on displaying a form
I created a solution in VB 2005 Express. The solution has 3 project named A,B,C. The startup Project is A, and I want to display a form in project B. Pls tell me how to display a form which is in the project other than current project A. Hi, its not realy difficult at all. All you have to do is: 1) Have a solution with all 3 projects 2) Add the project of the Form you want call to the reference of the calling project (right click references -> Add References ->projects -> chosse Project) 3) import the namespace of the form you want to call. 4) call the form (FromB fb = new Formb(); fb.show(); in c#) ...Show All
Visual Studio Reverse Engineering – Auto Display Class Associations
When you reverse engineer a project, i.e. show the class diagram, the inheritance tree is presented but class associations are not. It appears that you have to right click on the member variable or property within a class and indicate that you would like to show the association. Is there any way to have all associations shown automatically Wow this is awesome, just what I was looking for. Thanks very much. ...Show All
Visual Studio Express Editions Return or chr(10) help
Hi! I'm having a problem with the 'chr(10)' - which is the return statement - and a string. I open a text file, the text in the textbox is read by the string but what I'm trying to do is to remove the chr(10) so for example: I open text file containing "word1 word2" the string reads and saves exactly as above but the function "If string1.text = chr(10) then..." does not work completely, in fact, it removes 'word2' (which is good) but not the return statement or chr(10) what i want is just to store 'word1' without the ruturn. Can anyone help str = st ...Show All
Visual C# How to get open folders list using C#?
Hi, I want to get list of all the open windows/folders list. Is it possible using c# "open" folders means opening the folder using explorer. Whenever I click a button on my form it should open a explorer window with the given foldername. For ex: in the click event of a button, I want to write as m_openFolder("c:\windows"). This should open "windows" folder in explorer. ...Show All
Visual Studio Express Editions GroupBox
Hello to everybody! I want to add a groupbox to my windows form. How should I do this Right-click the form in your solution and select View Designer. If you don't see the toolbox, click View + Toolbox. Click "Groupbox" under the "Containers" heading and put it on your form. ...Show All
Visual C++ Header File Inclusion problem?
Hi guys, Please take a look at this code. I have some problems, This is not the real code, but a sample. /************************************************/ //File: SomeObject.h class CSomeObject:public CObject { //.....code goes here } //End File //File: SomeObject.cpp #include "someobject.h" CSomeObject::CSomeObject() { //.....code goes here. } //End file /************************************************/ /************************************************/ //File: UsingSomeObject.h class CUsingSomeO ...Show All
