Mongsreturn's Q&A profile
.NET Development Navigating Large Database
I have a SQL database table with about 1,000,000 records. I would like to be able to view these records on a form, linked to textboxes and such, and be able to navigate through them, as in back and forth. I have tried using the dataset and it is extremley slow to load the dataset. Its so slow it would not be usable. Does anyone have any suggestions on how I would be able to navigate through these records You should only pull a set (lets say 1000) records at a time and when the user starts to get to the upper or lower limit of your displayed records you fetch the next (or previous)1000 records. This is the most efficient means of navigating through large amounts of data...Your user can't view 1000 records a ...Show All
Visual Studio 2008 (Pre-release) ListBox in a ListViewItem Data Binding issues
Hi All I’m currently trying to bind a list of values into a listbox within a listbox item. I have a collection AgentCountInfos filled with AgentCountInfo Object, each AgentCountInfo Object has a propety CountByStatus. CountByStatus is also a collection. I have not problem to bind the first list (AgentCountInfos) to a listbox using a DataTemplate. In the DataTemplate of the Listbox I had try to add another listbox to display item of the CountByStatus list but without any good result. Is there a way to make that To display a list of item in a listitem Here is all my code Thanks for your help Fred XAML.CS File public partial class ListSampleWindows : Windo ...Show All
Visual Studio ResolveManifestFiles build task failed
hello, i have a c# project that i am trying to debug in VS.NET 2005. ( the project was originally in VS.NET 2003, and has been renamed / moved around on the HD a couple of times, and this may be the source of the problem.) the build now fails with the following error messages: Error 20 The "ResolveManifestFiles" task failed unexpectedly. System.ArgumentException: Illegal characters in path. at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPer ...Show All
Visual Studio How can I migrate from the last past VSS version at the new version?
Hi for every one, I'm new user a VSS, but in my job, work with the VSS last past version, so, my question is, How can I migrate from the last past version VSS to VSS 2005 Some body can help my, in where can I find some post about this Thanks!! You can find post about this by using the search feature of this forum. Here are 2 posts that I have found: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=296516&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=487579&SiteID=1 ...Show All
Software Development for Windows Vista How to call webservices in a workflow in an asynchronous way
Hi, I am doing R&D on the features of Windows Workflow Foundation which we are going to apply for our project after release of WWF. we are using SOA Architecture. So I need to call services based on the rules. I have succeded in doing them practically using Sequential and State Machine Workflow. So, now I want to achieve Asynchronous way of calling webservices. I don't know whether this can be possible with WWF or not. If it is possible, can any body please help me in doing this. Thanks in advance. Hi matt, In ur reply you have mentioned about local service, is it local webservice . If it is so I have created a webservice with one public method and an event, like the following [ Serializable ] public class R ...Show All
Visual C++ Single vs Multiple dlls
Hi, I am building an ATL COM DLL component. There are many functions to be exported (around 100). I want to ask about the performance gain/loss in case I build a single DLL exporting all functions or in other case build multiple dlls. Thanks & Regards, Omer Javed If all functions are used in the same client, it is better to keep them in one Dll. Loading one large library to memory is faster than loading number of small libraries. ...Show All
Visual Basic Bringing in FORTRAN dlls using DLLimport
I'm having a problem getting some unmanaged code to link into a program I'm writing. I have some FORTRAN legacy code that I don't have the option of rewriting, and I need to link several pieces of it together, as well as create a GUI for it. I've created a wrapper class for it using a DLLimport statement and I keep running into the following error: System.BadImageFormatException was unhandled Message="An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)" Source="FORTlib" where FORTlib is my wrapper class. The code is attached, the mentioned dll is the dll named in the code, called "readFile.dll". Surprising I know. This is a very simple piece of code, I' ...Show All
Visual Basic format text box on the fly
I've got a textbox and the user would enter a dollar figure in it... How can I format the figure so it shows properly i.e 100000 is entered and after he leaves the box i want it to show $100,000.00 Mitch How about using Private Sub TextBox1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Leave TextBox1.Text = FormatCurrency(CInt(TextBox1.Text)) End Sub This will format for the currency on the machines. For looking at other formats the following gives some good examples. http://msconline.maconstate.edu/tutorials/VBNET/VBNET01/vbnet01-08.aspx ...Show All
Visual Basic Determining Max Unique ID in a Project File
I am coding a Visual Studio 2005 VB.NET Windows Application. VBA answers may not apply. MSProject.mpp files contain tasks. Each task contains a UniqueID (an integer) which increases as per the rules of AutoNumbering... it is a database primary key. If I want to search for a specific UniqueID, I cannot rely on TaskID numbering since the two are generally independent. Therefore, generally, the value of the latest consumed UniqueID will be greater than the number of the last task number in the file. The following code will not compile producing the error message: "Access of a shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated" SourceFile = Fo ...Show All
Visual Studio 2008 (Pre-release) TabControl and XmlDataProvider
I have templated TabControl and want to display in content part of it the value of data attribute of Item element from XmlDataProvider. But it seems that something wrong in my sintax. < UserControl.Resources > < XmlDataProvider x:Key = " TabSource " XPath = " TabControlItems " > < x:XData > < TabControlItems xmlns = "" > < Item name = "Tab 1 " data="TabData1" /> </ TabControlItems > </ x:XData > </ XmlDataProvider > < ControlTemplate x:Key = " TabControlTemplate " TargetType = " {x:Type TabControl} " > .... < ContentPresenter ...Show All
Visual Studio Team System Process for updating production databases
I have a question for the db pro process gurus. Once our product has been intially deployed to production we face the challenge of releasing incremental builds. On previous projects I have used automated schema comparison/script generation tools (redgate, db ghost). I haven't found a tool that was able to correctly identify what the changes from development to product were from iteration to iteration. My preference has always been to have DB developers code manual scripts for the updates so it gets them in the mind set of "how will this change affect production " I don't trust the build/deploy process to accurately generate the changes that I have made within the project. I have found you can get production and development way ...Show All
SQL Server Report Execution timeout after 60 minutes (1 hour) - Execution cannot be found (rsExecutionNotFound)
Dear Colleagues I wonder if you could help me. I have a report that runs for from 0 to 1,5 hours when executed. If the report executes and renders output file in less than 60 minutes - it works fine, but if only it takes more than exactly 60 minutes to run it generates the following ASP.NET exception: ReportServerException: Execution 'lmxn1q3k3zdxwjvavsargonw' cannot be found (rsExecutionNotFound) At the same time if I make a subscription to save report for example to network share it does not stop at 60 minutes and saves data to the required folder (I've scheduled it this night and the report was saved after 1,5 hours of execution). The report server Report Execution Timeout setting is set to never expire . I also tried to ...Show All
Visual Studio trying to find the build order for a batch build from the API
I'm trying to find the projects/configs selected to be built in a batch build by the user. Solution is easy, just loop through them all. Project is easy by using selected items. Batch, I can't find. I've tried looping through every possible function that produces a project name through EnvDTE and VCProjectsEngineLibrary. There just has to be something I missed. ...Show All
SQL Server Stored Procedu Is this possible?/How To?
Hi, I'm building a yahoo type messenger. Is it possible within a stored procedure to do the following on the rows found below from a user simon ID(primary key) Username Message New Unread ------- ------- ------- ------ &nbs ...Show All
Visual Basic Windows Application
I am curious how to code to use a Calculation Button. What I need to do is finish a program I've started but I am stuck. Needed information: Calculate - declare variables : total credit hours, new hours, prior hours, a loop index as integers total grade points, semester gpa, new cumulative gpa, new points, prior gpa, all as doubles write a for loop that iterates through the 2 array lists( hours and points) and adds each element to the totals if the total hours is greater than zero, calculate the semester average = total points divided by total hours set the semester average text box to the results, formatted to 2 decimals process the new cumulative average retrieve the prior gpa and ...Show All
