About Box...
About Box...
Hello. I'm clicking "Project", then "Add Module", then I add an about box to my project, BUT how can I make it so when I click a button it will load? I've tried copy and pasting the AboutBox1 code over the button click code, but no luck.
I'm using Visual Studio 2008.
Thank you to the people who help!
I'm using Visual Studio 2008.
Thank you to the people who help!
- grimdoomer
- Posts: 1440
- Joined: Mon Oct 09, 2006 4:36 pm
Make it a form and name it AboutForm, then add this in the button click method:
Code: Select all
AboutForm About = new AboutForm();
About.Show();
AI Zones in MP | Ambiance | Gravemind Beta v1.1
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
I did that, but it said that most of your code was not declared.grimdoomer wrote:Make it a form and name it AboutForm, then add this in the button click method:Code: Select all
AboutForm About = new AboutForm(); About.Show();
- LuxuriousMeat
- Posts: 824
- Joined: Thu Nov 03, 2005 6:43 pm
- Location: zzzzzzzzzzzzzzzz
- Contact:
VB
C#
Code: Select all
Dim f as New FormName
f.ShowDialog()
Code: Select all
FormName f = new FormName();
f.ShowDialog();
Ah! That's what I'm looking for! It worked. Thanks you both for helping!LuxuriousMeat wrote:VBC#Code: Select all
Dim f as New FormName f.ShowDialog()
Code: Select all
FormName f = new FormName(); f.ShowDialog();
- LuxuriousMeat
- Posts: 824
- Joined: Thu Nov 03, 2005 6:43 pm
- Location: zzzzzzzzzzzzzzzz
- Contact:
-
- Posts: 1262
- Joined: Sun Sep 03, 2006 10:43 pm
- Location: Michigan
Fixed.grimdoomer wrote:Make it a form and name it AboutForm, then add this in the button click Event:Code: Select all
AboutForm About = new AboutForm(); About.Show();
- Aumaan Anubis
- Posts: 2938
- Joined: Fri Jun 30, 2006 1:01 pm
- Location: Aumaan
- Contact:
- LuxuriousMeat
- Posts: 824
- Joined: Thu Nov 03, 2005 6:43 pm
- Location: zzzzzzzzzzzzzzzz
- Contact:
- Aumaan Anubis
- Posts: 2938
- Joined: Fri Jun 30, 2006 1:01 pm
- Location: Aumaan
- Contact:
Yes, but the actual click of the button is an event...
Oh wait, you mean like, the method is related to the button, and therefore the button click method...
Either way, you put that code within the Event, not within the method.
ahhh....
In either case,
Supermodder, pick up your game!
Oh wait, you mean like, the method is related to the button, and therefore the button click method...
Either way, you put that code within the Event, not within the method.
ahhh....
In either case,
Supermodder, pick up your game!
It is expected, and demanded.Tural wrote:MrMurder, we're going to hold you to that promise.
-
- Posts: 1262
- Joined: Sun Sep 03, 2006 10:43 pm
- Location: Michigan
- grimdoomer
- Posts: 1440
- Joined: Mon Oct 09, 2006 4:36 pm
The click event is simply a method. All of you pick up your game
AI Zones in MP | Ambiance | Gravemind Beta v1.1
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
Look inside the AboutBox code...there should be a line declaring the label to use the assembly information. Just replace it with your own.Eaton wrote:Wow. A lot of replies. Ok. I will use the fixed code Supermodder posted. Just one more question... How can I make it so my about box displays my own custom text? I type in text, but I run it, it displays the assembly information and not my custom text...
...left for good
- Aumaan Anubis
- Posts: 2938
- Joined: Fri Jun 30, 2006 1:01 pm
- Location: Aumaan
- Contact:
His code isn't fixed. It was fine as it was. He was trying to tell Grim that the click of a button is an event, not a method. Which, by the way, is why he bolded "event," in his "fixed code" post.Eaton wrote:Ok. I will use the fixed code Supermodder posted.
It is expected, and demanded.Tural wrote:MrMurder, we're going to hold you to that promise.
- LuxuriousMeat
- Posts: 824
- Joined: Thu Nov 03, 2005 6:43 pm
- Location: zzzzzzzzzzzzzzzz
- Contact: