dmouser's Q&A profile
.NET Development Serialization Question
I have a question on serialization that web services do. I have created an object that serializes fine over a web service call, but I have noticed some things and want to know what is up. It appears that functions of my object do not go with to the client, is this supposed to happen It appears properties don't serialize unless they have both a get and a set Am I going crazy or is this just how things are The only members of your object that will be serialized are those needed to deserialize the object and recreate a copy with the same instance data elsewhere. Since the member functions aren't needed to do this they aren't serialized. Same goes for read-only properties, since there's no wa ...Show All
Visual Studio Tools for Office Word.ControlCollection in an ActionPane
Hi, I'm trying to develop an Action Pane with a button, this button should create an object like a Textbox in the Application.ActiveDocument. I found in msdn some information about the class Word.ControllCollection that should be right for me (I Hope ). But when I use the method AddTextBox it crash. I supposed that it happens because I'm running it in the ActionPane class. Is it right Is there any workaround Thanks a lot. What you are describing should work fine. Is the document you are adding to protected if so you will need to programatically unprotect it. ...Show All
Windows Forms DataGridView Column problem ...HELP
Hello, I have a DataGridView in a form on which i display data returned from a Search query. After the data are filled in the datagrid view, i add programmatically a button column. This so far works just fine. The problem is the following: if i perform another search query which returns different columns, the button column remains in the datagridview. Is there a way for this button column not to be included in the datagridview, when i change search queries. Thank you. dim cName as string = "Test" Me .DataGridView1.Columns.Contains( cName ) ...Show All
Visual C# getting rid of autogenerated datasources
I used the Add Data Sources wizard and added some controls to my form. This resulted in datasets & bindingsources being added. I would now like to remove that data source. How can I achieve this I have deleted the autogenerated datasets, bindingsource & tableadaptor. But the datasource still remains in my Data Sources Tab as well as the .xsd file, etc. I don't see any Remove Data Source option... Thanks for any help. Hi, when you add new data source, it gets added to your project. Open Solution Explorer and expand your project's Properties node. There's a DataSources folder; you'll find your data source references there. If you don't need them any more, it's safe to delete them. Andrej ...Show All
Windows Forms AND SUDDENLY...
WHAt the heck is this The form referred to itself during construction from a default instance, which led to infinite recursion. Within the Form's constructor refer to the form using 'Me.' Hide at ControlsLibrary.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 180 at ControlsLibrary.FormTemplate..ctor() in D:\Docs\Information Technology\ControlsLibrary\ControlsLibrary\Forms\FormTemplate.vb:line 12 at ControlsLibrary.MainMenu..ctor() okay i got it , it's about a control that i declared as shared., i commented the part controls.add(thecontrol) and i can see my form , but is it supposed to work like that ...Show All
Game Technologies: DirectX, XNA, XACT, etc. "The project type not supported by this installation"
Any clues as to the cause of this error whenever I open templates Unforunately, that still doesn't work but thanks for the suggestion. I had the same problem with Beta 1 and it never went away. I have a standard 32-bit x86 processor, so there should be any 64-bit problems, which this is usually associated with. ...Show All
SQL Server Creating referential integrity constraints
Two ways to do this... Creating the constraints when creating the data model OR using SQL to use the 'reference' constraint. Does 2005 provide any other automated method of creating the Primary Key - to Foreign key constraints without writing the SQL to do this Thx I don't know of any such rule. There are cases where using computed column is useful. But it is a proprietary feature anyway so for data modelling purpose probably you shouldn't worry about it. If you hit some design issues in SQL Server due to limitations you can use computed columns & indexes on computed columns. ...Show All
SQL Server SSMS SP2 generates SQL2K5 drop statement for SQL2K object
Hi, I've recently applied SQL2005 SP2 to my workstation and have just noticed a problem. When I automatically generate the DROP statement for a view on a SQL2000 database using SS Management Studio, the statement refers to 'dbo.sysobjects where id =...'. All well and good. When I use the same process to generate the DROP statement for a stored procedure on the same SQL2000 database, the script returns 'sys.objects where object_id = ...', which I obviously cannot use on the SQL2000 instance. I have checked this with another workstation that has not had SP2 applied, and it works fine there. So, it would appear to be an issue introduced with SQL 2005 SP2. Cheers Simon Thanks for that, th ...Show All
Architecture What is Architecture and Who are Architects?
In the software/IT industry the notions of "Architecture" or "Architects" are certainly not very well defined. The Open Group Architecture Framework (TOGAF) supports four groups of enterprise architects -- business architects, data architects, application architects, and technology architects. Microsoft Certified Architect program so far designed for two certifications (solution architects and infrastructure architects), and one more certification, messaging architect, is coming soon. Different companies use titles such as "Chief Architect", "Industry Architect", "Integration Architect", etc. Job recruiters announce "Web Architect", "Software Architect", and "Dat ...Show All
SQL Server How to access data in a SQL Command in the OLE DB Destination editor
Instead of blindly inserting all my data from a previous task into a table using "Table" as the Data Access Mode in the OLEDB Destination editor. I would like to join this output with a reference table and insert only qualifying rows. Question is "how do I access the data from previous task so that I can do a meaningful equijoin" I know I have to use the "SQL Command" data access mode, but what next Thanks. chiraj I dragged a "Merge Join" task into the DataFlow window and connected the outputs of a Lookup Task and a OLEDB Source task ( reference table ). When I try to open the MergeJoin task,it tells me "The IsSorted property must be set to True ...Show All
.NET Development Generating C# classes from an XML Schema in Visual Studio 2005
I'm looking for some help understanding the XML Schema tool support in Visual Studio 2005, and how to use them with .NET Framework's XmlSerializer. The XML data I'm working on seems typical of the challenges may arise in trying to use web services across different platforms, so I'd like to write up the approach in a how-to type article. I'm starting with three .xsd files which describe an XML API for Microsoft Office Live Meeting. The schema can be downloaded from http://www.microsoft.com/downloads/details.aspx FamilyId=AC48894B-9471-41C2-9B44-170655F400CC&displaylang=en . This schema is fairly complex, and not generated from a .NET project. For the purpose of this discussion, lets assume I don't own the schema definitions, I'm ju ...Show All
.NET Development oledbexception while connecting to a database using asp.net application
Hi, I am getting an oledbexception while connecting to a database.the error i am getting is.... OleDbException (0x80040e4d): IErrorInfo.GetDescription failed with DB_E_BADLOOKUPID(0x80040E59).] can anyone help regarding this. Hi, This is the connectionstring i am using.and in the page load i am filling a dropdownbox with a dataadapter. I am getting the error in the login page only. Provider=SQLBASEOLEDB.1;Persist Security Info=True;User Id=SYSADM;Data Source=LOGIN ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Games within a IE brower
Not real sure if this is a new thread or not, but is it possible to create a game (actually more of a simulation) using the XNA game studio that would run in a browser window Does not necessarily have to actually run from a online web server, just be browser based. Thanks Ok, thanks to every one for their answers, I do not beleive that XNA will work for the type of projects that are upcoming for my company. But I think I will still play around with it at home, you never know, it might be fun building some games. ...Show All
Visual Studio 2008 (Pre-release) Extension Methods / Property conflict when they have the same name
I have a question regarding how properties of the same name as an extension method are resolved. In the following example, i'd like q3 to compile. I understand the compiler might have issues with the name conflict, but there is a valid extension method, and the compiler is getting hung up because there is also a property. It can resolve it if i explicitly supply the generic type as in q4 - Why can't it be smart enough to do it for q3 List < int > nums = new List < int > { 0,1,2,3,4,5,6,7,8,9 }; int q1 = nums.Count; // works - uses the property on List<T> int q2 = nums.Count(); // fails: 'System.Collections.Generic.List<int>.Count' is a 'property' but is used like a 'method' - doesn' ...Show All
Visual Basic Inserting a Variable into a statement
First off its been a while since I programed, so im relearning the slight abilities I had years ago. my question is, how do I insert a variable into a statement for example, here is what I have. For X As SByte = 1 To Form_Main.NumberOfPlayers tempplayer.PlayerName=FORM_newgame.TextBox_Player"X" Form_Main.Players.add(TempPlayer,TempPlayer.PlayerName) Next What I want to be able to do is take the names from Textbox_player1, Textbox_Player2, TextBox_Player3, etc, and add them into a collection. among other information. I can add them manually with a case statement based on the number of players, but that takes alot of code, if I could use a for statement that would be alot cleaner. ...Show All
