You are not logged in.

Perry

Beginner

  • "Perry" is male
  • "Perry" started this thread

Posts: 40

Date of registration: Jan 15th 2011

Location: Sarasota, FL

Occupation: Cabinet Design

Hobbies: Programming

  • Send private message

1

Monday, August 12th 2013, 5:07pm

Common Dialog

There is something wrong here.
I stripped this code to the bare essentials so other variables wouldn't interfere.

To try this example, make a new form with 1 command button

Paste this code in.

Source code

1
2
3
4
5
6
7
8
9
10
11
Public Sub Form_Load()
   Dim FD As New VB#CommonDialog 
   FD.ShowOpen True

   Set FD = Nothing
End Sub

Public Sub Command1_Click()
   Unload Me
   
End Sub


When I exit the program through program control (command button) .. it will not release me to the editor.
It is as if the commondialog box is still keeping the program from fully closing.
When I Exit through the [X] (Windows Close) the program closes properly and it releases me back to the editor.

What am I missing here?

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Monday, August 12th 2013, 5:23pm

RE: Common Dialog

Quoted

When I exit the program through program control (command button) ..
You don't exit the program. With "Unload" you only close the window. To exit the program write "System.exit(0)" or "VB#Global.End" or something like that.

Greatings
theuserbl

Perry

Beginner

  • "Perry" is male
  • "Perry" started this thread

Posts: 40

Date of registration: Jan 15th 2011

Location: Sarasota, FL

Occupation: Cabinet Design

Hobbies: Programming

  • Send private message

3

Monday, August 12th 2013, 5:51pm

Thank you.
Either of those commands work fine.
I found no examples of this ... and I don't know if there is any documentation on it
I seemed a question too basic to ask, but I need to know.
Thanks again.

Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

4

Monday, August 12th 2013, 7:00pm

Hey there,

I get 27 results for 'Unload Me'from the toplevel search of the forum!
Still, you are right, it is not very intuitive. I have been there too... :D


Dani

spysonic

Trainee

  • "spysonic" is male

Posts: 88

Date of registration: Jul 11th 2014

About me: A beginner programmer.

Location: ...Jabaco Academy

Occupation: i have some but still not enough...

Hobbies: Jabaco

  • Send private message

5

Friday, August 1st 2014, 4:27am

Somebody plss help me..

i wanted to navigate through multiple forms. but setting my desired form to be displayed to ex. Form1 = New Form1 wont display the form once i am on the form2

plss help me.
just want to do a basic navigation program compose of at least 3 forms.

i tried searching to the forum but no success.!

plss help.
.
.
Spare me, im new to Programming

This post has been edited 1 times, last edit by "spysonic" (Aug 1st 2014, 5:19am)


spysonic

Trainee

  • "spysonic" is male

Posts: 88

Date of registration: Jul 11th 2014

About me: A beginner programmer.

Location: ...Jabaco Academy

Occupation: i have some but still not enough...

Hobbies: Jabaco

  • Send private message

6

Friday, August 1st 2014, 7:00am

as of the moment my solution was to use the Dialog control which serve as my Form2 and form3.

but I am wondering if there are other solution better than this.
.
.
Spare me, im new to Programming

Rate this thread
WoltLab Burning Board