Loading forms in eVB 
Author Message
 Loading forms in eVB

I am attempting to write a simple application in eVB which requires loading
/ showing different forms, but I can't seem to be able to do it.

My only experience in using VB is within Access 2000, where a simple
docmd.open does the trick.  However this doesn't seem to work in eVB.

Does someone have a simple example of a program which loads a form when a
button on another form is clicked?

If someone could shed some light on my ignorance I would be very grateful.

Thanks

Phil



Sat, 07 Aug 2004 06:26:06 GMT  
 Loading forms in eVB

Hello,
it is possible to do... you just need to read a help little bit...
Now I am sending you example very simple on...
When you click on next button you see next form!!

1. way:  Make a double-click on the Command Button in the ViewObject view of
your form  That performs, that it should change to the ViewCode view and add
a Sub like this:

Private Sub next_Click()

End Sub

2. way: Directly above your source code you have two dropdown lists. On the
left you could select your object (the next button in this case) and on the
right you could select all events that may be depending on this object
(click, gotfocus, keydown, ...)

Form1 is your form, with the next Button code:
Form2 is the form, that will be displayed after clicking the next button

In Form1 try this:

Private Sub next_Click()
 Form2.Show, 0

If it is not working you can also try..

Make a new module under menu Project|Add module
Make a sub called main in it:

Sub main()
 Form1.Show
( Form1.Refresh) you can put this but not neccessary..
End Sub

Regards
Irena

Quote:
> I am attempting to write a simple application in eVB which requires
loading
> / showing different forms, but I can't seem to be able to do it.

> My only experience in using VB is within Access 2000, where a simple
> docmd.open does the trick.  However this doesn't seem to work in eVB.

> Does someone have a simple example of a program which loads a form when a
> button on another form is clicked?

> If someone could shed some light on my ignorance I would be very grateful.

> Thanks

> Phil



Sat, 07 Aug 2004 15:30:09 GMT  
 Loading forms in eVB
Thanks for your help - I thought I had tried this and it didn't work, but I
couldn't have!

Worked first time

Phil


Quote:
> I am attempting to write a simple application in eVB which requires
loading
> / showing different forms, but I can't seem to be able to do it.

> My only experience in using VB is within Access 2000, where a simple
> docmd.open does the trick.  However this doesn't seem to work in eVB.

> Does someone have a simple example of a program which loads a form when a
> button on another form is clicked?

> If someone could shed some light on my ignorance I would be very grateful.

> Thanks

> Phil



Mon, 09 Aug 2004 00:58:24 GMT  
 Loading forms in eVB
I am afraid that I did not understand what you wanted to say... It works or
no... If it sometimes work and sometimes does not while you are doing
debug.. do not worry I had the same problem but it works in final program...
Look in help also.. maybe you can get some idea there...
Best regards
Irena

Quote:
> Thanks for your help - I thought I had tried this and it didn't work, but
I
> couldn't have!

> Worked first time

> Phil



Mon, 09 Aug 2004 16:12:39 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. eVB Masters - Slow Load with Control Intensive Form

2. load another form form one form

3. eVB: cannot load to device while AciveSync is connected

4. Can't get eVB to load debugger

5. My eVB app takes 5 seconds to load

6. loading xml file in eVB

7. Loading an executable file in eVB

8. Combobox/vaSpread Load behaviour in SSTab while form loads

9. Not a loaded class error when loading form

10. VB6: application in runtime environment with error on loading form: ado cannot load object

11. How to load resorces of a form that is not loaded

12. Windows Forms - Loading & Unloading Forms

 

 
Powered by phpBB® Forum Software