Click here to Skip to main content
16,006,442 members
Home / Discussions / C#
   

C#

 
QuestionKnow one in admin answers so can you please explain this simple tiny ? Pin
Ista18-Aug-03 16:02
Ista18-Aug-03 16:02 
AnswerRe: Know one in admin answers so can you please explain this simple tiny ? Pin
James T. Johnson18-Aug-03 18:55
James T. Johnson18-Aug-03 18:55 
AnswerRe: Know one in admin answers so can you please explain this simple tiny ? Pin
Julian Bucknall [MSFT]19-Aug-03 6:43
Julian Bucknall [MSFT]19-Aug-03 6:43 
QuestionCan't create an Access database in .NET??? Pin
Marc Clifton18-Aug-03 12:14
mvaMarc Clifton18-Aug-03 12:14 
AnswerRe: Can't create an Access database in .NET??? Pin
Marc Clifton18-Aug-03 12:30
mvaMarc Clifton18-Aug-03 12:30 
GeneralRe: Can't create an Access database in .NET??? Pin
Nick Parker19-Aug-03 7:39
protectorNick Parker19-Aug-03 7:39 
GeneralRe: Can't create an Access database in .NET??? Pin
Alvaro Mendez19-Aug-03 11:37
Alvaro Mendez19-Aug-03 11:37 
Generalnew form without new window Pin
mikemilano18-Aug-03 10:30
mikemilano18-Aug-03 10:30 
i have 3 forms and a toolbar with 3 buttons.

Form1, Form2, Form3, tbbForm1, tbbForm2, tbbForm3

i want the toolbar buttons to switch between these 3 forms.

the problem i'm having is that each time i press a button, it opens the form in a new window.

private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
  if(e.Button == this.tbbForm1)
  {
    Form1 frm1 = new Form1();
    this.frm1.Show();
  }
  else if(e.Button == this.tbbForm2)
  {
    Form2 frm2 = new Form2();
    this.frm2.Show();
  }
  else if(e.Button == this.tbbform3)
  {
    Form3 frm3 = new Form3();
    this.frm3.Show();
  }				
}
[/code]

i know my code calls on a new object each time the button is pressed. i have tried instantiating each of the forms in the constructor so i could just use the Show() method, but this does not work.

please help! =)
GeneralRe: new form without new window Pin
Marc Clifton18-Aug-03 12:45
mvaMarc Clifton18-Aug-03 12:45 
GeneralRe: new form without new window Pin
Ista18-Aug-03 16:47
Ista18-Aug-03 16:47 
GeneralTrolling through DataSets Pin
Kenneth Childs18-Aug-03 9:22
Kenneth Childs18-Aug-03 9:22 
GeneralRe: Trolling through DataSets Pin
Jeff Martin18-Aug-03 11:42
Jeff Martin18-Aug-03 11:42 
GeneralRe: Trolling through DataSets Pin
Ista18-Aug-03 16:40
Ista18-Aug-03 16:40 
QuestionHow do I create an ActiveX control in C# at runtime Pin
AaronStibich18-Aug-03 7:21
AaronStibich18-Aug-03 7:21 
AnswerRe: How do I create an ActiveX control in C# at runtime Pin
J. Dunlap18-Aug-03 8:57
J. Dunlap18-Aug-03 8:57 
GeneralRe: How do I create an ActiveX control in C# at runtime Pin
AaronStibich18-Aug-03 9:01
AaronStibich18-Aug-03 9:01 
GeneralRe: How do I create an ActiveX control in C# at runtime Pin
J. Dunlap18-Aug-03 9:32
J. Dunlap18-Aug-03 9:32 
GeneralForm inheritance theory. Pin
mikemilano18-Aug-03 7:14
mikemilano18-Aug-03 7:14 
GeneralRe: Form inheritance theory. Pin
J. Dunlap18-Aug-03 9:00
J. Dunlap18-Aug-03 9:00 
GeneralRe: Form inheritance theory. Pin
leppie18-Aug-03 12:23
leppie18-Aug-03 12:23 
GeneralOpening office documents Pin
Radoslav Bielik18-Aug-03 6:13
Radoslav Bielik18-Aug-03 6:13 
GeneralRe: Opening office documents Pin
Ista18-Aug-03 16:03
Ista18-Aug-03 16:03 
GeneralRe: Opening office documents Pin
Radoslav Bielik18-Aug-03 21:08
Radoslav Bielik18-Aug-03 21:08 
GeneralI cant debug my class, what gives Pin
Ista18-Aug-03 6:01
Ista18-Aug-03 6:01 
GeneralRe: I cant debug my class, what gives Pin
Ista18-Aug-03 16:04
Ista18-Aug-03 16:04 

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.