Xancholy's Q&A profile
.NET Development Generated TableAdapter does not create methods for manualy entered commands
If I create a tableadapter from a simple query, the corresponding Insert/Update/Delete commands are created, and the generated underlying class has matching methods created also. That's fine. However, I am creating a TableAdapter from a query using joins from multiple tables. In order to update the primary table, I have then manually written the Insert/Update/Delete SQL and set the appropriate paramerers. In this latter version, the generated TableAdapter class does NOT get the corresponding insert() & delete() methods created. Is there some way of forcing these to be generated, or some guidelines on when methods will and will not be generated Thanks in advance Tim No, i ...Show All
Windows Forms Can I store a bitmap file in a globally accessable file, instead of a form's imagelist?
Hello, I am aware of the methods for storing images in an imagelist that resides on a form. But sometimes my tree node does not have the form's pointer. I would like to store some of my bitmaps in a globally accessable singleton object. Has anyone done this Thanks for the help! Bob The underlying Windows TreeView common control only supports tree node images via the TreeView's ImageList. You don't need a reference to the Form in order to load a bitmap into a tree node. myTreeView.ImageList = new ImageList(); myTreeView.ImageList.Add(Image.FromFile(@"C:\directory\subdirectory\filename.ext"); TreeNode node = new TreeNode("My Node"); node.ImageIndex = 0; myTreeView.Nodes ...Show All
SQL Server updating batch record after exporting data
I created a package in SSIS to export data from mutiple SQL server tables to a single flat file . Once the export is completed i need to update 2 tables ( a batch table and a history table) In the batch table I need to insert a record with batch # (system generated),batch date, status( success/failed), record count( no of records in the flat file), batch filename). In the history table, i need to insert a record for each of the rows in the flat file with the foll info. batch number,datetime,status(success/failed) My question is how do I get the batch status,record count, batchfilename for batch table update and how do i get to update the history table. BTW, i am executing this package as a SQL Server Agent job. I am new to Integra ...Show All
Visual Studio Team System Visio Problem Reversing C# project
hi, when i click Project -> VisioUML from VS2005 visio get started and the project seems to be reversed. I can see on the screen visio parsing .CS files.. but once the process is completed i only receive a bunch of errors from the visio output and a blank paper. mostly the errors are: "UMLE00034: Generalization53[Generalization] : [Generalization - WFR1] - A generalizable element may only be a subclass of generalizable element of the same kind." this happen when a class implements an interface... obviously the code from the project is correct and works perfectly. Any idea Hi Andrei, I just installed Visio Enterprise Architect to walk through this scenario and I was successful with the ...Show All
Visual Studio 2008 (Pre-release) Memory Issues
Hi everyone!!! I have develop a service the acts as a bussiness layer, I never noticed that it consumes a large memory amount, but I was testing with a little concurrent client number (12) not too much, well 2 o 3 hours later I have seen one of my nightmares comes true: the service process grown up to 900MB!!! Yes belive me!! Well first at all I think: "I'm really a bad programmer and I'm not using well the Framework, let's review the code", I found 2 or 3 issues but nothing critical, then I tried again and guess what The same result, I was investgating the memory issues debugging with windbg and I noticed that no a lot of objects where maked to get collected, specially wcf related objects, and well the GC is working but real ...Show All
Visual Studio 2008 (Pre-release) Error displaying xaml files in the browser...
Netters, After .NET 3.0 is installed, my understanding is that a XAML file could be used within IE just as an HTML file. Here is my simple "Hello World" xaml content, copied straight from WPF SDK and pasted in a text file: <Window Xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation "> <Button>Hello, XAML!</Button> </Window> When I browse this file from IE 7.0, XAML Viewer gets loaded as expected. However, it throws the following exception: System.Windows.Markup.XamlParseException: '' XML namespace prefix does not map to a namespace URI, so cannot resolve property 'Xmlns'. Line '2' Position '1'. at System.Windows.Markup.XamlReaderHelper.Read(XamlNode& xamlN ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to render to desktop background on Vista?
So now we have DX10 and Vista. Surely now we can now have some fun and render animated 3D backgrounds without the need for hacks The desktop is all 3D now right So if not now, then never I guess... Can anyone give me some pointers as to how to do this Any demos/samples/examples/tutorials out there Cheers, codemagic I am trying to accomplish the same thing for an AI GUI. I am currently investigating a product called "Deskscape" which is a free addon to the vista ultimate edition product Dreamscene. All I understand so far is that it uses the GPU primarily as opposed to the CPU, and it is used to display dynamic content. thats all I have for now, but I hope it helps. ...Show All
.NET Development DllRegisterServer entry point was not found error
I am using VB in VS2005 Pro to create a dll for distribution. The dll is created in the bin directory but when I try and register it with regsvr32 I get: DllRegisterServer entry point was not found. This file can not be registered. Depends shows missing dwmapi.dll What is the fix for this First I have to say it was a pleasure using this tutorial! Great advice, it is obvious you know your stuff! Second I would like to enhance what you provided by clearing up some questions I had: 1) I had to add "using System.Runtime.InteropServices;" so it would compile. 2) Naming my project "ClassLib" would have made the article and my project cor ...Show All
Visual Basic Launch .exe Program with Button Click
I want the click event for a button on a Windows form to load/run an .exe file that is in a folder within the project. Can someone help me with this Second question ... this winodws app includes a Web Browser control and I would prefer to launch the .exe file with the click of a link on an html page that is being displayed ... but I don't think that is possible. True Thanks. is the link in the browser changes the url. then you may do this using the BeforeNavigate event of the user browse and checking the locationURL property of the browser,. ...Show All
SQL Server SQL 2005 Reporting Service - "DTD is Prohibited in this XML Document" on ASPX page
I have aspx page which uses Reportviewer object to execute/display reporting services report on the page based on the parameters passed by the aspx page. It works fine. I have a problem when I try to use import option on that page. It throws the following error. Can anybody help me to resolve this issue Advanct thanks for your help and support Thanks, Sundar Here is the error message when I export the report to any format (Excel, pdf, csv or text) For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method. Description: An unhandled exception occurred during the execution of ...Show All
SQL Server Toggle Item on Export to Excel
I have an item that is hidden unless it is toggled. Does excel always expand the toggle on export and is there a way to stop this from happening Thank you in advance for your help. Have you looked under the text box or object properties under visibility It has options for intial visibility. The inital appearance section toggles the + and - and the initial visibility toggles expansion or contraction. Is this what your looking for ...Show All
Visual Basic Question regarding OWC10 in VB .Net
Greetings to everyone! This is my first post in this forum. Nice to meet you all! I am facing a very strange problem with OWC10 here. I got a form created in VB .Net with a OWC10 Pivot table on it. This form runs with no error in my development environment (I am able to do all the task including changing data, add in new fields), but when I deploy it to the user, the user is having errors while he just double click on the Detail cells of the Pivot table while trying to change the data. The error message says " Object reference not set to an instance of an object ", then follow by another error message says " An error 0x80004005 occurred. No further Information was provided ". This 2 error message is too common and can't help me t ...Show All
Software Development for Windows Vista Rehosted designer Rule Condition error with June CTP and XOML only workflow
If I attempt to create a rule condition in my rehosted designer for a XOML only workflow I get the following error displayed in a Properties Window dialog as soon as I type in the Rule Condition dialog index was outside the bounds of the array This is something that has been broken by moving to the June CTP, unfortunately. Any suggestions This doesn't help, unfortunately. The TypeProvider code above is already in Vihang's example, (appart from looping over the CurrentDomain assemblies which I added for good measure). Did you make the two small changes to Vihang's latest example, (as in the second post), and not get the runtime error ...Show All
Visual C++ Mixed mode C++/CLI idiom
In my C++/CLI components, for each component I create a ref CLR class and a C++ class, the latter which does most of the internal processing and interfaces to the C++ standard library and 3rd party libraries such as Boost. I do this so I can use C++ libraries in my CLR component, especially when the .Net framework does not offer all the facilities which 3rd party C++ libraries have. In order to allow the C++ class to access the properties, methods, and events of the corresponding CLR class I have a pointer to the C++ class as a private member of my CLR class and dynamically create an object of the C++ class, passing a pointer ( ^ ) to the CLR object to the constructor of the C++ class, and assign the resulting C++ object to the pointer in ...Show All
Windows Forms more than one curve?
this is really urgent, I need help about it.. I'm drawing a curve, and taking the coordinates of the points of the curve by clicking the mouse on the picturebox. I'm using a dynamic arraylist to get the best result about it and it works really good. but the problem is, whenever I click the mouse, it give an additional point to that curve. What I want is, to finish adding points to a curve (i.e. by right clicking the mouse) and when I start to left click again, it should start drawing a new curve, and it must continue this way for every other curve. I thought that it might be useful to make an object(which has its arraylist in it) array and to let the counter rise by1 when I right-click, so that it can start drawing a new curve ...Show All
