Making My About Box Show When I Go ["help --> About"] - giving myself rightful credits

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > VB Programming

Making My About Box Show When I Go ["help --> About"] - giving myself rightful credits

electriic ink
I've just finished downloading Visual Basic 2005 Express Edition and I love it. I've improvised upon their beginners tutorial about creating a browser except I want to create an About Box to go with it.

I've done the box itself (it's called AboutBox1) I just need the code to display it when you click Help --> About. So far I've got:

CODE

Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutToolStripMenuItem.Click
      
  ' NEEDS TO GO HERE
    
End Sub


I've tried AboutBox1.Show() , Show.AboutBox1() , Show(AboutBox1) and AxCommonDialog1.ShowAbout()

Thanks in advance.

 

 

 


Reply

rvalkass
I have just created an app with a menu bar and a spearate form with a label. The following code worked perfectly to load Form2 when the Help > About button was clicked on the menu strip.
CODE

Public Class Form1

    Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutToolStripMenuItem.Click
        Form2.Show()

    End Sub
End Class


I also just tried this using a specific about box (rather than just a standard form) and that also worked fine.

The correct accepted code to load a form, with the current form you are viewing as its parent form, is FORMNAME.Show() so that should work for you. Are you sure that your about box is not getting loaded somewhere else in the code or is being loaded at the startup and just being hidden?

 

 

 


Reply

electriic ink
Thank you for expressing an interest in helping. The code I have used is as follows:

CODE
    Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutToolStripMenuItem.Click
        AboutBox1.Show()
    End Sub


Which isn't dissimilar to what you gave me. This is a screenshot of what the screen looks like after I type the code:

Click to view attachment

I can't think want the problem is as an online tutorial told me to do exactly the same thing as you have. unsure.gif

Reply

rvalkass
I reckon, due to that blue underline on the code (the same sort of thing you get for spelling mistakes in Word etc) that form doesn't actually exist. You have named the file AboutBox1, however the form's name is probably still something like Form2 and it is this that you need to put in the code. Go into the design view of AboutBox1 and click anywhere on the main form area and look at the properties. Make sure the form name is also set to AboutBox1 rather than Form2 or something.

Reply

electriic ink
Thank you. It works now biggrin.gif It turns out that the actual name of the form was About so the code About.Show() works.

Reply

tydes
yahhhhhhhhhhhh

1st. we must make a new form and design it!
2nd. now click help ==> about and enter code here
CODE
Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutToolStripMenuItem.Click
        xxx.Show()
End Sub


you just change xxx with form name you want to show

its very easy!

wink.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. word add in showing aboutbox - 17.10 hr back. (1)
  2. about.show vb - 24.92 hr back. (1)
  3. make a button in vb open aboutbox - 91.27 hr back. (1)
  4. open aboutbox in main form vb - 106.70 hr back. (1)
  5. visual basic aboutbox - 120.78 hr back. (1)
  6. visual basic 2005 express edition aboutbox1 - 141.89 hr back. (2)
  7. visual basic 2005 express edition button click aboutbox1 - 144.48 hr back. (1)
  8. visual basic aboutbox tutorial - 205.64 hr back. (1)
  9. aboutbox mdiparent vb - 235.32 hr back. (1)
  10. aboutbox in vb - 240.64 hr back. (1)
  11. html help on making boxes for codes - 244.77 hr back. (1)
  12. vb 2005 aboutbox - 251.91 hr back. (1)
  13. using aboutbox in visual basic 2008 - 254.65 hr back. (1)
  14. abouttoolstripmenuitem - 283.33 hr back. (1)
Similar Topics

Keywords : making giving rightful credits

  1. Making A Rss Reader - (8)
    is it possible to make a rss reader in vb? im thinking about making one in vb6...
  2. My Guidewriter - Simple Visual Basic program to aid in making guides (3)
  3. Basic Chat - Making a basic chat (3)
    Hi all This is how you make a basic Client/Server Chat (Server Side) For this code you require - 2
    Textboxes (You can call them anything you want but i'm going to call them txthst (Chat history)
    txtmsg (Chat Message)) - 1 Command Button (You can call it what ever you want but i'm going call
    it cmdsnd (To Send Messages)) - 1 Winsock Control (You can call it what ever you want but i'm
    going to call it ws (To listen)) MainFrm.frm Menu - Exit CODE Private Sub Form_Load()
        ws.LocalPort = 12345     ws.Listen End Sub Private Sub Winsock_Connect...



Looking for making, box, show, giving, rightful, credits

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for making, box, show, giving, rightful, credits

*MORE FROM TRAP17.COM*
advertisement



Making My About Box Show When I Go ["help --> About"] - giving myself rightful credits



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE