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

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

Visual Studio designer event problem

Posted By:      Posted Date: August 27, 2010    Points: 0   Category :ASP.Net

Hi there

I have a small issue that I'm sure others have experienced - but haven't yet found a solution / workaround for this.

When adding controls to Visual Studio in designer you normally get a event button (the yellow flash light) in the properties window.

But when you nest a button inside a placeholder (for example) you cannot mark the button from the designer - only the placeholder! When trying to go into "split-view" on the designer you'll be able to mark the button in the bottom of the designer - but only properties and not the event button appers in the properties window!

I know that you can go into codebehind and manually add the event but I thiink it is really tiresome to do so if I don't have to...

I had a small hope that VS2010 the issue would be gone but sadly it isn't...

Anyone ever found a solution for this one?

Kind regards Thomas

View Complete Post

More Related Resource Links

Visual Studio closes itself by opening aspx-Page designer after Windows Update


Hey Guys,

I've a problem with my Visual Studio.

On the 13th of August 2010 i installed a Windows update on my vista sp2 pc. For this date my Visual Studio 2008 sp 1 always has closed itself by opening an aspx-page in designer view. There is no error message just closing the window. I restored a backup of my windows from the time before updating it and it helped, i could open aspx pages in the design view till the update has been installed again automatically after rebooting the pc. I can't disable windows updates, cause it's my pc at work and safety is very important. I hope you could help me out of this disaster.



Smart Tags: Simplify UI Development with Custom Designer Actions in Visual Studio


Windows Forms 2.0 components expose smart tags by utilizing Designer Actions. By taking advantage of this feature, you can add smart tags to your own custom components to make setting their properties and other actions much easier and developer-friendly.

Michael Weinhardt

MSDN Magazine July 2005

WPF Designer (in VS 2008 and VS 2010) crashes with Visual Studio

Good day all. I have the following question: WPF designer in both VS 2008 and VS 2010 crashes with Visual Studio when I try to edit UI form. Moreover, it crashes even when I try to save .xaml.cs file. Meanwhile, Winforms and Dataset UI editors work as usual. Are there other people met this issue? And how could I fix up this problem? Deleting the .suo file, uninstalling silverlight, repairing visual studio, and further googling did not help me. Thanks in advance.

Visual Studio 2010, MVC2.0, IIS7, .NET4 deployment problem

I have a problem where I can get an MVC2.0 application using .NET3.5 running in IIS, but when I upgrade it to .NET4.0, the browser just reports error 500 Internal Server Error. The problem is easy to replicate as follows.  Firstly, to show it works with .NET3.5: Create a new MVC2.0 application in Visual Studio 2010, using the inbuilt starter template. Run the application using the development server, and the Home & About pages display fine. Publish the application to a directory. Copy the directory to a subdirectory under inetpub/wwwroot on my Vista computer, running IIS7 Create a new application in IIS Manager & select the DefaultAppPool (integrated pipeline) Browse the application and Home & About pages are displayed. Then the problem I have is after upgrading to .NET4.0: Change to .NET4.0 for the project in Visual Studio Build & this runs fine with the development server. Publish the application & set up IIS as before, except choosing the application pool ASP.NET v4.0 (integrated pipeline) Browse the application, and I get the 500 Internal Server Error I'm guessing there is some extra configuration required - can anyone help? I've deliberately used the default MVC installation to eliminate any variables caused by my programming .. Thanks in advance, Steve

Visual Studio 2008 Failing to Add New Controls into *.designer.cs

I've encountered a situation with my current project where, when I add a new control, VS2008 is not adding it into the associated Designer file.  This is occurring with both a Web Page (ASPX) and a User Control (ASCX).At first I thought it was because I was going into the layout page and manually adding a control that way.  But then when I went back to dragging the controls right from the ToolBox the problem persisted.Why is this happening and how can I fix it?Robert

MS Visual STudio 2010 Beta and SSIS Designer - BI Development Studio

Hello, I am trying to use SSIS Designer with BI Development Studio.  I downloaded MS Visual Studio 2010 Beta and do not find an option to get into either the SSIS Designer or BI Development Studio. Can someone please help?   Thanks, Chela 

Visual Studio 2010 designer UnresolvedAssemblyException

I'm having a problem with Visual Studio 2010 that is proving to be extremely difficult to find a solution for. Any help is appreciated. I have a custom library that handles regular expression validation for me. This library sits plainly on our server for everyone to access. In my most recent WPF application I've been learning about ValidationRules. I created my own custom rule that would simply test the input against a supplied regex pattern. Here's an example of the XAML. <TextBox Grid.Column="2" VerticalAlignment="Center" Style="{StaticResource sTextBox}" Validation.ErrorTemplate="{StaticResource TextBox}" SourceUpdated="ProductQuantity_TargetUpdated"> <TextBox.Text> <Binding Path="Quantity" Mode="TwoWay" NotifyOnValidationError="True" NotifyOnSourceUpdated="True" NotifyOnTargetUpdated="True" ValidatesOnDataErrors="True" UpdateSourceTrigger="PropertyChanged" ValidatesOnExceptions="True"> <Binding.ValidationRules> <vr:RequiredField Label="Quantity" /> <vr:RegularExpression Label="Quantity" ValidationPattern="NumberAbsoluteNoDecimals" /> </Binding.ValidationRules> </Binding> </TextBox.Text> </

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  

Making your own cusctom workflow developed in visual studio 2010 available in sharepoint designer 20

Hi, i have a custom workflow(sequential),developed using visual studio 2010. Now, i want to make it available to sharepoiint designer 2010,as an action.Has anyone done something like dis before? I have tried creating an actions file and changes in web. config ,but when i open my designer it says it cannot find the assembly(my custom worklow). What does it mean,i have tried this method by watching solutions on internet. If anyone has done this task, kindly guide me thanks a lot :)


I'm getting an error when i connect the form(which has a chart object in it) to a database... I've another project where it is already to the database. There i couldn't find the chart object in the toolbox... please help me... PS: i'm using VISUAL STUDIO 2010

problem with visual studio 2008 databases

Hi, I'm new to VS 2008. And as a uni project, we had to create a doctor surgery databases as a group. However, when one of my group member sent me part of her work and when I tried to open it in my VS 2008, I failed to open the database she created. The error was :    " [the database] cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported." I did some research on the Internet and found out that I have SQL server 2005 installed and my friend is probably using SQL server 2008. So I download the SQL server 2008 from the Internet and it was successfully installed in my computer. So now I have both SQL server 2005 and 2008. However when I tried to open the database again, another error occured saying : "This server version is not supported. Only server up to MS sql server 2005 are supported." again I did some research on the Internet and people are saying I have to install the SQL server 2008 SP1 for it to work. But when I'm about to proceed to the installing process, an error appear saying: "there are no sql server instances or shared features that can be updated on this computer". Now I really have no idea what to do... I've been trying to open that database for like 10 hours, and it still won't work. Can anyone please help.

Visual Studio 2008 Cross Reference Problem


Hi to all

I got following warning when I opens my solution...

Warning 1 There is a circular reference involving the import of file "C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.CompactFramework.CSharp.targets". This file may have been imported more than once, or you may have attempted to import the main project file. All except the first instance of this file will be ignored. EM.ShoppingCart

"There is a circular reference involving the import of file "C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.CompactFramework.CSharp.targets". This file may have been imported more than once, or you may have attempted to import the main project file. All except the first instance of this file will be ignored."

I got this error after my VS 2008 crashed three times and after every crash it got restarted and made backup. So three back ups are made in my solution folder... when I got the above mentioned error I moved all the backups from solution but i cant get rid of it....

Thank you;

Visual Studio 2010 WPF Designer loading error


I have the following error when I try to open my xaml file under Visual Studio 2010 WPF Designer :

An Unhandled Exception has occured


Method not found: 'Void Microsoft.Expression.DesignModel.Core.PlatformService.RegisterPlatform(System.String, System.String, System.String, Boolean)'.

Blend 4 trial is however able to open and display this file.

Under Windows 7 Professional x64.

Best regards.



Improving the Start-up Performance of the WPF and Silverlight Designer in Visual Studio 2010 Beta 2


IMPORTANT NOTE: the Beta and Release Candidate builds of Visual Studio 2010 are now obsolete, since Visual Studio 2010 has now released to manufacturing.

See http://www.microsoft.com/visualstudio/en-us/download


NOTE: The Release Candidate and RTM builds of Visual Studio 2010 does not need this configuration change

This post is to let you know about a configuration change (registry switch) which you can use to improve the startup performance of the WPF and Silverlight Designer in Visual Studio 2010 Beta 2.

1. Since this was a late-breaking change, you may experience some instability or increased Virtual Memory usage in some Visual Studio scenarios when using it. If you see such instabilities, please try removing the configuration change, and let us know about the problem you saw (you can do this by replying to this posting or by raising a bug on Connect).

2. You should only make this configuration change if you are a regular user of the WPF and Silverlight Designer, and are experiencing poor performance with it.

3. This configu

visual studio 2010 pro web site running problem


hi friends.

i seted up visual studio 2010 to my pc before 2 mounts and i did not have any problem. after i formated my pc vs2010 not running web site projects. sortly when i run it on internet explorer open but its cant open project. its like there is no any websites, what is problem.

thanks all. 

Unable to open Designer in Visual Studio 2008


I was using VS2008 everything ws going well but one day because of some problem i have to reload the windows and VS2008 and since then i am unable to open the designer.It does not give me any error message but i am unable to use any of the feature after clicking design or view designer from solution explorer.I have tried reinstalling the VS2008 but it does not solve my problem.Can you please help me.??

problem while installing microsoft chart add-on for visual studio


When I tried to install chart add-on for visual studio it was asking for microsoft chart controls to be installed as a pre requisite.

Then I installed .net framwork 3.5 sp1 and installed microsoft chart add-on for visual studio

but microsoft chart control add-on for visual studio is asking for .net framework 3.5 to be installed as a prerequisite.

But if I install .net framework 3.5 i cant install microsoft chart controls because it requires .net framework 3.5 sp1.

Can anyone help me to resolve this issue please.

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