G
gg edm
Guest
I must have e make a mistake but failed to find:
Error 68 'System.Windows.Forms.Form' does not contain a definition for 'ShowHelp' and no extension method 'ShowHelp' accepting a first argument of type 'System.Windows.Forms.Form' could be found (are you missing a using directive or an assembly reference?) myForm 2433 14 myForm
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using iAnywhere.Data.SQLAnywhere;
public partial class myForm:Windows.Control.Form
{
....
Form helpForm_ = null;
void showHelp(string title, string help)
{
if (helpForm_ == null)
{
helpForm_ = new HelpForm();
helpForm_.Visible = false;
}
helpForm_.ShowHelp(title, help);
}
public class HelpForm : Form
{
RichTextBox tbx = new RichTextBox();
public HelpForm()
{
this.AutoSize = true;
this.AutoSizeMode = AutoSizeMode.GrowAndShrink;
tbx.Multiline = true;
this.Controls.Add(tbx);
}
public void ShowHelp(string title, string help)
{
this.Text = title;
tbx.Text = help;
this.Visible = false;
this.ShowDialog();
}
}
}
your help is appreciated. thanks
Continue reading...
Error 68 'System.Windows.Forms.Form' does not contain a definition for 'ShowHelp' and no extension method 'ShowHelp' accepting a first argument of type 'System.Windows.Forms.Form' could be found (are you missing a using directive or an assembly reference?) myForm 2433 14 myForm
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using iAnywhere.Data.SQLAnywhere;
public partial class myForm:Windows.Control.Form
{
....
Form helpForm_ = null;
void showHelp(string title, string help)
{
if (helpForm_ == null)
{
helpForm_ = new HelpForm();
helpForm_.Visible = false;
}
helpForm_.ShowHelp(title, help);
}
public class HelpForm : Form
{
RichTextBox tbx = new RichTextBox();
public HelpForm()
{
this.AutoSize = true;
this.AutoSizeMode = AutoSizeMode.GrowAndShrink;
tbx.Multiline = true;
this.Controls.Add(tbx);
}
public void ShowHelp(string title, string help)
{
this.Text = title;
tbx.Text = help;
this.Visible = false;
this.ShowDialog();
}
}
}
your help is appreciated. thanks
Continue reading...