Kiran Suthar's Q&A profile
Windows Forms Context Menu Strip
Hey, by the way my richtextbox is set up I can not set the contextmenustrip I want to use diectly on the control. I have to use the Form1_MouseClick event. So how would I make it so that it only does somthing if the mouse left button is pressed I tryed: private void Form1_MouseClick( object sender, MouseEventArgs e) { if ( MouseButtons .Left) { } } but that does not work... Thanks :) ok, I did that, now nothign ahppens...if I right clcik the textbox but if I right clcik just outside of the textbox it shows the messaged then the menu... So, I think you mentioned somthing like this would happen in a previous post, so how would I fix that Thanks :) ...Show All
SharePoint Products and Technologies Sharepoint Designer + Expression - Frontpage = ?
I just downloaded the Frontpage replacement which consists of two products named Microsoft Sharepoint Designer and Microsoft Expression. From what I can tell the two products are practically identical in functionality. Questions: 1. What is the difference if any 2. It looks to me like I can accomplish the same things that either of these two products are capable of using Visual Studio 2005. Am I wrong I do appreciate qualified feedback and thank you in advance. - ppothier MBA/CIS, BS/BIS, MCSE, CNE, CCNA, A+, MCAD (in progress) P.S. Happy new year and looking to forward to a wealth of new Microsoft products to work with :). The only thing that I have found that can be use ...Show All
Visual Studio 2008 (Pre-release) Reporting Services/ReportViewer question
Hello, We are working on a WPF/.Net 3.0 based application with some reporting needs and we are hoping to use Reporting Services 2005. Is it possible to host the WinForms ReportViewer control in WPF context I have learned that WinForms controls can be hosted using WinFormsHost, but I wasn't sure about ReportViewer control sicne it's not really part of the .Net framework (I could be wrong about this). If ReportViewer is not possible, are there any other options for report integration (any other tool) at this point Thanks for any help/advice. Murthy I cannot answer for ReportViewer in particular, because I haven't tried it myself. But in general, for a full trust app, there is no restriction on the WinForms control bein ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to disable driver anti-aliasing
I need to preserve the exact colors (and thus, hard edges) when I read back the rendered image via an offscreen surface filled with GetRenderTargetData. There is an option in the control panel where the driver forces anti-aliasing for all applications. If I do not set the quality-performance slider correctly, I will get anti-aliasing. Is there a way (in code) to prevent that Maybe you could select a render target with a d3d format that does not support AA (If it exists). Driver won't be able override it cos it doesn't support it. Also, multisampling is not available for all swap effect, so maybe you could also do it that way. ...Show All
SQL Server What does for xml path depend on?
Hi. I asked the question before if For xml path was available in express editions of SQL Server, and I got the answer that it was. So i queried my database on that and it worked. But now that I query another database still using the SQL Server, it doesn't work anymore. I'm sure my syntax isnt wrong. So what other things does for xml path depend on to work So that's it. I assumed it was okay since I was using SQL Server Studio Management Express... Oh well, I guess I'll have to make do with the explicit queries. Changing the VPS is not under my control... ...Show All
Visual Studio Tools for Office Accessing Outlook MailItem
I want to access all the email items (of type Outloook.MailItem) whether they are in inbox, sent items or any folders created within the inbox. How can I programmatically access it For e.g. this only gives me access to inbox items of type outlook.mailitem I want all items including sent items and any folders that users has created within inbox Private inBox As Outlook.MAPIFolder = Me .ActiveExplorer().Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox) Private inBoxItems As Outlook.Items = inbox.items For Each EmailItem As Object In inBoxItems Dim objEmail As Outlook.MailItem = TryCast (EmailItem, Outlook.MailItem) Next Thanks in advance ...Show All
Visual Studio Team System [HELP!!!] Testing ASP.NET application UI using VSTS
Hello all, I have been using Visual Studio Team System to evaluate whether form fields exist or not on my pages. Things were going fine until I added a master page to all the pages which had forms. Now, my tests for whether the form fields exist or not fail because the form fields are contained within the content area (the <asp:content> tag) of the master page. The test fails because the id of the form fields change dynamically when the page is rendered. For example, if I have a text box named "name" in one of my forms and I place it within the content area, the id changes to something like "xxx_contentplaceholder1_name" (not sure of the exact ID). How do I test for my form fields when they are placed wi ...Show All
SQL Server SQL 2000 - "Unable to get list of data mining algorithms" - PLEASE HELP
Hi, I recently started using SQL 2000 Analysis Manager. I wanted to try data mining but was unable to get the Mining Model Wizard to load available techniques. When I select a cube and "New Mining Model" I get the following error: "Unable to get list of data mining algorithms." "Object of provider is not capable of performing requested operation" Please help. Thank you very much, Robert This usually only happens when a) the server isn't started, or b) you don't have the most recent service pack installed. Please verify that both of these has occurred. Thanks -Jamie ...Show All
Visual Studio Team System Account for running the Team Build service
Hi, The TFS Installation Guide says to use the Domain\ TFSSERVICE account as the service account for the Team Build service. Can it run under a less privileged account I would like to run it under an account that is in a [Project]\Build Services group. What kind of problems might I run into Thanks, Paul Paul, you can certainly run it under a less privileged account. You are correct that the account that you use will need to be a member of the [Project]\Build Services group. Likewise, the account will need to have full permissions to the local directory where builds execute (say, c:\builds) and full permissions to the drop share (say, \\someserver\drops). Buck ...Show All
Visual C++ VS2005 SP1 and Fix for kb911281
I'm wondering if other people are still having this problem with SP1. I just installed SP1 and was very hopeful that the slowness of starting up would go away, but it definitely has not changed. There continues to be a huge difference in the time it takes to start my application (which has several 100 dlls that are loaded) between VS2003 and VS2005 SP1. With VS2003 this application can be started in the debugger in seconds (under 10 seconds, probably only 2 seconds on successive starts), while in VS2005 it can take several minutes to start up. Clearly I often have break points set, that is the point of debugging! Should I still be seeing this huge difference in loading times between VS2003 and VS2005 for large unmanaged applications Might ...Show All
.NET Development [WSE] Hosting an ASMX web service in a Windows Application over http
Hi, I'm actually trying to host a Web Service in a Windows application with Windows Services Enhancements 3. I followed this tutorial to implement it on tcp for a first test : http://msdn.microsoft.com/library/default.asp url=/library/en-us/wse3.0/html/a59d232c-53a3-401f-82e5-2e49588923b9.asp but I can't use the " Add Web Reference " method to import my web service, so I use the WseWsdl tool, that sends me a " Destination Unreachable " when the soap receiver is configured with the " localhost " address. So I use the name of my machine to reference the web service and, in this case, the WseWsdl tool generates me the proxy, but I've got an exception while calling a remote method (the helloWorld method) : System.InvalidOperationException wa ...Show All
Software Development for Windows Vista Understanding Directshow better - filter context
I've been reading and working/modifying various samples for Directshow filters for my purposes, and there's one thing that is not clear - Some of the projects I've reviewd output a .ax file, while others output a .dll with no .ax. Any special implications The more important question is about context: I know filters are userspace components that programs such as "Skype","MSN Messanger" etc. communicate with (via enumerating the filters that fall under the category "video capture"). What I fail to understand is this: What context is the filter running in the .dll the .ax Is it in the context of the program (Skype, Messanger etc.) some internal windows loader What happens when several programs attempt to acce ...Show All
SQL Server Aggregate() function not working when a measure is not specified.
Hi, I am new to Analysis Services, having used it for less than a month. I do apologise if this problem is the result of a stupid newbie mistake, but I could really use some help. I am totally unable to get the Aggregate() function to work unless I specify the optional measure. I have build a cube from the Adventure Works DW database, based on the internet sales fact table and related tables. I used the wizard to design the hierarchy for the time dimension. Both of the following queries fail with the same error message: Query 1: WITH MEMBER [Time Aggregate Test] AS 'Aggregate({[Ship Date].[Calendar Year - Calendar Semester - Calendar Quarter - English Month Name - Day Number Of Month].[Calendar Year].&[2002].&[2 ...Show All
Visual Studio 2008 (Pre-release) Export to XAML
I made a drawing in a Canvas using code (I mean I used C# methods to draw lines, polygons, etc.) I wonder if it is possible to export this drawing into a reusable XAML file. (Something similar to Bitmap.Save() in Windows Forms is what I need). Homam Dear Homam, Have you tried your hands on Microsoft's Graphic designer ( http://www.microsoft.com/products/expression/en/graphic_designer/default.aspx ) - it’s in beta, so you can download it for free and try it out. Its cool with a lot of stuff like this. HTH, Suprotim Agarwal ...Show All
Visual Basic Special Characters in XML File
Hi all, I have a little problem with XML. This XML file is a UTF-8 codeification and most of the times a "tiny square" appears inside the text, I know I can replace the character but I just don't know which character is. Working with VB.NET (System.xml and System.XML.Path), I tried to get the char number but I get two values: 63 and 13 Dim CharWeird As Char = GetChar(xString, 15) ' 15 is the position of the character (zero based) CharWeird = 63 BUT if I..... Dim CharWeird As Double = Char .GetUnicodeCategory(xString, 14) ' 14 is the position of the character (1 based) CharWeird = 13 Not to mention that if I lookup the char inside the string: xString.IndexOf(63) or xString.IndexOf(13) it always returns -1 me ...Show All
