Answer Questions
Simmy7 Parse referenced assemblies
Hi, I need to parse the referenced assemblies of a project (in order to find certain types that have to be written in a configuration file). I can work on the list of references, load the respective assembly and reflect over the types. However this will block the DLL files and the next build will fail. Using ITypeResolutionService didn't help either. Visual Studio loads those Assemblies as well, yet it does not lock them (probably shadow copying or some other special handling). Does anyone know how to get hold of the assembly loaded by VS Regards, Alexander After Assembly.ReflectionOnlyLoadFrom, GetType throws a ReflectionTypeLoadException... Anyway, I'll find a way to avoid the parsing. Alexander Can you s ...Show All
StumblingInTheDark May CTP: Where are array extension methods defined?
Nice work, the CTP - a tad flaky, but usable. I am in the process of upgrading one of my projects using LINQ to the May CTP. I managed to get the build process running, found the "missing" DLL's. I am now stuck with basically 5 compiler errors all related to extension methods. DLL's included are: System.Core; namespaces used are: System; System.Collections.Generic; System.Linq.Expressions; System.Linq; System.Text; System.Xml; The compiler chokes on: public IEnumerable < object > GetValues() { return _FieldValues.ToSequence(); } where _FieldValues is defined as: object [] _FieldValues; Can anyone enlight me In the May CTP ToSequence sas a valid extension that was de ...Show All
michael447887 ServiceContractAttribute Issue in Self Hosted Application:
HI, I am having one more issue In Self hosted application: Basically we are developing a project in two version one is demo version and the other one is full version I want to use the same class interface service structure for both [ ServiceContract ()] public interface IService1 { [ OperationContract ] System. Guid AccountInfo( AccountInfo dataContractValue, string conn); } public class ClientInfo : IService1 { public System. Guid AccountInfo( AccountInfo dataContractValue, string conn) { // Code for the method } } this is working in IIS hosting wcf service, In case of self hosted , I am getting the following error : The contract type ClientInfo is not attributed with ServiceContract ...Show All
Angry Coder Working with submenus in Outlook 2003
how to Create Command Meun with two childs there is what i need Send By: -email -SMS msdn was not clear for me and it was creating menu bar . and what i need is a command menu. t and how i can do that can you write a simple script for that please The article at http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnofftalk/html/office04042002.asp provides a basic introduction to the CommandBars objects. You can also browse the online language reference, e.g. at http://msdn.microsoft.com/library/en-us/vbaof11/html/ofmthAdd1_HV05221154.asp r u sure but its similar to "New" in outlook it has an icon You mean to the CommandBarPopup contr ...Show All
MEder Inaccessable Inner Classes in Java to J# Conversion
I am trying to compile a large Java API in J# using VS 2003 and .NET 1.1 framework One problem I am running into is that Inner classes defined in a parent class are not visible when they are acessed through a derived class. Consider the following three Java files: Parent, Derived, and Application: Parent.java: package JavaAPI; public class Parent { public static class Inner { static int InnerInt; Inner() { InnerInt = 1; } } public Inner GetInner() { return new Inner(); } } -------------------------------------------------------------------------------------------------- Derived.java: package JavaAPI; public class Derived extends Parent { public void DoSomething() { /* OK Inner c ...Show All
zille WPF Application Caching
Hi, I am looking for a way to cache data in a WPF application. The process works like this: I make a call to a web service, and retrieve customer information. I want to be able to store this information at the application level so that the user has the option of retrieving it from the cache, rather than having to call the web service each time. Before calling the web service, I want to be able to check the cache to see if the information exists. If it does, the information is retrieved from the cache. If it doesn't, then the new infomation is added. I was thinking of doing this using a Dictionary or Hashtable, but I'm not sure how to make this object available at the application scope. Is this a good approach, or is there a ...Show All
baswegan2 Emailing crystal reports (VS2005 + CR10)
Hi, I have been trying without success for a couple of months now to email a Crystal Report in PDF format using the built in functionality, but all I ever get is a file named "untitled.txt" as an attachment. This is actually a PDF file with a txt extension, and if you change the extension, it loads up just fine. I've been through all the KBs on the Business Objects site, had a support conversation (until the ticket got closed on me). Anyone else had the same problem Any good solutions (Currently I have resorted to saving the file locally and manually creating a MAPI message and attaching it - pretty ugly stuff really. Thanks in advance. Richard Have anyone found a s ...Show All
kernel_77 Help With Branches
Hi, I am new to this forum, so allow me to introduce myself. My name is Santiago, a C++ software developer. I am working with Visual Studio 6.0 I am having a problem with a branch I recently created in sourcesafe, and was wondering if there is a work around for it. Here is the basic problem. Created project XYZ Created Subproject Devel and Subproject Release Shared Files in Devel with Release\Vx.y.z and branched Moved Subprojects Devel and Release from XYZ to Project ABC Deleted project XYZ Renamed Project ABC to XYZ (Aside) I know this looks a little crazy, but that is what I did, asking what motivated me to do this won't help, because its already been done :-). ...Show All
bennett1016 Switching back and forth between source and disassembly debugging in VC8
With VC6 and VC7, it was possible switch back and forth between the source code and disassembly views when debugging an application. When in the disassembly view, the debugger would step through each instruction, and when switched back to the source code view, the debugger would step through lines of source code as normal. This no longer appears to work in VC8. If I ever choose to switch to the disassembly view, all future debugging will occur in disassembly mode. I can switch back to the source code view, but as soon as I try to step to the next line, the debugger switches back to the disassembly window. I dug around and found an option that will make the disassembly window step over source code lines rather than instructons, but debug ...Show All
ITfJ How to convert an Icon object to ImageSource?
How can I convert an Icon object to an ImageSource object. I want to set the Icon of a window, but the Window's Icon property needs an ImageSource object. Thanks! Hi, how about the reverse by this i mean converting an WPF ImageSource object to a System.Drawing.Icon object. A scenario where this is used is if i want to display a system tray icon using the WPF app icon with System.Windows.Forms.NotifyIcon object, without duplicating the resource. thanks, nick Look at the example: http://msdn2.microsoft.com/en-us/library/system.windows.window.icon.aspx You can do it from XAML or directly from your code. If you're saying you have your i ...Show All
DQM Question about links and fonts in a textblock control....
Is it possible to modify color of a text in a WPF textBlock control Also is it possible to make a text, in a textblock control, a link (to be more precise, I would like to have a text - let's say "Click here", and clicking that "link" would open a web page (for example www.example.com ), in a web browser) Any help is greatly appreciated. Kind regards, Marko Vuksanovic. this should help http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=479251&SiteID=1 Is there a way I can bind the text (for example, click here in the above example) property to some source. I tried using: < TextBlock Text="{Binding Title}" > < Hyperlink TextBlock.FontSize = " 15 " Navigate ...Show All
ooboyle [VSTO V3 / Office 2007] Data Binding an Image Content Control
Ok, I'm going to be crazy :) According to the suggestion provided by Cindy, I'm trying to bind an Image Content Control to a XmlPart But here is what I have: Data bindings cannot be created for rich text content controls. So, what can I do now Is it possible to bind an Image Content Control If you need to see my code, feel free to ask me :) Thanks Hello Cindy, Here is the code I'm using: Word. ContentControlListEntries CommerciauxDropDownList = (Word. ContentControlListEntries )ContentControl.DropdownListEntries; foreach (Word. ContentControlListEntry entry in CommerciauxDropDownList) { if (entry.Text == ContentControl.Range.Text) { String SelectedId = entry. ...Show All
odinlai Quick Binding question....
This will hopefully be a very easy question... In the below example, the TextBox always displays the correct, bound, value from the dataprovider. But "MyControl" always displays the FallbackValue ("test") even though the binding expression is identical. I'm a bit confused as to why this should be <StackPanel DataContext="{Binding Source={StaticResource BTTC}}"> <TextBox Text="{Binding Mode=Default, XPath=/Root/Number, FallbackValue=test}"/> <local:MyControl x:Name="_myControl" Text="{Binding Mode=Default, XPath=/Root/Number, FallbackValue=test}"/> </StackPanel> public class MyControl : TextBox //FrameworkElement//, INotifyProperty ...Show All
kenlefeb Blank Space on Right side Within Report Viwer(& show Horizental Scroll)
Hi dears, I have a problem regarding Report Viewer Control( for Win Forms). I have Page Header/Footers in my reports (client side .rdlc) When report viewer loads the report (each has 8.5 X 11.0 Page size defined & It has very accurate size) Viewer Shows Some Blank Space on teh Right Side of Report (which is not inluded into Report ,I have checked it by setting Backcolor of report, It shows the Emplty space white always & it shows it ONLY WHEN the PAGE HEADER/FOOTER is used DUE to this Report Viewer starts showing horizental Scoll, Scroll can be disappear if it ommit the Page Header/Footer So Please Help me to find out this Problem I will be Thank Full Mansoor I would like t ...Show All
XBTester Many-to-many relations query
I have two tables (Customers, Departments) and an association table (Customers_Departments). I would like to create an asp.net gridview related to a Customer and with an entry foreach department with a checbox which indicates if the Customer belongs to the Department. Which is the best and more efficient query to fill the gridview Any help appreciated, thanks Maybe the grouping join is the solution. I wrote this code: var x = from d in db.Departments join cd in db.CustomersDepartments on d.Guid equals cd.DepartmentGuid into n where customerGuid == cd.CustomerGuid select new { Department = d, Assigned = n.Count > 0 }; but i receive the following error ...Show All
