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 in 2 thing

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Golden Wing
Grandmaster Cheater
Reputation: 0

Joined: 29 Aug 2007
Posts: 905

PostPosted: Sat Feb 23, 2008 2:54 pm    Post subject: Help in 2 thing Reply with quote

in vb6

1.how do i make message box like when i click the command"exit" it will pop up saying "are you sure you want to quit?"

2.how do i make custom "rezize and close" button?

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Feb 23, 2008 4:51 pm    Post subject: Reply with quote

1. Yes / No MessageBox
2. Taking a guess here, ControlName.Height/Width
Back to top
View user's profile Send private message
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Sat Feb 23, 2008 5:08 pm    Post subject: Reply with quote

1.
Code:


dim msgboxresult as vbmsgboxresult
msgboxresult = msgbox "Are you sure you want to exit?", yesno
if msgboxresult = true then
unload me
end if


Back to top
View user's profile Send private message
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Sat Feb 23, 2008 6:59 pm    Post subject: Reply with quote

Code:
If MsgBox("Message", vbYesNo, "Tittle") = vbYes Then
End
Else
MsgBox ("kewl")
End If

_________________

Back to top
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Sat Feb 23, 2008 7:09 pm    Post subject: Reply with quote

masterkert3 wrote:
1.
Code:


dim msgboxresult as vbmsgboxresult
msgboxresult = msgbox "Are you sure you want to exit?", yesno
if msgboxresult = true then
unload me
end if



You don't need to use a variable for getting the messagebox result.
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sat Feb 23, 2008 9:00 pm    Post subject: Reply with quote

I think he means custom graphic for the buttons. I can't tell from the top of my head... but it's widely documented on the net.
_________________
Back to top
View user's profile Send private message
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Sat Feb 23, 2008 9:05 pm    Post subject: Reply with quote

I get it now, thanks Sponge.

He means, custom Minimize, Maximize, and Close buttons from the form. Neutral

It changes depeding of the style that you got on you computer. If you wants an standard one, then make it with no borders, and make one with pictures and make a mouse grab thing Neutral

Is so far what i could think.

_________________

Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Sat Feb 23, 2008 9:24 pm    Post subject: Reply with quote

XxOsirisxX wrote:
Code:
If MsgBox("Message", vbYesNo, "Tittle") =vbYes Then
End
Else
MsgBox ("kewl")
End If


I dont think you need to include vb. What does that mean?

_________________
Back to top
View user's profile Send private message
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Sat Feb 23, 2008 9:27 pm    Post subject: Reply with quote

AndrewMan wrote:
XxOsirisxX wrote:
Code:
If MsgBox("Message", vbYesNo, "Tittle") =vbYes Then
End
Else
MsgBox ("kewl")
End If


I dont think you need to include vb. What does that mean?


Yes, you have to.

And, it means Visual Basic Rolling Eyes

_________________

Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Sun Feb 24, 2008 3:35 am    Post subject: Reply with quote

A little more control over the selection and what happens can be done with:

Code:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)

    Dim dwMsgRet As Long
    dwMsgRet = MsgBox("Are you sure you want to exit?", vbYesNoCancel, "Really Exit?")
   
    Select Case dwMsgRet
        Case vbYes
            '// User Wants To Exit
            '// Unload all objects before letting this return!
            Cancel = 0
       
        Case vbNo
            '// User does not want to exit, raise cancel and exit.
            Cancel = 1
       
        Case vbCancel
            '// User was unsure and canceled.
            Cancel = 1
    End Select

End Sub

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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