本文整理汇总了C#中System.Windows.Forms.FileDialog.setMode方法的典型用法代码示例。如果您正苦于以下问题:C# FileDialog.setMode方法的具体用法?C# FileDialog.setMode怎么用?C# FileDialog.setMode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.FileDialog
的用法示例。
在下文中一共展示了FileDialog.setMode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Frame1
public Frame1()
{
// This code is automatically generated by Visual Cafe when you add
// components to the visual environment. It instantiates and initializes
// the components. To modify the code, only use code syntax that matches
// what Visual Cafe can generate, or Visual Cafe may be unable to back
// parse your Java file into its visual environment.
//{{INIT_CONTROLS
//UPGRADE_ISSUE: Method 'java.awt.Container.setLayout' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtContainersetLayout_javaawtLayoutManager'"
/*
setLayout(null);*/
//UPGRADE_TODO: Method 'java.awt.Component.setVisible' was converted to 'System.Windows.Forms.Control.Visible' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtComponentsetVisible_boolean'"
//UPGRADE_TODO: 'System.Windows.Forms.Application.Run' must be called to start a main form. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1135'"
Visible = false;
//UPGRADE_TODO: Method 'java.awt.Component.setSize' was converted to 'System.Windows.Forms.Control.Size' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtComponentsetSize_int_int'"
Size = new System.Drawing.Size(SupportClass.GetInsets(this)[1] + SupportClass.GetInsets(this)[2] + 755, SupportClass.GetInsets(this)[0] + SupportClass.GetInsets(this)[3] + 589);
//UPGRADE_TODO: Constructor 'java.awt.Color.Color' was converted to 'System.Drawing.Color.FromArgb' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtColorColor_int'"
ForeColor = System.Drawing.Color.FromArgb(0);
openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
//UPGRADE_ISSUE: Method 'java.awt.FileDialog.setMode' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtFileDialogsetMode_int'"
openFileDialog1.setMode(0);
openFileDialog1.Title = "Open";
//$$ openFileDialog1.move(40,277);
button1 = new System.Windows.Forms.Button();
SupportClass.CommandManager.SetCommand(button1, "button");
button1.Text = "Insert";
button1.SetBounds(SupportClass.GetInsets(this)[1] + 696, SupportClass.GetInsets(this)[0] + 408, 50, 26);
//UPGRADE_TODO: Constructor 'java.awt.Color.Color' was converted to 'System.Drawing.Color.FromArgb' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtColorColor_int'"
button1.BackColor = System.Drawing.Color.FromArgb(12632256);
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
Controls.Add(button1);
button2 = new System.Windows.Forms.Button();
SupportClass.CommandManager.SetCommand(button2, "button");
button2.Text = "Delete";
button2.SetBounds(SupportClass.GetInsets(this)[1] + 696, SupportClass.GetInsets(this)[0] + 444, 50, 25);
//UPGRADE_TODO: Constructor 'java.awt.Color.Color' was converted to 'System.Drawing.Color.FromArgb' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtColorColor_int'"
button2.BackColor = System.Drawing.Color.FromArgb(12632256);
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
Controls.Add(button2);
button3 = new System.Windows.Forms.Button();
SupportClass.CommandManager.SetCommand(button3, "button");
button3.Text = "Search";
button3.SetBounds(SupportClass.GetInsets(this)[1] + 696, SupportClass.GetInsets(this)[0] + 480, 49, 25);
//UPGRADE_TODO: Constructor 'java.awt.Color.Color' was converted to 'System.Drawing.Color.FromArgb' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtColorColor_int'"
button3.BackColor = System.Drawing.Color.FromArgb(12632256);
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
Controls.Add(button3);
button4 = new System.Windows.Forms.Button();
SupportClass.CommandManager.SetCommand(button4, "button");
button4.Text = "Pack";
button4.SetBounds(SupportClass.GetInsets(this)[1] + 696, SupportClass.GetInsets(this)[0] + 516, 49, 26);
//UPGRADE_TODO: Constructor 'java.awt.Color.Color' was converted to 'System.Drawing.Color.FromArgb' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtColorColor_int'"
button4.BackColor = System.Drawing.Color.FromArgb(12632256);
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
Controls.Add(button4);
button5 = new System.Windows.Forms.Button();
SupportClass.CommandManager.SetCommand(button5, "button");
button5.Text = "Exit";
button5.SetBounds(SupportClass.GetInsets(this)[1] + 696, SupportClass.GetInsets(this)[0] + 552, 49, 26);
//UPGRADE_TODO: Constructor 'java.awt.Color.Color' was converted to 'System.Drawing.Color.FromArgb' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtColorColor_int'"
button5.BackColor = System.Drawing.Color.FromArgb(12632256);
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
Controls.Add(button5);
textField1 = new System.Windows.Forms.TextBox();
textField1.SetBounds(SupportClass.GetInsets(this)[1] + 612, SupportClass.GetInsets(this)[0] + 408, 74, 26);
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
Controls.Add(textField1);
textField2 = new System.Windows.Forms.TextBox();
textField2.SetBounds(SupportClass.GetInsets(this)[1] + 612, SupportClass.GetInsets(this)[0] + 444, 73, 25);
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
Controls.Add(textField2);
textField3 = new System.Windows.Forms.TextBox();
textField3.SetBounds(SupportClass.GetInsets(this)[1] + 612, SupportClass.GetInsets(this)[0] + 480, 74, 25);
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
Controls.Add(textField3);
textField4 = new System.Windows.Forms.TextBox();
textField4.SetBounds(SupportClass.GetInsets(this)[1] + 612, SupportClass.GetInsets(this)[0] + 516, 73, 25);
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
Controls.Add(textField4);
textField5 = new System.Windows.Forms.TextBox();
textField5.SetBounds(SupportClass.GetInsets(this)[1] + 612, SupportClass.GetInsets(this)[0] + 552, 72, 25);
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
Controls.Add(textField5);
System.Windows.Forms.Label temp_Label;
temp_Label = new System.Windows.Forms.Label();
temp_Label.Text = "Low X";
label1 = temp_Label;
label1.SetBounds(SupportClass.GetInsets(this)[1] + 564, SupportClass.GetInsets(this)[0] + 408, 38, 25);
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
Controls.Add(label1);
System.Windows.Forms.Label temp_Label2;
temp_Label2 = new System.Windows.Forms.Label();
temp_Label2.Text = "Low Y";
label2 = temp_Label2;
label2.SetBounds(SupportClass.GetInsets(this)[1] + 564, SupportClass.GetInsets(this)[0] + 444, 36, 23);
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
Controls.Add(label2);
System.Windows.Forms.Label temp_Label3;
temp_Label3 = new System.Windows.Forms.Label();
//.........这里部分代码省略.........