Jump to content

Doing this in c# . . .

- - - - -

  • Please log in to reply
2 replies to this topic

#1
danielmace

danielmace

    Newbie

  • Members
  • Pip
  • 3 posts
dim addbutton as new button


form1.controls.add(addbutton)
any ideas?

#2
gregwarner

gregwarner

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 853 posts
  • Location:Arkansas

Button button = new Button();

Form1.Controls.Add(button);


Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid


#3
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#

gregwarner said:


Button button = new Button();

Form1.Controls.Add(button);

@danielmace
Button is class and button is your name for instance...you can change it in name you want...it's not strict to be named button




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users