Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. VB events and Command Buttons

VB events and Command Buttons

Scheduled Pinned Locked Moved Visual Basic
help
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    blaze1978
    wrote on last edited by
    #1

    Hi, I am trying to implement an VB GUI application where in when I click a command button "Send" it enables a frame and this frame has some text boxes. The user enters some string in the text box and clicks another command button "ok", which is in the frame. When "ok" is clicked the remaining code in the Send_Click()should continue. I realize I need to use some kind of wait or events, but I am not sure how. If anyone can help me out it'll be great! thanks, Shyam

    N 1 Reply Last reply
    0
    • B blaze1978

      Hi, I am trying to implement an VB GUI application where in when I click a command button "Send" it enables a frame and this frame has some text boxes. The user enters some string in the text box and clicks another command button "ok", which is in the frame. When "ok" is clicked the remaining code in the Send_Click()should continue. I realize I need to use some kind of wait or events, but I am not sure how. If anyone can help me out it'll be great! thanks, Shyam

      N Offline
      N Offline
      Nick Seng
      wrote on last edited by
      #2

      Why not separate it into 2 methods? The first button will call method 1, and the second button will call method 2 Nick Seng (the programmer formerly known as Notorious SMC)


      God, I pity me! - Phoncible P. Bone

      B 1 Reply Last reply
      0
      • N Nick Seng

        Why not separate it into 2 methods? The first button will call method 1, and the second button will call method 2 Nick Seng (the programmer formerly known as Notorious SMC)


        God, I pity me! - Phoncible P. Bone

        B Offline
        B Offline
        blaze1978
        wrote on last edited by
        #3

        But then it'll be two unrelated events. When I click the first button it has do some stuff and upon completion the ok button is clicked and control is transfered back. Shyam

        N 1 Reply Last reply
        0
        • B blaze1978

          But then it'll be two unrelated events. When I click the first button it has do some stuff and upon completion the ok button is clicked and control is transfered back. Shyam

          N Offline
          N Offline
          Nick Seng
          wrote on last edited by
          #4

          I'm not sure why you want to do. Can you show some code of the click event? Nick Seng (the programmer formerly known as Notorious SMC)


          God, I pity me! - Phoncible P. Bone

          R B 2 Replies Last reply
          0
          • N Nick Seng

            I'm not sure why you want to do. Can you show some code of the click event? Nick Seng (the programmer formerly known as Notorious SMC)


            God, I pity me! - Phoncible P. Bone

            R Offline
            R Offline
            RichardGrimmer
            wrote on last edited by
            #5

            Can't you show the second form modally? "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

            1 Reply Last reply
            0
            • N Nick Seng

              I'm not sure why you want to do. Can you show some code of the click event? Nick Seng (the programmer formerly known as Notorious SMC)


              God, I pity me! - Phoncible P. Bone

              B Offline
              B Offline
              blaze1978
              wrote on last edited by
              #6

              Sorry for the late reply, but thanks to everybody who replied. I got it to work according to what Nick said. Thanks Blaze

              N 1 Reply Last reply
              0
              • B blaze1978

                Sorry for the late reply, but thanks to everybody who replied. I got it to work according to what Nick said. Thanks Blaze

                N Offline
                N Offline
                Nick Seng
                wrote on last edited by
                #7

                No Prob. I'm glad you got it to work. :)


                God, I pity me! - Phoncible P. Bone If I end up Windows ME someone is going to be hurting. - One of the answers to a question for What OS are you

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups