Answer Questions
Musa_Tariq_Raza Problem building
I have been successfully using VS 2005 Beta 2 (VB.NET) for about a month now. Yesterday, I started getting the error: Error 5 Unable to copy file "obj\Debug\BO.dll" to "bin\Debug\BO.dll". The process cannot access the file 'bin\Debug\BO.dll' because it is being used by another process. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 2274 9 This error does not occur the first time I build the solution after just opening it in VS. But all subsequent build attempts fail with this same error. If I exit VS and reopen the project then I can again build one time and all subsequent attempts fail with the same error. Using SysInternal's Handle program, I was ...Show All
LukeSkywalker Flow Custom Principal with WCF
Hi, I'm using a custom implementation of IPrincipal and I'd like to flow it from the client to the service, how is this done in wcf. In .net remoting I've used a custom sink to take the principal from the thread on the message an on the service back to the thread. Thanks, Markus I would highly recommend that you look at using SAML tokens for this. It sounds like you own both sides, so that you could have a shared component that contains your custom IPrincipal types, and perhaps even custom PrincipalPermission and PrincipalPermissionAttribute types. If you adopt SAML then the token itself (and the security context at the service) contain the claims (like roles or permissions). I have a sample th ...Show All
noNchaoTic Stoping a control from responding to events
Hello Is there a way I can stop a control from responding to events temperorly For example, I'm animating a grid on mouse enter and mouse leave. Works great. Because the size of the control is changing on mouse enter/leave sometimes depending on where the mouse is; the control gets confused as it is animating its size it starts to respond to mouse enter/leave events. Thanks Houman The best way I have found in this case is using two styles: one with and one without animatioin. Thank you for your answers! I'll try them out. I have a feeling the boolean-flag-approach may not work. Because I think animate works on its own thread. So I'd have no way of kn ...Show All
laoer Dynamic Property names in the property windows
Hi. Im developing an editor for a XML-based language (kinda like XAML) in VS2005 using the MPF. Currently, im working on the properties window. The window is supposed to show properties related to spesific xml elements at the caret. Different elements have different sets of properties, so what i would like is to dynamically change the names (and descriptions) of the properties shown in the grid. The way i name the parameters now is by adding "attribute-tags" to the properties like this: [ DescriptionAttribute ( "The identificator of the Element" )] [ DisplayNameAttribute ( "ID" )] public string Property1 { get { return property1; } set { property1 = value ; } } } I know that i can solv ...Show All
Claudiu Chiorean 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 OK, I think I found the answer of my question: System.Windows.Markup is my new friend! In my opinion XAML is not just a framework for developing presentation layer of Windows apps. It has strong potential to be used even in print media. I can't wait for WPF/E, if it is not just myth. Another question: Does the framework provide methods to convert XAML to a raster image (eg bmp) I want the output of my app be presented on Web (for all browsers) too (or even be ...Show All
Trini_Pierre June CTP : PeerChannel using PNRP - Peers not seeing each other
I am attempting to create an application where the peer name resolution is controlled via the PNRP. I have installed the PNRP, and turned it on, and made sure that it is an automatic startup. I don't get any exceptions claiming that the PNRP is not available. Running Windows XP , Service Pack 2, June CTP of NetFX3. Each of my applications (3 different apps participating in this mesh) have a configuration file that looks like this: < xml version = " 1.0 " encoding = " utf-8 " > < configuration > < appSettings > < add key = " stationId " value = " kitchen1 " /> </ appSettings > < system.serviceModel > < client > <!-- cha ...Show All
&#949;&#960;&#953;&#963;&#964;&#951;&#956;&#951; draw a graph with J#
Hello I want to draw a temperature graph on aWindow form with J# but I don`t know how can I draw something with J# on a Window Form. So could you help me please. Thanks Mayer Thomas Hi Thanks for your help but now I have an other problem. I want to draw the graph on a new Window Form. The new Form should be open when I click on a button of my first Form. But when I click on the button I got an Exception: InvalidOperationException The code: private void temp_vor_Click(Object sender, System.EventArgs e) { Application.Run(new Thermo_V1._0.Form2()); } Could anybody help me ____________________ Thanks Mayer Thomas Hi, Could you please provide me some more d ...Show All
Jamie Thomson Undo Disabled in Excel 2003 using VSTO 2005
Hi All, I appear to have run in to an intractable problem in Excel 2003. I am developing an auditing addin that monitors cell changes. I am capturing the SheetChangedEvent and this disables the UNDO feature. I have not seen this defined formally as being the case anywhere from MS. If this is the case could someone let me know and point me to the resource If this is the case, can someone point me to a possible solution I have looked at _Application.OnUndo(), but this appears to require me to have have macros on my spreadsheet, which defeats the purpose. Any help would be very much appreciated. p.s. I have got it down to UsedRange method caousing the problem, if that is any insi ...Show All
mognog Report Header VS. Page Header
How do I create a report header for a report It says report header but it is actually creating a page header because it prints on every page. ...Show All
exal Read value of a Binding manually
Given a Binding object, how can I read the source value I.e, I'm bound to a Customer object as my source, and the path is "CustomerName". Given the Binding object, how do I read the value from the source Why is this so difficult to do Hi Sheva, I haven't tested, but that only gets the source object, not the actual "value" doesn't it Re-reading my initial post it looks like I was very unclear. Say I have a binding expression like this: {Binding Source={StaticResource MyCustomer}, Path=EmailAddress} I want to get this: Binding binding = .... string emailAddress = binding.GetValue(); // This method doesn't exist - what do I call Thanks, Paul use BindingOperations.GetBindingExpression() method ...Show All
_CN_ About Visual Basic Orcas
Can any one explain me about this Visual Basic Orcas "Orcas" is the code name for the next release of Visual Studio. Visual Basic "Orcas" refers to the next release of the Visual Basic language and tools. ...Show All
UI Freak Indigo? (Non-Techie Question)
I understand that Indigo was the code name given to WCF but what significance does it have Like Orcas is Named after Orcas Island, located in Puget Sound. Farther still from Seattle. At the beginning of this very old .Net Show , John Shewchuk explains the (in)significance of "Indigo" as a code name. Dave ...Show All
Blkbird Clash between Studio 6, Studio 2003, and Studio 2005?
I just recently got a new machine here at work. When I was installing software, I was careful to put Studio 6 (VB6 and C++6) on, THEN Visual Studio 2003 (.NET framework 1.1) and then finally Visual Studio 2005 (.NET framework 2.0). I need to use them all for my job, often in the same day. My current project is with C# 2.0, so I got that working right away. But I just got interrupted to go back to help with a previous project, which is ASP.NET & VB.NET (Framework 1.1). Visual Studio 2003 development environment comes up fine. I select existing project, find the .sln file, and load it. Shorly thereafter (within 2 seconds or so) the status bar says "Initializing offline cache..." and then Studio 2003 freezes. And when I say &q ...Show All
Rafet There were not enough free threads in the ThreadPool to complete the operation.
I'm using the async versions of the generated Web Service proxies. I now get this exception with one of my service.BeginSomeMethod calls. I do have a lot of work items on worker threads because of the usage of System.Threading.ThreadPool.QueueUserWorkItem. Apparently the async method mechanism competes for threadpool threads with other queued work items, and instead of blocking until a Thread becomes available in the threadpool, an exception is thrown. What is the recommended way to solve this problem Shouldn't the async mechanism provide some retry mechanism by default If it's on the client side then you could spawn your own threads instead of using the threadpool. I have a stress testing tool that does that. Let me know if ...Show All
Steve Wash Set Up project is not working properly
I want to make Set Up project in XAML.I have tried to make Set Up project but When I run setup.exe,no one XBAP page was generated.only one exe and some dlls are generated.Is any one know about that ...Show All
