jdrawmer

Hi guys,

I'm struggling to understand why the forms act so differently in the VSTO 2005 add in for Visual Studio 2005... Normally in VB.NET i might have a form, which when it loads searches for users, if there isn't one it loads another form over the top, and automatically the other form is paused in effect, until the other form(s) are delt with.

How come its so different in the fact that this just doesn't happen anymore can i make it the same as i want it




Re: Visual Studio Tools for Office VSTO form differences with VB.NET 2005

John R. Durant - MSFT

Jdrawmer,

I'd like to help you, but I'll need you to step through your description a little more thoroughly. Can you describe in more detail what behavior you are observing, when the difference arises, etc.

Best,

jrd






Re: Visual Studio Tools for Office VSTO form differences with VB.NET 2005

Daniel Molina - MSFT

 

As John pointed out, it would help us if you'd provide more information.  From what you say, it seems that you want to display a form as a modal   (one that would keep mantain the focus).  In Windows Forms you can use the Form.ShowDialog() method  to display a Form in this way.  If you use Form.Show() the form will be displayed as modeless. 

I hope this helps,

Daniel






Re: Visual Studio Tools for Office VSTO form differences with VB.NET 2005

asra

in my project i have an mdi form where iam displaying the form. in the form i have add new , edit user. for edit and add iam using the same form. in the form iam writing

in edit button clik

frmedit.showdialog

and in addbutton click

frmedit.showdialog

as iam using same form for both the add and edit users. but when i first click on edit it gets me the details of that user where we can make changes. after that if i click upon add it shows me the same values of edit.

if i use frmedit.show then this will not happen .

how can i do this

plz help me