For Handling backspace IE toolbar Band object I need to include following thing:
Here tstxt_Name and tstxt_Password is my TextBox..
public IEToolbarEngine ()
{
Assembly asm = Assembly.GetExecutingAssembly ();
string fullName = asm.GetModules () [0].FullyQualifiedName;
toolbarFolder = Path.GetDirectoryName (fullName);
dataFolder = DataFolder;
try
{
cacheFolder = Path.Combine (dataFolder, "Cache");
Directory.CreateDirectory (cacheFolder);
}
catch (Exception){}
try
{
rssFoldr = Path.Combine (cacheFolder, "RSS");
Directory.CreateDirectory (rssFolder);
}
catch (Exception){}
InitializeComponent ();
toolStripLabel1.Size = new System.Drawing.Size(150, 21);
tstxt_Name.GotFocus += new EventHandler(tstxt_Name_GotFocus);
tstxt_Name.Focus();
tstxt_Password.GotFocus += new EventHandler(tstxt_Password_GotFocus);
tstxt_Password.Focus();
}
private void tstxt_Password_GotFocus(object sender, EventArgs e)
{
this.OnGotFocus(e);
}
private void tstxt_Name_GotFocus(object sender, EventArgs e)
{
this.OnGotFocus(e);
}
public override int TranslateAcceleratorIO(ref MSG msg)
{
TranslateMessage(ref msg);
DispatchMessage(ref msg);
return 0;
}
Njoy buddy..:)
Here tstxt_Name and tstxt_Password is my TextBox..
public IEToolbarEngine ()
{
Assembly asm = Assembly.GetExecutingAssembly ();
string fullName = asm.GetModules () [0].FullyQualifiedName;
toolbarFolder = Path.GetDirectoryName (fullName);
dataFolder = DataFolder;
try
{
cacheFolder = Path.Combine (dataFolder, "Cache");
Directory.CreateDirectory (cacheFolder);
}
catch (Exception){}
try
{
rssFoldr = Path.Combine (cacheFolder, "RSS");
Directory.CreateDirectory (rssFolder);
}
catch (Exception){}
InitializeComponent ();
toolStripLabel1.Size = new System.Drawing.Size(150, 21);
tstxt_Name.GotFocus += new EventHandler(tstxt_Name_GotFocus);
tstxt_Name.Focus();
tstxt_Password.GotFocus += new EventHandler(tstxt_Password_GotFocus);
tstxt_Password.Focus();
}
private void tstxt_Password_GotFocus(object sender, EventArgs e)
{
this.OnGotFocus(e);
}
private void tstxt_Name_GotFocus(object sender, EventArgs e)
{
this.OnGotFocus(e);
}
public override int TranslateAcceleratorIO(ref MSG msg)
{
TranslateMessage(ref msg);
DispatchMessage(ref msg);
return 0;
}
Njoy buddy..:)
No comments:
Post a Comment