<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Visual_C%2B%2B_.NET%2FGUI_Form%2FDialog</id>
		<title>Visual C++ .NET/GUI Form/Dialog - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Visual_C%2B%2B_.NET%2FGUI_Form%2FDialog"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Visual_C%2B%2B_.NET/GUI_Form/Dialog&amp;action=history"/>
		<updated>2026-04-29T17:47:56Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Visual_C%2B%2B_.NET/GUI_Form/Dialog&amp;diff=3790&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Visual_C%2B%2B_.NET/GUI_Form/Dialog&amp;diff=3790&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:02Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Visual_C%2B%2B_.NET/GUI_Form/Dialog&amp;diff=3791&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Visual_C%2B%2B_.NET/GUI_Form/Dialog&amp;diff=3791&amp;oldid=prev"/>
				<updated>2010-05-26T12:06:07Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Custom Dialog==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
[STAThreadAttribute]&lt;br /&gt;
int main(array&amp;lt;System::String ^&amp;gt; ^args)&lt;br /&gt;
{&lt;br /&gt;
  Application::Run(gcnew Form1());&lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
  using namespace System;&lt;br /&gt;
  using namespace System::ComponentModel;&lt;br /&gt;
  using namespace System::Collections;&lt;br /&gt;
  using namespace System::Windows::Forms;&lt;br /&gt;
  using namespace System::Data;&lt;br /&gt;
  using namespace System::Drawing;&lt;br /&gt;
  public ref class Form1 : public System::Windows::Forms::Form&lt;br /&gt;
  {&lt;br /&gt;
  public:&lt;br /&gt;
    Form1(void)&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
    }&lt;br /&gt;
        System::Windows::Forms::Label^  lbRetString;&lt;br /&gt;
        System::Windows::Forms::Label^  lbRetVal;&lt;br /&gt;
    void InitializeComponent(void)&lt;br /&gt;
    {&lt;br /&gt;
            this-&amp;gt;lbRetString = (gcnew System::Windows::Forms::Label());&lt;br /&gt;
            this-&amp;gt;lbRetVal = (gcnew System::Windows::Forms::Label());&lt;br /&gt;
            this-&amp;gt;SuspendLayout();&lt;br /&gt;
            //&lt;br /&gt;
            // lbRetString&lt;br /&gt;
            //&lt;br /&gt;
            this-&amp;gt;lbRetString-&amp;gt;Location = System::Drawing::Point(34, 119);&lt;br /&gt;
            this-&amp;gt;lbRetString-&amp;gt;Name = L&amp;quot;lbRetString&amp;quot;;&lt;br /&gt;
            this-&amp;gt;lbRetString-&amp;gt;Size = System::Drawing::Size(225, 19);&lt;br /&gt;
            this-&amp;gt;lbRetString-&amp;gt;TabIndex = 3;&lt;br /&gt;
            //&lt;br /&gt;
            // lbRetVal&lt;br /&gt;
            //&lt;br /&gt;
            this-&amp;gt;lbRetVal-&amp;gt;Location = System::Drawing::Point(34, 77);&lt;br /&gt;
            this-&amp;gt;lbRetVal-&amp;gt;Name = L&amp;quot;lbRetVal&amp;quot;;&lt;br /&gt;
            this-&amp;gt;lbRetVal-&amp;gt;Size = System::Drawing::Size(225, 19);&lt;br /&gt;
            this-&amp;gt;lbRetVal-&amp;gt;TabIndex = 2;&lt;br /&gt;
            //&lt;br /&gt;
            // Form1&lt;br /&gt;
            //&lt;br /&gt;
            this-&amp;gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;
            this-&amp;gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;
            this-&amp;gt;ClientSize = System::Drawing::Size(292, 273);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;lbRetString);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;lbRetVal);&lt;br /&gt;
            this-&amp;gt;Name = L&amp;quot;Form1&amp;quot;;&lt;br /&gt;
            this-&amp;gt;Text = L&amp;quot;Click Form to get dialog&amp;quot;;&lt;br /&gt;
            this-&amp;gt;Click +=&lt;br /&gt;
                gcnew System::EventHandler(this, &amp;amp;Form1::Form1_Click);&lt;br /&gt;
            this-&amp;gt;ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
        System::Void Form1_Click(System::Object^ sender, System::EventArgs^ e)&lt;br /&gt;
        {&lt;br /&gt;
            MyDialog ^mydialog = gcnew MyDialog();&lt;br /&gt;
            mydialog-&amp;gt;PassedValue = &amp;quot;This has been passed from Form1&amp;quot;;&lt;br /&gt;
            if (mydialog-&amp;gt;ShowDialog() ==&lt;br /&gt;
                System::Windows::Forms::DialogResult::OK)&lt;br /&gt;
                lbRetVal-&amp;gt;Text = &amp;quot;OK&amp;quot;;&lt;br /&gt;
            else if (mydialog-&amp;gt;DialogResult ==&lt;br /&gt;
                System::Windows::Forms::DialogResult::Abort)&lt;br /&gt;
                lbRetVal-&amp;gt;Text = &amp;quot;Abort&amp;quot;;&lt;br /&gt;
            else&lt;br /&gt;
                lbRetVal-&amp;gt;Text = &amp;quot;Cancel&amp;quot;;&lt;br /&gt;
            lbRetString-&amp;gt;Text = mydialog-&amp;gt;PassedValue;&lt;br /&gt;
        }&lt;br /&gt;
  };&lt;br /&gt;
&lt;br /&gt;
  public ref class MyDialog : public System::Windows::Forms::Form&lt;br /&gt;
  {&lt;br /&gt;
  public:&lt;br /&gt;
    MyDialog(void)&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
    }&lt;br /&gt;
    public:&lt;br /&gt;
        property String^ PassedValue  // PassedValue property&lt;br /&gt;
        {&lt;br /&gt;
            void set(String ^value)&lt;br /&gt;
            {&lt;br /&gt;
                tbPassedValue-&amp;gt;Text = value;&lt;br /&gt;
            }&lt;br /&gt;
            String ^get()&lt;br /&gt;
            {&lt;br /&gt;
            return tbPassedValue-&amp;gt;Text;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        System::Windows::Forms::Button^  bnCancel;&lt;br /&gt;
        System::Windows::Forms::Button^  bnAbort;&lt;br /&gt;
        System::Windows::Forms::Button^  bnOK;&lt;br /&gt;
        System::Windows::Forms::TextBox^  tbPassedValue;&lt;br /&gt;
    void InitializeComponent(void)&lt;br /&gt;
    {&lt;br /&gt;
            this-&amp;gt;bnCancel = (gcnew System::Windows::Forms::Button());&lt;br /&gt;
            this-&amp;gt;bnAbort = (gcnew System::Windows::Forms::Button());&lt;br /&gt;
            this-&amp;gt;bnOK = (gcnew System::Windows::Forms::Button());&lt;br /&gt;
            this-&amp;gt;tbPassedValue = (gcnew System::Windows::Forms::TextBox());&lt;br /&gt;
            this-&amp;gt;SuspendLayout();&lt;br /&gt;
            //&lt;br /&gt;
            // bnCancel&lt;br /&gt;
            //&lt;br /&gt;
            this-&amp;gt;bnCancel-&amp;gt;DialogResult =&lt;br /&gt;
                System::Windows::Forms::DialogResult::Cancel;&lt;br /&gt;
            this-&amp;gt;bnCancel-&amp;gt;Location = System::Drawing::Point(205, 60);&lt;br /&gt;
            this-&amp;gt;bnCancel-&amp;gt;Name = L&amp;quot;bnCancel&amp;quot;;&lt;br /&gt;
            this-&amp;gt;bnCancel-&amp;gt;Size = System::Drawing::Size(75, 23);&lt;br /&gt;
            this-&amp;gt;bnCancel-&amp;gt;TabIndex = 7;&lt;br /&gt;
            this-&amp;gt;bnCancel-&amp;gt;Text = L&amp;quot;Cancel&amp;quot;;&lt;br /&gt;
            //&lt;br /&gt;
            // bnAbort&lt;br /&gt;
            //&lt;br /&gt;
            this-&amp;gt;bnAbort-&amp;gt;DialogResult =&lt;br /&gt;
                System::Windows::Forms::DialogResult::Abort;&lt;br /&gt;
            this-&amp;gt;bnAbort-&amp;gt;Location = System::Drawing::Point(110, 60);&lt;br /&gt;
            this-&amp;gt;bnAbort-&amp;gt;Name = L&amp;quot;bnAbort&amp;quot;;&lt;br /&gt;
            this-&amp;gt;bnAbort-&amp;gt;Size = System::Drawing::Size(75, 23);&lt;br /&gt;
            this-&amp;gt;bnAbort-&amp;gt;TabIndex = 6;&lt;br /&gt;
            this-&amp;gt;bnAbort-&amp;gt;Text = L&amp;quot;Abort&amp;quot;;&lt;br /&gt;
            //&lt;br /&gt;
            // bnOK&lt;br /&gt;
            //&lt;br /&gt;
            this-&amp;gt;bnOK-&amp;gt;DialogResult = System::Windows::Forms::DialogResult::OK;&lt;br /&gt;
            this-&amp;gt;bnOK-&amp;gt;Location = System::Drawing::Point(13, 60);&lt;br /&gt;
            this-&amp;gt;bnOK-&amp;gt;Name = L&amp;quot;bnOK&amp;quot;;&lt;br /&gt;
            this-&amp;gt;bnOK-&amp;gt;Size = System::Drawing::Size(75, 23);&lt;br /&gt;
            this-&amp;gt;bnOK-&amp;gt;TabIndex = 5;&lt;br /&gt;
            this-&amp;gt;bnOK-&amp;gt;Text = L&amp;quot;OK&amp;quot;;&lt;br /&gt;
            //&lt;br /&gt;
            // tbPassedValue&lt;br /&gt;
            //&lt;br /&gt;
            this-&amp;gt;tbPassedValue-&amp;gt;Location = System::Drawing::Point(13, 20);&lt;br /&gt;
            this-&amp;gt;tbPassedValue-&amp;gt;Name = L&amp;quot;tbPassedValue&amp;quot;;&lt;br /&gt;
            this-&amp;gt;tbPassedValue-&amp;gt;Size = System::Drawing::Size(267, 20);&lt;br /&gt;
            this-&amp;gt;tbPassedValue-&amp;gt;TabIndex = 4;&lt;br /&gt;
            //&lt;br /&gt;
            // myDialog&lt;br /&gt;
            //&lt;br /&gt;
            this-&amp;gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);&lt;br /&gt;
            this-&amp;gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;&lt;br /&gt;
            this-&amp;gt;ClientSize = System::Drawing::Size(292, 102);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;bnCancel);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;bnAbort);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;bnOK);&lt;br /&gt;
            this-&amp;gt;Controls-&amp;gt;Add(this-&amp;gt;tbPassedValue);&lt;br /&gt;
            this-&amp;gt;Name = L&amp;quot;myDialog&amp;quot;;&lt;br /&gt;
            this-&amp;gt;Text = L&amp;quot;My Custom Dialog&amp;quot;;&lt;br /&gt;
            this-&amp;gt;ResumeLayout(false);&lt;br /&gt;
            this-&amp;gt;PerformLayout();&lt;br /&gt;
        }&lt;br /&gt;
  };&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>