designer

Entity Designer missing

前提是你 提交于 2019-12-23 11:47:27
问题 As the title says, somehow the entity designer disappeared from my installation of Visual Studio 2010. When trying to open an .edmx file, it only opens it in the XML editor. When i choose "Open With...", the Entity designer doesn't show up in the list. It has worked before, and i don't know of anything i could have done to remove it from the list. Does anyone know how i can re-add it? Thanks! 回答1: First thing to check is, is this a problem with your project or with your VS installation. Try

Entity Designer missing

◇◆丶佛笑我妖孽 提交于 2019-12-23 11:46:13
问题 As the title says, somehow the entity designer disappeared from my installation of Visual Studio 2010. When trying to open an .edmx file, it only opens it in the XML editor. When i choose "Open With...", the Entity designer doesn't show up in the list. It has worked before, and i don't know of anything i could have done to remove it from the list. Does anyone know how i can re-add it? Thanks! 回答1: First thing to check is, is this a problem with your project or with your VS installation. Try

Unicode characters in qt app dont show up

我的梦境 提交于 2019-12-23 11:01:27
问题 I'm trying to display different language strings in my qt app by inserting each language into a QMap<QString, QString> so it can be re-used in several places and put into different combo Boxes across the application. I do this by creating the QMap like so in the CTOR: m_langMap.insert(QString::fromWCharArray(L"English"), "english"); m_langMap.insert(QString::fromWCharArray(L"Dansk"), "dansk"); m_langMap.insert(QString::fromWCharArray(L"Nederlands"), "dutch"); m_langMap.insert(QString:

Unicode characters in qt app dont show up

眉间皱痕 提交于 2019-12-23 11:00:14
问题 I'm trying to display different language strings in my qt app by inserting each language into a QMap<QString, QString> so it can be re-used in several places and put into different combo Boxes across the application. I do this by creating the QMap like so in the CTOR: m_langMap.insert(QString::fromWCharArray(L"English"), "english"); m_langMap.insert(QString::fromWCharArray(L"Dansk"), "dansk"); m_langMap.insert(QString::fromWCharArray(L"Nederlands"), "dutch"); m_langMap.insert(QString:

Custom properties defined in base form lose their state in inherited form upon rebuild

筅森魡賤 提交于 2019-12-23 10:26:04
问题 I am having trouble with properties of a base form not maintaining state in an inherited form. Environment: Visual Studio 2010 Ultimate Service Pack 1: Version 10.0.40219.1 SP1Rel .Net Framework: Version 4.0.30319 SP1Rel Windows 7 Ultimate Below, is the source code and steps to reproduce: using System; using System.ComponentModel; using System.Windows.Forms; namespace Test { public partial class BaseForm : Form { [DefaultValueAttribute(true)] public bool ControlVisible { get { return this

Windows Forms designer is permanently broken for a certain form

谁说胖子不能爱 提交于 2019-12-21 17:43:07
问题 This is a follow-up to All controls on a form are invisible, now that I know a little more about it. I have a certain form that was created with the Windows Forms designer of Visual Studio 2010. It was working fine until some time this week. Now when I make any change to the form and the designer recreates the .designer.cs file, all binding members are set to "none", and all Controls.Add calls are removed. The controls still are visible in the designer, but then when I run the project the

Dataset Designer Issue - Visual Studio 2008

佐手、 提交于 2019-12-21 04:10:15
问题 We're using a dataset to throw a small amount of data around amongst various nodes within our application. The dataset is in an assembly by itself as it is reference from many other components. The Visual Studio dataset tool has developed a strange habit of creating a new designer everytime a build is done. So, the project looks like this MyDataSet.xsd - MyDataSet.cs - MyDataset.designer.cs - .... Then a build is performed and the result is MyDataSet.xsd - MyDataSet.cs - MyDataset.designer.cs

Windows store app ResourceLoader at design time

跟風遠走 提交于 2019-12-20 20:35:42
问题 I've started creating a Windows Store App for Windows 8.1 and now I encountered a problem concerning localization. I would like to display a string resource from a .resw file at design time, but every attempt to do so has failed, even though it works at runtime. When using the x:Uid attribute, I still have to supply the Text property (i.e. for a TextBlock) and I don't like to write the text twice. I also tried creating a property for the string on the viewmodel: public string Title { get {

How to make a User control property of type Collection<MyClass> editable in Form Designer?

我的梦境 提交于 2019-12-20 09:58:04
问题 Today at work, I stumbled upon a problem that was driving me nuts. Basically my goal is this: I have a UserControl1 , with a field of the type Collection<Class1> and a corresponding property Collection<Class1> Prop . Like this: public class UserControl1 : UserControl { private Collection<Class1> field = null; // later changed to: //private Collection<Class1> field = new Collection<Class1>(); [Category("Data")] [DefaultValue(null)] [Description("asdf")] public Collection<Class1> prop { get {

CSS not being applied in Visual Studio 2012 designer?

陌路散爱 提交于 2019-12-20 05:41:48
问题 I have some css, which when inside my CSS file isn't applied to my designer in Visual Studio, but is applied to the page when I publish it. This issue is slowing down site development massively as I'm trying to pick up CSS as I go... Here's a sample bit of CSS: .header { background-color: #ccc; border-bottom: 1px solid #666; color: #222; display: block; font-size: 20px; font-weight: bold; padding: 100px 100px 100px 100px; text-align: center; text-decoration: none; text-shadow: 0px 1px 0px