bad2bone's Q&A profile
Visual Basic GDI+ Question - Copy drawn image
I've spent the last hour googling, searching this forum, and MSDN2 for what, I assumed, would be a simple process. I have a picturebox that I've drawn in (via the Paint event). I want to copy the information I've drawn on the picturebox (not the box's .Image property, which is nothing) to the windows clipboard. Short of resorting to the API and BitBlt how can I get what's drawn on the picturebox into the clipboard I want to notice that Ken's sample will draw whole control, including any non-client area elements. It may be ok with picture box, but if you use other controls with borde ...Show All
Visual C# Windows Service :: Why does my OnStart() code cause Service to show as Starting?
Hi, My c# windows service checks the status of a given process every minute. My OnStart() code starts an infinite loop to allow perpetual process checking. The problem is that when I manually attempt to start the service (Admin Tools->Services), the service shows as Start ing , not Start ed . When I check task manager, the service is actually running and sending status alerts as it should. If I check the status programmatically, the service shows Started. Is there anything special that needs to occur in OnStart() to allow the service to show as Started. My assumption is that my OnStart infinite loop is causing the service to remain ...Show All
Visual Studio Very basic help question
With regards to help collections in VS I noticed many threads that were not answered probably because the question has been answered before, or no one knows the answer. The very basic question is simple: Where can I find documentation on how Visual Studio 2005 links to the help collection I understand dExplore is a utility which acts as a shell for help. But, how does it detect installed help collections, etc. Thanks Eric Thanks for your inquiry and suggestion. I couldnt understand how DExplore linked to collections - because I was having issues getting it to 'see' the October 2005 MSDN Library. Howeve ...Show All
Visual C# Decompile,modify and recompile?
Hello! I would like to know if there is a software who can decompile,modify and recompile an assembly. I ask this because i create a software protection. If you any idea or suggestion! thanks, Wavemill Directly there is nothing... however if you use Lutz Roeder's .NET Reflector ( http://www.aisto.com/roeder/dotnet/ ) and Denis Bauer's Reflector.FileDisassembler plugin ( http://www.denisbauer.com/NETTools/FileDisassembler.aspx ) you end up with the source for an assembly. Throw in some Visual Studio to build a project out of it, make your modifications and hit build. Sure it’s a little roundabout, however ...Show All
Visual C++ Constructor Overrides
I've got a question on something that I'm not quite clear on. Maybe somebody can help me! If I derrive a class from another class like so: // Plant class... class CPlant { public : CPlant( int par_leaves):leaves(par_leaves) {}; int leaves; }; // Tulip class with different signature on constructor... class CTulip : public CPlant { public : CTulip( bool par_hasBloomed):hasBloomed(par_hasBloomed) {}; bool hasBloomed; }; Whenever you instantiate a derrived class, the parent class constructor is called first... so when you derrive a class and write a constr ...Show All
Visual Studio 2008 (Pre-release) dragging control will immediately crash visual studio
Problem repro: create a new windows application fx project, create button on the grid, drag it to another location. After about 0.5 seconds visual studio throws an error and asks me if I want to debug. If i choose yes, I can get to this call stack: > ntdll.dll!7c901230() [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] milcore.dll!53216a95() milcore.dll!5316ba53() milcore.dll!530d9318() milcore.dll!530d5b1b() milcore.dll!530d5b38() milcore.dll!530d93c2() milcore.dll!530d9204() milcore.dll!530d9464() milcore.dll!530d94b3() milcore.dll!530d57be() milcore.dll!530d57c8() milcore.dl ...Show All
Visual Studio 2008 (Pre-release) How can I determine the remote IP in WCF Service? (1)
(Repost from 2 months ago http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=335969&SiteID=1 ) -- maybe someone has some info now :) I understand that the title is fundamentally flawed -- the binding used might not have the concept of an IP. But, assuming I'm using HTTP or TCP bindings, how can I access the remote IP and similar data I looked into OperationContext, and it seemed to have a lot of interesting things, but I couldn't figure out what exactly to look for. It seems that the message headers aren't exactly useful (like OutgoingMessageHeaders.To) -- they always return an http://...Anonymous Uri. The scenario I'm trying to e ...Show All
SQL Server Migrating SqlServer2000->2005 and classic ADO: problem with AddNew to recordset, related to adFldUnknownUpdatable attribute?
The application is running ADO (MDAC) version 2.81.1117.0. The application gets an recordset created by SQLServer by an select statement. In this case the recordset is empty. The application adds a record to the recordset by AddNew(). Works fine. But when assigning the first field (smalldatetime in database) I get ADO error -2147217887. I have inspected the recordset and I found a difference between the working one from SQLServer2000 and the new one from SQLServer2005: The Attributes item for the fields in the recordset has the flag adFldUnknownUpdatable set in the working SQL2000 version but is not set from SQL2005. The database ...Show All
SQL Server SQL Server 2005 Service Pack 1 is now available
Microsoft announces the availability of SQL Server 2005 Service Pack 1 (SP1) with Database Mirroring, SQL Server Management Studio Express, additional options for ISVs, and normal feature fixes. SQL Server 2005 Service Pack 1 can be found here: http://www.microsoft.com/sql/sp1.mspx Kamran, I'm not sure what you're asking. Standard Edition is supported on Win XP SP2. As such, you can apply SP1 to your Standard installation. You can find the SP1 read me file here: http://download.microsoft.com/download/b/d/1/bd1e0745-0e65-43a5-ac6a-f6173f58d80e/ReadmeSQL2005SP1.htm . Cheers, Dan ...Show All
Visual Studio Express Editions SQL Express Manager install on Windows x64
When attempting to install the June CTP of the Express Manager on Windows XP Pro x64, I get the following error: This computer must have at least Windows 2000 SP4 and the user must have administrator privileges in order to continue. Slso, you must first install the SMO Components and the .NET Framework version 2.0. I have already successfully installed the x64 .NET Framework Beta 2 and SQL 2005 Express (Aug CTP) on my machine with no problem. The help file doesn't have x64 in the OS list, but the x64 .NET Framework is linked in the install order. Does anyone know if the Express manager will even run on x64, or is it an installer p ...Show All
Windows Forms Custom/Typical Deployment Dialog
I have created a dialog using the radio button dialog to get from the user custom or typical deployment option. And because I have a limited number of custom options I can use the checkbox dialog for those. But how do I get the flow to determine whether or not to display the custom dialog based on the radio check. Basically I want to do what nearly every program deployment does and that is do a typical or custom install and then put up the list of customizable objects to be installed. Thanks, Rick in Atlanta Has anyone actually got this to work When I tried to recreate this sample, the effect was ...Show All
SQL Server Having a drilldown report "go back" to original report
Hi, I have a main/summary report which returns a list of records. Each record on this main report contains a link to a detailed report for more information on that particular record. That all works just fine. But on my detailed report, I want to provide a button to allow the user to easily "go back" to the original report. I noticed that at the top of my detailed report is a toolbar, with icons to print, search, etc., so this seems like the place where it would be nice to have another icon with the back arrow that would be linked to the original report. The user can use the Back button on the browser, but I think it w ...Show All
Windows Forms Problem with visual inheritance
Hi folks I'm trying to develop a simple heirarchy of dialogs. The base form contains standard OK/Cancel buttons whose parent is a panel docked to the bottom of the form. I've checked the generated code, and they have been placed correctly as children of the panel. When I build the project, the positioning of the buttons on the derived forms changes somewhat randomly within the panel. Sometimes they place themselves partially or entirely off LHS the form. I've tried this with the buttons unanchored, anchored to the right of the panel, and anchored to the top, bottom, right of the panel. Same result :-( Any tips would be most welcome. I've com ...Show All
Visual Studio Tools for Office Word spellingchecker in french ..
how can i do a spellcheck in french How can i set it to do a spellcheck in french Thanks, Hello, this question isn't VSTO / developer related. You'll have a better chance of getting an answer at the following site: http://www.microsoft.com/office/community/en-us/wizard.mspx lang=en&cr=US&cat=en-us-office-word&pt=617c4d62-4061-4107-8d46-2a22fc6fa202 Good luck! ...Show All
SQL Server Failed update SQL 2005 with SP1
Hello, We are attempting to install the CTP for SQL Server 2005 SP1 and receive the following error message in the log: The following exception occurred: Unable to install Windows Installer MSP file Date: 03/24/2006 14:19:40.562 File: \depot\sqlvault\stable\setupmainl1\setup\sqlse\sqlsedll\copyengine.cpp Line: 856 This is then followed by this failure with the Database Services: Product: Database Services Database Services (RTM 1399 ENU) - Failure Details: Unable to install Windows Installer MSP file I also found the following entry in the SQL9_Hotfix_KB913090_sqlrun_sqlmsp.log file: Sq ...Show All
