JTB1's Q&A profile
Windows Forms datagridview columns databindings
Hi all. I've this table in database: columnDay, columnTotal Now, in the columnDay, are stored data like: columnDay columnTotal Mon 01 01:00:00 Tue 02 01:00:00 Wed 03 01:00:00 Thu 04 01:00:00 Fre 05 01:00:00 Sat 06 01:00:00 Sun 07 01:00:00 The number of days are directly retrieved from the month. Now, i need to design a datagridview, that have the name and number of days as columns: For ex.: int myColumn = Thread.CurrentThread.CurrentCulture.Calendar.GetDaysInMonth(myYear, datetimepicker1.Value.Month); datagridView1.ColumnCount = myColumn; for(int i = 0; i < datagridView1.Column.Count; i++) { DateTime dt = new DateTime(year, datetimepicker1.Val ...Show All
Windows Forms question of DoubleClick on ListView in C#,need help!!!
Hi, does anyone know to write the C# codes on how to create a double click event for ListView to delete/remove the item that i select from ListView control Hi Harsimrat, Thank you for your codes, by the way,i am using Visual Studio .NET 2.0 Compact Framework to develop my application. In this VS2005 , i couldn't get this in the designer " this.listView2.DoubleClick += new System. EventHandler ( this .listView2_DoubleClick); " . It doesn't provide DoubleClick for ListView in VS2005. ...Show All
SQL Server Analysis Services 2000/Excel 2003 and Drill through
Has anyone got this to work in Excel 2003 Using Analysis Server itself I can use drill through - but whatever I do with Excel 2003 I can't get it to work. Thanks Hello. If you try to dubbel click on a cell in Excel 2003 thats is part of a pivot table area connected to AS 2000/AS2005 you will get a clear message that nothing will happens. If you use a Pivot table in Excel against a relational data source , you will get drill-through to the records thats is part of that pivot table. Conclusion,like Deepak already told you, it is not supported in Excel 2003 pivot tables. If you are using Report Builder in, RS 2005, you will get drillthrough as a feature. No lines of code required. Try the E ...Show All
.NET Development Connection string for a local visual sql databases (*.mdf)
Previously I've used access databases for different application which I create in Visual Basic (Visual Studio 2005). This time I need just a small db with one table (at this point), and I noticed the 'SQL database' (An empty SQL database for local data) at the project-> add new item option in Visual Studio. I created the database, and added a table. Both the database and the table itself can be viewed from the 'server explorer' window under 'data connections'. Everything is great up to this point. But how do I connect from my application to this database I guess there's no real SQL server running. I tried to create the connection string using a new.udl file, but it seems that none of the OLE connections can be used towards the mdf fi ...Show All
Software Development for Windows Vista Digital Signature.
How can we obtain digital signature for the existing application Is it neccessary for running it on Windows Vista Hi Oliver , I have this confusion because of what I had read in compatibility CookBook ,there it is said "All 64-bit drivers have to be digitally signed for Windows Vista 64-bit editions. Unsigned drivers are not supported and cannot be installed on 64-bit Windows Vista" in the Windows Vista 64-Bit section. And is the siginig process is done by the Verisign during Vista Logo Certification or we are provided with some files to sign it ourselfs Please clarify me on the above mentioned doubts. Regards Vikas. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. End users shouldn't have to rewrite XNA math functions in order to improve performance.
The overhead of passing a 64 byte Matrix by value is significant. Most especially when you are comparing two matrices for equivalency (==), or performing a Vector*Matrix multiplication (Vector3.Transform(Matrix)). The following matrix comparison function performs 5-10 times better than your built in == comparison. If the matrices are equal, then it is about 5 times faster. If they are unequal then it fails fast, and is about 10 times faster. public static bool Equals(ref Matrix a, ref Matrix b) { // i check the diagonal first for quick fails return a.M11 == b.M11 && a.M22 == b.M22 && a.M33 == b.M33 && a.M44 == b.M44 && a.M12 == b.M12 && a.M13 == b.M13 && a.M1 ...Show All
Visual Studio Express Editions DataGridView Update Error
Hi guys. I'm new at your forum but I really need your help! I'm working with DataGridView and put Update() method of my TableAdapter in the RowLeave event of my DGV. So when I add a new row it works perfectly but when i try to update some other row created before it gives me an error like this (translated from italian): Update requires a valid UpdateCommand when a DataRow collection is passed through this method I just use this construction: this .ticketsTableAdapter.Update( this .customersDBDataSet.Tickets); Can someone help me Maybe somebody knows another WORKING method to update DataGridView content. Thanks a lot. Looking forward to your suggestions :) CellFormatting event of my D ...Show All
Visual C# Text formating on Word
hi guys i'm using Microsoft.Office.Interop.Word to write some things on a word template like this: wordApp = new Microsoft.Office.Interop.Word.ApplicationClass(); wordApp.Visible = true; object readOnly = true; object isVisible = true; object missing = System.Reflection.Missing.Value; object document = null; Microsoft.Office.Interop.Word.Document oDoc = wordApp.Documents.Open(ref document, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing); oDoc.Activate(); Microsoft.Office.Interop.Word.Rang ...Show All
Visual Studio 2008 (Pre-release) How do I open legacy structured storage files with IO.Package?
We have some structured storage files that we want to be able to access with managed code. I am trying to avoid the PInvoke and/or Interop - and came across the IO.Packaging with the internal compound file stuff already done. I tried to use it but it defaults to xml package - and so I error - and I am wondering if it is possible and if someone has a sample of how to use these API's to open and read any compound file Thanks So if I understand Structured Storage correctly, the term "Structured Storage" is used for the native OLE32 API's which would require PInvoke and used the older StgOpenStorage calls and properties were all just stream read etc. The term "Compound File" ...Show All
SQL Server getting the value of 'select from sales' using adomd in vs.net2003?
When I run the "select from sales" mdx query, cs.Axes.Count is 0.. so I'm not sure where the value would be located. I checked the items in cs, but did not have luck during this process. Well, this works! (the code is the same as a single axis statement) object [] pos = new object [1]; pos[0] = 0; value = cs.get_Item( ref pos).Value.ToString(); ...Show All
Software Development for Windows Vista The new WZC API
On Vista, what is the new API for WZC (and where do I find it in the SDK) WZC = wireless zero config Thanks. In vista , Wlan will be used, see http://windowssdk.msdn.microsoft.com/en-us/library/ms706563.aspx And where can i find WZC api in WindowsXP, which SDK thx ...Show All
SQL Server Which algorithm is best for Perdiction
Hi I want to predict which product can be sold together , Pl help me out which algorithm is best either association, cluster or decision and pl let me know how to use case table and nested table my table structure is Cust_ID Age Product Location Income Thanks Rajesh Ladda You want to create a structure that looks like this CREATE MINING STRUCTURE MyStructure ( Cust_ID LONG KEY, Products TABLE PREDICT ( Product TEXT KEY ) ) And then create either a decision tree or association rules model inside the structure. If you have many products, say, more than 1000, you should go with Association Rules. Otherwise trees work well, but I would experiment with both. ...Show All
Visual Studio Express Editions Object and Property Descriptions
I am making a managed dll in C++ to use in later projects for C++, VB, and C#. When ever you click on properties of MS user controls in the design portion IDE it tells you what that property is, ect. I would like to know how describe properties in the same manner. Also when you look at an object in the object browser it gives you a summary; I would also like to know how to define these summaries in C++. Thanks in advance for any help The summary description of classes and members that you see in the Object Browser are generated from the XML documentation comments in your source code. ...Show All
Windows Live Developer Forums Dashboard control
Hi, How can I specify the dashboard position on the map In V2 there was an object parameter in MapControl() constructor. Using this object parameter I was able to specify where I want to place the dashboard. Is there something similar in V3 I tried playing with .Compass and .Zoombar styles but they move only compass and zoom bar respectively - the dashboard (light blue semitransparent box) remains in upper left corner of the map. Thank you, olley. I'll pass the request on to the team. In the meanwhile, you can do what many others are doing right now: create your own control (in a DIV, for example), and then use the VEMap.AddControl() method to add it to the map wherever you want. Cheers, Caleb ...Show All
Software Development for Windows Vista Rc2
Dear sir I am trying to install Rc2. At that time the setUp is install .Net3 frameWork . Once install is over I try to create new project in VS 2005, the WorkFlow not apperaring in the project list. so plz guide me. I am using XP PRO Dear Andy Ho Where get latest WF Extension for VS.NET 2005 and better also install the SDK. Give me steps by step instructions Thanks lot. vijil ...Show All
