CruzPedro's Q&A profile
Visual Studio 2008 (Pre-release) There is no BindingNavigator in WPF?
When will it be provided Or please show me how to design one myself A BindingNavigator equivalent will most likely not be in the RTM version of WPF. However, I don't see why we wouldn't be able to create one. A BindingNavigator has a tool strip that handles adding, deleting and navigating data. I think it would make a good addition to the WPF Toolbelt but I'm running out of time for implementing new features in time for the September release. If I had another developer join the effort maybe it will be possible. *hint hint*. We can probably use a HeaderedContentControl to implement the control. The header would be the tool strip. And the content would be a panel containing the controls bound to the current item that the navigato ...Show All
Visual Studio Team System More Continuous Integration problems
I need to have my team builds which run on CI to build higher level applications if a lower level framework component is changed. For example, I have a framework Component and I have an application which has a binary reference to this framework component. If the framework component is changed, I would like this to be built. I would also like the application which has a binary reference (and any others which do) to be built. Is there a way which I can do this Steve, We are still in the stage of picking a CI application to use. Are there any suggestions as to which is the best one to use I believe there are 3 options to choose from, CC.net, Automation and another one .... any suggestions ...Show All
.NET Development How to write or replace a custom OLEDB provider
Many applications (Crystal Reports, Excel, SQL Server etc.) are OleDB consumers with built in support that allow non-DBA users to quickly and easily retrieve data from sources that have OleDB providers. I have not seen similar support for sources that only provide a Managed provider. ADO.NET has been around for many years now. Assuming the data is generated in a .NET application, how does Microsoft or this community recommend exposing data to these OleDB consumer applications Is there a managed provider to OleDB interface conversion mechanism Background Info: We were once a COM/C++ shop and are now small .NET shop. We have lost virtually all of our COM/C++ experienced programmers. We have re-written the original COM/C++ s ...Show All
Visual Studio Express Editions increasing the counter??
hi there... need help in increasing the amout of times a button is clicked to be shown. the concept is this. when a button is clicked firsttime, the text that been displayed in the treeview will be "Subscriber station 1"and the consequent time it increases the number. sample coding is below. pls help. private : System::Void add_subNode() { array <TreeNode^>^ subNodeArr = gcnew array <TreeNode^> { gcnew TreeNode ( "Subscriber Station" ) }; &nb ...Show All
Visual C# Q: Working with Graphics object
Hello everybody. I have a text file with the paths of all images I want to use. What I want to achieve is to read this text file line by line, create a bitmap using the path, resize the bitmap to a custom size and place this so called thumbnail into a graphics object. The graphics has to write on a bitmap of custom size. What I don't know is how to place all the thumbnails so whenever they reach the end of the width to go on the next row. I hope you understand what I mean. g.DrawImage (bmpFromTXT, (i%10) * 20, (i / 10) * 20 , regionWidth, regionHeight); i tried this but does not seem to work. It just displays them half the way of the bitmap to write on You want to Create Thumbnails of Images on a single Bitmap or on some Surface li ...Show All
.NET Development ObjectDisposedException
In the load event for my main form in my C# Windows Forms app, there is a case where I need to call this.Close(); When this happens, I get the ObjectDisposedException thrown. My main routine in program.cs looks like this: using (Form1 frm = new Form1()) { Application.Run(frm); } Any help at all is appreciated!! Your "using" statement is unnecessary, Form.Close() already calls Dispose(). That's however probably not the source of your exception. Be sure to not touch any of the form's properties and controls after you call Close(). If necessary, set a breakpoint on the Dispose method in the Design.cs file and single-step to find out what your code is doing after disposing the form. ...Show All
Visual Studio Printing Issues
Hello, I’ve been having this issue for a couple of weeks now and have tried countless ways to find a work around without much luck. Long story short, I’m writing an application with Visual Studio 2005 Professional using J#, the application has a user enter data such as name, address, phone, etc and then a Submit Button. I want to print a form with this data, and I have created a separate form that gets populated with this information and is sized to fit an 81/2 x 11 piece of paper. The print solutions that I’ve found in the Help section and on these forums have a lot of flaws for what I’m trying to accomplish. The answer I’ve found is to do the screen capture – and that works some times, the problem is, the form doesn’t comple ...Show All
Visual C# Easy way to copy a DataTable
Is there no easier way of copying a DataTable than this int i = 0; foreach ( DataRow newRow in newTable.Rows) { DataRow drCopy = oldTable.NewRow(); drCopy.ItemArray = newTable.Rows .ItemArray; oldTable.Rows.Add(drCopy); } This returns an empty table: oldTable = newTable.Copy(); Hi; Usually DataTable.Copy() works fine for me. Try doing newTable.AcceptChanges() before doing the copy. If you need to copy only the structure then use DataTable.CLone(). Shivam ...Show All
.NET Development howto converting millimeter to inch and viceversa?
Hi Community! Is there some built in functionallity in the framework, to convert millimeter to inch and viceversa especially I must be able to convert the millimeters to inch with fraction format like: 3,175 mm -> 1/8 " Background: My application is internally based on datatables holding collums with metric lengths, but the customer is used to inch and doesn't want to see mm :-( Therefore I must display all lengths in inch (fraction format). Also they must be editable in inch (fraction formatted). What would be the easiest way to get that done Thanks for help and hints Rainer Queck Try this: Imports System.Math Public Class SizeConvert Public Shared Function Size2Lcd(By ...Show All
.NET Development init parameters on web service
Hi I want to init some of my parameters on the first load of the web service. I tried to init them on “Service()”, but I could see that this method is called whenever there is a call to a method. Is there something like Page_Load() and Page.IsPostback that I can use, to make sure I only run this inits just once Hi. What about using the application_start() method of the Global.asax . You could add a Global.asax to your web service and place those parameters like application variables. Sure that method runs only when the application starts for the first time. Greetings. ...Show All
.NET Development Try-catch doesn't catch interop exception
With .NET Framework v2.0, if Photoshop isn't installed on the user's system when my code attempts to open it, this .NET runtime exception is thrown: Microsoft .NET Framework Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately. Retrieving the COM class factory for component with CLSID {B827BBBB-1621-4064-812B-0D759D04A008} failed due to the following error: 80040154. I've placed the code to open Photoshop in a try block and a user-friendly explanatory message box in the catch block. The exception isn't caught and the user sees the .NET runtime exception message. The application works fin ...Show All
SQL Server Is there a way to display messages? To see more details why it is not running?
Hi can not execute a package! If I run the package from Visual Studio, it works; If I deploy it and execute it, it works; If I log in the server an execute it, it works; If I execute it from a Task using the SQL Server Agent it works fine until I have a DataReader Source in the Package! Is there a way to display messages To see more details why it is not running Thanks! soanfu wrote: The Data Reader that i am using is a ADO.NET connection to a AS400 database. I am not sure if the service user (Local System) has access because to it. But in the connection string for the ADO.Net connection I am providing user name and password. I just would like ...Show All
Community Chat Free Online Visual Basic 2005 book
I have recently made my book free, sponsored by AdSense of course. The book is designed for non-programmers. After many hours of tweaking javascript I have finally completed most of the design of the page, so that it works with google and also so that there are no frames. If anyone would like to help with the book, ie: make it better, then feel free to contact me here or at the site. You can find the book link in my signature... C# and C++ are fairly similar, so there isn't really much point in putting both in the book. BTW, what's going on with your site Half the links are broken, and JimmyWidgets is offline! Fix it now, boi! ...Show All
.NET Development high performance ADO.NET
Hi there, I plan to implement an application requiring very high performance access to a Ms-SQL 2005 database. More precisely, I will have about 10 millions of rows in a table to update. They will be retrived by the application by blocks (say 1000 at a time), and, after computing on application side, will be returned back to the database, through UPDATE commands (in stored proc). For sure, there are lots of topics to address to achieve high performance (size of data in rows, network impact, table and indexes design, application performance, etc.). My question here concerns the ADO.NET layer and the dialog with MS-SQL. I'm looking for documentation, technical articles, advices, etc, to design high performance&nb ...Show All
SQL Server Accessing Replication Logs via RMO
Hello! I am writing an app with C# that is using SQL Server 2005's RMO objects. I want to display a tree control with say a log history (last successful sync, dates, etc...). I know that the server stores this kind of info somewhere but I'm not sure how to access this via RMO. Can anybody point me in the right direction Thanks! Hi, The following page in BOL might include the information you need: "How to: prorammatically Monitor Replication (RMO programming)" ( http://msdn2.microsoft.com/en-us/library/ms147926.aspx ). -Peng ...Show All
