vb2005's Q&A profile
SQL Server SSIS SSUCKS
I can no longer attach the OLE DB Provider for ODBC drivers as a data source. Thanks M$. You just broke backwards compatability with the rest of the world. I can't imagine how much rework this is going to involve for everyone and for absolutely no purpose. Besides, when you select anything in the buggy UI, the properties window does not refresh to display the properties of the currently selected object. You must select, right click, choose properties from the right click menu to force the properties pane refresh. Then the property you need to set is not there! Or the event that you needed is unavailable. Or the event is renamed to some obfuscated tag. VS 2005 sucks. SSIS sucks. My job just got a lot harder b ...Show All
Visual C# My enumerator is not returning the count??
Hi, I have created a class using the KeyedCollection: public class RobotPartKeyedCollection<T> : System.Collections.ObjectModel.KeyedCollection<string, T>, System.Collections.Generic.IEnumerable<T> where T : RobotPart { private RobotPart partToSearch; internal RobotPartKeyedCollection() : base(null, 0) { } public RobotPartKeyedCollection(RobotPart robotPartToSearch) : base(null, 0) { partToSearch = robotPartToSearch; } protected override string GetKeyForItem(T item) { return item.Name; } internal void ChangeKey(T item, string newKey) { base.ChangeItemKey(item, newKey); } public new T this[string name] { get { ...Show All
SQL Server Table Join For 1 Dimension
I have table join like this: Table A Table B _________ _________ | SVC_ID | ---------- | SVC_ID | |_________| |_POS | |_________| Table A is the primary table that contains every SVC_ID available. Table B will link to the SVC_ID in the Table A. Table B will not have duplicate SVC_ID's, and will not have every SVC_ID that is in the Table A. Now, my dimension is based off of Table A. I simply want to add the POS field as an attribute (showing up as Unknown/NULL when the SVC_ID doesn't exist.) The problem is that doing so limits the rows returned from Table A (only SVC_ID's that are in Table B). I tried reversing the relationship in the DSV, but AS will throw and error wh ...Show All
Visual Basic Common VB functions & Types 'not defined/declared' in new VS2005 install
I recently upgraded to VS2005. The installation seems to have gone smoothly, but new and old projects opened under the new install report errors of "Name 'Mid' is not declared." and "Type 'ListControl' is not defined.", etc for common vb functions and ASP.net control types. Does anyone have any Idea what will cause this and what the fix would be The object browser shows the VisualBasic.dll's as present... Assembly Microsoft.VisualBasic C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Microsoft.VisualBasic.dll Thanks for the help. MLG There are breaking changes between VB6 and VB 2005. You should be able to find most of the functions like Mid in the Microsoft.Vis ...Show All
Windows Forms monthcalendar fires on each monthly scroll
I'm trying to allow the user to pick several dates from the monthcalendar, and have these dates show in a listbox as each is picked. Clicking a button after all of the picked dates have been collected will then move the listbox dates to a column in datagridview. My problem is that the code allows duplicate picks into the listbox, and also fires new [& double duplicate] dates into the listbox during the scroll. I want to disallow pick of any/all duplicate dates. I've solved the duplicate date pick with: If ListBox4.Items.Contains( CStr (e.Start.Date())) Then 'leaving this line blank causes "nothing" to occur, and removes duplicates...tho still fires on monthly scroll Else ListBox4.Items.Add( CStr (e.Start.Dat ...Show All
Visual Studio Team System TFS API - Iteration Data
I am working on integrating our Project Request software with some TFS data. I would like to be able to get a list of iterations, and for each iteration I would like to be able to get a list of work items and bugs. Does the TFS API expose this kind of data If so, could someone please point me in the right direction; medthod names, or at least namespaces Yes, it is easy to get this data using workitemtracking object model. The list of iterations can be found using Project.IterationRootNodes - see http://msdn2.microsoft.com/en-us/library/microsoft.teamfoundation.workitemtracking.client.project.iterationrootnodes.aspx . If those iterations have child iterations, they can be obtained by ChildNo ...Show All
SQL Server Complete Execution History of a report
Hi, I have some reports(both parameterized and non-parameterized) for which I need to have an execution history on the report server. These are not scheduled and so the history should only be for the instances when users view the report. I checked the 'Store all report execution snapshots in history' but it does not store the snapshot in history everytime the report is viewed. What do I do to achieve this Thanks Considering this sceranio...there are three users of the same 'roles' who can access the same report. At any time whoever generates the report the first time. It will be kept in the history folder. When the rest of the users checks on the history they know who's has ...Show All
Visual Studio Team System Check in DLLs or else to Source Control
Hi all, TFS Source Control does not check-in files like .dll or even .config. How can I add them to the Source Control I want to have a place where all files are stored so my colleagues could easily retrieve all the files and get the project running even when I'm away. And especially for the .config files I'm a little bit confused they are not automatically stored there.... Thanks in advance! Hi Chak, You’re the first person I’ve seen who wants to restrict binary files completely. The ability to add it to TFS via checkin policies is why we created an extensible API. ...Show All
Windows Forms How to prevent DataGridView from selecting row on sort?
I have an unbound datagridview on a form. I fill it programatically and then do a ClearSelection so that no rows are selected. I don't want any rows to be selected until the user clicks on a row. When the user clicks on one of the columns to sort the rows, the first row in the dgv becomes selected even though the user has clicked on a column not a row. How do I prevent this automatic row selection I think the row actually does become selected after a sort because before the sort no row was selected and after the sort a row suddenly becomes highlighted and the SelectionChanged event has been triggered. Why after a sort would some row way down in the middle of the DGV have focus and be highlighted ...Show All
Visual Studio Tools for Office How to Associate Custom Data with XMLNode object?
What is the best way of associating application-defined data with XMLNode objects Word's XMLNode object doesn't unfortunately have the Tag property (like many other Office objects), where I could store some data. Also I can't create a Dictionary, because XMLNode objects cannot be used as dictionary keys - they are obviously (like Range objects) volatile views of some opaque internal objects. In other words, (node1 is node2) can be false even if node1 and node2 are actually the same node in the source XML. Another option is to use what I call "paths", i.e. an array of integers where each element represents the index in the array of sibling nodes of the current parent node, recursively. This method would be great but it goes ...Show All
Visual C# Generics bug? Inheriting from a generic collection crashes my web server.
Hello forum. Generics crashes web server hosting web service. Works in windows app. It is very easy to replicate, just copy paste code at the end of this post.. I have chosen to have a collection which inherits from Collection<T>. I call this class ObjectCollection<T>. Like this: public class ObjectCollection<T> : Collection<T> I then make specific collections by inheriting from object collection. I want to implement methods on ObjectCollection which use the internal list in the Collection. I can this way easily make methods like .ToArray() and so on available to all my collection. Like this: public class ProductCollection : ObjectCollection<Product> The problem is that it crashes my web ...Show All
Smart Device Development Choosecontact API for windows Mob 2003 ?
hello, ChooseContact is the API. i have use to extract details of email recipents. but this API is for Windows Mobile Version 5.0 and later. i have to perform the same task in windows mobile 2003 which API I use to perform this task (extract email addresses from recipent list). Thanks -Salman Hello, I am newbie. i am using C++ for development purpose so i think MAPI is right for me. i read MAPI sdk documentation. (Sample Address Book) but didnt understand, how i use this API it Executable: SMPAB.DLL Directory for source code: FLATFILE.AB How i encorporate it in the program (using c++, windows mobile 2003) code sample or other resourse is hig ...Show All
Architecture Integration with MSMQ
I need to integrate an application written in C that runs on a linux server with an MSMQ Queue. Is anyone aware of a messaging product that runs on linux that will interoperate with MSMQ Something open source would be ideal but not mandatory. Any direction you could provide would be great! Thanks Jason There's IBM Websphere MQ which runs on linux (and any other platform for that matter) here's how to integrate it with MSMQ http://msdn.microsoft.com/library/default.asp url=/library/en-us/his_2004main/htm/mqb_msmq_mqseries_bridge_setup_and_configuration.asp Arnon ...Show All
Visual Studio 2008 (Pre-release) Svcutil XmlSerializer Mistery
We have a WCF-enabled COM+ application. When svcusitl is run with no parameters other then URL, e.g: svcutil HTTP://CTXWHDEVETSNG1:4999/X/CORPTaxETS_2007/LYWEnterprise.EnterpriseManagerMultiYear.2007/mex the resulting proxy contains [System.ServiceModel.XmlSerializerFormatAttribute()], and Request/Response classes are created for some COM objects but not for others. I checked all possible differences between the objects, and read http://msdn2.microsoft.com/en-us/ms733901.aspx but still can't figure out what triggers the XmlSerializer options to be used by default for some our objects. Any pointers will be greatly appreciated. Thanks, -gn If your data uses XML schema constructs not supported by DataContract ...Show All
Visual C# How can I "dribble" this problem? :P
Hi ! Me again... I'm doing something like this: while(true) { SerialPort.Write(my_string); Threading.Thread.Sleep(50); } But, after some minutes happend this error: "Make sure you do not have an infinite loop or infinite recursion." Exception datail : System.StackOverflowException was unhandled Ok... i knows that I'm doing a infinite loop, and I want... What I need to do for this message not apper again Hug, Joao Mello Hi, you must be calling a function that is directly or indirectly calling itself which is going into a stackoverflow. What else are you doing inside the while loop Mark. ...Show All
