BubbaRichard's Q&A profile
Windows Forms How to share MDIParent Client Area
I am building an application which shares a good deal with Windows IDEs in that it is an MDI text editor, but needs to reserve some parts of the main form client area for other displays. For example, I need a treeview or list control which lists the files currently loaded. If I make the main form the MDI parent then the MDI children will ...Show All
Smart Device Development Get Image Data of Pocket PC Camera
Hello... I'm a newbie! I want to know if it is possible to capture the data of a pocket pc camera Maybe with C#... or another language Can you help me Regards, Jacqueline. You should contact Pretec and ask for a camera API. Unfortunately, without an API you can't even get a single pixel from this camera programmatically. ...Show All
Visual Studio 2008 (Pre-release) Equivalent of WM_MOUSEACTIVATE?
Hiya, Is there a WPF equivalent of WM_MOUSEACTIVATE If there is, I can't find it. I need to control whether a mouse click on an inactive Window: (a) activates the window and lets the click through, (b) just activates the window but eats the click, (c) doesn't activate the window but lets the click through, or (d) neither activates the window nor lets the click through. I cannot do the equivalent with OnPreviewMouseDown because by the time this is fired, the window has already been activated. No, there's not a WPF equivalent. It's a great suggestion for the next version, for this version you can use HwndSource to ge ...Show All
Visual Studio Team System Again Load Test - actually Multi User test
Hi I am not a developer therefore I am trying to get everything I can, without adding lines to the code. Let's see if it is possible. :) I've read the blogs: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=122964&SiteID=1 and http://forums.microsoft.com/msdn/showpost.aspx postid=118191&siteid=1 but still there is something that I don't understand. Therefore, I restart with basic questions: Can I use this tool to run a multiuser test and not a Load test What's the difference The difference is that I need to know exactly when a test starts, when it ends, and control the number of times to make ...Show All
Visual Studio MsBuild and .VDPROJ
Hi, This was the blog posted on microsoft forum when tried to find the info on building the VDPROJ using MsBuild using VS2005 Beta 2.0, hope this problem is fixed in this release. "Unfortunately, deployment projects are not supported via the MSBuild task, or if you are using msbuild.exe on a solution that contains a deployment project. We realize that this is an important scenario, but didn't make it into Visual Studio 2005. We expect to work on enabling this scenario in one of the future releases. In the mean time, if you want ot build these from the command line, you can run devenv.exe /build from the command line on the ...Show All
Visual Studio Adding a context menu item to a VS2005 web project
OK, diving a bit into VS2005's 'new features' ;) While porting our addin to VS2005 I see that our current mechanism to add context menus to project items or to the project itself does no longer work with the new web projects. These items do not show up, neither on HTTP (IIS)- nor on file system-based web projects. This is what we do now: --- cmdObj = applicationObject.Commands.AddNamedCommand( addInInstance, "WsContractFirstContextMenu2", "Choose WSDL to Implement...", "Executes the command for WsContractFirstAddin ContextMenu", true, 190, ref contextGUIDS, (int)vsCommandStatus.vsCommandStatusSupported + (int)vsCommandStatus.vsCommandStatu ...Show All
Software Development for Windows Vista ValidationOptionAttibute
I installed Beta 2 on a fresh vm today and was really shocked about the ammount of changes. Not only bad things changed for good, such like the Property/Attribute Designer for Activities is gone :-( After more than 100 errors in my existing project I decided to rebuilt it from scratch. Now even my first attempt to built a custom activity fails, when it comes to the declaration: ValidationOptionAttibute which was formerly known as ValidationVisibilityAttribute which is not found. Even in the "HelpDesk WinForms Example" which I downloaded from the new Beta 2 Samples I get 15 errors at compilation and this is among of them ...Show All
Visual Studio Team System Differences between FxCop GUI and VS 2005
Hi all, is there any place where I can find what the main differences are between FxCop GUI and VS IDE (as far as code analysis goes) For instance, I see that VS doesn't show the URL for the documentation on a given rule. What else is missing Is the "suppress message" in VS relative to the "exclude" in FxCop If so, how do can I force developers to type in the reason why they're supressing a message And how can I see a list of all the messages suppressed It seems to me that code analysis support is just half-baked in VS, and in such case, I see no use in migrating from FxCop GUI to VS. Any comments on that ...Show All
.NET Development Web Services in 2006
I did my first web service work with vs2003 and iis. I see in vs2005 that I can create a web page or web service independent of iis. Can someone explain to me what that means and is that something of significance. Thanks, Fred ASP.NET 2.0 does not depend on IIS. Web applications and web services can still utilize the features of IIS if it is deployed on IIS. This is rather significant because it allows web applications and web services to run on Windows XP Home edition which does not support IIS. Basically any machine that can run .NET 2.0 can run ASP.NET 2.0 web services and web applications. ...Show All
Visual Studio 2008 (Pre-release) About schyzophreny, C#3 intelligence and runtime stupidity
This question relates to Linq, as the Espresso sample illustrates, so I post for suggestions here.. http://technofinance.blogspot.com/ --------------------------------------------- On my way toward a flexible application to perform queries on the vast amount of information my trading desk produces everyday, I was delighted to meet with C#3 and Linq functionnalities. Design time I always thought such a transversal approach was needed and I was surprised to remember that I developped a similar API for VB back in the old days :) Now I could have cutting edge Microsoft functionnalities and exceptionnal compiler intelligence ...Show All
Visual Studio Page Margins are jacked up
I have created a simple report with just a title and some lines in the header. I set the page margins to .5 inch all around. Centered the title and drew lines on either side all the way to the margins like: ------------------------------- Title ------------------------------- It looks great on the screen, but when it prints the left margin is quite noticeably wider than the right margin. Is this a known bug or am I missing something I seem to remember having this problem with Crystal Reports at some point but don't remember how it was solved. Those issues all appear related to Word 2000, this ...Show All
Visual Studio Team System Recreating TF DIR using the TFS API
I want to recreate the equivalent of "tf dir $/Foo /server:<servername>" where I don't have $/Foo mapped into a local workspace. It looks like VersionControlServer has the GetItems() methods I need to list the repository contents. However I can't figure out how to create a VersionControlServer instance. Any ideas on how to get a hold of a VersionControlServer instance FYI, this is for a Monad (MSH) provider that I'm experimenting with. Here's an API example that uses GetItems() to display the sizes and dates of files in a format similar to cmd.exe's dir command. http://blogs. ...Show All
Visual Studio SetDataSource() crashes
Hello to all Crystal Reports expert. I am running into a strange problem. Please let me know if you know how to fix it. I have a report in Visual Studio that reports off of an object (a class). I pass in an ArrayList of that object at run time. That's when I get the exception shown below. Here's the code I use: //create an instance of the report MyTestReport report = new MyTestReport (); List < MyObject > entityList = new List < MyObject >(); entityList.Add( new MyObject( arg1, arg2)); report.SetDataSource(entityList); CrystalReportViewer reportViewer = new CrystalReportViewer (); re ...Show All
SQL Server Dimension formula
In a sales cube I have added dimension formulas to an account dimension. Example: NetRevenuePer100kg. The formula is: NetRevenue / Quantity * 100 When I use this in a MDX query like select {[DIM_ACCOUNT].[NetRevenuePer100kg]} on columns, {[DIM_PRODUCT].[WOOD]} on rows from cube where ([DIM_TIME].[2005].[Q1]) everything is fine. But using the following calculated member in the where clause: ... member [DIM_TIME].[MY_TIME] as 'Sum([DIM_TIME].[2005].[Q1].[Jan]:[DIM_TIME].[2005].[Q1].[Mar]) ... ... where ([DIM_TIME].[MY_TIME]) I get a value which is about 3 times greater than the correct one. I think it i ...Show All
Visual Basic command button question
I have two buttons on a windows form called btnOne and btnTwo. When I click btnOne I want a messagebox to show When I click btnTwo I want to run the btnOne click event to show the same messagebox. Does anyone know how to do this. If you double click on a button in the design view, it adds an event handler. Inside the handler you can call MessageBox.Show. You can do the same for event two and just call the method for event 1, but you can also go into the properties for the button in the design view, click the lightning bolt to see events, and click the drop arrow for the click event and select the ...Show All
