kcdclan's Q&A profile
Windows Forms Designer Writing Broken Code in InitializeComponent (Class must be serializable?)
Hi, I have a form that has a user control on it. This user control maintains all of it's values using a global object. The user control has a blank constructor that instanciates that object with no values. For some reason adding this line that instanciates the object causes the designer to try to set the properties of the user control in the InitializeComponent method. For instance, if the user control constructor inclues "globalObject = new myObject();" the designer will add lines of code to create it's own myObject and set it through the user control's property which is not necessary. Any ideas Thanks. All kinds, I just started designing the form. Any action that will trigger Visu ...Show All
Visual Studio after one day of Visual Studio 2005 trial installation its expire
Hi, i just installed VS 2005 on January 17, and today i tried to run it, the message pop out that trial version is expired. any comment and help would be appreciated thanks in advance ...Show All
Software Development for Windows Vista How to get assemlies in "Browse and Select a .NET Type" dialog box
Hi The following code is in one of my assemblies: namespace Roles { public partial class SequenceRoleActivity : SequenceActivity { private int rolesRights; public int RolesRights { get { return rolesRights; } set { rolesRights = value ; } } public SequenceRoleActivity() { InitializeComponent(); } protected override ActivityExecutionStatus Execute( ActivityExecutionContext executionContext) { return base .Execute(executionContext); } } } No I would like to derive from SequenceRoleActivity in another assembly. When I click the ...Show All
Visual C++ dao namespace
How do I access the 'dao' namespace in C++ managed code In the other .Net languages I set I reference to the DAO library and then use either a 'using dao' statement in C# or an 'imports dao' in VB. Doing the same thing in C++ and using a "using namespace dao" statement results in a C2871 error "a namespace with this name does not exist". Any suggestions Add COM reference to Microsoft DAO 3.6 Object Library. Use DAO in the code by the following way: DAO::DBEngine^ dbEngine = gcnew DAO::DBEngine(); DAO::Database^ db = dbEngine->OpenDatabase(L"Test.mdb", nullptr, nullptr, nullptr); ... You can add line using namespace DAO; and use DAO types without prefix: DBEngine^ dbEngine = gcnew DBEngine(); Datab ...Show All
Visual Studio Team System create work item via checkin policy
hey, i'm trying to implement a check-in policy that creates a new work item at check-in using the WIT API. i've quickly run into serialization issues with the TeamFoundationServer and WorkItemStore objects. Here is the error i recieve: Error Type 'Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore' in Assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client' version 8.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxxxx' is not marked as serializable. is there some way that i can use the API to create a work item at checkin time (events ) thanks, jcran Marcel, Thanks! That directly answered my questions about serialization. Also, this blog post of yours was helpful . I've switched to a web service now, using How ...Show All
SQL Server What decides on the tables available for a partition?
Hello, I am using the Partition Wizard. On the first screen (Specify Source Information) there are two tables listed. They are called: QMR_610_MembersOther_GrAmountAnalysis QMR_610_MembersOther_ReinsShareAnalysis Only one of those (the first one) is used as the fact table for the measure group that I am creating partitions for. So what I don't understand is why its making these 2 tables available for my partition. Can anyone explain how the Partition Wizard determines which tables are available for the partition Thanks Jamie I'm sure that are Markus ;) Actually it makes sense doesn't it Of course it does. One of the good things about partitions is that they can all take their data from different obj ...Show All
Visual C++ Classwizard
Hey, I'm learning C++ (with a tutorial for Visual Basic 6.0 but it's not so different) and I don't find how to do this http://poincare.matf.bg.ac.yu/~filip/nm/Seminarski/VC-21days-short/ch01/ch01.htm#Heading10 thanks ...Show All
Visual Studio Express Editions Text Problem...
i am having a problem with a form the text is all blurry and sometimes doesnt show up.. What fonts, colors etc are you using. Does this only occur on VB forms in this application or all forms in any VB application. ...Show All
Visual C# Delegating A Namespace
Can you reference a namspace.class.method using some sort of delegate or enumerator e.g. instead of namespace1.class1.method obj1.method1 Where your referencing a static method in another namespace. Sort of (if this answers your question). You can use the using directive. using obj1 = namespace1.class1; then you can call obj1.method1() Or if you mean an actual indirection you can create a delegate with the same prototype as the method - public delegate void method1delegate(); Then create an instance of the delegate - public class Test { method1delegate myMethod1Delegate; } Then you can instantiate it as such - myMethod1Delegate = new method1delegate(namespace1.class1.method1) A ...Show All
Visual Studio Error: BuildComponent
This is the error message I get (by using Sandcastle Help File Builder ): [...] Info: SharedContentComponent: Loading shared content file 'shared_content.xml'. Error: BuildComponent: An error occured while initializing the type 'Microsoft.Ddue.Tools.SharedContentComponent' in the component assembly 'C:\Program Files\Sandcastle\ProductionTools\BuildComponents\BuildComponents.dll'. The error message and stack trace follows: System.Xml.XmlException: ' ' is an unexpected token. The expected token is ';'. Line 34, position 45. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String ex ...Show All
Visual Studio Express Editions Finding Links and Macros in MS Excel using C#
I have been given a task at work of identifying ms excel spreadsheets that contain Links to other spreadsheets or macros. I am new to Visual C#, but can't help but think that this is a great starting point. Problem is I don't even know where to start. Has anybody ever developed anything like this before, or can you help me get started. Cheers ...Show All
Visual Basic Folderbrowserdialog ContextSwitchDeadlock
I have had a problem resulting in ContextSwitchDeadlock and a consequent build up in memory use. The following is a snippet which results in the error when using a Folderbrowserdialog control. How can the ContextSwitchDeadlock be avoided Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click FolderBrowserDialog1.ShowDialog() Dim tstart As Double tstart = DateAndTime.Timer Do While DateAndTime.Timer < tstart + 70.0 TextBox1.Text = DateAndTime.Timer - tstart Refresh() Loop End Sub A context switch deadlock is a fairly common problem with the IDE. Be sure to test the release versio ...Show All
SQL Server SQL Server Express SP1 Setup failed
One of my customers is trying to setup SQL Server 2005 Express SP1 on his Windows XP Home SP2 machine. Setup failed with the following in the Summary.txt file: ------- Microsoft SQL Server 2005 9.00.2047.00 ============================== OS Version : Microsoft Windows XP Home Edition Service Pack 2 (Build 2600) Time : Mon Dec 04 23:59:22 2006 D86VH461 : Unknown article Result. SQL Server Setup failed. For more information, review the Setup log file in %ProgramFiles%\Microsoft SQL Server\90\Setup Bootstrap\LOG\Summary.txt. Time : Mon Dec 04 23:59:23 2006 --------- What is this D86VH461 error code I seached the Internet and could not find any information on it. Thanks, Herbert ...Show All
Windows Forms Need help with a deployment.
I would like to first say thank-you in advance for any help you may provide here. I am not sure if this is the proper location to post this but... How do I get the MSinstaller to remove a previous version of an application and install the latest version without adding additional application listings in the registry The project details are below. Using Visual Studio 2005 I am working with a C# non web solution using the single solution model, the solution has multiple project components that are ultimatly built into an msi file that utilizes a bootstrapper setup.exe with dependencies of .Net and SQL Server 2005 Express. Below are the Properties settings for the deployment. Setup:Deployment Project Propertie ...Show All
Windows Forms Microsoft release policy
This is the error, which makes me cry. Everytime i work with datagridview, it makes this error in time. I remove every problematic Columns, but it doesnt work. It seems that designer sees something that no longer exists . For instance iDKontaDataGridViewTextBoxColumn was removed from the designer part of the class. ANd designer still says, that it is there. What may be the sollution of this I would like to continue my work without removing whole tab pages of my forms. Please help. Tnanx for every help. I'm getting the same problem - it is very strange, isn't it. I've tried cleaning and rebuilding the project, and manually deleting the obj and bin folders, but it still doesn't like the code file. I think what might be happening is ...Show All
