robbyd's Q&A profile
Visual C# Design Time Collection Editing
I am creating a custom menu. I would like to edit it in the same mannor as the ContextMenuStrip is done. Such as the menu on the design form, etc. Is this possible My object contains a ToolStripItemCollection just like the Context Menu Strip... If you could help or atleast point me to a place that would be very helpful. Thanks, Mike Mike, Anything's possible if you want to try hard enough! And Microsoft managed to do this... I haven't seen what you are after actually done, but my guess is you'll have to inherit from the 'item and do some custom painting (ie OnPaint) and key handling. ...Show All
Visual C# How can I detect KeyPress?
I want to make a program that could run in the background and detect any key press even when the program is not in focus. It should be able to respond or at least record the key pressed even when others programs are running in foreground. Does anybody have any idea how i can do it Thanks. You need to use low level Windows hooks. But seriously, stealing keypresses or evesdropping on keypresses meant for other application isn't a good practice. static int WH_KEYBOARD_LL = 13; [System.Runtime.InteropServices.DllImport("kernel32.dll")] static extern IntPtr GetModuleHandle( string moduleName); [System.Runtime.InteropServic ...Show All
Visual Studio Team System RFE: SQLCMD Batch file creation
Hi, Creating SQL scripts is obviously a good thing but how about executing them. On my current project we write a batch file to call sqlcmd.exe to do the build. This has the advantage that we can employ Cruise Control for continuous integration builds of our various databases. Will there by any support for building such batch files Will VSTS4DB be sqlcmd.exe aware I know its a bit of a mundane task but for that reason - it'd be nice to automate it. -Jamie ...Show All
Visual C# ASP login to c#/aspx login
newbie in aspx obvious. i would like to know how to setup a web page which has login form; username and password i can't access the textbox values and i can't setup a action in a button. my approach is asp. for those asp coders i know u get my point... ty see Login Class (System.Web.UI.WebControls) ...Show All
Smart Device Development Drawing on a background image?
I am trying to make a radar display for a research project that I am working on for a class. The solution is to be deployed on devices running Windows Mobile 5.0. I have the main program already set up with a tabPage for the base of the display. I want to have an image of a radar screen with points plotted on it, the only catch is that the points all move, so I need an image that refreshes itself (that is all being taken care of with a timer). When I create a bitmap with a black background and the green lines for the radar, the refreshing of that is very apparent and quite annoying. I have tried to use a black background and only dr ...Show All
.NET Development DataGrid Binding
I' am working with DataGrid (Vb.Net) bounded to a dataset . How can i capture new DataGrid raw event or Is there anyway to handle this type of event throught dataset/datagrid members Your best bet is to post this question to one of the data binding forums. Here's a link to the Windows Forms Data Binding forum: http://forums.microsoft.com/msdn/ShowForum.aspx ForumID=7 There's also a forum for ASP.NET data bound controls: http://forums.asp.net/24/ShowForum.aspx I hope this information proves helpful. David Sceppa Microsoft ...Show All
Visual Studio Custom connector target (June CTP)
Hi, Suppose I got the following DSL: somedsl . Now I want to restrict the connections you can make with BBConnector. Let's say I only want B1 to connect to B2 or B3 and I only want B2 to connect to B1 and B3. I checked the 'Has custom target' on the connector mapping. So now I must fill in these methods: private NodeShape GetTargetShapeForBBConnector( BBConnector connector) private PresentationElement GetTargetShapeForBBConnectorMappedToLink( BReferencesTargetB bReferencesTargetBLink) Seems to me that I can only return a instance of a specifc shape Why two methods to override Can somebody give a short cod ...Show All
Visual C++ Can't use resource view to edit resource in VC8
When I double click the rc file to edit the resource, the IDE will inform me the "fatal error RC1107" message. Even the resoure file of newly created project by VC8 are not able to be edited. These resource files are valid since I can edit them in VC7. I was encountering the same problem. Thanks for the solution, works a treat. Its just another bug that convinces me VS2005 has not been developed or tested with C++ development in mind. ...Show All
Visual Studio Team System TF42052: The file system on the build machine does not support access control lists
Using Workgroup configuration, with Team Foundation Build on a second computer. TFSService is established on second computer with same credentials as the TFS computer. When building on a build type, we get the following: --------------------------- Microsoft Visual Studio --------------------------- System.Web.Services.Protocols.SoapException: TF42052: The file system on the build machine does not support access control lists. Please specify build directory on a file system that supports access control lists like NTFS. at Microsoft.TeamFoundation.Build.Server.BuildController.StartBuild(BuildParameters buildParameters) ------------------- ...Show All
Visual Studio Hi All: How to extend a built-in language service?
For example I want to change some behavior of original C++ language service's intellisense, what should I do To create a new language service or to reuse the built-in one Thanks Actually, you'll need to create your own language service with the Visual Studio SDK (formerly called the VSIP SDK). The existing language services do not have any hooks into them that will allow you to change the intellisense support they provide. This is a common request though, and the development team is currently exploring possible ways to make this an extensibility feature across all languages in a future release of VS. There's a new dr ...Show All
Visual Studio Nested Grouping in Crystal Reports for .NET 2005
So far, I am not finding any way to nest multiple "SubGroups" in a Group. From what I can see, Crystal Reports Grouping works strictly in in terms of a parent Group having a single child Group and that child then being able to have its own child Group. Am I right in this What I am trying to do is set up grouping such that a report is grouped by Market, then Branch, then both Preset Header, and Location. Ideally all the presets (programming templates) belonging to a branch would be parallel to the locations in a branch. Then, the controls within each location could be displayed. Any ideas ...Show All
SQL Server Pevious SQL statement for Reporting Services:
I need to write a SQL statement or IIF statement to get results that I need in Reporting Services. Below is what I need and I am unsure how to create the statement for my results. I have a lot number which is associated with a PB Number and an Expected Start and Expected End Date that is running in production. The lot number is a parameter that the end user will key in the report. I need the report to display the previous lot number which ran on the same PB number. I think that I would need to use the Expected State Date and the Expected End date for that lot's running time in order to get the previous lot number. How would I write the ...Show All
Visual Studio Express Editions How to install my application on Windows XP SP1?
Hi to everybody! I made an application with vb.net express and SQL express and deployed it through VB.NET Express. Everything went well and the program is running on my PC (XP SP2). But a friend of mine tried to install and run it on his computer and got an error message, telling him that he must install XP SP2. I haven't seen the error message myself, I've been told. My question is this: Is there a way to make applications, made in VB.NET and SQL Express ,run under XP SP1 or is it necessary to have XP SP2 Thanks in advance for your responses, Efraim Kyriakidis ...Show All
Visual Studio Tools for Office VSTO Question: Looking for WORD Action Pane example that lists and select contacts from Outlook
Would really appreciate any help or guidence. I want to have an Action Pane in Word that somehow allows the user to select a contact from the Outlook contacts and insert that information in different parts of the document. Are there any examples of integrating contatcs and using the action pane Thanks for any help, VA Actually, you do not need an 'actions pane' example because what you want to do can be done in a variety implementations (winform, user control, etc.). What you are going to do is work with the Outlook OM programmatically to retreive contact names and display them. I have compiled a list of resources to ge ...Show All
.NET Development Application Folder for COM Interop deployment
I have a working .NET program using COM Interop. I would like to add a Help (rtf) file to the program. I put the Help file in the same folder as the DLL. How can I find the location of the .NET DLL at run time Thanks Mister T You can also use the Assembly.Location property to get the absolute file system path (e.g. without the protocol prefix). Thanks, Stephen http://blogs.msdn.com/stfisher ...Show All
