Valhalla Legends Archive

Programming => General Programming => Topic started by: Twitch on July 25, 2004, 11:24 PM

Title: Min & Max button
Post by: Twitch on July 25, 2004, 11:24 PM
i need help..    how do i take off the max button on my main form and alter the min button so it works with the sysTray event

sorry im a newb :\
Title: Re:Min & Max button
Post by: Newby on July 25, 2004, 11:35 PM
I suggest you learn Visual Basic before you try and mess with API calls.

EDIT --

Form.MaxButton = False ' If you couldn't figure it out from the Form.MaxButton = True example I showed you earlier
Title: Re:Min & Max button
Post by: UserLoser. on July 25, 2004, 11:39 PM

Private Sub Form_Load()
   MaxButton = True
End Sub


Quote
Compile error:

Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic

Perhaps you should learn Visual Basic before you try and mess with object properties.
Title: Re:Min & Max button
Post by: Twitch on July 25, 2004, 11:55 PM
maybe i dont have the time..  and i just want to fool around with csb for a lil while..  

and maybe i just want one of you to tell me how i can do it..   is that so much to ask ?

btw this doesnt work (along with Form1.maxbutton = false)

Private Sub Form_Load()
   MaxButton = True
End Sub

Title: Re:Min & Max button
Post by: UserLoser. on July 25, 2004, 11:59 PM
Quote from: Twitch on July 25, 2004, 11:55 PM
maybe i dont have the time..  and i just want to fool around with csb for a lil while..  

and maybe i just want one of you to tell me how i can do it..   is that so much to ask ?

btw this doesnt work (along with Form1.maxbutton = false)

Private Sub Form_Load()
   MaxButton = True
End Sub



You can only set MaxButton to true or false in the form properties dialog.  You cannot change it at runtime.  My reply was showing Newby that his method will not work.
Title: Re:Min & Max button
Post by: Twitch on July 26, 2004, 12:06 AM
ohh my god..   i feel like such a idiot right now lol..  
i see it in the properties

thanks userLoser. and i apologize for my incompetence

p.s. im gonna start getting into vb a lot more so dont worry about me bugging you guys anymore ;)
Title: Re:Min & Max button
Post by: j0k3r on July 26, 2004, 07:04 AM
Quote from: Twitch on July 25, 2004, 11:55 PM
maybe i dont have the time..  and i just want to fool around with csb for a lil while..  
You don't have time to do a 10second google search but you have time to register for a forum, post, wait a couple hours, and then retrieve a response?

Anyways, good luck with your endeavours, and remember, Google is your best friend.