Answer Questions
Bo Yu Quick Question - Class designer code templates
It probably is a simple one. Is there a way to specify a custom code template that the CD should use for generating code Something like what Visio Architect edition does. Thanks Sorry, there is no mechanism to specify custom code templates in V1. Ramesh Rajagopal. Class Designer Team. Will there be a possibility to change (part of) the code templates that the class designer uses when generating code in the future It would be nice to do this on a detailed level. FI to be able to split the private field declaration and Property accessors. Thanks ...Show All
CodeButcher There was no channel that could accept the message with action
I am using the UDP Transport sample from the RTM SDK, with a tiny mod to make it use the same socket for both receive and transmit. I am doing a WS-Discovery test tool for the devices we build. I have implemented Probe/ProbeMatches as a request/response, and it works fine. Because there is more than one ProbeMatches response possible to the Probe (from different devices), I want to divide my code into a one-way transmitter for the Probe, and a one-way receiver for the ProbeMatches response(s). When I do this, I keep getting the exception message (in the trace file) "There was no channel that could accept the message with action... followed by the ProbeMatches action (which is http://schemas.xmlsoap.org/ws/2005/04 ...Show All
S Hussain SQLMetal
In the final version of SQLMetal, it would be really nice if it would make multiple files using partial classes, or 1 file per table. I ran it for giggles and grins on one of our larger DB's, without doing Procs or Views it created a 220K line file that lets say Visual Studio choked on just a little. Even if Metal goes away in the final release thought needs to be put into the class/file structures to handle enterprise systems that can have a 1200+ tables as is our case, plus cross DB and Linked Server queries. Most codegens will do a single file per table, while this is a lot of files it is far better than massive class files. I agree, though I'd also hope that in the future SqlMetal will give you far more control over ...Show All
SpeedOfSPin Image Slicing
Is there any way to use image slicing in WPF I have a PNG image that I want to use a a button background, but I need to slice it to get the scaling correct. I see the WmpBitmapEncoder has the slices properties, but I am not sure how to use it. Thanks, Joe Ah, I see what you mean. What you should use is a few CroppedBitmaps. Create one BitmapSource with the original image, and then create the necessary CroppedBitmaps from the original. Breaking up the image into 9 pieces, like a tic-tac-toe board. The 4 corners wouldn't be resized. The top and bottom would only be stretched vertically, left and right stretched horizontally, and the center be stretched to fill. ...Show All
David d48701 Project Item Templates
Hi all, I'm developing a new project wizard which has to create both new projects and project items according to project and project item templates that we've created and tested. The problem I'm having is this: The new projects are being created correctly with the new template via (Solution2) GetProjectTemplate() but whenever I try to create the project item from its template via (Soluntion2) GetProjectItemTemplate() it throws the following exception: System.IO.FileNotFoundException Message: "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)":null Source "EnvDTE80" string As I mentioned both templates have been tested and appear in the proper VS dialogs. It just seems tha ...Show All
Nonu_k t4 in a custom/stand alone tool
Hi, I don't really know too much about the DSL tools but I was just wondering if the t4 template engine could be used and distributed with a custom/stand alone tool eg. Can this actually be done, are there any dependencies that would restrict this, what are the license terms If not, does anyone know of any similar template engines (open source or commercial) Thanks, Wade. Thanks for the info. Sorry for the delayed reply. Vascation and finalizing the V1 release has taken its toll. When V1 of DSL Tools (with the VS SDK V3 to be released in early September), you'll be able to redistribute the dsl tools runtime (redist), that requires VS Standard or above to be used. ...Show All
Rumy...... Simple Type Binding
Hi all, I'm sure what I want to do should be easy, but it has got me stumped (and unless I can get it sorted quickly I may have to revert back to Windows.Forms!). I've got a window with a CheckBox on it. In the code, I have a class with a static Boolean. How can I make a binding between the two (bi-directional ideally) so that I don't need to write OnChecked type handlers. In the Window.Resources I added: < ObjectDataProvider x:Key = " MapInfo " ObjectType = " {x:Type ds:MapDisplay} " /> The control itself is defined as: < CheckBox IsChecked = " False " Content = " Show something " DataContext = " {Binding Path=IsGridlineVisible, Mode=TwoWay, Source={Stat ...Show All
Greg Visscher thnx ..installation problem in SCSF...
Hi, I am using .net 2.0/VS 2005 , Prev. I have used entlib 2.0 jan 2006,so its alreay installed in my Win XP-SP2 machine Now I have another reqmnt. to develop a smart client appln. using smart client s/w factory. so successfully installed GAT, but not GAX(it shows the fatal error) , last week tried to create guidance packages thru vs 2005 -->new project.. but in the templates page( RH Side) theres no smart client dvlpmnt project . so i tried to unsitall GAX/GAT, so that i will get a fresh installation. but during the Uninstallation i got "Fatal error during installation". so i hav gone thru this forums , & deleted the entries from recipeframework.xml file,( got from Tom Hollanders blog) && also deleted the entries ...Show All
Peter Huber Immediate Window Missing after installing SQL Server Business Intelligence Development Studio
I have a virtual server with VS.NET 2005 and SQL Server 2005. I use the Immediate Window quite frequently when debugging. I recently installed the SQL Server Business Intelligence Development Studio in order to use SSIS. When I opened VS.NET and my projects, I no longer had the Immediate Window. And it was no longer an option when I go to the menu item Debug --> Windows. I had to Reset all of my settings via Import Export Settings just to get it back. This is extremely annoying. ...Show All
ZopoStyle Ho do i get a reference to underlying dataobjects from a ListBox
Hi, i am using a databound listbox with datatemplates for the individual items. The questioni is how do i get a referece to the actual corresponding dataobject when the user select an item thanks boris Since you are not explicitly adding ListBoxItems to the control, you can get the selected data object by accessing the ListBox's SelectedItem property. Thanks for you reply. Yes i tried that an were able to extract the selected Listbox Item in the OnSelectionChanged Event and cast it to my dataobject. Cool. But now i run into some eventhandling question. In the actual case the datatemplate defines a Button what when is clicked should initiate some action passing the da ...Show All
Peejj Controlling and detecting what elements are droppable on the diagram and other elements
Hi, I've created my first DSL which can accept DSRef items from the server explorer. To implement I followed some samples which are already described on the forum. In an overriden OnAssociated I bind the DragOver and DragDrop events and check for a CF_DSREF type. This is all working OK and I'm creating business objects, attributes and relations fromt the database metadata. My issue is that I managed to change something in the DSL which prevents business objects being dropped from the toolbox onto the diagram. So I'm looking for leads on which properties control this behaviour and where in the underlying DSL tools framework sources I can debug to get more knowledge of how this is implemented. Grtz, Harry ...Show All
AlexVallat How to open a contextmenu from code?
Hi, I have a TextBlock and want to open its ContextMenu when the user Clicks on the TextBlock. So I override its OnLeftMouseButtonDown-method and have no clue what code I should write to achive this. :( Can you help me Greetings cheesenhomer did you try IsOpen=true Thats it, Thanks! cheesenhomer ...Show All
pire Add property as a combox to a datagridview wrapper control
Hi All, I am customizing the datagridview , and have to add a property to the customized grid control. The property should be such that developer is able to select a value from the combobox. This combobox in the property window should behave in the same way like the AutoSize property where we choose True or False. In my property I will ask the developer to choose a string value which will be there in the dropdownlist of the combobox. Someone please provide with a solution. Thanks in advance. RajKat ...Show All
cxroh .svc Page Not Found
Hello! I was experimenting with certificates and ended up messing the IIS metabase file. As a result, I had to reinstall IIS. After the IIS was reinstalled, trying to browse an svc file results in a page not found error. I have tried the following: 1. explicitly adding the .svc extension to the root website as well as my virtual directory. 2. Uninstall and reinstall .NET 3.0 3. running the servicemodelreg.exe at command prompt with -i and -r options and also -i -x Please help. Got it! running aspnet_regiis.exe - i -enable did the trick. ...Show All
John Wesley Harding Can instal GAT (and MobileClient! ;( )
I have: 1) Windows XP Pro Polish 2) Visual Studio Pro with many addins and DSL 1 localized on D: drive 3) Plenty different SDK (from Intermec, HHP, Microsoft etc) Here is message from event log (sorry it is in Polish, but probably you got additional necessary info) : Typ zdarzenia: B d rod o zdarzenia: MsiInstaller Kategoria zdarzenia: Brak Identyfikator zdarzenia: 11001 Data: 2006-09-20 Godzina: 12:12:36 U ytkownik: MKIEREPKA\kierepkam Komputer: MKIEREPKA Opis: Nie mo na znale opisu dla identyfikatora zdarzenia ( 11001 ) w rodle ( MsiInstaller ). By mo e komputer lokalny nie ma wymaganych informacji rejestru lub plikow DLL potrzebnych do wy wietlania komunikatow z komputera zdalnego. Mo esz u y flagi /AUXSOURCE= do pobra ...Show All
