Click here to Skip to main content
15,919,028 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how do i change my startup form???? Pin
Blue_Boy24-May-05 4:22
Blue_Boy24-May-05 4:22 
GeneralRe: how do i change my startup form???? Pin
neohop24-May-05 5:54
neohop24-May-05 5:54 
GeneralPausing Code Pin
Reedmon2923-May-05 11:06
Reedmon2923-May-05 11:06 
GeneralRe: Pausing Code Pin
Christian Graus23-May-05 11:51
protectorChristian Graus23-May-05 11:51 
GeneralRe: Pausing Code Pin
Reedmon2923-May-05 16:09
Reedmon2923-May-05 16:09 
GeneralRe: Pausing Code Pin
rudy.net23-May-05 18:47
rudy.net23-May-05 18:47 
GeneralRe: Pausing Code Pin
Reedmon2924-May-05 3:16
Reedmon2924-May-05 3:16 
GeneralRe: Pausing Code Pin
rudy.net24-May-05 3:39
rudy.net24-May-05 3:39 
I haven't tried doing what you need but here are some ideas that I hope they work.
You need to create custom events to pause and continue in one form and subscribe your main form to those events.
Example to create event:
<br />
    Public Event PauseCode()<br />
    Public Event ContinueCode()

You create this event in the form that will be controlling the pause/continue events.
Example to raise event:
<br />
   RaiseEvent PauseCode()
or RaiseEvent ContinueCode()
Let's call the form with events defined above ControlForm
Now in your main form you will create the ControlForm and you have to declare the methods that need to be called when events are raised.
Example to handle the PauseCode event:
<br />
    AddHandler _controlForm.PauseCode, AddressOf OnPauseCode<br />
    AddHandler _controlForm.ContinueCode, AddressOf OnContinueCode


Next thing you have to do is create the OnPauseCode and OnContinueCode subs in your main form. First you need to create a boolean variable such as _isPaused. Then the OnPauseCode should something like:
<br />
private Sub OnPauseCode<br />
  _isPaused=true<br />
  while _isPaused do nothing<br />
  end while<br />
end sub

And the only thing that the sub OnContinueCode does is to change the variable _isPaused to false.
Let me know if it works, I could use probably use it.
GeneralRe: Pausing Code Pin
Reedmon2924-May-05 3:51
Reedmon2924-May-05 3:51 
GeneralRe: Pausing Code Pin
Dave Kreskowiak24-May-05 3:51
mveDave Kreskowiak24-May-05 3:51 
GeneralAutomatic Numbering Pin
macca2423-May-05 10:33
macca2423-May-05 10:33 
GeneralRe: Automatic Numbering Pin
Christian Graus23-May-05 11:56
protectorChristian Graus23-May-05 11:56 
GeneralVB.Net Language Statement Pin
Fernando Soto23-May-05 10:18
Fernando Soto23-May-05 10:18 
GeneralRe: VB.Net Language Statement Pin
Dave Kreskowiak23-May-05 10:41
mveDave Kreskowiak23-May-05 10:41 
GeneralRe: VB.Net Language Statement Pin
Fernando Soto23-May-05 13:13
Fernando Soto23-May-05 13:13 
GeneralADODC Control Pin
ems18p23-May-05 8:40
ems18p23-May-05 8:40 
GeneralSaving in VB Pin
siskomike23-May-05 6:51
siskomike23-May-05 6:51 
GeneralRe: Saving in VB Pin
Brian Van Beek23-May-05 7:24
Brian Van Beek23-May-05 7:24 
GeneralRe: Saving in VB Pin
siskomike23-May-05 7:50
siskomike23-May-05 7:50 
GeneralRe: Saving in VB Pin
Brian Van Beek23-May-05 7:58
Brian Van Beek23-May-05 7:58 
GeneralRe: Saving in VB Pin
siskomike23-May-05 8:19
siskomike23-May-05 8:19 
GeneralRe: Saving in VB Pin
Brian Van Beek23-May-05 8:50
Brian Van Beek23-May-05 8:50 
GeneralRe: Saving in VB Pin
siskomike23-May-05 9:05
siskomike23-May-05 9:05 
GeneralStartposition of a form Pin
KreativeKai23-May-05 6:44
professionalKreativeKai23-May-05 6:44 
GeneralRe: Startposition of a form Pin
Fernando Soto23-May-05 7:47
Fernando Soto23-May-05 7:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.