In windows application from1 Link to form2 i want buttons visible false how? [modified]
-
hi all My Problem is In form1 i have submit button and when i click submit button its open form2 . In form2 i want hide three textboxes , how can i hide three text boxes .but here another problem when i want open form2 i want to three textboxes should be visible , its how ? Its form 1 link to form2 In form1 button1click button_click (or) some control { this.visible=false; form2 f2=new form2(); f2.showdialog(); form2.btnclick.visible=false;//this is myproblem cont hide btnclck in form2 this.close(); } In form2 I cont seting property visile =false any Button. when i particuar form2 open it should visible button true pls send me code and ur sugestions . thanks so much.
modified on Sunday, March 22, 2009 3:07 PM
-
hi all My Problem is In form1 i have submit button and when i click submit button its open form2 . In form2 i want hide three textboxes , how can i hide three text boxes .but here another problem when i want open form2 i want to three textboxes should be visible , its how ? Its form 1 link to form2 In form1 button1click button_click (or) some control { this.visible=false; form2 f2=new form2(); f2.showdialog(); form2.btnclick.visible=false;//this is myproblem cont hide btnclck in form2 this.close(); } In form2 I cont seting property visile =false any Button. when i particuar form2 open it should visible button true pls send me code and ur sugestions . thanks so much.
modified on Sunday, March 22, 2009 3:07 PM
pramod2517 wrote:
In form2 i want hide three textboxes
pramod2517 wrote:
form2 i want to three textboxes should be visible
You want to hide and show the textboxes? Do you think it is possible to show and hide something at same time?
pramod2517 wrote:
pls send me code.
No.
pramod2517 wrote:
sugestions
1. Rephrase your question. Clearer this time. 2. Try something yourself. 3. Use google.
जय हिंद
-
hi all My Problem is In form1 i have submit button and when i click submit button its open form2 . In form2 i want hide three textboxes , how can i hide three text boxes .but here another problem when i want open form2 i want to three textboxes should be visible , its how ? Its form 1 link to form2 In form1 button1click button_click (or) some control { this.visible=false; form2 f2=new form2(); f2.showdialog(); form2.btnclick.visible=false;//this is myproblem cont hide btnclck in form2 this.close(); } In form2 I cont seting property visile =false any Button. when i particuar form2 open it should visible button true pls send me code and ur sugestions . thanks so much.
modified on Sunday, March 22, 2009 3:07 PM
Do you mean that if the form is shown via the Submit Button then the TextBoxes should be hidden, otherwise they should be shown? If so, add a method to Form2, maybe
public void HideTextBoxes()
{
textBox1.Visible = false;
// etc...
}and call that method after instanciation but before
Show()
in your submit button's handler.Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) -
Do you mean that if the form is shown via the Submit Button then the TextBoxes should be hidden, otherwise they should be shown? If so, add a method to Form2, maybe
public void HideTextBoxes()
{
textBox1.Visible = false;
// etc...
}and call that method after instanciation but before
Show()
in your submit button's handler.Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)form2 i added this code public void HideTextBoxes() { textBox1.Visible = false; } this function can i call in form1 my problem is when i form1 to form2 i want hide form2 buttons or textboxes . if separate i open form2 textboxes or buttons should visible i code apply in form1 in submitbutton form2.textbox1.visible=false; but here when i click form1 to form2 , in form2 textbox1 visible .
-
form2 i added this code public void HideTextBoxes() { textBox1.Visible = false; } this function can i call in form1 my problem is when i form1 to form2 i want hide form2 buttons or textboxes . if separate i open form2 textboxes or buttons should visible i code apply in form1 in submitbutton form2.textbox1.visible=false; but here when i click form1 to form2 , in form2 textbox1 visible .
Use delegates to create communication between forms, then an event in one form, can cause a method to be called in another.
Christian Graus Driven to the arms of OSX by Vista.
-
hi all My Problem is In form1 i have submit button and when i click submit button its open form2 . In form2 i want hide three textboxes , how can i hide three text boxes .but here another problem when i want open form2 i want to three textboxes should be visible , its how ? Its form 1 link to form2 In form1 button1click button_click (or) some control { this.visible=false; form2 f2=new form2(); f2.showdialog(); form2.btnclick.visible=false;//this is myproblem cont hide btnclck in form2 this.close(); } In form2 I cont seting property visile =false any Button. when i particuar form2 open it should visible button true pls send me code and ur sugestions . thanks so much.
modified on Sunday, March 22, 2009 3:07 PM
Multiply ways to do this... -in form2 declare a variable and decide on it's value set it's value through constructor -declare properties and user them