Stefaan Clement's Q&A profile
Windows Forms currentCellChanged event to sum column
I am trying to use the currentCellChanged event to sum my "Extended Price" column. What I want to do is when that column is selected I want to run this code: Dim r As Integer Dim total As Decimal For r = 0 To MachDBDataSet.Tables(0).Rows.Count - 1 total = total + CDec ( Me .SchMaintChildDataGridView.Item( "pQTY" , r).Value) * CDec ( Me .SchMaintChildDataGridView.Item( "pPriceEa" , r).Value) Next ...Show All
Visual C# Events And User Controls
Hi, I've got a user control inheriting from System.Windows.Forms.TextBox and I've added a ListBox as a child. I would like to expose an event when the ListBox changes visibility. Any help would be greatly appreciated. Code Snippet Follows==================================== public class TextBoxLookup : System.Windows.Forms.TextBox { private System.Windows.Forms.ListBox listBox1; private void OpenListBox() { Control ...Show All
SQL Server Column detach task ?
Sometimes you have some columns in the dataflow that you at some point in the flow doesn't need in the further flow. So maybe a tast or an option for disabling columns that are no longer in use Why do you think this would be of benefit If its for disabling those columns at design-time then I think its a good idea. I think "disabling|" is the wrong word however, "hiding" would be more appropri ...Show All
Windows Forms Data Abstractionlayer
Hi , im currently creating an abstraction layer for databindable objects.. its supposed to expose a common interface for all bindable objects. and now i wonder , what types/interfaces would be good to databind currently i have support to bind: DataTable (and dat ...Show All
.NET Development Need information on Oracle support for Visual Studio 2005/.NET 2.0 Beta 2 and beyond
Can anyone point me to any information on Oracle support for Visual Studio 2005/.NET 2.0 Beta 2 and beyond Thanks Bill Zack There is extensive support for Oracle in .NET v2 through the System.Data.OracleClient namespace. See this MSDN page for documentation: http://msdn2.microsoft.com/library/347d2380(en-us,vs.80).aspx ...Show All
Smart Device Development Unable to initialize Direct3D on Windows Mobile 5.0 Pocket PC Device - MDA PRO (HTC Universal)
i allways get a DriverUnsupportedException (it works in the emulator) Device Information: Device: MDA PRO (HTC Universal) OS : Microsoft Windows Mobile Version 5.0 OS 5.1.70 (Build 14409.1.1.2) Framework: Microsoft .NET CF 2.0 installed Processor: PXA270-520MHz Is there any known problem with directX on this device Yeah, I'm having the same problem with an O2 XDA Exec (same pho ...Show All
SQL Server How to access my report server by URL in this case?
hi, guys We have a web server, which everybody can access it, in public internet. But our report server is a separate machine in the intranet, which does not have a public ip address. So what we need to do is, built the URL in the webpages in webserver, and allow users to access the reports. In this enviroment, is this possible thanks. In the scenario mentioned above (Webserver on public ip, RS2005 Serve ...Show All
Visual C# windows status bar
Hi again! Is it posible to see what program are in the status bar of windows I suppose you mean the taskbar. I don't think .NET has implemented this function, so i would recommend the method EnumWindows from user32.dll using interop. More information and examples on EnumWindows can be found at pInvoke.net ...Show All
Smart Device Development Anyway to have a popup Form that doesn't take up the whole device screen.
Hi all, is there any Control/way of implementing a Form that pops up when I click a button. I know I can use normal forms (via ShowDialog()), but I ideally don't want the Form to consume the whole of the screen space when it opens. Furthermore, I ideally would like the form to open just above where I pressed the button. Hope you can help. Thanks Tryst Hi Tryst, If you create a non-fullscreen form (e.g. set borderstyle to none, specify w ...Show All
Visual C++ Manifests in VS2005-- What are they?
In my experience, manifest files have enabled the Windows XP control themes in applications. That is all I know about them. Can anyone explain what manifests are, and how they are used I also noticed that Visual Studio 2005 Professional supports embedding manifest files. Does this mean the IDE is capable of automatically making applications support Windows XP control themes Thanks ahead of time. In .NET you do ...Show All
Visual C# Configuring Time and TimeZone...
Hi everybody, What is difference between a local time and a system time, Correct if I am wrong, system time is time of the system server where your computer is connected. So, if I would change system time I need to change the tme on the server. Right How would you set(change the local time programatically Also, using DateTime.UtcNow is to get system time How to change the system time progra ...Show All
Visual C# Object reference not set to an instance of an object
Hi, I get this message when executing a web application; it builds and debugs ok.. when i call the webform i get .. Any ideeas Any input is appreciated. Thank you Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. ...Show All
.NET Development Exception: DataTable internal index is corrupted: '5'. on ...
Hi, I have a problem with bindingsource component in framework 2.0. I have a combobox bound to a bindingsource which is also bound to a dataset with 2 related tables and a datagridview bound to the same bindingsource. What I want to do is : When the selectedindex property of my combobox changes, the corresponding cell value must be changed in the datagridview. But although the value in bindingsource changes, datagridview does not displa ...Show All
.NET Development How to dynamically load schema from a file and then assign to xmldocument and validate it
I am creating in memory xmldocument. Previously I were validating my file against a dtd file and then by the help of GetElementByID read my needed node. i.e. XmlDocumentType doctype = null; doctype = statementsDocument.CreateDocumentType("queries", null,statementsPath +"\\Validation.dtd", null); statementsDocument.AppendChild(doctype); nodeElem = statementsDocument.CreateElement("queries"); statementsDocument.Appen ...Show All
Visual C++ c/c++/c#
I am currently an intermediate programmer in visual basic .net. I want to learn a C language and was wondering which I should learn first and the main differences between them. Between C, C++ and C#. Thanks, Korab I would really take a few weeks and learn the basics of the C++ langauge before tackling anything domain specific. If you know the fundamentals you'll find it easier to apply C++ to any problem. ...Show All
