nitwalke@gmail.com
Member
Hi All,
I have created outlook addin for outlook 2003 in vsto-2008. When I have tried to allow property 'allowDrag' to textbox it gives runtime exception "dragdrop registration did not succeed". I have searched on net, got suggestion to use threading.
Thread t = new Thread(new ThreadStart(ShowForm));
t.SetApartmentState(ApartmentState.STA);
t.Start();
public void ShowForm()
{
form.ShowDialog();
form.Dispose();
}
Drag problem solved using thread but it give other problem in my application as follows
a) When I right click on context menu then form disappear.
b) Some time application hangs...
Can I solve this problem without using thread? Because handling thread will almost change my design.
Regards,
Nit
I have created outlook addin for outlook 2003 in vsto-2008. When I have tried to allow property 'allowDrag' to textbox it gives runtime exception "dragdrop registration did not succeed". I have searched on net, got suggestion to use threading.
Thread t = new Thread(new ThreadStart(ShowForm));
t.SetApartmentState(ApartmentState.STA);
t.Start();
public void ShowForm()
{
form.ShowDialog();
form.Dispose();
}
Drag problem solved using thread but it give other problem in my application as follows
a) When I right click on context menu then form disappear.
b) Some time application hangs...
Can I solve this problem without using thread? Because handling thread will almost change my design.
Regards,
Nit