Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
AnswerRe: Determine Double-Click / Middle Click using low-level mouse hook? Pin
xfitr229-Aug-07 16:42
xfitr229-Aug-07 16:42 
GeneralRe: Determine Double-Click / Middle Click using low-level mouse hook? Pin
wienzzz29-Aug-07 19:11
wienzzz29-Aug-07 19:11 
GeneralRe: Determine Double-Click / Middle Click using low-level mouse hook? Pin
wienzzz29-Aug-07 19:38
wienzzz29-Aug-07 19:38 
QuestionHow do I write XML into XMLDocument? Pin
oceanexplorer29-Aug-07 9:40
oceanexplorer29-Aug-07 9:40 
AnswerRe: How do I write XML into XMLDocument? Pin
pmarfleet29-Aug-07 11:56
pmarfleet29-Aug-07 11:56 
AnswerRe: How do I write XML into XMLDocument? Pin
Spacix One29-Aug-07 12:01
Spacix One29-Aug-07 12:01 
QuestionModal Window in Smart Parts Pin
umashankergr829-Aug-07 9:22
umashankergr829-Aug-07 9:22 
AnswerRe: Modal Window in Smart Parts Pin
Michael Sync29-Aug-07 17:40
Michael Sync29-Aug-07 17:40 
umashankergr8 wrote:
I need a sample application so that i can understand better..


Sorry. I can't create or upload the sample for you but I will tell you the steps that you need to follow to open the view in popup form. (I believe that you have some ideas about CAB (Composite UI Application Block) Frameworks and terms.)

#1. First, you need to add the View in WorkItem or ModuleWorkItem.

Dim objMyView As MyView = WorkItem.SmartParts.AddNew(Of MyView)(MyNamespace.Constants.SmartPartNames.MYVIEWID)

Note: If you are using SCSF, you can write the code above in AddView() methods.

#2. Add a form to your project and put the DeckWorkSpace in this form.

#3. Write the code below in your presenter when the view raise the event of presenter.

Dim formPopUp As New Infrastructure.UI.Form()<br />
formPopUp.Title = "MyView"<br />
formPopUp.StartPosition = FormStartPosition.CenterScreen<br />
formPopUp.FormBorderStyle = FormBorderStyle.FixedDialog<br />
formPopUp.MaximizeBox = False<br />
formPopUp.MinimizeBox = False<br />
formPopUp.ShowDialog()<br />
<br />

Note: Infrastructure.UI.Form should have one more constructor like that
<br />
Public Sub New(ByVal view As Control)<br />
  Public Sub New(ByVal view As Control)<br />
        InitializeComponent()<br />
<br />
        Me.ClientSize = New System.Drawing.Size(view.Width, view.Height)<br />
        Me.SuspendLayout()<br />
        view.Dock = DockStyle.Fill<br />
        <br />
        'Adding View to Form<br />
        '---------------------------------<br />
        Me._contentPanel.Controls.Add(view)  '' Note: _contentPenel is deckworkspace control.<br />
        Me.ResumeLayout()<br />
        '---------------------------------<br />
    End Sub<br />


That's all..

Hope it helps..

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)

GeneralRe: Modal Window in Smart Parts Pin
Alaric_30-Aug-07 2:21
professionalAlaric_30-Aug-07 2:21 
GeneralRe: Modal Window in Smart Parts Pin
Michael Sync30-Aug-07 5:00
Michael Sync30-Aug-07 5:00 
GeneralRe: Modal Window in Smart Parts Pin
umashankergr830-Aug-07 8:28
umashankergr830-Aug-07 8:28 
QuestionFile.Exists problems with mapped network drive. Pin
UweOeder29-Aug-07 8:37
professionalUweOeder29-Aug-07 8:37 
AnswerRe: File.Exists problems with mapped network drive. Pin
snorkie29-Aug-07 8:54
professionalsnorkie29-Aug-07 8:54 
GeneralRe: File.Exists problems with mapped network drive. Pin
Vikram A Punathambekar29-Aug-07 17:41
Vikram A Punathambekar29-Aug-07 17:41 
AnswerRe: File.Exists problems with mapped network drive. [modified] Pin
Alaric_29-Aug-07 9:51
professionalAlaric_29-Aug-07 9:51 
AnswerRe: File.Exists problems with mapped network drive. Pin
Spacix One29-Aug-07 10:19
Spacix One29-Aug-07 10:19 
GeneralRe: File.Exists problems with mapped network drive. Pin
UweOeder29-Aug-07 20:46
professionalUweOeder29-Aug-07 20:46 
QuestionRijndael Encryption Question.. Pin
Dio2229-Aug-07 8:26
Dio2229-Aug-07 8:26 
AnswerRe: Rijndael Encryption Question.. [modified] Pin
Alaric_29-Aug-07 10:06
professionalAlaric_29-Aug-07 10:06 
AnswerRe: Rijndael Encryption Question.. Pin
xfitr229-Aug-07 16:46
xfitr229-Aug-07 16:46 
QuestionInstallation Binder / Deployment Utility Pin
Muhammad Nauman Yousuf29-Aug-07 8:14
Muhammad Nauman Yousuf29-Aug-07 8:14 
AnswerRe: Installation Binder / Deployment Utility Pin
Spacix One29-Aug-07 8:44
Spacix One29-Aug-07 8:44 
QuestionCan "custom attributes" work for private objects? Pin
cyhsu99929-Aug-07 7:00
cyhsu99929-Aug-07 7:00 
AnswerRe: Can "custom attributes" work for private objects? Pin
Pete O'Hanlon29-Aug-07 9:19
mvePete O'Hanlon29-Aug-07 9:19 
GeneralRe: Can "custom attributes" work for private objects? Pin
cyhsu99929-Aug-07 16:31
cyhsu99929-Aug-07 16:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.