well, rotating for single component is not a problem. That is already done by me. The complexity comes into the picture when multiple components are selected and rotated. Also, the difficult thing is to show the perfect bounding rectangle after these rotated objects are resized. If you have any idea how to resize the rotated components (multiple) pls share with me. regards,
KrunalC
Posts
-
drawing bounding rectangle around rotated UI Elements -
drawing bounding rectangle around rotated UI ElementsDave, thanks for the reply. But above code draws the border around the element in the upright position. I want to draw the bounding rectangle (border object in your code snippet) around elements in rotated position if elements are in rotated position. So I think with your code I can not realize rotated bounding rectangle. Can you pls elaborate more. regards
-
drawing bounding rectangle around rotated UI ElementsI'm developing editor application in WPF. It is somewhat similar to Microsoft visio. It supports the rotation of multiple elements placed on the editor canvas. I'm rightnow facing a problem in drawing a adorner (bounding rectangle) around the multiple objects. Let me describe the problem in detail : Each element placed in the editor will display the adorner to do operation like resize, rotation etc. When multiple elements are selected, adorner (rectangle) will be drawn covering all the objects. When elements are not rotated, drawing adorner (rectangle) is not a problem. But when elements are rotated at some degree, I also will have to draw the adorner (rectangle) in rotated position. In rotated position if I do the resize operation then I'm not able to place the adorner properly i.e. exactly surrounding to elements. Can any one pls help me on how I can draw the proper adorner (bounding rectangle) after each resize operation in rotated position? I hope I'm clear with my question. If not pls ask for clarification of see how multiple object rotation works in Visio. I have run out of idea on how to fix this problem so looking forward to have some help/suggestions from members. Regards,
-
Merging Config filesMy application has got 3-4 solution and each solution have few projects in it. Currently all the confiugration data for my application is scattered across various project.config files in individual project. I want to merge all these configuration settings and make a one single config file which will be accessed by all solutions / projects. If possible I would like to read/write this common file using "Properties.Settings" class as we normally read the config files. Can any one give me idea on how to achieve the above thing?
-
COM Interoperabilitythe COM interop dll is also using some dlls developed as part of our application. so it is failing to find these dlls n not the .net framework dll. What i have done is I have put codebase entry in my registry along with dll registration. So i think it finds the COM Interop dll but com interop dll in turn fails to get the dependancy dlls. hope things are clear now. If not pls revert back for more clarification. Thank you very much for your persistent support. I really appreciate it.
-
COM InteroperabilityI think we are not talking on the same line. Let me elaborate. I have a .net application and some of the functionality of this application I have exposed through a dll. I have used COMVisible attribute to expose the functionality in this dll to other application. I register this dll with registry using regasm tool (and not through regsvr32 or something.... that's why I said I'm not registering the dll with registry). Now client developed in VB or VC++ can use this dll (registered as COM with registry) to consume the functionality exposed by my .Net application. When I put my client application in a path other then my .net component path it fails to find out the path for the dependency dlls. I hope now question is clear. Sorry for replying to your question is hush hush... :)
-
COM InteroperabilityMy dlls are not COM dll so I'm not registering them with registry. I have a .net component (dll) which can be accessed through COM interop by VB or VC++ client. my .net component is using some dlls so at the runtime (i.e. during client call these dlls could not be found)
-
COM InteroperabilityI am establishing the COM Interoperability where I'm exposing the functionality in my .net component to client developed in either vb 6.0 or vc++. I don't have any issue regarding how to implement the COM Interoperabiliy. My problem is, to make my call from client to .net component successful, I have to put my client application also in the same path where my .net component is. If I put my client application in a path other than my .net component path then call is not successful as it fails to find out some DLL dependancy. Can someone tell me how I can run my client application independent from the .net component path. I hope I'm clear with my question. Thanks & Regards,
-
WCF and Endpoint addressI have created service using WCF named pipe binding. I want to check whether any of my end point for the service with particular address is in use or not? How I can do it? e.g. I have configured the endpoint using address "net.pipe//localhost/Test/ABC". Now if client tries to connect to the same end point again I want to catch this situation. Can any one suggest the idea or direct me towards some documentation on it. Thanks Krunal C
-
Inter process communicationled mike wrote:
Is the example in the documentation lacking? If so what is missing?
Document only explains the how service and client(consumer) can be configured but don't explain how it can be used for inter process communication.
-
Inter process communicationIs there any way in which I can use WCF and NetNamedPipeBinding for Interprocess communication? If yes then can someone share the idea of how it can be done? I want to communicate with different processes on the same machine and processes will also be the instance of the same application. Krunal C
-
managing different instance of applicationI have editor sort of application developed in c# using .Net 3.0 framework. My editor works in two different modes i.e. in Enginnering mode & Standalone mode. My requirements are I should be able to run multiple instances of my application on same system in different modes. When I open the file in the editor then prior opening the file, it should check whether any instance of my application is running in particular mode or not. If the instance is running then file should use the running instance to open the file. Considering above requirements, can some one give me ideas on following : 1) Out of all the running instances how I can select particular instance to operate upon? 2) How I can store my attributes i.e. mode of editor etc. in the running instance? I hope, I'm clear with my question. If you want me to clarify more pls revert with your questions. I hope this forum will get me some directions. Thanks Krunal C
-
controlled launching of multiple instancesPbraun, Thanks for your response. Instances to be launched on the same system only. I have two different operating modes in which my application works. Pls revert with your idea or questions if any. regards, Krunal C
-
controlled launching of multiple instancesmike, Thanks for your reply. I viewed the article you have given prior posting my question. But the article only mentions how to prohibit multiple launching of the application. In my case I have to check the mode of the application prior allowing or prohibiting my application. So I'm confused how I can store application mode related information and how I can validate this information prior launching my application. Hope now my question is more clear.
-
controlled launching of multiple instancesI have a c# application which can be launched in different modes. Multiple instances of this application can be launched provied no other instance of the application is running with the same mode. e.g. My c# application can work in two different modes say 1. abc 2. xyz What I want is when I try to launch my application in "abc" mode, before launching the application, it should check whether any other instance of the application with "abc" mode is running or not. If instance with "abc" mode is running then running instance will be returned else new instance with mode "abc" will be launched. There is mechanism in my application through which I can set the mode prior launching the application. As of now, I don't have any idea on how to implement this requirement. I'm seeking some ideas and suggestions on how I can implement such requirement. Thanks Krunal C
-
Transformation n ZoomIn/ZoomOutI'm working on WPF project in which I need to implement ZoomIn / ZoomOut on Scrollviewer object with seperate pan zoom window. There are two types of transformation which can be applied i.e. Layout Transform & Render Transform. Now the problem is I want to use the best of both kind of transformation. I have a pan zoom window which shows the view of my scroll viewer object.When the view of my scrollviewer object changes i notify to pan zoom window to reflect the view of scroll viewer object. For transformation, scrollviewer object's three properties are important. ViewPortSize, ExtentSize and Offset. When ZoomIn is performed, ViewPortSize and ExtentSize remains same in both Layout and Render transformation while Offset value gets changed in layout transform but in Render transform scrollviewer object's offset value is not changing. Because of this in render transform, even if the view(or layout) of my scrollviewer object in main canvas has changed still I can not send the changed information to pan zoom window (as offset value is same). So my problem is my ZoomIn / ZoomOut related requirements are perfectly satisfied using Render Transform but if I use Render transform I can not update my view in Pan Zoom Window. Can any one suggest me the work around for this problem. (I want to implement the zooming in the same way as implemented in Microsoft Visio. Pressing ctrl key n mouse wheel move wil provide the zooming operation in visio) Below I'm pasting one link in which the problem described is I think somewhat related to my problem. https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=991579&SiteID=1\[^\] Hope I have been able to put up my question in proper way. Pls revert back in case more clarification needed. Thanks in advance..... Krunal C
-
Layout Transform v/s Render TransformI'm working on WPF project in which I need to implement ZoomIn / ZoomOut on Scrollviewer object with seperate pan zoom window. There are two types of transformation which can be applied i.e. Layout Transform & Render Transform. Now the problem is I want to use the best of both kind of transformation. I have a pan zoom window which shows the view of my scroll viewer object.When the view of my scrollviewer object changes i notify to pan zoom window to reflect the view of scroll viewer object. For transformation, scrollviewer object's three properties are important. ViewPortSize, ExtentSize and Offset. When ZoomIn is performed, ViewPortSize and ExtentSize remains same in both Layout and Render transformation while Offset value gets changed in layout transform but in Render transform scrollviewer object's offset value is not changing. Because of this in render transform, even if the view(or layout) of my scrollviewer object in main canvas has changed still I can not send the changed information to pan zoom window (as offset value is same). So my problem is my ZoomIn / ZoomOut related requirements are perfectly satisfied using Render Transform but if I use Render transform I can not update my view in Pan Zoom Window. Can any one suggest me the work around for this problem. (I want to implement the zooming in the same way as implemented in Microsoft Visio. Pressing ctrl key n mouse wheel move wil provide the zooming operation in visio) Below I'm pasting one link in which the problem described is I think somewhat related to my problem. https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=991579&SiteID=1[^] Hope I have been able to put up my question in proper way. Pls revert back in case more clarification needed. Thanks in advance.....:)
-
Is this forum useful any more?leckey wrote:
Since you have posted this, likely your name will stick out so knowledgable members can take note to read your question.
Leckey, Sorry but i couldn't get the meaning of your above line...
-
Assembly ProbingMark, It seems now you have understood the problem correctly. I can not use /codebase switch as my assembly is not strong named assembly (there are some issues because of which I can't make my assembly strong named). You can supply /codebase options only with the assembly which are strong named. Thanks....
-
Assembly ProbingMark, Thanks you very much for your reply. I was looking for some direction to resolve my problem which you very well provided. However, Let me elaborate more on my problem. In my case, there are two different applications, one developed in vb 6.0 (which acts as COM client) and other in .net. Now I register my .net application with registry (using regasm tool but without using /codebase switch). Also, I don't put my .net component (which COM client will access) into GAC. So in this case when I try to access my .net component from VB application using COM, VB application fails to locate my .net component and its dependancy. Can you tell me what I should do in order to make my vb application know where my .net component is placed. If I put my vb application and .net application together, everything works fine. But if I put them seperately, loading fails with the message that "Runtime error '429'. ActiveX Comoponent can't create object.". In my vb code, I'm using CreateObject to create my .net component object. ----------------- Private Sub Command1_Click() Dim i As Object Set i = CreateObject("TestApp.class1") (TestApp.class1 is my .net component) i.ShowMessage End Sub ----------------- I hope I have explained my problem properly. if you have questions on this pls revert back. Thanks......