• Welcome to Valhalla Legends Archive.
 

Making Visual Basic 6 applications take up the entire screen....

Started by Needler, June 14, 2005, 02:20 PM

Previous topic - Next topic

Needler

Hi, I'm still rather new to Visual Basic, but I am working on a chat client at the moment and I would like to know how to make it take up the entire screen like the Battle.net clients do. Any responses are appreciated, except for "stfu and quit lyfe n00b"... Because I already know I'm newb.


Needler

Click? What do you mean?

If you mean the Maximize button, that's not what I'm looking for...

I'm looking to make it take up the *ENTIRE* screen, and overlap the bottom toolbar... Like StarCraft, Diablo II, and WarCraft all do.

QwertyMonster


QwertyMonster

Or do what i do.

Maxime the visual basic form, and make a note of the height, weight etc.
Put all your text boxes etc.. in the correct place, and make a note of it.

Then on form_load just put like text1.height = <whatever> and the rest. and for a full screen, i think its.

me.windowstate = 2
I think.

Ringo

New project > exe project

In the boarder properties for the form, change its boarder style to none.
Then set its window state to maximized.
Should work.

[edit]
oops, i forgot to say, you might want to add some code in the keypress event for the form inorder to close it.

Forged

Quote from: OnlyMeat on June 14, 2005, 03:59 PM
Quote from: Shout on June 14, 2005, 02:44 PM
Click

I think shout must be a shareholder of google as he mentions their name in almost every post reply. What more can you expect from a MyndFyre clone though.

Now the original question. From what i remember to get a full screen mode, you simply get the screen dimensions and size your window to that size. Now there is an issue with the start bar, but i think that can be overcome if you set the window as always ontop.


[edit] Forgot to mention, you might want to remove the title bar from your window properties as well to give you that full screen look.

9 out of 10 questions can be answered with google.  If you don't have a specific bug in your coding you should probablly check google for the general purpose stuff.
QuoteI wish my grass was Goth so it would cut itself

QwertyMonster

Quote from: Ringo on June 14, 2005, 04:07 PM
New project > exe project

In the boarder properties for the form, change its boarder style to none.
Then set its window state to maximized.
Should work.

[edit]
oops, i forgot to say, you might want to add some code in the keypress event for the form inorder to close it.

He might want a border style? If he does, do my way. If you dont, do ringo's way :)

Blaze

I just set the windows height, width, top, and left to either 200 or 100 more then the screens width or height.
Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

Needler

Thanks you guys are truly the 3j33t hax0rs of teh intraweb...  ;D

dxoigmn

Quote from: OnlyMeat on June 14, 2005, 03:59 PM
I think shout must be a shareholder of google as he mentions their name in almost every post reply. What more can you expect from a MyndFyre clone though.

These kind of witty jabs are unnecessary and looked down upon. The original poster is warranted as the very most a link to Google considering he probably didn't even bother to read Information for newcomers and posted in the wrong forum.

Needler

Dxiogmn, you are 100% correct, I posted in the incorrect forum, and I appalogize. But this is a bot that I am working on, actually, just tweaking with! I am trying to learn VB6, so I opened a source and started messing with it. Now that I've ruined my StarCraft CD, and can no longer chat through it, I decided to simply fix the source of this bot (The infamously stolen source filled bot they call "Triumph") and make myself a chat client!

Anyways, I have posted it in the correct forum, and would like all interested in this subject  to click the link below, as it is the NEWER more CORRECT location for it.

http://forum.valhallalegends.com/phpbbs/index.php?topic=11832.msg115778#msg115778

So no more replies so I don't get bitched out by any members, thanks.


MyndFyre

Quote from: OnlyMeat on June 14, 2005, 03:59 PM
What more can you expect from a MyndFyre clone though.

DAMN!  I wish I had your wits.  I'd be a stand-up comic and make millions of dollars!
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Joe[x86]

Private Sub Form_Load()
    Me.WindowState = 2
    Me.BorderStyle = 0
End Sub
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.