PSinclair's Q&A profile
.NET Development Generics Collections
Hello I have a list that I want to change for some of their values. Here is a very simple sample: Dictionary<int, string> list = new Dictionary<int, string>(); for (int i = 0; i < 5; i++) { list [ i ] = i.ToString(); } foreach (int i in list.Keys) { if (i > 3) { list [ i ] = "*"; } } I get this exception : "Collection was modified; enumeration operation may not execute" Thanks ...Show All
SQL Server Table Details not reflecting all records from dataset
if my table is set to the right dataset and there are no filters on the table, why isn't it reflecting the same resutls as if I run my dataset in my data tab I'm not seeing half the records and it's driving me nuts! ...Show All
Smart Device Development Project Settings Errors
1>corelibc.lib(wwinmain.obj) : error LNK2019: unresolved external symbol wWinMain referenced in function wWinMainCRTStartup 1>atlsd.lib(Allocate.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW 1>atlsd.lib(AtlTraceModuleManager.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW 1>atlsd.lib(atltime.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW 1>atlsd.lib(ATLComTime.obj) ...Show All
Visual Studio Tools for Office wordObject and Printer Tray selection
I’m developing a windows based application in .net and I’m using Word object for maintaining and printing documents. Well, here is my problem: I managed to do the printing stuff using the word object's property itself. I picked the Bin Numbers of my printer and I assigned them like wrodObject.FirstPageTray = (int) 260; (the number for "Tray 2" I got it from DeviceCapabilities API). But still the paper is not picking from the "Tray 2" it is tak ...Show All
Visual Studio Team System Sample: Continuous Integration Using Team Build
A sample to setup Continuous Integration using Team Foundation Build has been posted. A detailed article on the sample will be getting published soon on MSDN meanwhile you can use this blog to get started with it. -Khushboo I have now setup CI using the example (for TFS RC) and a LCD-TV. Looks pretty cool. Check it out here : http://www.hamang.net/index.php option=com_content&task=view&id=16&Itemid=9 ...Show All
Visual Studio Express Editions Cannot create new projects
whenever I try to create a new project, the process (Creation) is failing. It appears a msgbox (vbcritical): "Absolute path information is required." importent informations: - OS: Win XP professional - no other releases installed before is there a option I didn't find until yet I only wish to create a new application. Please, can anybody help me ! I'd be thankful for each answer or idea. Hi Huy, thanx for your support. VB is&nbs ...Show All
Windows Forms Extreme long Path with ClickOnce..
Hi, I wrote an application which uses a file. I add this file to my solution - and it deploies - everthing looks OK. The path to the file is (german XP) C:\Dokumente und Einstellungen\Manfred\Lokale Einstellungen\Apps\R6WMLGPZ.Y65\0YJG8M3R.0G4\cmrb..tion_924834f13a5701b3_0001.0000_4bc7303dffca6e6e\MyData\AT.ptm So the path is about 160 characters long - and there are apps out there that fail when a path is longer than 12x characters. I kno ...Show All
Visual Studio Team System Visualisation tools for merging
Are there any tools in the pipeline that will make the process of merging a bit more intuitive Over time there may be hundreds of changesets on a branch for example, all of which may be linked to different work items. In terms of 'promoting' code across branches e.g. from a 'dev' branch to an 'int' branch, you would logically want to simply select one or more work items to merge (perhaps based on the 'state' of that work item), currently you can ...Show All
Visual Studio Express Editions Stupid Question... Please help!
This is probably a real stupid question... I have a dataset that gets created programatically (no connected database, no TableAdapter, no datagrid - just a dataset used to store a ton of records temporarily in memory). I have the dataset bound to a couple listboxes to filter information and everything works exactly as I want it to. Now, I'm creating a report based off the information in the dataset. The stupid question is... If I want t ...Show All
Visual Studio Express Editions (newbie) Collection Add {Before | After} question
Hi From the Help system Public Sub Add( _ ByVal Item As Object, _ Optional ByVal Key As String, _ Optional ByVal { Before | After } As Object = Nothing _ ) The example given for above in Help doesn't show the use of the { Before | After } optional part. How do I indicate that I want 'Flag' used as 'Before' or 'After' in the following WordSearch.ScoresTable.Add(t1, , Flag) My Integer Flag is the correct location where I need to A ...Show All
Visual Studio 2008 (Pre-release) Modal Windows And Transparency
Hi, Seeing as you have to make Transparent windows by doing native methods (Gadget example), I would like to know the following: 1) Is it possible to improve the appearence of the transparent window seeing as controls on the transparent window appear with a few pixel errors here and there. 2) Is it possible to make the modal Thank you very much Jaco This functionality is important to me also. I ...Show All
SQL Server Report Layout
I must be missing something really obvious, but, how can I specify whether a report (.rdlc) if being designed for landscape or portrait paper It would be nice to have some sort of mark on the guides or the grid to show where the edge of the selected paper type is. Regards Graham Not true (for me). I have already set those, set the body size to at least 1/2" + smaller, and the L and R margins to .2 each. ...Show All
SQL Server Query behaviour
Hi there, I wonder if one of you worthy folks can help me out with some strange behaviour exhibited by a piece of SQL. Its my first post here , so please be gentle. Here is my simple example :- <my test table> create table test (ind int, message varchar(255)) insert into test (ind, message) values (1,'date=01/06/2006') insert into test (ind, message) values (1,'date=20/12/2005') insert into test (ind, message) values (2,'test') The fir ...Show All
Visual Basic vb and access
Hello all, Well I am building an application (as for my final project in the university), and I want some help: I have report in Access, how can I have a button in VB that can call that report thanks Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\accessfile.mdb;") Dim dacv As New OleDbDataAdapter("Select * from table", con) Dim dscv1 as new Dataset Dscv1.Clear() ...Show All
SQL Server Caching problem?
If I create a view and then a mining structure run it everything works fine BUT if I then alter the view (e.g change a filter setting in a named query) or the actual contents of the database, the OLD contents persist. Using the view refresh says there are no changes (which is correct as I don't change any column names etc.). If I remove Keep Training Cases, this fixes it, but for Time Series, it then gives an error, so you have to go back and ...Show All
