Click here to Skip to main content
15,891,375 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: .NET 3.5 vs .NET 2.0 Pin
idhiCodeProject18-Feb-09 4:24
idhiCodeProject18-Feb-09 4:24 
GeneralRe: .NET 3.5 vs .NET 2.0 Pin
Eddy Vluggen18-Feb-09 4:30
professionalEddy Vluggen18-Feb-09 4:30 
Question[Message Deleted] Pin
Maxy5517-Feb-09 3:56
Maxy5517-Feb-09 3:56 
AnswerRe: how to implement Multi-Tenant Data Architecture in asp.net 2.0 Pin
Pete O'Hanlon17-Feb-09 4:04
mvePete O'Hanlon17-Feb-09 4:04 
QuestionUrgent Menu Querry Pin
Member 284246817-Feb-09 1:55
Member 284246817-Feb-09 1:55 
AnswerRe: Urgent Menu Querry Pin
Pete O'Hanlon17-Feb-09 2:01
mvePete O'Hanlon17-Feb-09 2:01 
AnswerRe: Urgent Menu Querry Pin
Leonardo Muzzi17-Feb-09 3:36
Leonardo Muzzi17-Feb-09 3:36 
QuestionControlling the ToolboxItem control type during a drag operation Pin
astibich216-Feb-09 20:04
astibich216-Feb-09 20:04 
I am currently writing a custom toolbox window for Visual Studio 2008, using the SDK. When the user drags from the list, I start a drag drop operation using ToolboxItem as the drag data.

ToolboxItem tbi = new ToolboxItem(myControlType);
IToolboxService serviceToolBox = (IToolboxService)GetService( typeof(IToolboxService));
object tbiSerialized = serviceToolBox.SerializeToolboxItem(tbi);
this.DoDragDrop(tbiSerialized, DragDropEffects.Copy);

When they drop the ToolBoxItem, I use the 'ToolboxItem.ComponentsCreated' event to write some extra setup code on the control

void dropToolBoxItem_ComponentsCreated(object sender, ToolboxComponentsCreatedEventArgs e)
{
// write custom control config code here
}

However, I'm finding that I sometimes want control over the ToolboxItem control type, based on UI conditions during the drag. For example, I may want to create a different control on the designer if the user holds down the shift key. Sometimes I want to block the drop completely. Unfortunately, I don't see a way to change the ToolboxItem after I start the drag. It seems like the 'ToolboxItem.ComponentsCreating' event was meant for this kind of intervention, but I can't change the control type when the 'ToolboxItem.ComponentType' property is read only.

I've tried a few hacks (like deleting the control after drop and re-creating the new control type), but none of it has worked out very well. Anyone have any ideas?

Thanks,

Aaron
QuestionCounting Bandwidth/Data Whilst Consuming a Web Service Pin
SharpenedC16-Feb-09 14:51
SharpenedC16-Feb-09 14:51 
QuestionCrystal Report Error on VS2005 Pin
bobbymale7716-Feb-09 11:45
bobbymale7716-Feb-09 11:45 
QuestionActive Directory Group Pin
sheebalam11115-Feb-09 23:36
sheebalam11115-Feb-09 23:36 
AnswerRe: Active Directory Group Pin
Mark Salsbery16-Feb-09 5:29
Mark Salsbery16-Feb-09 5:29 
QuestionReadonly SelectionList Pin
mandrew36015-Feb-09 21:49
mandrew36015-Feb-09 21:49 
AnswerRe: Readonly SelectionList Pin
Mark Salsbery16-Feb-09 5:30
Mark Salsbery16-Feb-09 5:30 
QuestionManagement of mulitple instances of an application Pin
jimmov115-Feb-09 16:01
jimmov115-Feb-09 16:01 
Generalcross-post Pin
Luc Pattyn15-Feb-09 16:38
sitebuilderLuc Pattyn15-Feb-09 16:38 
Question.net obfuscation tool Pin
koleraba15-Feb-09 3:52
koleraba15-Feb-09 3:52 
AnswerRe: .net obfuscation tool Pin
Eddy Vluggen15-Feb-09 4:06
professionalEddy Vluggen15-Feb-09 4:06 
GeneralRe: .net obfuscation tool Pin
koleraba15-Feb-09 6:12
koleraba15-Feb-09 6:12 
GeneralRe: .net obfuscation tool Pin
Eddy Vluggen15-Feb-09 7:48
professionalEddy Vluggen15-Feb-09 7:48 
AnswerRe: .net obfuscation tool Pin
Giorgi Dalakishvili15-Feb-09 7:46
mentorGiorgi Dalakishvili15-Feb-09 7:46 
AnswerRe: .net obfuscation tool Pin
SharpenedC16-Feb-09 14:57
SharpenedC16-Feb-09 14:57 
Questiondeployment of windows application Pin
murali080814-Feb-09 21:19
murali080814-Feb-09 21:19 
AnswerRe: deployment of windows application Pin
Curtis Schlak.25-Feb-09 8:08
Curtis Schlak.25-Feb-09 8:08 
Questionvs2008 ans 3.5 sp1 problem with System.Web.Extensions Pin
icewolf_snowfire14-Feb-09 14:29
icewolf_snowfire14-Feb-09 14:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.