如何打开对话框编辑器?

时间:2018-03-02 16:56:58

标签: visual-studio-2017

在处理GUI C#.net项目时,我想编辑它显示的对话框。但是,我找不到打开对话框编辑器的方法,也找不到任何可能的编辑选项。 .sln文件由电子元件公司(FTDI)创建,可以从 here下载。(嗯,我需要找到正确的链接。)

我有enabled the toolbar for dialog editor。 (没有区别。)

当我反向点击资源视图的“Form”元素时,我希望菜单说“编辑对话框”或类似的东西。这是我看到的: enter image description here 选择“转到定义”会显示C#声明(partial class Form1 : Form)。我想以图形方式编辑对话框以重新排列某些控件并添加新元素。

更新

----使用解决方案资源管理器---

以下是我在解决方案资源管理器中看到的内容: enter image description here

第二次更新

MPSSE Sensor Demo.Designed.cs以:

开头
namespace SensorDemo
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
        ... (300+ more lines of boring declaration of UI elements)

MPSSE Sensor Demo.cs主要包含以:

开头的应用程序逻辑
// #define FT232H                // Enable only one of these defines depending on your device type
#define FT2232H
// #define FT4232H
//######################################################
// This code is provided as an example only and is not supported or guaranteed by FTDI
// It is the responsibility of the designer of the system incorporating any part of this code to ensure correct
// ... blah blah blah

using System;
using System.Windows.Forms;
using FTD2XX_NET;
using System.Threading;

namespace SensorDemo
{

    class myFTDI : FTDI
.... (2100+ more lines of logic with occasional assignments to UI elements)

0 个答案:

没有答案