Don Breazeal's Q&A profile
Windows Forms VS 2005 Toolbox Refreshing
Hi, I have noticed that the toolbox in VS 2005 contains a tab for every projects in my solution that contains a component derived class. During builds of the solutions each of these tabs are being refreshed / rebuild and it can take a little time. Is there anyway of stopping this refresh, or is it a matter of removing the tab from the toolbox Maybe this is a bug that has been fixed post Beta 2 Thanks for your help Graham I have noticed the same thing, and it is very annoying. I have a lot of User Controls in our various projects and it doubles our build time just by refreshing the Toolbox with ev ...Show All
Windows Forms remoting -- control embedded in IE
Hi, I am trying to use .NET remoting in forms control, I just declared: ------------------------------------------------- using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Http; namespace WindowsControlLibrary1 { public class UserControl1 : System.Windows.Forms.UserControl { HttpClientChannel channel = new HttpClientChannel (); ... } ------------------------------------------------ and my forms&n ...Show All
.NET Development SQL Server 2000 Questions (Newb)
I am working on a program for a college class. It is a system for an auction house (live auction, not eBay style). I am writing the code in C# using Visual Studio 2005 and our database is a SQL Server 2000 database. In our previous project we used Access 2003 as our database, so I have a few questions about SQL Server: If I am going to insert a new record (programmatically), and the Primary Key field is an integer, how do I specify that the PK field should be set to the next integer value (In Access, you didn’t have to specify anything if you selected Autonumber as your datatype for the PK field). Is there ...Show All
Visual C# Polymorphic Collections
In one project (assembly), I have some interfaces: public interface ISecurable { int SecurableID { get; set; } string SecurableString { get; } ISecurableContainer SecurableParent { get; } } public interface ISecurableContainer : ISecurable { List<ISecurable> SecurableChildren { get; } } In another project, I have some classes: public class Item : IComaprable<Item> { ... } public class ItemCollection : List<Item> { ... } public class Detail { private ItemCollection items = new ItemCollection(); ... public ItemCollection Items { get { return items; } } } In my intranet project, I wrap t ...Show All
Visual Studio 2008 (Pre-release) ObservableCollection is missing !!!
Hi All, I tried to move my beta code to Feb CTP and found ObservableCollection is missing. Is there substitute for ObservableCollection Please let me know. Thanks a lot. Basav My Mistake, I was using the old project file and it was it had reference to non valid windowbase assembly. Remove the old reference and reference correct windowbase.dll ...everything works fine...now. ...Show All
Visual Studio Tools for Office Getting contact information from Outlook and Exchange without security message?
I am trying to collect all of the user's contacts from Outlook and the public folders in Exchange to display in a Windows form in my application. I have it all working using VB.NET and the Outlook Object model except for one thing - getting the Email addresses. I get the security warning when I attempt to get these addresses. And since the user could have 50,000+ entries in their public Exchange folders, having them hit enter 50,000 times is not an option. I understand that .NET does not support MAPI. I understand the CDOEX requires that the app run on the Exchange server (which it cannot). I understand that .NET does not support CDO 1 ...Show All
Windows Search Technologies PST
I have thousands of Mails archived in PST files. Is there a possibiltiy to search also these mails Yes, but open up outlook and then open up at least the top level folder in each .PST file. It seems like the indexer doesn't recognize it until it is opened in Outlook, (perhaps a FileWatcher thing rather than a Sessions.Folder quiz, dunno.) You can check it has found them by using the 'Indexing Status' window, i.e. when I first went back and clicked on a seldom used old PST my 'Items left to scan:' jumped up by a few thousand - a good sign it's found the content to index. ...Show All
.NET Development Server Error in '/Financing' Application
Hello, I created a web application for my boss called financing. When I left last week for my holidays it was working great. Upon coming back to work this week the app no longer works, I get this error: Server Error in '/Financing' Application. ok, I ran the script from that previous web article and that did the trick, I hope that this can help other people with the same problem Jeff ...Show All
Windows Forms Trouble drawing theme elements transparently
I'm trying to draw a windows theme element (the window close button, specifically) to an image, and whenever I do, the image has ragged non-transparent bits. I got this code from a sample that didn't do this (it was all owner-drawn, mine draws to an image.) Any idea why it won't draw with full transparency Bitmap output = new Bitmap(closeButton.Width, closeButton.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); Graphics fx = Graphics.FromImage(output); IntPtr hTheme = OpenThemeData (Handle, "Window"); Rectangle rClose = new Rectang ...Show All
SQL Server Can't install Express June CTP?!
Hey all, I'm trying to install SQL Server 2005 Express June CTP on a windows 2003 Web Edition Server (With SP1). I've had an old version of the .NET 2.0 Framework installed, so I downloaded the one mentioned next to the SQL Express download (this one: http://go.microsoft.com/fwlink/ linkid=48448). Each and every time I run the setup I encounter this error: The SQL Server service failed to start. For more information, see the SQL Server Books Online topics, "How to: View SQL Server 2005 Setup Log Files" and "Starting SQL Server Manually." There is not even any sort of SQL Server service in the list of services, what should I do Re ...Show All
Visual Basic Problem reading Chinese characters in Excel file using Visual Basic
I open the excel file, which contains Chinese characters, to read its contents, with: Set appexcel = Excel.Application Set appexcel = CreateObject("excel.application") appexcel.Workbooks.Open "file.xls" temp = appexcel.Cells(1,1) appexcel.Workbooks.Close appexcel.Quit Set appexcel = Nothing PROBLEM: When the excell cell contains Chinese characters, temp reads them as just question marks, . QUESTION: How can the above be fixed, so that VB can retain the Chinese characters This may be a text encoding issue , I recall issues like this in the past. Instead of ...Show All
SQL Server an easy question....
I have to connect to a SQL server 2000 database from a VB6 application that runs on a different PC.... PC name = FR_SERVER SQL server name = FR_SERVER file name = SQLlab_data.mdf database name=SQLlab thank you Degia Missing question: I tried different connectionStrings, but I get a lot of different errors.... ...Show All
Visual Studio Express Editions Learning VB and .NET
Hello... I've invested in Books 24/7 to have access to a lot of IT books to learn various things. I really want to get a good grasp on VB.NET 2005 and ASP.NET 2.0. I have VB.NET 2005 Express and VWD Express and I know enough to be dangerous. But I feel that without practical examples, I am spinning my wheels. Also, the books that I try to use to learn the languages. They end up going off on tangents that I don't want to go on. I like the format of Wrox books but they end up making you play around with examples already coded and I feel that I don't learn anything. Their VB 2005 Pro book has no structure of learning it. So it is either using e ...Show All
Visual C# How to Replace the First Row of the CSV File
Hi How can I replace only the First ROW of the CSV File. the First ROW looks like this A, B, C, D and I want to replace it with A, B, C, D, E, F A snippet will be appreciated. Here is a little self-explaining example, please feel free to post whenever you have problems with this solution or implementing it in your own situation! public void ModifyFirstRow( string filepath, string newValue ) { ArrayList rows = new ArrayList(); using ( StreamReader reader = new StreamReader( filepath )) { string row = null ; while ( (row = reader.ReadLine()) != null ) { rows.Add( row ); } } // Determ if the fi ...Show All
Visual Basic Getting rid of the VB6 MAPI controls in .NET
Hi, I'm upgrading an app from VB6. I used the MAPI controls in several places. They've upgraded successfully and appear to be working. However I would like to replace them with some pure .NET solution as I'm trying to get rid of all Active X controls. What options are available Regards Michael MAPI is an obsolete technology with respect to .NET and Microsoft doesn't support it in this environment. The MAPI controls to which you refer are COM wrappers for the Simple Messaging API. If you're looking for a native .NET code wrapper for this API you may want to check out the following: Simple MAP ...Show All
