Deldy's Q&A profile
Windows Forms inherit datagridview in a class ????????, use interfaces ???????, What the best way for do that ????
I’m building a windows forms application with vb.net and sql. My Application is all Unbound I have a form with a DataGridView and I have some class too I would like my DataGridView load properties like Column Numbers, col Name, Col Type, etc from the each class. What the best way for do that ...Show All
Software Development for Windows Vista Merge XPS documents
Basicly I want to merge 1-n xps-documents into a new package, either just add all source-documents or just add all the pages of the source-documents into the new package... I've tried out with following code, which writes all the source-documents-pages into a new xps-document, however this is very very slow!!! public void CreateXPSStreamPages(string targetDocument, List<string> list) { Package container = Package.Open(targetDocument, FileMode.Create); XpsDocument xpsDoc = new XpsDocument(container); XpsDocumentWriter writer = XpsDocument.CreateXpsDocumentWriter(xpsDoc); SerializerWriterCollator vxpsd = writer.CreateVisualsCollator(); vxpsd.BeginBatchWrite(); foreach (string sourceDocument in list) { Add ...Show All
Visual C++ Does VS2005 include Windows Installer?
Does VS2005 include Windows Installer If so, how do I run it to create an installation package for users to install or upgrade my products Using your clues, I found some of what I wanted in only 15 minutes; I do not consider this "easy". And I found it on MSDN, as you suggested, but not in the VS2005 local docs. The latter, by the way, has hundreds of pages describing the syntax of Windows Installer, which I had read before I posted, but nothing on how to use it. I have several problems with the current doc system: 1) It is syntax-oriented. Unless you know the product/function/protocol name, etc. in Microsoft-ese, you won't be able to find it without extensive searching. 2) The indexing ...Show All
Windows Forms in this coding what is datagridview? we get error datagridview is not declared....
Dim debitTotal As Integer = 0 Dim creditTotal As Integer = 0 Dim counter As Integer ' Iterate through all the rows and sum up the appropriate columns. For counter = 0 To (DataGridView1.Rows.Count - 1) If Not DataGridView1.Rows(counter).Cells("debit").Value Is Nothing Then If Not DataGridView1.Rows(counter).Cells("debit").Value.ToString().Length = 0 Then debitTotal += Integer.Parse(DataGridView1.Rows(counter).Cells("debit").Value.ToString()) End If End If If Not DataGridView1.Rows(counter).Cells("credit").Value Is Nothing Then If Not DataGridView1.Rows(counter).Cells("credit").Value.ToString().Length = 0 Then ...Show All
Smart Device Development Display image in datagrid cell
I am trying to display an image in a datarow's cell on a DataGrid control. Can this be done; if so please help. Thanks It can be done on NETCF V2 SP1. Just Override Paint() on DataGridColumnStyle class and paint whatever you want including images. This should help: http://blogs.msdn.com/netcfteam/archive/2006/04/25/583542.aspx ...Show All
Visual Studio Express Editions Slow assembly - MASM 8.0 with large data array
I have declared a large array with 16 byte alignment as follows: .data align 16 pbuffer real4 4*640*480 dup ( ) The assembly time (under the Visual C++ Studio Express IDE) is very long (around 30 minutes). Using dd instead of real4 does not help. Making the array small makes the assembly go very quickly. I have not had similar problems with older versions of MASM (6.14) using a command line interface. It would seem to me this is a reasonable way to declare such an uninitialized array in MASM. Does anyone know of another that will not consume so much assembly time Are there build options for debugging or something that could be changed to speed up assembly time for this kind of declaration ...Show All
Windows Forms overlaying a docked panel?
Hi, I've got the following problem. I am working on an application that has a main form with on the left side a tree view and on the right hand a panel. Both objects (treeview and panel) are docked, so they stick on the sides of the screen. i thought that might be usefull when the application is used on different screen sizes. However, when the user clicks on some nodes, some dialog forms open. Is there any way i can make sure that the dialog forms that are opened perfectly overlay the (docked) panel on the right hand side. That would make my application a bit more easy to handle on different screen sizes. I hope this is clear. Thanks so much for a reply PS I'm using VS 2005 This is the background. There is a main form ...Show All
Visual Studio Team System Error TF84011: Could not connet to team project
I am having problems accessing certain files in the documents folder when I'm connected to Team Foundation Server from workstation. I get the above error when trying to open the issue.xls file. I get an error when attemtp to open any .mpp file about the version of the .mpp file is not the right version. I still cannot access the work item database (mentioned in a separate thread). None of the problems above exists when I log on to the server where Team Foundation server is installed. Can you help Maggie, Sorry to hear about the problems you are running into. Is the excel file connected to a query or is it a regular excel file Please try opening it directly from the team project portal inst ...Show All
Visual Studio 2008 (Pre-release) SQO Documentation For Sum and Average Operators
In the May CTP SQO documentation, for the Sum operator, the docs state that null values will not be included in the sum. What value could you add to the sum for a null value But, for the Average operator, no such statement is made. So I am curious, what is the defined behavior going to be for determining the average if some of the elements are null Since an average is the sum divided by the count, will the null elements be included in the count, thereby lowering the average I haven't tested the code to see how it behaves yet because I care more about the defined behavior, than the way it is currently implemented. As a developer, I could see wanting to be able to do it either way. Sometimes I may ...Show All
.NET Development Standard DateTime Format with milliseconds
Hi, Does anyone know if there is a standard DateTime pattern I can use that includes milliseconds It appears as though the patterns included in DateTimeFormatInfo do not include them. Thanks, David Riddiford. Thanks for the below answers. I did indeed use a format string to display milliseconds. I had read the post that was specified as the answer. I was hoping that despite this, someone may have known about a standard pattern, so I didn't have to build the format string myself. Oh well. Thanks, David. This question was asked already. Here is a link to the original topic as it was marked as answered. http://forums.microsoft.com/MSDN/ShowPost.aspx P ...Show All
Visual Basic How to save data from a form to a xml file?
i'm trying to find a way to store data entered in a form into a xml file i have found some codes~ it worked~ but when i want to store another set of data~ it replaces the one i enter before~ it's like it's creating a new xml file each time i store data in the xml file the code i used is this Dim xmlTW As New XmlTextWriter("..\CYFmembers.xml", Nothing) With xmlTW .Formatting = Formatting.Indented .Indentation = 2 .WriteStartDocument() .WriteStartElement("CYFMembers") .WriteStartElement("Members") .WriteElementString("FirstName", txt_fname.Text) .WriteElementString("LastName", txt_lname.Text) .WriteElementString("D.O.B", txt_dob.Text) .Wr ...Show All
Visual C# Application not running...
hi... We are trying to run our application's .exe in the system which is not having c#(.NET framework) installed. But its showing error "mscorees.dll file not found." So how i can run my application on my system which is not having .NET framework installed on my system... Thanks, Vinay ...Show All
Windows Live Developer Forums Add-Ins and Stored Procedures ?
I am trying to use an Add-In to query a SQLServer database via stored procedure. My code works fine in my Windows Forms test application but throws a system exception when run in the Add-In. Is there a restriction on add-ins being able to use System.Data.SqlClient Was thinking of wrapping a web service around the data query otherwise - any known issues / restrictions with that approach alternatively ...Show All
SQL Server How to create a Recordset that joins 3 temp tables
I have an stp where I want to return a Recordset via a SELECT that joins 3 temp tables... Here's what the temp tables look like (I am being brief)... CREATE TABLE #Employees (EmpID INTEGER, EmpName NVARCHAR(40)) CREATE TABLE #PayPeriods (PayPeriodIndex INTEGER, StartDate DATETIME, EndDate DATETIME) CREATE TABLE #Statistics (EmpID INTEGER, PayPeriodIndex INTEGER, HoursWorked REAL) The #Employees table is populated for all employees. The #PayPeriods table is populated for each calandar week of the year (PayPeriodIndex=0 to 51). The #Statistics table is populated from data within another permanent table. Some employees do not work all 52 weeks. Some employees do not work any of the 52 weeks. So, the #Statistics t ...Show All
Smart Device Development batch file support
Hi, We are are using sql server mobile as database for our application. We need to install sql server mobile in the device. To do that we need to copy 3 files to the device as shown below( both for pocket pc and smart phone device) and the through the file explorer click on all the files sqlce30.dev.ENU.ppc.wce5.armv4i.CAB sqlce30.ppc.wce5.armv4i.CAB sqlce30.repl.ppc.wce5.armv4i.CAB (for Pocket PC) or sqlce30.dev.ENU.phone.wce5.armv4i.CAB sqlce30.phone.wce5.armv4i.CAB sqlce30.repl.phone.wce5.armv4i.CAB .Can we write a cab file which will run or install the contents with a single click.Is the batch file concept supported in windows mobile Thank's & Regard's Prathap.K.H Hi Check the Channel 9 Wiki art ...Show All
