.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Not able to drop Picked ToolBox Item on ToolEditor Window.

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :WPF

We have a editor designer on a tool window. We have used a WPF usercontrol to contain this designer.
This usercontrol has child control WinformHost which hosts my designer surface which in our case is a Winform Usercontrol.

In short

(Tool window---> WPF User Control---> WinfromHost---> DesignerSurface)

Now we have Implemented IVsTooBoxUser interface that supports Itempicked and isSupported method.
We are able to pick that item from ToolBox and drag on ToolBox up to the Boundary. But when we enter with that item in
Editor Tool Window we are not able to drop that item at our editor tool Window. Cursur changes to No Drop state.

Above implementation is done using VS 2010 in integrated enviroment.

Please suggest any soultion to drop that picked item on the editor tool window.

Thanks in advance




View Complete Post

More Related Resource Links

how to in Insert database NULL if drop down list item is not selected ?

hi,   on my aspx I have the below DDL   <asp:DropDownList ID="ColorDDL" runat="server" DataSourceID="ColorObj"                                                 DataTextField="Size" DataValueField="BustId" Width="150px"                                                 AppendDataBoundItems="True">                                                    <asp:ListItem Value="-1">(Optional)</asp:ListItem>                             &n

How can I highlight entire horizontal row span of selcted WPF TreeView item in containng window?

I have created a TreeView inside a UserControl in my project. By default if one selects a TreeViewItem, then the entire row is highlighted but with in the tree, e.g.-----------------------|   + A123            ||      + B123         | |      + ///////        ||   + A234            |----------------------- Where "///////" is highlighted/selected TreeViewItem. What should I do to make the selection/highlighted area to span over entire window horizontally? e.g. ----------------------- |   + A123            | |      + B123         | |/////+//////////////| |   + A234            | -----------------------

How to implement Design-Time drag & drop from Custom Visual Studio Tool Window to WPF Designer

Hi, Could someone tell me if it is possible to intercept a design time drop event coming from a custom Visual Studio tool window onto the cider design surface? I am hoping to use the same API's as those used by the Visual Studio 2010 'Data Sources' tool window, which provides drag & drop data-binding between classes and WPF/Silverlight controls. My requirement is to pass a DataObject (used with the WPF DragDrop API) from my custom Visual Studio WPF tool window treeview to my custom WPF control at design time, read the data and do some binding/XAML manipulation of my own. The drag aspect is simple enough but I can't work out how to accept a drop event from anything other than the toolbox. At the moment, when I drag my treenode over the design surface it shows the 'cannot drop here' cursor. If someone could give me some insight into how the 'Data Sources' tool window allows dragging of treenodes to controls I would really appreciate it. It is obviously possible but which API's are used and are they public? Thanks in advance, Paul  

drag and drop into transparent canvas on transparent window




Short version: how can I drag/drop into a transparent window.


Long version:

I have a transparent borderless window with a transparent canvas in it. The canvas can hold usercontrols that can be dragged around (like gadgets, widgets).

I want the user to be able to click anywhere outside the gadgets but within the canvas and hit whatever that is behind, like other windows from other programs or icons on the desktop for example. This is easy because everything is transparent except the gadgets. The problem comes when I want to drag new gadgets in from another window. When the window and canvas is transparent, it is not allowed to drop anything on them... (the drop target canvas is not registering any mouse events)

So what I want is some kind of partial HitTestVisibility. For MouseDown in the canvas, it should be HitTestVisible=false, but when I drag something (my own stuff, not  files for example) over the canvas, it should be able to drop it.

I have tried setting the opacity of the background to 0.01 when entering the window with the mouse, that works sometimes if I have a small border that the mouseenter event can trigger on, but if I move the mouse to fast, it wont work.... So a 100% fool proof way of enabling Drop on a transparent control would be nice :)



How to Add Drop-down to Home item on Top Nav?


Hello there.  My company is using SharePoint 2010 Standard, and the way our site collection is structured, I need to be able to show a drop down of the child sites directly under the site collection itself, for the "Home" (root of site collection) item.  While I can show drop-downs for sub-sites easily enough (check show sub-sites), this doesn't seem to have an effect when applied to the "Home" item on the menu.  Any advice about how to add this functionality would be greatly appreciated.

Drop Shadow Effect Not Happening for a Window!



I added a DropShadowEffect to the Main Window and i dont see it when i run the app.What am i missing?


  <DropShadowEffect BlurRadius="12" ShadowDepth="15" />



Cannot add the selected toolbox item to the package.Could not load file or assembly 'Microsoft.SqlS



I recently installed SQL server 2008 entreprise edition on a windows 7 machine but I'm surprised by the error

Cannot add the selected toolbox item to the package.Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one

when I dragged a task to the scene

Thank you

The complexity resides in the simplicity

Why is the "WCF Services" entry in the Add New Item window in VS 2010 missing? How to show it?


Why is the "WCF Services" entry in the Add New Item window in VS 2010 missing?  How to show it?

I've noticed that several templates are missing in the Add New Item window in VS 2010.

How can i get the WCF Services to show?


Drop down remove selected item on post back


Hi ,i have a place order form and i have a drop down list that contains list of items

whenever i add item (for example item1)  to place order and click add another item button,

i need to remove  (item1 ) from drop down list to avoid dupplicate insert in sql table

or mayb need to fill the drop down but without (item1) cause i already selected it

it s kind of validation

i am using sql datasource to fill the drop down list of items

How to remove blank item from infopath form in drop down list



how to remove the blank item from the drop down box which is used in infopath form..




Drag and drop the dockable window to the desktop



I am using MDI Container in which am using Dockable Container. In Dockable Container, I have used multiple windows which are docked.

Now, when user drag the dockable window then it will be undock and allow user to drop it to the desktop. Also this window is shown in the taskbar.

Can anybody tell me, what should I do for it?

Cannot drag and drop toolbox items


Hi Experts,


I sudenly cannot drag and drop items from the toolbox to the Design view or the source view.

I recently added the Ajax toolbox in and this started to happen.


I reseted the toolbox to original version and still I have this problem.


Any idea how I can resolve this?

Binding the multiple drop down boxes in GridView using JQuery in ASP.NET

Here is the code for binding the multiple drop down boxes in GridView using JQuery in ASP.NET

Modal popup window in ASP.Net

A Masked div or modal popup window is a child window created from the parent window which prevents the user from interacting with parent window before he returns to the parent application.

lossing focus from model pop up window controls


hi i using a model pop up window with some textbox but when i click on textbox of model pop up focus move to back to page textbox control plz help me 

Missing 'new item templates'


 Hi all,

          I am a 'newbie' to VWD and I am slowly working through the Basic Walkthrough Help files, and learning plenty along the way.

However, when I tried to create a new database in the LINQ control walkthrough I found that the option to create a new database is missing, and further investigation has found that many other new item templates are missing.

I am using a brand new machine with Windows 7 Ultimate and have enabled IIS and .NET from Control Panel-Programs-Turn Windows Features On-Off. I used the WPI to install all basic elements eg. IIS Components, SQL Server Express.

The only 'new item templates' I have when I right-click the App_Data Folder and choose 'new item' are:-

ADO.NET Data Service

AJAX Enabled WCF Service

Dynamic Data Field

SQL Server Database

Text File

XML File

Does anyone know where I have gone wrong.


Michael J. Hill

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend