ChrisPat MSFT's Q&A profile
Visual C# auto expand/collapse regions
Does anyone know of a macro or command that auto expands/collapses #regions in C# There is a command which collapses all outlining blocks called Collapse to Definitions. This command will collapse all regions; however, it will also collapse method bodies, properties, etc. to give a header like view. The command can be invoked from the keyboard with the shortcut Ctrl+M, Ctrl+O or by right-clicking in the file and selecting Outlining | Collapse to Definitions. Hope that helps! Anson Horton Visual C# IDE PM ...Show All
Visual Studio VS 2005 RC setup is endless!!!
I set up sql 2005 september ctp successfully and then since yesterday I am still installing VS 2005 RC! I left the setup on overnight and it still has not completed this morning. My machine is completely locked up and the taskbar has disappeared. If I do Alt-tab I can't see the programs running. I have 1.2 GB RAM and yet the machine is behaving like it does when it is low on memory with window content overlapping, disappearing content, etc. What exactly is it doing that is taking so much time and resources I am extremely unhappy with this install. I can't do anything on the machine. The Beta 2 install was much smoother and faster. How do you ...Show All
SQL Server Cannot create a connection to data source
When I log onto my test report services 2005 I can run this report fine after deploying it using IE on the reportserver. However when I go back to my own PC, I get this error when trying to access the report from my PC browser: An error has occurred during report processing. Cannot create a connection to data source 'MBNATEST'. For more information about this error navigate to the report server on the local server machine, or enable remote errors nevermind, figured it out myself: In Report Manager 1) Click on Properties 2) Click on Data Sources 3) Make your Data Source Shared ...Show All
Visual Basic Dataset HasChanged Property
I'm Making a database program I've noticed that the property HasChanged intented to track wether the dataset has changed does not update it's value to True in case of the user has edited the data on the screen till you move to another record can I know if the user changed the data before the user leaves the current edited record to another the purpos of this is to alert the user to save data before he mopves to another record or close the form in the simplest way It colud be done Thank You all The changes you are making will be accepted into the dataset when you move to a differe ...Show All
Audio and Video Development Need help setting audio tracks in iHD
Hi All, Can you help me find the correct code for setting audio tracks in iHD Please see below. We have a title with 8 tracks and we are looking for the code that will set the audio track and then jump to the feature content. This is the function that i have so far: function OnButtonActioned(objEvent) { Player.playlist.titles["feature"].jump("00:00:00:00",false); } I need to know how I can select the audio tracks for the "feature" title. There is a total of 8 different Main Audios for this video. Thanks, Russ see if the following works: get rid of the "sel ...Show All
Windows Forms Formatting data before binding
Hello, I have a business object returning a datatable back to a bindingsource, which a datagridview uses to bind the results. However, certain fields are yes/no, which I want to convert to true/false. Is there an event that fires before the binding takes place where I can switch it Thanks. There are several approaches you can take here: Use the System.Windows.Forms.Binding class (extensive usage examples are included in the documentation for it). It features a Format event that does exactly what you want (and a Parse event for conversions the other way around); Write a SQL stored ...Show All
.NET Development Hashtable -> memory limit?
Hi, I'm running into an odd problem here... I want to store a lot of data into a Hashtable, however whener my system hits about 980MB of memory consumption I'm getting out of memory exceptions. However, my systems has 2GB of RAM so there's still about 1GB free. Any ideas why this could be the case Thanks Chris, 32 Gb was a typo :) Last time I checked on workstation in v1 32mb was the size. Not that the number was important. ...Show All
Visual Studio Datatypes supported by VS 2003 crystal reports
Does crystal report support CLOB data I have to bind a stored procedure which returns CLOB data to my report. I am presently unable to do this. Do we need to specify some settings for this or is there any equivalent datatype in crystal reports. Please reply soon It is very urgent. Thanking in advance. Is there anyway to remove a sortorder in runtime I'm having a dynamic list of sort options, sometimes there is only one sort column, other times there are 2 or 3. The default is usually 1 column, how should I solve this Because you have to add sortfields at designtime, I've got 2 extra fields that is not ...Show All
.NET Development Really simple solution (I bet)
Hello all, OK let me start by saying I am very new to VB (proper) and XML - my experience is in legacy VBA for Excel and Access. I am using VB 2005 EE B2. I have read all of the help files and most of the relative posts on this forum and I still don't get it. I want to load a datagridview control with the contents of an XML file when a form loads. I know the structure of the xml file (and it has a schema). On the form I have the datagridview control and the dataset. The dgv control is bound to the dataset (datasource and datamember). On form_load I set the dataset schema and load the xml file. What ...Show All
Windows Live Developer Forums Error in WBA site, Gwaam is not starting
Hi, Gwaam is not starting... Must be something wrong with the site, or the program isn't available on MSN yet. Please fix it, it is really a nice game, and we finally want it to be public available! J-Thread Ok it is fixed now, you can all try Gwaam !! ...Show All
Visual Studio how do i assign GUID to a custom project
Struggling with this so any help is useful- I am adding my own custom projects to the Add New Project dialog. I am not creating a new wizard from scratch, just copying the existing ones. Its working fine but I want my own icons to appear. I don't want to put the filename in the VSDIR, just the guid. How do I create the resource DLL, assign it a GUID and register this with Visual Studio. Thanks Jason I have VSIP 7.1 and I can't find the Project sample. Is it available for Visual Studio 2003 (and any ideas why I can't find it) ...Show All
Visual C++ CRT heap in DLL
I used to believe that each process has a default heap shared by everybody in the process space including code in loaded DLL and heap manager works as described in http://msdn.microsoft.com/library/default.asp url=/library/en-us/dngenlib/html/msdn_heapmm.asp Then I’ve found out that if DLLs are linked with CRT each has own heap manager http://msdn2.microsoft.com/en-US/library/ms235460.aspx My questions: how those individual default heaps are allocated and grow if the DLL needs more memory What is their initial size and limit My application is ISAPI filter/extension that runs out of memory once in a while. I wa ...Show All
Visual Studio Team System Using Non-standard SQL Port Numbers
Hi, Do you know if it is possible to use port numbers that are NOT listed in the setup guide for Team Foundation. Since my company currently blocks the default port numbers that show is required for MS SQL, will Team Foundation setup up fail and or will this be configurable to Team Foundation I would like to use diffrent port numbers other that what is specified as required. I didn't see any options during the Team Foundation database install (using the data-tier install). Required Ports for SQL Server 2005 Microsoft SQL Server 2005 (Dev, Standard, or Enterprise Edition) uses the following ports: ...Show All
Visual C# How to send Fax Using C# ??
Hi I have config the Fax service in Windows 2003 . but How to send Fax Using C# And thanks with my best regarding Fraas Can Any One Help me please ...Show All
.NET Development AS400 IBM.Data.DB2.iSeries .NET Provider
Hi, I've installed IBM Client Access V5M3 with the .NET Data Provider. In C# I add a reference to the "IBM DB2 UDB for iSeries .NET Provider" for using the data provider. All work fine, I can create the iDB2Connection and other iDB2 object. But using VS2005 and the DbProviderFactories class, the GetFactory method fail with the message "Unable to find the requested .Net Framework Data Provider. It may not be installed.". But the provider is installed because I can use it, except with the DbProviderFactories class. If I call the DbProviderFactories.GetClasses() method the returned provider are: Odbc Data Provider OleDb Data Provider Ora ...Show All
