Jon Braganza's Q&A profile
Windows Forms Windows.Form.DataGrid And Large Sets Of Data
Hi there, I guess this is a FAQ-type of question, and I actually seen it asked for a number of times on these forums but nobody was able to answer it so I am giving it another try... I am having a large data set (in a broad sense), and would like to browse it using the mentioned above datagrid. I've implemented IList for my data (which resides in a simple binary file), and trying to use the grid with my implementation of IList. THE PROBLEM: DataGrid is sucking all the data into memory, and the app eventually runs out of memory. (I put a breakpoint in my item[] implementation and yes, it is called as many times as there are items in my list, actually a little more). This is not acceptable for 2 reasons: program runs out of memory, and if ...Show All
Visual Studio Express Editions Excel::Application ...
I unable to use this Statement Excel::Application *objApp = new Excel::Application(); Therefore i change this statement to Excel::Application *objApp = new Excel::ApplicationClass(); This Work, but objApp intellisence on objApp is not work. for eg. objBooks = objApp->Workbooks; i unable to c Workbooks after i type objApp-> Any one can help Excel::Application *objApp = new Excel::Application(); // Unable to pass the compilation //Therefore i change above statement to Excel::Application *objApp = new Excel::ApplicationClass(); // This one able to pass the compilation and able to work, but intellisence is no work. for eg. objBooks = objApp->Workbooks ; i una ...Show All
Visual Studio 2008 (Pre-release) How to navigate back to home page?
Hi, I am using Frame to navigate between different pages. When the application is running, it will first show a HowPage. Then the user can navigate to different pages. Say in page3, I have a link point back to HomePage, the question I have is how do I navigate back to the home page without recreating the HomePage again. I was hoping I can find something similar to GoBack() but will go all the way back to the top of the backStack which will be HomePage but I can not find the function in either NavigationService or Frame. After more search, I found NavigationCommands.FirstPage but it seems Frame doesn't support this command. Please help. thanks Chong Hi, Chango V.: Thanks for the quick ...Show All
Visual C# SqlDataReader in .Net 2.0
I need to know how do i pull all my data items in my columns in my sql table i am using VS.net 2005....When i do it in 2003 all my items return and i am using the same code....what seems to be wrong here is my code...this only returns the first name in the column why is that private void button1_Click( object sender, EventArgs e) { string sqlconnect = System.Configuration. ConfigurationManager .AppSettings[ "conn" ]; SqlConnection cn = new SqlConnection (sqlconnect); string cmd = "Select * From Employees" ; SqlCommand scmd = new SqlCommand (cmd, cn); cn.Open(); SqlDataReader dr = scmd.ExecuteReader(); if (dr.Read()) { listBox1.Text = "Connected" ...Show All
Visual Studio Team System MS Project Sync
We would like to be able to sync MS Project from the Tasks in a TFS Project, without losing the Predecessor links in MS Project. Is this possible Unfortunately it is not possible in V1. Project integration does not sync predecessor links, and we do not have predecessor link types in work item tracking. This is something we are thinking about for future releases. ...Show All
Software Development for Windows Vista show SWF with Directshow
Hi how can i render swf file with direct show in C#, Please help me if you know about it or you have any sample code. Tanks You might wanna dust off your C++ skills. You can transcode the swf (FFMPEG can write swf, should be able to read em) and pump the samples down directshow via a source filter. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How many DBP warmup submissions are already submitted, and how many still in the pipeline?
Hello all. Just curious about the competition. I know that I'm typing (and scribbling in photoshop) as fast as I can to try to meet the deadline, but I'm curious as to how many others are doing the same. I realise the MSFT people probably want to keep the number of entries secret until the end, but if you've got a project submitted, or underway, speak up - (not looking for ideas to pillage, just want to know how big the playing field is) Cheers from the frozen North. Dan Lingman NogotoGames.com ...Show All
Visual Basic Hotkey control in vb.net?
Does VB.net provide a control to include hotkeys in one's application i.e., a textbox which displays hotkeys that need to be assigned. Thanks for any help. Yes, I wanted a control for users to select hotkeys. And I was wondering if VB.net provided any means to do that. May be I will try your 3rd Option. Thanks for the reply. ...Show All
Visual C++ How do you set the name of a thread in C++?
This is something that I've been able to do in linux development, but I have not figureed it out in Visual C++. I've noticed that the thread list contains names, however they are always the same and I cannot seem to find the way to name them. This is not an MFC application. Currently, I'm using _beginthreadex to create the thread. See the following article: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vsdebug/html/vxtsksettingthreadname.asp ...Show All
Visual Studio 2008 (Pre-release) LINQ to SQL: Bugs and desperately wanted features
We have been using the LINQ May 2006 CTP (VS2005) for some time now, and we are very eager to get our hands on the upcoming Orcas March 2007 CTP. However, after reading blog posts and chat transcripts, I've found out that the next Orcas CTP is going to be " on par " with the May 2006 CTP. This sent a cold chill down my spine, since the May CTP is so buggy that we cannot use it for even the most simple tasks... Will the Orcas March CTP include lots of DLINQ bugfixes, or just the codebase from May 2006 CTP Things we desperatly need fixes for include: 1. The @@IDENTITY bug. When inserting rows into a table with a trigger the wrong identity is returned, and thus LINQ gets out of sync. Use SCOPE_IDENTITY() instead! 2 . The ColumnAttribute ...Show All
Visual Studio VSS Server 6.0 & 2005 Side By Side
Can I install VSS 2005 Server on a machine thats running the VSS 6.0 server process Will there be conflicts in the registry, databases etc I'm not sure what you installed on the file server. Maybe the VSS admin tools The VSS clients manipulate the remote file shares directly; they're not talking to a VSS background daemon or anything like that, except in the case of the new HTTP remote access that shipped with VSS 2005. There is no difference between the VSS 6.0 and 2005 database formats. It's best not to have different client versions accessing the same DB if possible, but aside from a few corner cases (unicode file detection) it will work fine. Since the databases are just files, you can put as man ...Show All
Visual C# Diff between internal & protected internal modifiers..
hi, We know that if we declare anything as internal, that will be accessible within the assembly. And any protected members will be accessed by the subclasses within the assembly. But what is the use of declaring a member as protected internal Any one pls, help me in this regard... thanx... Hi, It is indeed a bit confusing but if you read below you will see the difference: protected Access is limited to the containing class or types derived from the containing class. internal Access is limited to the current assembly. protected internal Access is limited to the current assembly or types derived from the containing class. The important part is the last OR . Do you understand the difference Greetz, Gee ...Show All
Visual Studio Some doubts in creating GAT package
Hi all, I'm creating a GAT package for data access layer. We are creating recipes for business entities and CRUD operations. What i wanted to do is maintain a business entities - table mapping data in some xml file and used this file from the CRUD operation recipe. How do I go about this Is this possible in GAT Kindly reply if any one knows the solution. Hi, I'am not sure what your exact goals are for the data access package but you might wanna have a look at Service Factory (Microsoft P&P). This Software Factory also comes with a (separate) data access package. It might suit your needs or at least gives you a head start. You can download it here Edward ...Show All
SQL Server Problem replicating from Std Edition to Developer Edition
Trying to replicate, from: Win 2K Server, SQL Std Edition 8.00.818 SP3 to: Win XP Pro, SQL Developer Edition 8.00.2039 SP4 XP has Firewall 'Off', and I added sqlservr.exe and port 1433 to the exceptions list. Subscription on Win 2K Server gets error that it cannot connect to the subscriber system: SQL Server does not exist or access denied. Ping from the Win2K to the WinXP box works fine. The WinXP SQL login works when I connect from my desktop to the XP box using both SQL Ent Mgr and Query Analyzer. Any ideas Looking at the merge agent properties, how does it connect to the publisher, sql login or windows login If sql login, see if the login has access, and if the password is set co ...Show All
Visual C# How to Enumerate StringBuilder object with null character as delimiter between strings
hi all, i have a StringBuilder object with unknown number of strings each string followed by a null character. i am getting the only first string by whatever the parsing technique i used because of null character. any suggetions thanks and regards ranadheer. Hi, Can you please post the code that you are using Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
