IS dude's Q&A profile
Windows Forms Get the RECT of another app's context menu
I've tried everything I can find online and still can't reliably get the RECT (or even width/height) of a context menu that another program owns. Please give only tested solutions. Here is what I tried: Doing a FindWindow for #32768 Passing it a SendMessage(hWnd, 0x01E2, 1, 0); That's unreliable as many programs don't have a 32768 context menu class ...Show All
Visual Basic Building a defragmentation tool with VB?
Hello :) I want to train my VB and had this great idea for a small defragmentation tool with Visual Studio 2005. Only problem is, is there any "easy" way to defrag hard disks with VB code I wouldn't have a clue about where I should start looking.. (if it's possible at all) So if anyone would have any lead as to where I should start looking/learning, thank you very much! Greatly appreciated, Steven In reply to smckelli: Well, I wasn't planning on building my own defrag class. But rather relying on another one.. Lik you did. I was hoping it would be possible to invoke an existing defrag class to build a small graphical application that would defrag all of my disks at the same time (or at least on ...Show All
Windows Forms Programicaly creating a ShortCut
In my Windows Forms application I have created a self-exracting archive (Program Installer) for my main application. How would I go about creating shortcut icon that points to my applications executable file I looked in the System::IO::File class but couldn't find anything and don't know where else I would have to look. C# doesn't use header files. A rough equivalent is Add Reference in the Solution Explorer... ...Show All
.NET Development Sort method acts as I hope
I've implemented a comparer class in order to sort a ArrayList. So, namespace Application.Comparadors { public class ComparadorPaquets : System.Collections.IComparer { private Application.Comparadors.tipus_ordenacio tipus_ordenacio; public ComparadorPaquets(Application.Comparadors.tipus_ordenacio tipus_ordenacio) { this.tipus_ordenacio = tipus_ordenacio; } int System.Collections.IComparer.Compare (object x, object y) { Application.PaquetOrdenat paquetX = (Application.PaquetOrdenat)x; Application.PaquetOrdenat paquetY = (Application.PaquetOrdenat)y; return (this.tipus_ordenacio == Application.Comparadors.tipus_ordenacio.ascendent) paquetX.Talla.CompareTo(paquetY.Talla) : paquetY.Talla.CompareTo( ...Show All
Windows Forms Datagridview Master / Detail Highlight Rows
Hey Guys, I currently have a master / detail form with two datagridviews, which is working nicely. However the main grid shows transactions, and the child grid shows comments. Not all transactions carry comments, infact very few do. I decided to separate the grids by a splitter and hide the child grid. I'm trying to find a way to flag / highlight the parent grid if it contains child rows so the user knows there is a comment if they wish to view it. Does anyone have any ideas how to do this I thought there may have been a hasChildRows boolean value but appears not! IS there any event that would allow me to set the colour / flag after the grid is loaded but before the form is opened. Then the user can see straight off all the ...Show All
Architecture Stored procedure vs standard query
hi, I am in process of evaluating that for simple CRUD operations(select,update,delete,insert), should we use stored procedures or should we fire queries directly from DAL for performance enhancement leaving aside the fact the stored procedure pproach will mix the data access and business logic . If somebody could provide any microsoft URL link giving clearcut recommendation on the same,it would be of great help to me. Regards In my opinion you should always try to use Stored Procedures as Part of the Logic Layer. I have always seen Stored Procedures as a Logic Service, in the same manner as a Web service. Separation of Logic through Stored Procedures would then be the same as Separating Logic in ...Show All
.NET Development Webservice request process problem at IIS running on Windows Server 2003
Hi, I have a webservice (.Net 1.1) deployed on Windows server 2003. The same machine has database Sql Server 2000. The webservice methods interact with database. This server machine is in LAN (without having internet connection) and all the 30 clients (having Windows XP Home) are connected with the server in LAN with the server (note: this is not client/server setup, no domain set up, just p2p connectivity) Now each client connects with Webservice each min. so each min. 30 requests will be processed on server. This way the client and server machine interacts 18-20 hrs a day Now Problem is: - So after some time, it starts taking LONG time to complete the process. Normally the webmethod just interacts with database and does one update operat ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Wireless GamePad in windows exceptions
Working on a SpaceWars mod, with a wireless GamePad connected using the new Wireless GamePad for windows receiver. I notice that: Y button presses are not being picked up & getting errors in Right Thumbstick 'XInputHelper.GamePads[PlayerIndex.One].ThumbStickRightX' threw an exception of type 'System.Collections.Generic.KeyNotFoundException' 'XInputHelper.GamePads[PlayerIndex.One].ThumbStickRightY' threw an exception of type 'System.Collections.Generic.KeyNotFoundException' anyone else come across this I'm going thru the GamePadHelper.cs class, and it looks consistent for Y with the other keys that work. nice find. I remember looking ...Show All
Visual Studio Express Editions Problem when installing .NET Framework
Well, my setup file is continually stalling when I try to install Visual C++ 2005 Express, so I saw in the FAQ that installing .NET Framework 2.0 sometimes helps. So I try that. However, my install process freezes at this point in the install: http://img.photobucket.com/albums/v280/Cheesy74/curses.png Anyone know why I've tried to install it again after doing what you've said, but the exact same thing happens. It freezes at the exact point I have a screenshot of in my first post. ...Show All
Visual C# Exporting c# class to a COM dll for use within MS applications
[For some reason, this thread got bundled into a .net storage and data section so apologies if you have seen this before] Hi all, I have created a very simple class in c# (for testing purposes only) that I want users to be able to reference in MS Access. The class returns the value 2 (it doesn't accept any arguments). I have created an interface for this class, made it COM visible and built it. The class is visible within MS Access, but when I MsgBox the object it should return a 2 but instead crashes MS Access. I've had a couple other people try to help me out with this but no joy. Can anyone out there show me how to (step by step please :) turn a c# class into a dll that MS Access can use and that can be installed on ANY m ...Show All
Visual Studio 2008 (Pre-release) WPF and HLSL
Is it possible to write use HLSL shaders in WPF I suppose you are speaking about DirectX 10. I think that Managed DirectX doesn't exist anymore so there is no Managed DirectX for DirectX 10. When speaking about managed 3D frameworks which can be used from applications I guess there is only two options: XNA and WPF. ...Show All
Community Chat Firefox 2
Yay! firefox 2 is being released at 8pm today!! Hooray! just thought i would let you know... awww... you're funny! just read the forum about halo i think you'll find otherwise. here, i'll help you: I'M USING FIREFOX RIGHT NOW!! I EVEN GOT AN EXTENSION SO THAT IF I FIND A WEBSITE THAT WON'T WORK WITH FIREFOX, I CAN OPEN THAT SITE IN A NEW TAB IN IE ENCODING SO I NO LONGER HAVE ANY PRACTICAL USE FOR IE!! ha-ha. i keep it around, tho. ...Show All
Windows Live Developer Forums Windows Live Spaces Music?
How do I get media player or get to play music with Windows Live Spaces *sigh* You have to find a url of a music clip you want. Easiest way to do this is to find the clip you want right click the link and click Copy Shortcut. Then go into Edit mode, Where it says Song URL, just paste the link that you copied from before. Save and Exit. Simple. Now, don't make me make a video showing you that, or you will be kicking yourself at how easy it is. ...Show All
Visual Studio Team System DataGenertionPlans
Hi, I imported the NorthWindSchema into a SQL Server 2005 database project. Then I created a datagenerationplan and kept all the defaults. I setup my Project Properties->Build>Target NorthWindOnline and connection to SQL Serve Express. When I go into the properties window of the DGP and try to change the Build Action from "Not in Build" to "Build" I get the following error: "Unable to find valid scheam object identifier in the file. Check the syntax of the DDL statement or make sure the file is not empty." Any thougths on what I might be doing wrong Thank you. Randy Yes, the process can automatically Build, Deploy and Generate Data. Notice, that whenever you create a Unit Test , ...Show All
Visual Studio Tools for Office VSTO2005 & XML
Hi Everyone, I'm currently developing a word document solution using VSTO2005 and i was wondering about two things: 1) The original format for the file is a binary .doc and i would like to use the XML function of word. Will saving it as XML break any relationt to the managed DLL which leads me into the second question - 2) How does the document know where the DLL is (I've read a bit about the manifest, But that seems to be a post-compiling process), And how can i control it Our purpose is to use the final document in XML form while custom preserving the custom task-pane created. We use that XML as sort of a template to create documents on-the-fly in our business logic systems. Thank you for your time, Ran 'chaosblade' ...Show All
