Christos Constantinou's Q&A profile
.NET Development Combobox Datasource Databind select options from XSD is stale
i'm experienced with C# ASP.NET but new to C# Winform. a) created a tableadapter in the .XSD to wrap the proc that selects to populate a combobox. b) drag a combobox on the winform c) go through the steps, navigate to it in the combobox designer pop-up menu to bind it to the function in the table adapter d) added more tableadapters to the .XSD PROBLEM No matter what I do, deleting all existing controls (the datasource etc in the bar below the form designer), exit and rebuild, the combobox designer pop-up only show the original, stale, XSD content. Screenshot is here: http://www.kimberry.com/upload/csharp_stale_datasource_screenshot.gif I had similar experience with RDLC file SQL Report Builder, but in that case t ...Show All
Visual Studio Team System Problems with Application Designer
Hi I have added to my solution a WPF project June CTP, now If I do a click in my .ad file the folowing exception is raised and the VSTS is closed --------------------------- Microsoft Visual Studio --------------------------- An exception was encountered when serializing the Microsoft.VisualStudio.EnterpriseTools.ArtifactModel.Clr.ClrElement.CustomAttributes property. The value was ''. Serialization aborted. --------------------------- Aceptar --------------------------- Any work around Thanks in advance Javier Hi Javier, This is a known problem in the current release of Visual Studio Team Edition for Software Architects which will be fixed in the next release - see http://connect.micro ...Show All
Visual C++ Error on delete [] v
Hi, I have a problem with a class. The declator is class Configuration { public : struct conf_table { char name[40]; char value[10]; }; struct conf_table *conftable; int size; //rows on conftable int max_size; //maximum rows on conftable public : Configuration( void ); //Constructor ~Configuration( void ); //Destructor }; And the code is Configuration::Configuration( void ) //Constructor { size=0; max_size=256; conftable = new conf_table[max_size]; //initialize conftable } Configuration::~Configuration( void ) //Destructor { delete [] conftable; } The problem is that i get an error message (Heap Corruption) after ...Show All
SQL Server Run Report with specific Records.
I am not sure where i should post this question since it falls both in Report Server and T-Sql but here goes... I currently need to run a Report that has only specified records that the client/user wants by clicking the check in the check box next to the record they want. They can pick as many or a few of the records that want then run a report only with the records they indicated they wanted... i am thinking they will need some kind of t-sql statement either a function or temp table but i am not sure if even that... if anyone has any ideas please reply... Thanks, WoFe EXAMPLE: Instead of running a report on records 1, 2, 3, 4, 5, 6, 7, 8, 9 they would run the report on records: 2, 5, 6, 9 You need to use a multivalue pa ...Show All
SQL Server Hierarchy Parent-Child
Hi. I have a parent-child relationship in a table, by making use of an ID, and Parent ID. Firstly how do I manually change, or setup this hierarchy. Secondly, how do I do a rollup, along this hierarchy, sothat I can retrieve the aggregate values, using MDX I thank you in advance for your feedback. Hi. For your first problem, getting a "name" to display instead of the ID, you need to manage the properties of the child attribute which is usually the primary key for your dimension. Set the NameColumn property of child attribute to the "name" column from your parent-child table. Second problem, getting null when querying, I can't say what the problem is without debugging ...Show All
Visual Studio 2008 (Pre-release) Potential Bug: IPv6 + ServiceHost + NamedPipe
I've noticed something unusual. When creating a ServiceHost and passing this for a base address: net.pipe://[::1]/servicebase It is expanded to the full IPv6 address: net.pipe://[0000:0000:0000:0000:0000:0000:0000:0001]/servicebase The named pipe transport then fails to identify this as a local address and authentication operations fail. Whether the abbreviated form is used or not, the expanded address or any intermediate variations should still be considered local. ::1 0::1 0:0:0::0:1 0000:0:0::0000:1 etc. Thanks, that's great. In the mean time, "localhost" and the IPv4 address "127.0.0.1" work fine for those who need to use named pipes in the interim. I'd also like t ...Show All
Visual Studio Including Source Files in Higher Directories
I am having a few problems modifying my project file to include code in different directories. The problem is they are higher up in the directory structure than the project root. Below shows a very simplified version of how the source files are located. Source Code | | ------- Client | | ------- Client.csproj | | ------- Lost of C# Source files *.cs | | ------- Server | | ------- Server.csproj | | ------- Lost ...Show All
Visual Studio Express Editions Questions regarding SQL and Visual Studio Express Editions
I'm completely new to this and understand Visual Studio Express Editions is Free but what about the SQL Server Is this also free or will there be additional charges. Whether through Microsoft or my ISP Provider I have just uninstalled VSEE and plan to uninstall the SQL Server believing it will be an additional expense I cannot afford. There are 4 listings instead of 1 for SQL Server. They are as follows: SQL Server 2005 SQL Server Native Client SQL Server Setup Support Files SQL Server VSS Writer Do I also uninstall all of the above SQL files Thank you. The Express version of SQL Server 2005 is free just like VSEE. There are no additional charges of any sort. As for uninstall, yes, you need to uninstall all those ...Show All
Visual C# Help with retaining text box values
Hi All, Is there an easy way to retain what was last typed into a text box in my application, rather than loading it each time from a db or text file I would like the last text I typed into my app to be there next time I open it... C# thanks, Paul Hey thanks... That worked! I will post the code below if anyone else comes across this problem.. protected override void OnFormClosing( FormClosingEventArgs e) { MyForm.Properties. Settings .Default.Save(); } ...Show All
Visual Studio Sandcastle - Separating public and protected methods
I am using the December CTP of Sandcastle with the vs2005 presentation style. Currently, the generated help shows all the methods (public, protected) under the same heading "Methods". I want to separate public methods and protected methods under separate headings. Similar requirement is for properties. Is there a way to do so Thanks, Sanchit Bahal Thanks Eric. Yes we are addressing this in our February CTP. Anand.. ...Show All
Visual Studio Team System Build with tests fails with no indication of where
I have setup two builds on my TFS project - one to run when code is checked in that only verifies that the code will build, and one to be run automatically that will run our tests. The first build appears to work correctly, but when I run the second (from my VS) it fails. When I look at the BuildLog.txt file, I can't see any failures, and the build results in VS show red "X"s next to the "Running tests" and "Running tests for Any CPU/Debug" entries. I have looked at this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=673795&SiteID=1 and based on that tried installing VS Test edition on the build machine, with no change in the results. I am running Team Suite on my machine. Can anyone ...Show All
Visual FoxPro VFP can't display correctly with thisform.line method
Dear all: This problem only happened in XP enviroment. I use thisform.line method in the "form.init" event. when I do this form , moving the mouse focus cross through the from, then all object (button, grid, text box..) will disappear. The same form is ok in the Win2k enviroment. I only write the code as follows in the form.init event: thisform.line(10,100). Create a buttion without any code on this form. Then it will be happened. Does anyone know this kind of sitution Please kindly to help me. Thank you very much! &n ...Show All
Visual Studio 2008 (Pre-release) Context based Binding
Hi I have a listbox and on each row I have a combobox and the binding is all hooked up. However I would like to change/filter the options available in each combobox based on the item it is bound to in the list box. i.e. I'd like each combobox to be aware of the context that it is being displayed in and only make certain options available to the item property being bound to. Any examples out there of this sort of relationship Shaun. ...Show All
.NET Development accessing public properties in user control after calling server.transfer
hi there, i have a user control called "reports.ascx" that is dynamically loaded into "source.aspx". This user control contains a button that calls server.transfer("target.aspx"). Within the user control i have a public property called "reportQuery" I am trying to access "reportQuery" from "target.aspx" by using this: dim lastpage as object dim qry as string lastpage = context.handler qry = lastpage. reportQuery but it tries to get the "reportQuery" property from "source.aspx" page, and not the control within "source.aspx". How can I access the reportQuery property within my control I hope t ...Show All
Visual Studio Express Editions why can't form control be multi thread
i red on some article said that to have it will cause use alot system resource. but with current tech (2 core) and upcoming 4 core and many pc with 1 gb ram . is this still not enough I getting piss of keep getting exception of cross call and have to go through long way to do simple things. That's not a good idea in any circumstances. The Windows Forms controls are not designed to be accessed by other threads. Not their fault, it is a Windows restriction. I seriously doubt that one will ever be removed. ...Show All
