designer

<Subtype>Designer</Subtype> Added then removed by Visual Studio on load/unload

怎甘沉沦 提交于 2019-12-28 03:23:27
问题 Anyone see this before? I have a large Visual Studio project that keeps adding [Subtype]Designer[/Subtype] to my .vcproj then removing it on the next open and close of the project. There is only one class defined in StoredImageControl.cs . Anyone know how to shut this off as it is really messing up my revision control. This is before: <EmbeddedResource Include="StoredImageControl.resx"> <DependentUpon>StoredImageControl.cs</DependentUpon> </EmbeddedResource> This is after <EmbeddedResource

Manual editing of *.designer.cs file

核能气质少年 提交于 2019-12-28 01:35:29
问题 I'm aware, that the .designer.cs file contains data generated by the visual form designer in Visual Studio. However, I have some additional methods though, which I want to put into the .designer.cs file as well, because these are responsible for lower-level form handling (for example, pieces of my visual state manager). The InitializeComponent method inside the .designer.cs file has a comment stating, that it is automatically generated and should not be modified by user. Does this restriction

IOException : cannot locate resource at Design time only

不羁的心 提交于 2019-12-25 04:19:24
问题 I'm having a problem with my designer on a MVVM project. I have a TreeView with a custom DataTemplate : <DataTemplate> <StackPanel Orientation="Horizontal"> <Image Name="img" Width="20" Height="20" Stretch="Fill" Source="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type TreeViewItem}}, Path=Header, Converter={StaticResource HeaderToImageConverter}}" /> <TextBlock Text="{Binding}" Margin="5,0" /> </StackPanel> </DataTemplate> Resource declaration : <Window x:Class

Help, i can't get my properties into the designer PropertyGrid

霸气de小男生 提交于 2019-12-24 19:26:03
问题 What is wrong with this? The property LeftImage doesn't show up in the PropertyGrid (WinForms .NET 3.5) private Image _LeftImage; /// <summary> /// Sets the small image appearing to the left of the trackbar /// </summary> [ Description("The small image appearing to the left of the trackbar"), Category("Appearance"), EditorAttribute(typeof(System.Drawing.Design.ImageEditor), typeof(System.Drawing.Design.UITypeEditor)), DefaultValueAttribute(typeof(Image),"null"), Browsable(true),

Custom code in designer.vb file goes away when making edits in design mode

元气小坏坏 提交于 2019-12-24 14:59:44
问题 I have a form named "form1" in vb.net. This form has many controls. I opened the form1.designer.vb file and put in an if else expression such as: If getLanguage() = "en" then label1.text = "Good Morning" Else label1.Text = "Bonjour" This works perfectly fine in runtime. If I open the Form1.vb [Design] page in design, and make any changes, the code above disappears. Is there a way I can keep any code I put in the designer page? I don't want to put them in the load event in the form1.vb file.

user control that other developers can add controls to it and “inherit” the behavior of all controls on my control

瘦欲@ 提交于 2019-12-24 07:34:48
问题 hi all and sorry for the confusing title... can't find the right words yet. just out of curiosity, I am playing with c# user control, I created a control that is built from a panel, a textbox that is being used as a filter, and some labels / buttons/ etc... that are being filtered. when ever you change the text of the textbox, all the controls on the panel are visible / invisible depending if their Text property contains the Text of the textbox. very simple. but I want this user control to be

stripped down drools guvnor

南楼画角 提交于 2019-12-24 05:29:34
问题 I need to integrate drools guvnor into my application but I think it is a bit overkill for my needs, I don't need an external application... I just need the editors nothing else. Are there a way to only use these without using the entire thing? I know I can use embedded mode, but I still have to have a full working guvnor instance installed and running what I am asking for is just a dependency or something without the whole thing.... Is there such a thing? Or do I have to strip it down

Disabled designer due to inheriting abstract class?

心不动则不痛 提交于 2019-12-24 05:28:46
问题 I have a solution with one project. In that project are something live 40 or 50 forms. I've made 4 base forms that all the other forms can inherit. All 4 of those base forms inherit System.Windows.Forms.Form. Almost 90% of the forms inherit one of the first 2 base form. The rest inherits one of the last 2. But now I got this error out of nowhere, I made like 3 progs with the last 2 base forms and while I'm making the 5th, this errors occures and the designer is disabled. The designer must

Scale WindowsForm

爱⌒轻易说出口 提交于 2019-12-23 16:08:33
问题 Basically, I want everything (Controls etc) to scale with the WindowsForm when resizing it by dragging, so that the user can determine the size of the UI himself. The picture is not perfect, but I hope it explains it: The easiest way to do this would be to use a (Flow/Table)LayoutPanel and the appropriate Anchor/Drop properties, but I feel like that restricts my design, which currently looks like this: My idea was to scale all the components when Resize() is called: foreach(Control c in

jBPM6 - embed web designer in existing application

怎甘沉沦 提交于 2019-12-23 14:55:34
问题 Are you aware of any guide / tutorial / example project that might help me embed the jBPM web designer in an existing web application? Namely: Which are the maven libraries I need to include? Is it possible to deploy the designer specific components in the main application WAR (this is after all what embedded means)? How can I access the designer? Is there a specific URL for it? Thanks in advance for any hint. 回答1: I finally found out how to do it. What you need is a running instance of the