Mareen Philip MSFT's Q&A profile
Windows Forms Creating an Index feature just like VS Help
Hi All, I've had to struggle quite a bit to create an index feature just like you get in VS Help (i.e. an alphabetical list of topics, and an edit field where you can type a few letters to find the topic you want). Anyway, I finally managed, so I thought I would give something back here by telling how. I implemented this feature with a TextBox and a ListBox (I also looked at ComboBox and ListView but couldn't overcome some issues). The ...Show All
Visual C# Variance and Contravariance with anonymnous delegates and inheritance
Hello. I have read the "variance and covariance in delegates" definition. http://winfx.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_csref/html/e6acad03-93e0-4efb-a158-8696d5eb4ecf.asp I wonder if maybe i could do the same using anonymous delegates, I guess it is imposible to apply co and contravariance in the return values, but why not use it on the parameters It does not say if cant do it but the compiler do ...Show All
Visual Basic Exporting Datagrid to Excel File
I am trying to export the contents of a datagrid into an excel spreadsheet. I wonder if anyone might have some source code which will enable me to achieve this. I happen to have a datagrid that has a column which comprises of all currencies through out the world – What I would like to do is export currency such as USD to one worksheet, Yen currency to another worksheet etc Currency Type Value Ba ...Show All
.NET Development int.Parse oddity
Hi all: I am trying to parse numeric input a user provides on a web site. I am having a problem with dollar amounts. The following command results in an OverflowException: int.Parse("77,500.50", NumberStyles.Currency, CultureInfo.CurrentCulture) but all of the following commands do not: int.Parse("77,500.00", NumberStyles.Currency, CultureInfo.CurrentCulture) int.Parse("77,50050", NumberStyles.Currenc ...Show All
Visual C# How can projects in same solution share same source code files ?
I tried to insert solution fold and insert source code files to the fold , but I can not refer the namespace in any projects in the same solution. could you help me you can add a reference from one project to the other and by that you can use the classes defined in the other project...easier and maintainable by visual studio... good luck ...Show All
Visual C# How in the world?
I have a text file that I am reading that looks like this: "2002", "1", "500", "2003", "1", "501", "2001", "1", "500", "2000", "1", "503", "2001", "2", "500", "2000", "2", "540", "2003", "2", "550", "2002", "2", "523", The first column is 'year', the second is 'internal/external (1 means internal, 2 means external)', and the third is 'amount'. I want to use these numbers to make a report that looks like the following: Year: &nbs ...Show All
SQL Server beginning SQL
I purchased SQL Server 2005 and intend to take a class this month. I have installed it. How do I get started trying it out I took an online tutorial, but I don't understand the mechanics of accessing the db to start with or if I even have a db to work with. Any suggestions Book on line > SQL Server 2005 Tutorials >SQL Server Tools Tutorial ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/sqltut9/html/655e709b-346 ...Show All
Windows Forms Accounting Software
Does anyone know of any ".Net" Open Source Accounting Software package / Source Available Accouning Software package Hi Zonehenge, You may want to take a look at interprise suite. It is not open source but it is written in .NET as a "smart client" application and has a number of XML web services built in. www.interprisesuite.com Gary I forgot to mention that it is licensed for less than $10,000 for unlimited user licen ...Show All
SQL Server Microsoft OLE DB Provider for DB2
The Microsoft OLE DB Provider for DB2 can be downloaded as a part of the SQL Server 2005 Feature Pack located at: http://www.microsoft.com/downloads/details.aspx familyid=D09C1D60-A13C-4479-9B91-9E8B9D835CDC&displaylang=en Well, i guess that I have written as specific as possible in the above. The next would be a private hands-on demo for you if needed. As another thought - I would encourage you to try to download an EVALUATION ...Show All
Windows Forms Is setting my comboBox datasource to null before inserting, the correct thing to do?
I have a DataGridView DataSource that is being populated by a List: private void PopulateCategories() { //GetCategoriesForBusinessUnit(businessUnitId) returns a List this.categoriesGridView.DataSource = CategoryService.GetCategoryService().GetCategoriesForBusinessUnit(businessUnitId); } The problem is when I do an insert. The flow of events is an insert takes place on the backend, and afterwards when this control is notified of the event t ...Show All
SQL Server how to do equivalent of an outer join
In the db, I have two tables - testcases and testresults. Test results have a field called testcaseid that corresponds to the id field in the testcases table. Not all test cases have results in the testresults table. Tests results have a field called "resultvalue" that can be "pass" or "fail". Test cases have a field called "area" that categories the feature the case belongs to. I want a pivot that show ...Show All
.NET Development Repeater + Extended control not working
Alright this is in my aspx file in the ItemTemplate section of the repeater <td><cwc:DataDropDownList runat="server" DataSourceID="rolesDataSource" SelectedValue=<%# Eval("Role") %> DataTextField="Description" DataValueField="id" AutoPostBack=true OnSelectedIndexChanged=dropDownList_SelectedIndexChanged ExtraData=<%# Eval("FirstName") %> ...Show All
Visual Studio Express Editions Developing Projects on a Linux-based Server
We have just installed a new server which is Linux-based and want to store our porjects on this server. I have created the directory structure on the server and configured VB Express to default to the correct location for saving etc. Everything appears to be fine until I run the project. When I run any project I get the word 'Internet' prefixed on the main form and a bubble saying never to type your password unless you can trust the serve ...Show All
Visual Studio 2008 (Pre-release) AllowPartiallyTrustedCallers and WCF assemblies
I am wandering why WCF assemblies does not allow partially trusted callers That is a feature that we didn't have time to complete for v1. The workaround, until we address it, is to use ASMX when you need to use partial trust. ...Show All
SQL Server How can I create more instances of the Analysis services server?
Hi, all here, I now have a question about how can I create more instances of the analysis services server Currently I only have one instance of the analysis services server. Thanks a lot for in advance for any guidance and help. On SQL SERVER 2005, I think you have to install SQL SERVER 2005, select only Analysis Services, and use a named instance in the installation. ...Show All
