Rob Church's Q&A profile
Visual C++ HTMLHelp confusion
Hi everyone I'm in the process of migrating a project from VC6 to VC8 (aka 2005 Pro), and although it has been fairly smooth for the most part, I am now having trouble with moving the old help files. The help system for this project is very minimal - there are only 15 html files each containing a short writeup. There are various "help" buttons on various forms that activate the help system to display certain documents. My problem is with the HTMLHelp API. I used to use this bit of code to display a help topic: void CMainFrame::OnScreenHelp(CString filename) { filename = "::/html\\" +filename; HtmlHelp(m_hWn ...Show All
.NET Development Capturing binary download via code through axwebbrowser1
Dear All, Firstly, apologies for disturbing. Im trying to find a method to capture the download event for binary files via http ( ie notifying the user when attempting to download an executable file that executable files are unsafe to download when they attempt to click on a link pointing to a .exe ). Currently, I dont seem to be able to stop the AXWebBrowser1 control from taking control of file downloads. If at all possible, I want to be able to check what link they click on, check which file it attempts to return, and then act depending on the file type returned. Apologies again for taking up your time, thankyou all for the great responses ...Show All
Windows Forms rectangles draw incorrectly
When I draw a 10x10 rectangle with DrawRectangle, it is drawn as 11x11. If I draw it with FillRectangle, it is drawn as a 10x10. Is there an explanation for why the same rectangle draws with different widths Ben Rectangle r = new Rectangle(10,10,10,10); Graphics g = this.CreateGraphics(); g.DrawRectangle(new Pen(System.Drawing.Brushes.Blue),r); g.FillRectangle(System.Drawing.Brushes.Red,r); ...Show All
Windows Forms Design view slow to load
I have a .net (C++) project that requires frequent switching between code and design views. My problem is that, as coding has progressed, the amount of time taken to display the Design View window has increased. (Make a drink, wash the car, map the human genome). Any pointers to a remedy would be greatly appreciated. Kev hmmm I have that ...Show All
SQL Server Data Source Views
I'm looking for examples of using Data Source Views as data source within a Data Flow. I have looked through the code examples supplied with the CTP but no joy. Thanks Al You do not have to write code to use DSVs with Data Flows in SSIS. You need to create a new Data Source and then a new DSV based on that Data Source. Now add a new connection based on the Data Source to the Data Flow. Add a OLEDB Source component and then you will have the choice of using the DSV in the OLEDB Source component UI. ...Show All
Visual Basic Passing Information back form the slave Thread to the Master Thread?
Hello Everyone, I have a question I could not find amongst the Forums.... I am starting a new thread and when the thread finishes I need it to pass a vaule back to the main thread and do a insert in to a Listbox. The data being passed back to the Listbox is not a sting but a tree statement. Can anyone give me some help on this If need be I can post the command going back. (Let me know if it is needed) Regards, -Marcelo You could call Invoke on anything that implements ISynchronizeInvoke. The only classes I ...Show All
.NET Development Framework 2.0 with MS CMS2002
Hi, I'm currently using MS CMS2002 in my company, I would like to migrate to the new framework 2.0. Have you some guidelines about it Thanks Alessandro. For what I know, an apposite sevice pack will be released by Microsoft in order to address CMS2002 + Framework 2.0. Stefan Gossner in his blog has some preview examples on what you can do today. Hope it helps. Gabriele. ...Show All
Visual Studio Team System Requirement for Team Foundation Server.
Hello, in my company we use an open source software called NetOffice, in this program people logs in to report the hours they work to the activities their bosses assigns to them. I think that its a good thing to put this on TFS, when you make cronogram, and you assign tasks the users should be able to put how many hours or days did it take to complete an activity. So there must be some reports that shows the manager how many time it took to accomplish certain phase of a development, and in that way they can know how much did it cost and how much must the software cost by phase. There must be more reports but I dont know them yet. Please Ro ...Show All
Windows Forms Can't hide first column in DataGridView
I am unable to hide the first column in a DataGridView. I am not referring to the header column but a databound ID column in the grid. As a general rule I put the ID column at the front and hide it so I can always reference the ID column in column [0]. For some reason I am able to hide any other column by setting the visible property to false except for the first column. I was just getting ready to post about the same exact issue. Mine works the first time I run my search. Every subsequent time, the first column becomes visible. Hopefully someone can shed some light on this for us. ...Show All
.NET Development Automatically detect a CD and read CD contents
Hello all, I am trying to make a module which will do two jobs: 1. Automatically runs when a CD is inserted into the cd rom drive. 2.copies the contents on CD to any location on hard disk. I am usng C#.net 2003. Anyone please help me! Thanks http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_intro.asp http://msdn.microsoft.com/msdnmag/issues/01/11/autoplay/ ...Show All
Visual C# auto expand/collapse regions
Does anyone know of a macro or command that auto expands/collapses #regions in C# Steve, Fair enough, here is a macro I threw together. I'm cringing a bit looking at, but hopefully it'll get the job done :) It's written to collapse all of the regions in a file (as opposed to a project). The caret location needs to be in the file that contains the regions. The best way to get this behavior is by assigning a keybinding to the macro. Sub OutlineAllRegions() DTE.Find.MatchInHiddenText = False DTE.Find.Action = vsFindAction.vsFindActionFind DTE.Find.FindWhat = "#region" D ...Show All
Visual Studio CR XI Release 2 Merge modules ???
Hi, Where do I find the merge modules for Crystal Reports XI Release 2 There is only a server install at : http://support.businessobjects.com/fix/merge_modules.asp . My CR XI R2 Developer Edition installed msm files on my C:\Program Files\Common Files\Merge Modules\ : CrystalReports11_5_ .msm Those are the right ones Thanks ...Show All
.NET Development Sockets and Serialization
Hi, I'm building a windows forms app that needs to connect to a server farm via the internet. Performance is of the essence. I'm thinking to use .NET remoting but I prefer sockets to avoid the complexity of remoting; the data I need to pass are small in size anyway. For larger data I'll use Web services. I know that sockets connection can pass array of bytes and not objects. Can I pass a serialized object from socket to socket There's any special consideration on doing this Any help will be appreciated. Thanks. ubercoder ubercoder wrote: I'm thinking to use .NET remoting but I ...Show All
.NET Development .Net 2.0 and 1.1 in same environment?
Hi Is there any problems in installing both .Net framework 2.0 and 1.1 on the same machine, and running both 1.1 apps and 2.0 apps on it Regards Anders Assuming that it is correct - then it was very helpful.. ;-) I'll try install the 2.0 framework on my workstation then - and see how it goes.. /Anders ...Show All
Visual Studio Express Editions Controlling the Serial Port
Hello! I want to control the serial port and have converted some code over that i was using but got all kind of errors. Does Visual Basic Express deal with Mscomm1 the same as VB6 I tried to find some code to help see any difference but was unable to find such. Is there any code out there that i am not finding that allows me to crontrol the serial port Thanks, Kevin The .NET framework provides the SerialPort class: http://msdn2.microsoft.com/en-us/library/30swa673(vs.80).aspx You can find a sample here: http://msdn2.microsoft.com/en-us/library/c8zc5kah.aspx Best regards, Johan Stenberg ...Show All
