designer

The designer cannot process the code at line 115, please see the task list for details

大城市里の小女人 提交于 2019-12-11 11:17:13
问题 This is the error I get when I open the designer in VB.NET The designer cannot process the code at line 115, please see the task list for details. The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again. http://prntscr.com/6e1fnq <- Screenshot I have had this happen MANY times now. Here's my designer code: <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _

Visual Studio Designer not showing controls for UWP Apps

限于喜欢 提交于 2019-12-11 06:40:02
问题 XAML Designer is not displaying controls in a way they are visble. The controls are there, if you click where one should be the outline borders are highlighted and the proper xaml code is selected. With nothing selected it looks like a blank pallet with just the page outlined. I have tried the blue, blue extra contrast, dark and light color theme. Same issue all themes. I have also tried switching between ARM, x86 and x64 with issue in all three. There are no messages in the Error List. Have

Xamarin.Android - layout designer blank

半城伤御伤魂 提交于 2019-12-11 06:06:44
问题 Today I opened a project to find that none of its layouts will render in the designer. I am pretty sure it is not an issue with my AXML as the app works fine when built. Visual Studio is up to date (15.9.9) and will display layouts in other projects without issue. My layouts are in the correct location (Resources/layout). I have tried - Cleaning and rebuilding Deleting the bin/obj folders manually and rebuilding the project Turning Accelerated Rendering on/off in Options/Xamarin/Android UI

“Prefix '…' does not map to a namespace”, A designer bug?

故事扮演 提交于 2019-12-11 06:03:18
问题 My application runs and works absolutely fine. Now I want to use the VS2012 designer to design my MainWindow which is derived type of the HandledWindow from a different library. Here is my XAML code for MainWindow : <UI:HandledWindow x:Class="Diamond.Executor.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:UI="clr-namespace:Diamond.Core.UI;assembly=Diamond.Core" Title="MainWindow" Height="250" Width=

Square mouse pointer in Visual Studio 2008 designer

旧时模样 提交于 2019-12-11 05:19:32
问题 A strange issue with Visual Studio 2008. I have a winforms application that contains several forms. On one of my forms, the mouse pointer has a square shape around the arrow, like in the attached image. I cannot get rid of it, no matter what I tried. The square keeps moving along with the mouse pointer. Seems funny, but it's really frustrating, really, because I cannot use the drag-and-drop functionality at all. This prevents me from working with the designer. Imagine that I cannot grab the

How to work with Master Page that is attached to the page via the page's basepage?

一世执手 提交于 2019-12-11 02:18:49
问题 In my ASP.Net web application, I have a base page that implements functionality that spans all pages of the web application and my web pages derive from this base page. Since there is a single master page for the entire website, I don't want to attach the master page in each of the web pages. So I attached the Master page via the basepage's OnPreInit method as follows: protected override void OnPreInit(EventArgs e) { this.MasterPageFile = "~/Site.master"; base.OnPreInit(e); } However, when I

C Prototype scope

老子叫甜甜 提交于 2019-12-10 18:38:54
问题 I learnt that the type specifier that declares the identifier in the list of parameter declarations in a function prototype (not part of a function definition), the identifier has function prototype scope, which terminates at the end of the function declarator. Please see the C program mentioned below. void fn (struct st {int a;} a, struct st b) ; struct st obj ; Compilers promptly issues an error as 'obj' size is unknown (or) struct st is not a 'type'. That's right! the declaration of the

Visual Studio: Design a UserControl class that derives from an abstract base class

谁说我不能喝 提交于 2019-12-10 17:57:09
问题 I want to have an abstract base class for some of my custom UserControl 's. The reason is obvious: they share some common properties and methods (a basic implementation of some elements of an interface actually), and I want to implement them only once. I have done this by defining my abstract base class: public abstract class ViewBase : UserControl, ISomeInterface Then I went to implement one of my views, as usual, with the designer: public partial class SpecialView : UserControl //all OK Up

Why does specifying a numeric value for a control's property in the designer result in new decimal(new int[] {… in the code?

[亡魂溺海] 提交于 2019-12-10 17:46:23
问题 In my C#.Net WinForm app in VS2005, I have a NumericUpDown control. In the designer, I set the Minimum property of the NumericUpDown to -65535. In the form's .designer.cs code, I expected to see this: this.myNumericUpDown.Minimum = -65535; but instead I get: this.myNumericUpDown.Minimum = new decimal(new int[] { 65535, 0, 0, -2147483648}); I know what this means from looking up the int32[] decimal constructor, but why does the designer use that form instead of putting the value I entered, or

Fire events during design-time?

半世苍凉 提交于 2019-12-10 16:38:18
问题 I'm currently designing a custom tab control class which derives from System.Windows.Forms.Control. The problem is that no (at least none of the ones I have tested, which include mouse as well as keyboard events) events get fired during design-time. This is a problem to me as being unable to switch between tab pages in the designer is quite inconvenient to the user. I've been doing some research and it seems that what I am trying to accomplish is not possible. This has made me wonder, as a