David N.4117's Q&A profile
Windows Forms Clicking an invisble button
Hi, Is it possible to click an invisible button For the application I am writing (a game) I need a button which when clicked becomes invisible and performs a function (displays an option). However the user may select not to proceed with the option and want to restore the position by clicking the original button position. I can set the button.visible = false but cannot deselect the action by clicking again where the button was. Can it be done after the button hide we can get button location and width and height to fire form click event as follow, hope it help you private void Form1_MouseClick( object sender, MouseEventArgs e) { int x= this .button1.Location.X; int y = this .button1.L ...Show All
Internet Explorer Development Where can I store images that my extension injects into the DOM on Windows Vista?
I have a toolbar that does some direct DOM manipulation, sort of the way the IE Developer Toolbar does. Part of this DOM injection are some images that we use. Previously, we were programmatically inserting our images into the Temporary Internet Files folder, and when we created our DOM objects that needed these images the URLs pointed to the images in that folder. The problem is, that on Windows Vista it now seems that Temporary Internet Files is now considered a system folder, and I have lost the ability to write to it. At this point, I think I have a few options but am unsure as to how to implement any of them: 1. Store the files in an accessible temporary location (using a different Special Folder, maybe ). I don't know which one, i ...Show All
SQL Server Firefox Issues in 2005...
Can someone please verify that the following items are not supported in Firefox. Our app issues an http request to the report server (url access). The following differences are seen between IE and FF: 1) The message "Report is being generated" does not disply in FF during report generation. 2) The printer icon does not appear in the toolbar. 3) Is there any plan to support search functionality within the report in the future Thanks. Thanks Daniel. I'm recommending to my clients that the IE Tab add-on be installed in Firefox; it solves the problems with the search bar and also displays the "Report is being generated" message. I understand why the search bar functionality is n ...Show All
Visual Studio Express Editions How do I plot a graph (with x and y axis) on my form?
Hi, how do i plot a graph (with x and y-axis) on my form UGH.... About a week ago, my motherboard died and I've ordered another one. Meanwhile I'm running on a 9/11 vintage motherboard, with 1/2 gig of memory. I think this board just corrupted my C# templates and I can't start a new c# project. Normally that wouldn't be a problem because I could uninstall c# and reinstall it and everything would be fine....except my DVD drives are SATA and SATA wasn't around when this motherboard was made, so I have no DVD drives. What I do have is a working copy of this in VB..... If that would do any good and the architecture of this sure can be adated to real time. ...Show All
Smart Device Development WM 5.0 msfp emulator images - skins/devices
Hello, I have to test some WAP pages on diferent phones, but dont want to buy them. I want to use emulator instead. I have downloaded, installed and configured Microsoft Mindows mobile 5.0 msfp emulator images, i works fine. I wonder if there is a possibility to download more skins to use diferent devices emulation (like motorola, spv etc). I've searched through the net and couldn't find not even single one skin. If You know where to download this - I would appreciate. (if there is no possibility to download these - please let me know aswell) N. If you just want to test different display sizes, then you can do this without skins - just remove the skin from the emulator's command line and use the "/vi ...Show All
Visual C++ Existing MFC app. Switching from ODBC to OLE DB. ATL or MFC? Can I mix?
I have an existing MFC app in which I connect to a VFP database using ODBC. Since VFP no longer supports ODBC, I am switching to OLE DB for the connection. Should I be using MFC or ATL to implement this interface Can I mix ATL classes in my MFC application The MSDN library has the following comments that I don't understand: The following example assumes that you are adding OLE DB consumer support to an existing ATL project. If you want to add OLE DB consumer support to an MFC application, you should run the MFC Application Wizard, which creates all the support necessary and invokes MFC routines necessary to execute the application . When I originally created this APP I did run the MFC Application Wizard at that time. B ...Show All
Windows Forms Halt the Printer after printing first page
In my application, I have 2 pages to printing. First page printing asusual. For second page it will ask confirm. Using C# halt the Printer after the first page is printed and then asks continue or not. If ok it will print the second page other wise exit. I want solution in both windows and webforms in .net 2003. You'd have to do it as Mark suggests. The problem is that you have to remember that the printer is a shared resource. Many different applications (and if this is a network printer, most different users) can try to print to it at once. The Print Spooler sorts them all out. To manage this, it does not start a print job until all pages of it are complete and sent to the spooler. Ima ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creators Club???
How do I join the Creators Club I don't see it anywhere in XBox Live Marketplace. Don't you have to have this subscription to *test* XNA games on the XBox 360 And if so, how then are people already exchanging their work I could not find the Club from the All Game Downloads as described in Step 2 here: http://msdn2.microsoft.com/en-us/library/bb197292.aspx Jon I've looked for it many times as well, and it's not there. I joined the XNA Creators Club a couple hours ago, and I'm hoping the launcher will show up some time soon. It's DEFINITELY not there right now though. EDIT: In another thread, I found the answer to this issue: Parental controls. Turning them off m ...Show All
.NET Development Edges of .png image in the scene are white
Hello I have inserted a .PNG image into the scene, but the edges of it are white. How to repair it Thanks ...Show All
SQL Server get timezone specific date
Hello, I am struggling with one algo i.e. I want to retrieve the date according to time zone I have table called TIMEZONe in which i have the information about the hours difference (+12 to -12) from GMT... now my scenario is that I want to get the date, using information from timezone area table (time difference from GMT), of any particluar time zone can any one tell me, how will I able to achieve this task. for example: it 4:00 AM in the mornign in GMT TIME and date is 11-08-2006 but in US it 11:00 PM and date is 10-08-2006 Note: Server date is set to GMT (System date) regards, Anas Where is the problem If you have a TimeZone table you could use a query like this select dateadd ( hour , T ...Show All
Internet Explorer Development too many tabs disconnect my internet. any fix?
If i open too many tabs, too quick, in internet explorer 7 it disconnects my internet. what is causing this thanks alot, tyler ...Show All
Windows Live Developer Forums Newbie question
I'm investigating browser based map options forof a new application. As I noticed, both google maps and yahoo! maps need kind of key or application id to use the javascript API. I'm just wondering if it's essential to have such a key or id to use Virtual Earth control javascript API if yes, where can I apply for it Thanks, Fei Fei Yang wrote: I'm investigating browser based map options forof a new application. As I noticed, both google maps and yahoo! maps need kind of key or application id to use the javascript API. I'm just wondering if it's essential to have such a key or id to use Virtual Earth control javascript API if yes, where can I apply for it Thanks, Fei Use the interactive SDK to help you learn VE http://dev. ...Show All
SQL Server Recompile SQL Task with Data flow task
Hi, I created a package with SQL 2005. The package gets the Access DB and then inserts it into SQL Server. If I open the package in .NET, I can see the SQL Task and Data Flow Task. The SQL Task has a property sqlstatementsource, which has the necxessary SQL code to create the tables. How can I tell the SQL Task to recompile the SQL code if I give it another DB name, because the tables differ and don't map in the Data Flow Task Thanks Does your new Access DB have different tables If so then no, you have to rebuild. SSIS is not an automated import tool. If you access tables change structure then how do you know the mappings SSIS is data transfer from oe table to another, both must exist, or you must supply ...Show All
SQL Server Stopping package execution programatically
Hi, I am p rogrammatically creating a package and for executing the package i say "Package.Execute()". Likewise,is there any method exposed which programatically stops the package execution Thanks in advance, Suganya Since you appear to be hosting the execution yourself, you could use events, see IDTSEvents, and tell the package you want it to stop by passing true back when OnQueryCancel is called. DefaultEvents is helper that already implements IDTSEvents for you, have a look at the example - http://msdn2.microsoft.com/en-us/library/0f00bd66-efd5-4f12-9e1c-36195f739332(SQL.90).aspx As jaegd indicates, the task must fire the event for you to reply with your cancellation option, and that does not alwa ...Show All
Visual Studio IE launches Debugger
After installing Visual Studio 2005 Professional which is working fine, I get a message box with "unhandled win32 exception" asking if I want to launch the VS Debugger, in reponse to clicking links on web pages. Behaviour seems arbitrary as the same link may not always react this way but it happens a lot. Clicking either Yes or No on the message box kills the App. I had this behaviour to both IE6 and now to IE7. OS=XP. Anybody else have this problem or know what's wrong ...Show All
