Radamante's Q&A profile
Windows Forms Saving contents of a graphics
Is it possible to save (and restore) the contents of a graphics Graphics.Save only seems to save the properties, such as transfromations, but not the contents. See the example in Visual Studio help under Graphics.Save. My aim is to construct a vertical line cursor on a graph and move it with the mouse. I know how to get the mouse position, but in order to move it I need to restore the picture to what it was before the cursor was added, then add the new one. Paint your graphic into a bitmap, then render the bitmap with Graphic.DrawImage in the Paint event handler. There's sample code in this thread . ...Show All
Visual C++ doubt about visual studio 2005
I’m using cisual c++ from visual studio 2005, and i am a new usuer of visaul c++, it’s my first time using. And what i want to know is i create a window application (for example, that show a message of welcome), i can take the file . EXE to a pc without visual studio or any aplication that build c++ code, and execute and work without problem. I ask that, becouse a build the a opensource program that was create using visual c++, and take to another computer without visual studio and this erro was show: It could not initiate the application so that the configuration is incorrect. Reinstalar the application can solve the problem. The original message it’s in spanish. Maybe that error was becouse i miss the transfer ...Show All
Architecture DLL expertise
Is there a book or consolidated web resource that provides advanced details of DLLs Some of the things I want to study in depth: 1) binding an executable to a specific version of DLL (that is, to resolve the addresses of imported functions at compile-time). 2) pre-mapping of DLLs to different fixed addresses. 3) relocating DLL code, as it is loaded from disk, can make it potentially non-shareable between processes. What exactly causes this 4) Can a DLL referenced in C++ code with #import be either explicitly or implicitly linked, or does it only permit implicit 5) In C++, when is it appropriate to use "#import" My own guess, regarding question 5, is that #import has two purposes: 1) To allow the registry to ...Show All
Windows Forms Web Service
Hai Friends, I wrote a web service in vb.net 2005.I tried to create a setup and deployment for the webservice.But i am unable to create setup in vb.net 2005. If any one know how to create webservice setup please contact my shankar@cgvakindia.com . Thank You..! Regards, Sankar.S ...Show All
Software Development for Windows Vista Web Configuration File To Host Workflow
i have example about how configure web.config file to host workflow. This article shows how to : http://msdn.microsoft.com/msdnmag/issues/06/04/CuttingEdge/default.aspx HTH Kavita ...Show All
Software Development for Windows Vista Elevating an IE7 toolbar to Integrity Level: Medium
Hello, I have an IE7 toolbar that needs to write to an Access DB that resides in the Program Files directory. However, because IE7 runs in Protected Mode, the toolbar does not have access to write to the Program Files directory. So, I tried to move the Access DB to the ProgramData directory. Now, I don't get the Access Denied error, but the toolbar doesn't write to the DB that is in the ProgramData directory. Instead, it writes to some VirtualStore directory. Has anyone run into this Does anyone know how to elevate an IE7 toolbar so it runs with an integrity level of MEDIUM Thank you, The integrity level is for the entire process. You can try to use the following command line tool to lower t ...Show All
.NET Development PingReply is slow
I have developed a Ping application using C# and it worked fine but after sometime, let's say a day it will be two slow so i have to restart the machine. i am currently using DOS ping command without any problem!! what's the solution.. sure.. this is the full code.. and what i want to know is running this application (or simillar) on the machine for 24hours monitoring using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.NetworkInformation; using System.Xml; using System.R ...Show All
Smart Device Development Static dll reference
Hello, I am trying to refer to a static dll in .NET Compact Framework. When the project compiles it throws "The targeted version of the .NET Compact Framework does not support using the Ansi, Auto or Unicode modifier" error. Is there any workaround for this, can a static dll be referenced in Compact Framework thanks ...Show All
Windows Forms ToolStripRenderer
I am using the ToolStripRenderer class to apply custom styles (such as gradient background color) to toolstrip. In derived class i have overriden the OnRenderToolStripBackground method and used linear gradient brush to paint the background and it works fine. But i just want to know if doing this custom painting will affect the performance ( i.e. time taken to paint the control) that we will get without using the custom painting The code i have written in OnRenderToolStripBackground is as follows: protected override void OnRenderToolStripBackground( ToolStripRenderEventArgs eventArg ) { &nbs ...Show All
Software Development for Windows Vista Mic control
I just found a problem. I have no control of the mic and what source i would like to work. I have purchased paltalk and i see that my mic is not working. I went to change the settings and there are none to be found any help would be apretiated. scott ...Show All
Visual Studio 2008 (Pre-release) FlowDocument Replace Paragraph
Hi, I am trying to replace Paragraph in one FlowDocument with the paragraph in another one. We have 2 FlowDocuments. What I want to do is replace the Paragraph "X" from fd1 with Paragraph "Y" from fd2. I tried finding the paragraph "X" in fd1, which is attached to RichTextBox and then assign ref of "Y" to it, but it doesnt like it, as I can see no changes. Do let me know hw it could be achieved. Code is as belwo Paragraph paraX = ( this .rtbTask.Document as FlowDocument ).FindName( "X" ) as Paragraph ; string fn = "c:\\FlowDocument1.xaml" ; XmlReader xr = XmlReader .Create(fn); FlowDocument fd2 = XamlReader .Load(xr) as FlowDocument ; Paragraph paraY = fd.FindNa ...Show All
Gadgets Quick Question
My friend was wondering what a gadget was. I can't exactally explain it, I just know how to make one! So, would someone put an explanation Thanks! Gallery has a decent description. " Gadgets are mini-applications that live on your Live.com homepage or Windows Sidebar and deliver games, live webcams, traffic maps, and other interactive, up-to-the-minute that you didn’t even know existed!" ...Show All
Visual Studio AssemblyInfo task in an Incremental Team Build process
I'm looking to use the AssemblyInfo task on GDN in a Team Build process. I know it wasn't necessarily designed with Team Build in mind but the problem I'm having is that I only want to update the assemblyinfo in the event that the assembly itself is rebuilt as I do incremental builds rather than a clean build every time. Importing the versioning targets file into the Team Build script rather then each .csproj means that all assemblyinfo's are updated up front before any compilation is attempted. Other than changing to the latter approach, any ideas how I might achieve this The only way you can do this is if you know when something is going to be built incrementally. With the current version of MSBuild thi ...Show All
Visual C++ Smartbridge Alerts
I too am receiving the "entry point not found" message. I have very little technical knowledge and would appreciate assistance in any fashion. thanks. Helen McLaughlin Ok, I think I got it solved here. Here's what I found. After searching my system for files with PSAPI.dll in the name, it returned 4 files that were Verizon Online references and one of them had a subheading of SmartBridge. All 4 were an older date than my system/32 PSAPI.dll file. I renamed those 4 as PSAPIOLD.dll. Since each had different subheading names there were no conflicts. I restarted my system and the error message had departed. Hope this helps. Bob S. (viobass) ...Show All
Smart Device Development How to use emulator to develop bluetooth program?
I want to develop a program with bluetooth communication, I have already install the bluetooth usb dongle on my pc, and activeSync4.0. but I don't know how to connect the emulator to bluetooth or how to map serial ports. Would anyone tell me how to do that in detail Thanks a lot !! XRobin Sorry, but the DeviceEmulator does not emulate Bluetooth hardware. To map a PC serial port into the emulator (even bluetooth serial ports), go to the emulator's File/Configure dialog, and in the peripheral's tab, use the "Serial Port 0" dropdown to select your PC's serial port. Inside the emulator, "Serial Port 0" is known as "COM1:". The Help menu in the DeviceEmulator walks you through this in a l ...Show All
