• Welcome to Valhalla Legends Archive.
 

Min & Max button

Started by Twitch, July 25, 2004, 11:24 PM

Previous topic - Next topic

Twitch

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 :\

Newby

#1
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
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

UserLoser.


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.

Twitch

#3
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


UserLoser.

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.

Twitch

#5
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 ;)

j0k3r

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.
QuoteAnyone attempting to generate random numbers by deterministic means is, of course, living in a state of sin
John Vo