Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

vb6 Help


  • Please log in to reply

#1
TwiztidNinja

TwiztidNinja

    Member

  • Member
  • PipPip
  • 51 posts
ok i have a program and im trying to make the program pause when i open up anouther form or when i make that form visible then resume the code when the form becomes invisable again any help would be greatly appreciated
  • 0

Advertisements


#2
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
you could get it to sleep look on google 4 this
  • 0

#3
TwiztidNinja

TwiztidNinja

    Member

  • Topic Starter
  • Member
  • PipPip
  • 51 posts
i did look on google but sleep is jsut for an amount of time i want it to be like once the input is enterewd it comes back to life
  • 0

#4
TwiztidNinja

TwiztidNinja

    Member

  • Topic Starter
  • Member
  • PipPip
  • 51 posts
anyone :-(
  • 0

#5
MaverickSidewinder

MaverickSidewinder

    Member

  • Member
  • PipPipPip
  • 257 posts
I don't know if its the same for VB but in C++ to pause a program so that it doesn't come up and disappear again you use:

system("PAUSE");


Probably won't help since VB and C++ are two completely different languages... ;)


Anyway, good luck and happy surfin!


:tazz:

- Maverick
  • 0

#6
mpfeif101

mpfeif101

    Member 1K

  • Retired Staff
  • 1,411 posts
MaverickSidewinder... unfortunatley that code doesn't work in VB, they are two different languages.

TwiztidNinja... I'm confused on what you want. So you're opening another form (form.Show), and want the main form to stop executing code? Couldn't you just hide it? (me.hide)
  • 0

#7
MaverickSidewinder

MaverickSidewinder

    Member

  • Member
  • PipPipPip
  • 257 posts
Thought so.... :tazz:

Im useless.... ;)


:tazz:

;)

;)

Useless but happy :)

- Maverick
  • 0

#8
TwiztidNinja

TwiztidNinja

    Member

  • Topic Starter
  • Member
  • PipPip
  • 51 posts
no because i want it top finish executing the code when im done with the new form




Bu]nch of code
stop here until done with new form
Continue here when done with new form
Bunch of code
  • 0

#9
TwiztidNinja

TwiztidNinja

    Member

  • Topic Starter
  • Member
  • PipPip
  • 51 posts
I found a solution to this without pausing the code ill just brake it up amoungs the forums and save the data in text files
  • 0

#10
Ctrl_Alt_Del

Ctrl_Alt_Del

    Member

  • Member
  • PipPip
  • 74 posts
Open the new form as Application modal. Even if you are in a loop the loop will stop when the new form appears. Then when the new form is closed code resumes on the first line AFTER the call to show window.
  • 0

#11
kool808

kool808

    Visiting Staff

  • Member
  • PipPipPipPip
  • 1,690 posts
if you are talking of visual basic 6:

assuming you have the cmdOK button, when click event is activated this codes will be useful:

Private Sub cmdOk_Click()
' This will show the next form
form2.show

' This will disable the previous form thus pausing any running operations
form1.enable = false

End Sub

Supposed at form2 you had again another cmdClose button, click event is activated

Private Sub cmdClose_Click()
' This will hide form2
form2.hide

' This will show the next form
form1.show

' This will disable the previous form thus pausing any running operations
form1.enable = true

End Sub

Edited by kool808, 09 July 2005 - 08:50 AM.

  • 0

#12
erin5

erin5

    New Member

  • Member
  • Pip
  • 5 posts
hello, i need help in vb6 and i dunno where to go for help.
im doing a small crm application for my company. how many users are able to access to the system or application at the same time? is 20 users able to access to the system at the same time, where the db is kept in the server.
if no one can help me here..at least tell me where i can go to get the answer..plz..
thank you very much :tazz:
  • 0

#13
erin5

erin5

    New Member

  • Member
  • Pip
  • 5 posts
:tazz: ermm..sorry for interruption as in i just post a question here..sorry
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP