Click here to Skip to main content
15,915,086 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Drag and move a button anywhere on the form Pin
phani2548519-Mar-10 0:51
phani2548519-Mar-10 0:51 
GeneralRe: Drag and move a button anywhere on the form Pin
Dave Kreskowiak19-Mar-10 2:01
mveDave Kreskowiak19-Mar-10 2:01 
GeneralRe: Drag and move a button anywhere on the form Pin
Mycroft Holmes21-Mar-10 1:00
professionalMycroft Holmes21-Mar-10 1:00 
QuestionExternal Program Stack Trace/Command Line Pin
MATTXtwo15-Mar-10 17:35
MATTXtwo15-Mar-10 17:35 
AnswerRe: External Program Stack Trace/Command Line Pin
Dave Kreskowiak19-Mar-10 3:22
mveDave Kreskowiak19-Mar-10 3:22 
QuestionWindows Forms control style on Windows Server 2008 Terminal Services Pin
Ashley van Gerven10-Mar-10 15:11
Ashley van Gerven10-Mar-10 15:11 
QuestionShowing child menu instead of MDI Parent menu in vb.net Pin
Dattatraya K8-Mar-10 20:29
Dattatraya K8-Mar-10 20:29 
AnswerRe: Showing child menu instead of MDI Parent menu in vb.net Pin
Wayne Gaylard8-Mar-10 21:21
professionalWayne Gaylard8-Mar-10 21:21 
The only way I can think of doing this, is by creating a local variable on your child forms, which exposes your parent form in the child. i.e. Private ParentForm as frmParent. You can pass this info through the constructor of your child form, and in the constructor set this variable like this

Public Sub New(ByVal Parent As frmParent)

    ' This call is required by the Windows Form Designer.
    InitializeComponent()
    myParent = Parent
    ' Add any initialization after the InitializeComponent() call.

End Sub


Then in your FormLoad event you can set the menustripitems.visible on the parent to false. like this

myParent.MenuStrip1.Items(0).Visible = False
myParent.MenuStrip1.Items(1).Visible = False


Not forgetting to set visible to true in your FromClosing Event.
Hope this helps
GeneralCrystal Reports Pin
MathewPV8-Mar-10 19:41
MathewPV8-Mar-10 19:41 
GeneralRe: Crystal Reports Pin
DX Roster9-Mar-10 1:13
DX Roster9-Mar-10 1:13 
GeneralRe: Crystal Reports Pin
Mycroft Holmes9-Mar-10 18:49
professionalMycroft Holmes9-Mar-10 18:49 
GeneralRe: Crystal Reports Pin
Mycroft Holmes9-Mar-10 18:52
professionalMycroft Holmes9-Mar-10 18:52 
Questionsaving image to a folder Pin
mylogics5-Mar-10 19:34
professionalmylogics5-Mar-10 19:34 
AnswerRe: saving image to a folder Pin
dan!sh 6-Mar-10 2:48
professional dan!sh 6-Mar-10 2:48 
AnswerRe: saving image to a folder Pin
Dave Kreskowiak6-Mar-10 3:49
mveDave Kreskowiak6-Mar-10 3:49 
AnswerRe: saving image to a folder Pin
DX Roster9-Mar-10 1:15
DX Roster9-Mar-10 1:15 
QuestionEditable Print Preview Pin
ganesh_barhate4-Mar-10 23:15
ganesh_barhate4-Mar-10 23:15 
AnswerRe: Editable Print Preview Pin
Dave Kreskowiak6-Mar-10 3:50
mveDave Kreskowiak6-Mar-10 3:50 
AnswerRe: Editable Print Preview Pin
Mycroft Holmes8-Mar-10 19:07
professionalMycroft Holmes8-Mar-10 19:07 
Questionimage Pin
mylogics4-Mar-10 20:43
professionalmylogics4-Mar-10 20:43 
AnswerRe: image Pin
JHizzle5-Mar-10 5:52
JHizzle5-Mar-10 5:52 
GeneralRe: image Pin
yu-jian17-Mar-10 17:58
yu-jian17-Mar-10 17:58 
GeneralRe: image Pin
JHizzle18-Mar-10 0:01
JHizzle18-Mar-10 0:01 
AnswerRe: image Pin
Ray Cassick5-Mar-10 6:27
Ray Cassick5-Mar-10 6:27 
AnswerRe: image Pin
carlecomm16-Mar-10 17:34
carlecomm16-Mar-10 17:34 

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.