Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
XxX_Mr-Hacker_XxX
Advanced Cheater
Reputation: 0

Joined: 11 Jan 2009
Posts: 52
Location: Gaming gutter

PostPosted: Tue Mar 17, 2009 8:36 am    Post subject: Help Reply with quote

Can anybody show me how to load from one form to another using a button please
Back to top
View user's profile Send private message
mStorm
Expert Cheater
Reputation: 0

Joined: 21 Feb 2009
Posts: 107

PostPosted: Tue Mar 17, 2009 9:03 am    Post subject: Reply with quote

in VB, or C++? or?
Back to top
View user's profile Send private message
AlbanainRetard
Master Cheater
Reputation: 0

Joined: 02 Nov 2008
Posts: 494
Location: Canada eh?

PostPosted: Tue Mar 17, 2009 1:16 pm    Post subject: Reply with quote

C++ = Create a dialog? In a separate thread for MDI or in the same for input fields.
C# = Fromname(.cs file)?

Code:

Form2 f = new Form2();
f.Show();

or

f.ShowDialog();

_________________
Back to top
View user's profile Send private message Send e-mail
XxX_Mr-Hacker_XxX
Advanced Cheater
Reputation: 0

Joined: 11 Jan 2009
Posts: 52
Location: Gaming gutter

PostPosted: Wed Mar 18, 2009 3:29 am    Post subject: Reply with quote

mStorm wrote:
in VB, or C++? or?

oh crap srry in vb
Code:
Public Class Form1

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        ProgressBar1.Increment(1)
        If ProgressBar1.Value = ProgressBar1.Maximum Then
            Form2.Show()
            Me.Close()

        End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If TextBox1.Text = "" And TextBox2.Text = "" Then
            ProgressBar1.Visible = True
            Timer1.Start()
        Else
            MsgBox("srry")

        End If
    End Sub
End Class

here is the code
it loads the first form but after that it ends the rogram
any help???
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Wed Mar 18, 2009 3:38 am    Post subject: Reply with quote

notice that after you're opening the second form
Code:

Form2.Show();

you're closing the whole process.
Code:

Me.Close();

will close the parent window which is the first window so no wonder your process is shut down
Back to top
View user's profile Send private message
XxX_Mr-Hacker_XxX
Advanced Cheater
Reputation: 0

Joined: 11 Jan 2009
Posts: 52
Location: Gaming gutter

PostPosted: Wed Mar 18, 2009 7:10 am    Post subject: Reply with quote

1qaz wrote:
notice that after you're opening the second form
Code:

Form2.Show();

you're closing the whole process.
Code:

Me.Close();

will close the parent window which is the first window so no wonder your process is shut down

OMG thank you soo much
+ rep
THNX

Edit: Okay that worked but how do I then close the first form without shutting the whole thing down??
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Wed Mar 18, 2009 7:35 am    Post subject: Reply with quote

you're first form is the parent window of whole windows that you'll open at that process.
so when that "Main" form is closed, it'll close all other opened windows
since all of them are the childes windows of that window.
i don't think that's possible to do what you're planning to do, well maybe it is i never tried it before but good luck.
Back to top
View user's profile Send private message
mStorm
Expert Cheater
Reputation: 0

Joined: 21 Feb 2009
Posts: 107

PostPosted: Wed Mar 18, 2009 8:05 am    Post subject: Reply with quote

Form1.Visible = False
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites