2 VB6 Coding Questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Filter2700
    New Member
    • May 2007
    • 10

    #1

    2 VB6 Coding Questions

    I need to know how to make it so that when you click the commandbutton, text will appear in the OLE white box field thing. I'm new to VB6, so I'm thinking it's a command. I need some good step by step instructions on how to add the code to it or make it work.

    Also, what is the code to shutdown a PC?

    Thanks for any help, it's greatly appreciated!
  • Atran
    Contributor
    • May 2007
    • 319

    #2
    Originally posted by Filter2700
    I need to know how to make it so that when you click the commandbutton, text will appear in the OLE white box field thing. I'm new to VB6, so I'm thinking it's a command. I need some good step by step instructions on how to add the code to it or make it work.

    Also, what is the code to shutdown a PC?

    Thanks for any help, it's greatly appreciated!
    Hello, explain better what you talking about, I do not understand very well, but for Windows Shutting Down Code, Check this site:

    Comment

    • Filter2700
      New Member
      • May 2007
      • 10

      #3
      Here, look at this. I want to make it so that when I click the "BUTTON" button text will appear in the OLE white box. I'm trying to make a test program that will allow me to press a button and make the numbers appear in a box.

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        All I see is a gray square. Could you try attaching the image?

        To do so, I think you need to post a message, then within the five-minute time limit, edit the message, and down the bottom of the edit screen, use the button which says "Manage attachments". Then browse to the image, and attach it.

        Comment

        • Filter2700
          New Member
          • May 2007
          • 10

          #5
          I don't see any attachments box. I know what you're talking about, but I don't see one.

          Just click this link to see the image... http://img379.imageshack.us/img379/43/helppcz9.jpg
          Last edited by Filter2700; May 13 '07, 10:23 PM. Reason: so i could add an attachment

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Originally posted by Filter2700
            I don't see any attachments box. I know what you're talking about, but I don't see one.

            Just click this link to see the image... http://img379.imageshack.us/img379/43/helppcz9.jpg
            I already tried going to that address before - all I see is a gray square (see first attachment below).

            It's possible that a regular member sees different options when editing a message to what a Moderator does, of course. But in theory, when you edit your message you should see "Additional options" below the main edit area. You may have to hit a "+" at the top right of the box expand it. Once you do, you should see something like the second attachment here. If you can get to that point, it should be fairly self-evident how to attach the file.

            If the options aren't there, I'll have to have a word to the Admins about why not. Also, I'm at work now so it may be just the system here blocking the image. If so, I should be able to see it when I get home. That's likely to be in about... oh, 3 or 4 hours.

            Oops! They seem to be displayed in the reverse order. Oh well, you can see which is which.
            Attached Files

            Comment

            • Filter2700
              New Member
              • May 2007
              • 10

              #7
              Try this link... http://i41.photobucket.com/albums/e2...2700/helpp.jpg

              Comment

              • Killer42
                Recognized Expert Expert
                • Oct 2006
                • 8429

                #8
                Originally posted by Filter2700
                Have you actually tried opening any of these links yourself? All I ever see is that gray square I showed in my response. Maybe the image is wrong.

                Comment

                • Killer42
                  Recognized Expert Expert
                  • Oct 2006
                  • 8429

                  #9
                  Ok, I finally managed to get a look at the image. So, what exactly is the "OLE white box"? If it's a textbox, then you would just code something like Text1.Text = Button1.Caption in the Click event procedure for the button.

                  By the way, I notice the controls look a bit different. What is that, Vista?

                  Comment

                  • Filter2700
                    New Member
                    • May 2007
                    • 10

                    #10
                    All I want is so you click a button, and text that I want will appear, specifically a white text box. I really don't know how to explain it because I'm so new. I'll mess around with that code. Thanks for your help.

                    And yea, it is vista. It's nice, very nice.

                    Comment

                    • Filter2700
                      New Member
                      • May 2007
                      • 10

                      #11
                      I entered that code (Text1.Text = Button1.Caption ) and I got an error when I tested the program. How do I make the code work? For caption do I put what I want it to say? And where to I place the code, I don't know what the "Click event procedure for the button" is. Please explain more and possibly use some screenshots. I usually need to see it to make sure I know I'm doing it right.

                      Sorry for the hassle, thanks again.

                      Comment

                      • Filter2700
                        New Member
                        • May 2007
                        • 10

                        #12
                        Maybe a little help? It's been 2 weeks.

                        Comment

                        • Killer42
                          Recognized Expert Expert
                          • Oct 2006
                          • 8429

                          #13
                          Originally posted by Filter2700
                          Maybe a little help? It's been 2 weeks.
                          Sorry, I've been very busy and forgot about this one. Will get to it in a couple of hours now.

                          Comment

                          • Filter2700
                            New Member
                            • May 2007
                            • 10

                            #14
                            A couple hours turned into a couple days...

                            Comment

                            • Killer42
                              Recognized Expert Expert
                              • Oct 2006
                              • 8429

                              #15
                              Originally posted by Filter2700
                              A couple hours turned into a couple days...
                              Bit of an understatement, really - it's about 5 days now.

                              I'll go back over this thread now, as I've forgotten what it's about.

                              Comment

                              Working...