mig16's Q&A profile
Windows Forms DataGridView Connect Multi Tables
i have connect DataGridView With Multi table the Table is BillBuys and the Second is BillBuysDetails and the Last is Storage The Colmnu in BillBuys BillNo PK SuppNo FK BillDate The Column in BillBuysDetails BillNo FK TrdNO Fk (like ItemNo) BuyPrice SalePrice Qty Unit The Colum in the Storage i TrdNo FK PatchNO ExpDate MinSalePrice MaxSalePrice the Question 1- How to Dispaly all Columns in the DataGridView Note the SuppNo is DataGridViewComboBoxColumn and TrdNo DataGridViewComboBoxColumn 2- in the insert Operation how to Fill BillNo in the BillBuysDetails Table You can use the JoinView class to create a dataview that has data from more than one data table. Bind the DataGridView to the JoinView ...Show All
SQL Server Records from internal Table not output in order to flat file
Hi - I have a SSIS package that dumps data from an internal table to a flat file output using standard data flow tasks. The entire table is output - no special SQL. Most of the time the records are placed in the output file in the same order as the internal DB table, but occasionally the order appears to be more random. When that happens, the record order in the internal table is correct - it is just the output. I can find no properties that seem to affect this. I would appreciate any hints and advice that anyone can give me. Has anyone else encountered this same problem Thanks in advance, Jim Sweeney Jim SweeneySLC wrote: Hi - I have a SSIS package that dumps data from an inte ...Show All
.NET Development Memory not freed in MSHTML
I have a large .net control that I am running in MSHTML. The control simply loads up a number of images, however this problem has been replicated with a number of other .net controls. When the control is unloaded by calling up another page none of the memory is freed. Using perfmon I have a flat line for both virtual and private bytes that is never freed until the application is shut down. I could understand that some of the .net framework is kept open after exciting the control to increase the speed of the next callup, however the memory does not seem to drop at all. I would have thought that the GC would have cleaned up some of the memory Has anyone else seen this problem. Is it something I am not doing in my code or is it normal mshtm ...Show All
Visual Studio Team System Error TF24042
Hello, I have added two domain groups in [Team Project] \Contributors group, but users received the error message: "TF24042 You do not have permission to create work items in project ...". Users cannot see any work item created for that Team Project. Please, could you help me Thanks Montse Maybe try to download and check again the template in PTE, but I think that the "Rules" table of TfsWorkItems database has something wrong, or at least it seems looking at the event viewer log ...Show All
Visual C++ Does CAtlHttpClientT support chunked responses (HTTP/1.1)?
Moderator: Please do not delete this post as a duplicate. Delete the one in the Visual C++ Language forum instead. Thanks for the reply, Jamie. I'm quite sure it's ATL 8.0... whatever comes with Visual Studio 2005. I will break on ReadChunkedBody to see what's happening with that. In the meantime, I'm using the WinHttp library and that seems to work quite well. We have other code that is using CAtlHttpClient though so I'd like to use the same client for everything. Dan ...Show All
Visual Studio Express Editions Connecting to a network Server
Hi, I am trying to connect to a SQL server 2000, running on my network Server (Win 2003) from my client terminal. I have cerated the Database in the Sql server with sufficient rights for the domain user. I am using C#.net express to connect. 1. I have the option to choose the mdf file only and not the server. 2. When I browse to the MDF file (stored in my windows server) , It gives me an error the *.mdf file is on a network path that is not supported for database files...... Is there any solution for this. Thanks in Advance I wanted the database to reside in the server. Develop the application and upon deployment of this application to all my network clients, they must be able to access the database. I exp ...Show All
Visual C++ Building 64 bit application with VC++ in Visual Studio 6.0
Hi, I am building a 64 bit application with VC++ 6.0. Machine configuration: EM64T GenuineIntel Processor Architecture: AMD64 System Type: x64 What should be the way to setup and build 64 bit applications What are the different linker options ( /machine:x64 is right ), compiler options and also what is the version of Platform SDK required Thanks in advance, Swati The current supported way if building 64 bit application is through VC2005 where you will find the 64bit tool. VC6.0 compiler tools do not build 64 bit applications. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual C++ VS crash when updating intellisense
hello we using C++ manage code, with about 22 projects, when we open vs project from "VS2005 pro" updating intelisense is start, and when it get about 70% of it process we get microsoft error report, and Vs crash and restart , the only fix we find is to disable intellisense by rename FEACP.DLL. i find this solution unconvenion, we had this error in a last 3 months on diffrent computer in diffrent time. this is part of event viewer log (notepad with event id is attachment) Event Type: Error Event Source: Microsoft Visual Studio Event Category: None Event ID: 1000 Date: 30/01/2006 Time: 16:43:48 User: N/A Computer: **_XP Description: Faulting application devenv.exe, version 8.0.50727.42, stamp 4333e699, faulting module vcpkg.dl ...Show All
SQL Server File Metadata and the Foreach Loop Container
Hello, I want to set up a Foreach loop container to loop through several flat files. I have a connection manager set up for individual flat files. The metadata for the files is all the same. They are fixed width files, and contain sixty five columns. I didn't see a place in the container properties to configure the metadata of the files. How can a Foreach Loop Container 'know' the metadata of the flat files that I want to loop through Thank you for your help! cdun2 If you are going to iterate through a number of files, you need t use a ForEach loop container that uses file enumerator . Then you need to create a single data flow with a single Flat file connection manager (using an exp ...Show All
Windows Forms confirm delete + checkbox + datagrid
hellow, I wants to know the code for the following : I have taken a delete button in datagrid and when checkbox is checked and delete button is clicked a message should pop up that 'r u sure wants to delete the items '. any code.. help its urgent hello Jitendra For the answer to your question we have to think about 2 steps first step : - how to trigger an action when the delete button is clicked and only if the checkbox is checked ,it must procedd to delete for that we can write like this first let us suppose the button name is button1 and the checkbox name is checkbox1 now we can write the code for checking wether the checkbox is checked or not like this Protected Sub Button1_Click(ByVal ...Show All
Visual Studio Express Editions using api in vb.net
Hi, I am migrating an application from VB6 to VB.NET at the moment. There is a Windows API call in one of the subroutine which will not run through, see below (words in red are added by VB.NET): Private Sub hook() ' UPGRADE_WARNING: Add a delegate for AddressOf WindowProc Click for more:... lpPrevWndProc = SetWindowLong(gWH, GWL_WNDPROC, AddressOf WindowProc) End Sub my question is how can i add a delegate for windowProc how does a delegate work Thanks by putting: "System.Threading.Thread.Sleep(1)" into the do loop before the "System.Windows.Forms.Application.DoEvents()", the program will run just fine. But will try the process class approach later. ...Show All
.NET Development XmlSerialization of object data type
hi folks, i want .net framework to xml serialize the below class, based on the type of data present in the second data member. but, only the first data member gets serialized and the second member is ignored. is this the way to implement what i am looking at that too, in .NET 1.1. http://xxx ")] public class MessageParams { [XmlElement("Credentials")] public Credential cred; [XmlElement("FirstMethodParm", typeof(FirstMethodDataType))] [XmlElement("ScndMethodParm",typeof(ScndMethodDataType))] public object Item; } TIA Sek I answered this question on a different thread: basically you cannot use default test page as a tes ...Show All
Visual C++ error
I have this program to chk time, but the accuracy is 2 sec. I want more accuracy ( 1 sec or less ) pls help , thanks #include <io.h> #include <iostream.h> #include <conio.h> #include <windows.h> int main(void) { FILE *stream; std::ftime ft; int h,m,s,ms; if ((stream = fopen("TEST.$$$","wt")) == NULL) { fprintf(stderr, "Cannot open output file.\n"); return 1; } getftime(fileno(stream), &ft); h=ft.ft_hour; m=ft.ft_min; s=ft.ft_tsec; printf("File time: %u:%u:%u\n",h,m,s); printf("File date: %u/%u/%u\n", ft.ft_month, ft.ft_day,ft.ft_year+1980); fclose(stream); cout << "\n\nPress any key to continue"; getch(); // wait for key pressure return 0; } ...Show All
Windows Forms Host Controls in Windows Forms DataGridView Cells
Hi all, I'm trying to create a new cell within the new DataGridView (.NET 2 Beta). For example, I'm trying to create a cell which contain a RichTextBox, I succeed with the appearance of the rich text box controll but there is a lot of irregular behavior. Does someone did it already(not particular with RichTextBox) and can send an example. Unfortunately Microsoft example in the link below doesn't accessible. http://whidbey.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_fxmclictl/html/e79a9d4e-64ec-41f5-93ec-f5492633cbb2.asp 10X in advance, Nir Oren The Rows collection has two Add method overloads that let you populate the values. You can either create a DataGridViewRow, populate it however you want, and pass it to the ...Show All
Windows Forms Invisible Column
Hi all, I want to prepare 2 columns in my DGV: 1 column for displaying "text" and another one displaying "value". E.g. ColA ColB First Name firstname In the backend, I'll loop through all DGV row and I want to obtain the "value" from ColB for further processing (ColA containing space and for display only). I set the ColB.Width = 0 and DataGridViewAutoSizeColumnMode.None, but the column still visible. If I set the ColB.Visible = false then I can't loop through that column value programmatically (e.g. at the CellFormatting Event). Any solution to this situation Thanks, Hi, Anyone here face this problem before No one databind and want to display a "human readable& ...Show All
