在处理GUI C#.net项目时,我想编辑它显示的对话框。但是,我找不到打开对话框编辑器的方法,也找不到任何可能的编辑选项。 .sln
文件由电子元件公司(FTDI)创建,可以从 here下载。(嗯,我需要找到正确的链接。)
我有enabled the toolbar for dialog editor。 (没有区别。)
当我反向点击资源视图的“Form”元素时,我希望菜单说“编辑对话框”或类似的东西。这是我看到的:
选择“转到定义”会显示C#声明(partial class Form1 : Form
)。我想以图形方式编辑对话框以重新排列某些控件并添加新元素。
----使用解决方案资源管理器---
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)