Answer Questions
AlexBB Dragging forms around with mousedown
Just wondering - just looking at my code at the moment... I've got a login form to capture mouseclicks anywhere on the form surface and be able to drag it. I had to use the below to pass the window handle to the API function. Dim objWindowInteropHelper As WindowInteropHelper = New WindowInteropHelper(Window) ReleaseCapture() SendMessage(objWindowInteropHelper.Handle.ToInt32, WM_NCLBUTTONDOWN, HT_CAPTION, 0) Is this do-able within WPF itself Chris you can use Thumb and handle Drag Delta Event or you can use Window.DragMove method Thanks man... I used the DragMove method on the Window_MouseLeftButtonDown event. :-) Chris ...Show All
Stojance Problem with passed parameters
Hi. A question please. When I run my VB application that generates a crystal report, it asks me for parameter inputs. I send the those parameters from VB to Crystal and I see them on the reports. It works fine, but for seeing them on the reports I must cancel the input of parameters at the begining. Any idea Thanks... Thanks, I was doing that, but I get the same thing... I show you my code: CrystalReport = New CrImportRE() CrystalReport.SetDataSource(Auxdataset1) CrystalReport.SetParameterValue( "filename" , XmlFile) CrystalReport.SetParameterValue( "total" , CountRETotal) ==== CrystalReportViewer1.ReportSource = CrystalReport CrystalReportViewer ...Show All
Louis Jaramillo Installation Issue
Hey gang. I have installed the August CTP so I can try some of the code generation but I am not seeing the template in my project listings. I am running on Vista. Any clues Any help would be greatly appreciated. I have this environment working on Vista RTM. For the install I ran a command shell as Administrator and then launched the MSI files from the command shell. It may be that the setup isn't able to place the templates in the right location otherwise due to permissions issues. -Lance Anyone When I create a new project I don't see it listed. But I did install the CTP. Thanks and take care. Please tell me a little ...Show All
Elia Ardizzoni How to display Bitmap in Image ReportItem (Local)
Hi, I am new to vs2005 and C#. Chart is not good for my requirements. I draw the graph in Bitmap mybmp in form1. I have image1 in Report1.rdlc I have set Source of image1 as External. How do I get the value property of image1 to show mybmp Also how to set image1.hidden at runtime from form1. Thanks ...Show All
ChrisSmith DataBinding vs Static classes
Working on May CTP... I'm trying to bind to a static class : public static class MyCommands { public static RoutedCommand ClearAll; static MyCommands () { InputGestureCollection ic = new InputGestureCollection(); ic.Add(new KeyGesture(Key.P,ModifierKeys.Control)); ClearAll = new RoutedUICommand("ClearAll", "clear", typeof(Window1),ic); } public static string Name { get { return "ok"; } } } And trying to use it on a Menuitem <MenuItem Name="mi1" Command="c:MyCommands.ClearAll"" Header="x:Static c:MyCommands.Name}" /> Everything works fine if i remove static operator on classe definition, any idea why You're right, probably is my installation that's fau ...Show All
Nickolai ListView SubItem?
XAML Code: < ListView Background = " {StaticResource BG} " Name = " lstQueue " SelectedValuePath = "" > < ListView.View > < GridView > < GridViewColumn CellTemplate = " {StaticResource CheckBox} " Width = " 25px " /> < GridViewColumn Header = " Queued Links " /> < GridViewColumn Header = " Progress " /> </ GridView > </ ListView.View > </ ListView > When ever i use lstQueue.Items.Add(temp) the listview will add to main column and subitems column. How do i add differnt text to subitems like listview in .Net 2.0 Thanks!!! Could you giv ...Show All
Mortsdeh MsoControlType, where is the office.dll
I'm developing a VSPackage. It looks like I will need to use MsoControlType.msoControlPopup, I know it is in the Office namespace, the help docs indicate the functionality is in office.dll but I cannot locate this on disc, where is it located, is it now a .NET namespace Thanks again Carlos. LP. If you are using VS 2005, use the new Microsoft.VisualStudio.CommandBars.dll library. If you are using VS.NET 2002/2003, use C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Office.dll ...Show All
Smylie How to pass parameters to a DataBinding in XAML? - I want (need) to seed the construction of the DataBinding source object.
I have a set of generic (generalized) DataBinding source objects, each of which maps to a different UI control type (eg. collections for ComboBox, single value for checkbox, etc.). <CheckBox.IsChecked> <Binding Path="Value" Source="{StaticResource SingleValueBinder}" /> </CheckBox.IsChecked> or <ComboBox Name="MyCombo" Height="21" Margin="20,20,20,20" ItemsSource="{Binding Source={StaticResource ItemsSourceBinder}, Path=Values}" IsSynchronizedWithCurrentItem="True"> </ComboBox> These objects are basically serving as adaptors and internally map to a host of specific object values. I need someway to specify which of the unde ...Show All
J. Clark How to compiler a project
Hi guies, so far I can compile a project use BuildProject method.But if I use this way then the project has to be saved in hard disk.I want to finish everything in memory. Who can help me thanks a lot When you create a project using Visual Studio, the files are created on disk and not in memory so the files will be on disk before you do a build. Craig I already soleved it, please do not reply this post again That was possible until Visual Basic 6.0, but all VS.NET projects are saved on disk. Even the new temporary projects of VS 2005 are saved on temporary folders giving you the illusion that they are in memory but no. If you are doing something with a project that you create and you want remove after compiling it, ...Show All
jwize WindowsFormsHost and AllowsTransparency="True" conflict.
Hi, I am having this issue while developing a WebBrowserApplication(with full trust) using .Net FX 3.0 June CTP. I am able to see the WindowsFormsHost hosted Workflow designer Control as long as I don't set AllowsTransparency of the Window to true. If I set AllowsTransparency of the window to true, the workflow designer disappears, though I'm able to see it's context menu on right clicking the area where it is supposed to have rendered. Ram. See my responses on this thread . ...Show All
Flack Event for TextSelection in code editor
Hello, I faced with a problem to determine when user changed text selection in code editor. My functionality should add SmartTag with a button to selected text. But I found the following post which reported that there is no such event! Anyway, I think that there is a solution to that! Any suggestions Please help. You can try the new (VS 2005) EnvDTE80.SelectionEvents class, OnChange event that you can get through objDTE.Events, casting to EnvDTE80.Events2. Thank you for the answer. I tried to use IVsSelectionEvent.OnSelectionChanged in my VSIP package to determine when user changed selection. I subscribed using IVsMonitorSelection.AdviseSelectionEvents method. But unfortunately, OnS ...Show All
su45937 Can VS 2005 professional and VSTO 2005 co-exist??
I have both but I can't get them to work together as one product... Is it possible to install both products and work with them together I wanted to make a Word Document but I don't have the option to do so in my VS 2005 Professional :( Any Help Hi Christian You have VS 2005 Pro installed. What happens when you try to install VSTO 2005 "First edition" Do you get error messages Are both VS 2005 Pro and VSTO 2005 the same language version Or is one perhaps Spanish and the other English You can't install two different language versions of VS on the same machine. If this is the problem you can uninstall Pro and install VSTO. Or install VSTO on a virtual machine. Why don't you try uninstalling the Spanish version o ...Show All
Alvin Kuiper What ever happened to ObjectSpaces?
Or more specifically how is this next version different from ObjectSpaces Why didn't ObjectSpaces ever ship I remember first playing around with ObjectSpaces almost 4 years ago! We were continually promised that the ship date was "just around the corner". I think the last I heard was that it was going to be merged into the now-dead (castrated ) WinFS product. What sort of lessons have you learned over the years from the failure of ObjectSpaces and the maturing OR/M market in general It seems like many vendors (Frans and his LblGen Pro product to mention one) and open source alternatives (Hibernate and it's red-headed step sister nHibernate) are already years ahead. What I've seen so far seems encouraging but honestly not anym ...Show All
CharlieRussell Why does Exec not have
Both a Program and a Command attribute It's a bit of a pain to always put a "" around the command part in case it has spaces in it's path. thanks - dave ..so which one of those is the arguments MSBuild team: if you implement this then for pete's sake choose a good name.. (But I much rather see that Exec task logged the working dir at least on the more verbose levels) done program is the application and commandline is the command line. thanks - dave Could one of you open a suggestion with both these ideas and exactly how you'd like to see it work Instructions at the top of the forum. (It's not because I'm too slack to do it myself. :-) It's because you can track it that way.) Dan ...Show All
Ntc TransformToAncestor & VisualTreeHelper.GetOffSet()
I have written a little programme to retrieve offset value of child element relative to its parent element using TransformToAncestor and VisualTreeHelper.GetOffSet(), but one stunning discovery I made is that both two methods return different value If I have a RenderTransform applied to the child element, here comes the code: Window1.xaml: <Window x:Class="TransformToAncestorDemo.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="TransformationDemo" Height="300" Width="600" > <StackPanel Margin="16" Background="Green"> <StackPanel Margin=&qu ...Show All
