Chaos Project

Game Development => Sea of Code => Topic started by: G_G on October 22, 2009, 09:40:57 pm

Title: A few questions
Post by: G_G on October 22, 2009, 09:40:57 pm
Well okay first is it possible to make a program hide the task bar?
Next how do we make the program maximise automatically?

Also how do we use the error provider? I dont really understand that.
And how do we access a context menu strip? I made one but cant figure how to actually use it.
Title: Re: A few questions
Post by: Ryex on October 22, 2009, 10:44:33 pm
1) hide IN the task bar or hide THE task bar?
2) there is a property in the form that can be set  so the form has an initial state of maximized, minimized, normal, or hidden.
3) no idea
4) each object (button, text box, tab control, label, ect.) has a property that you can set to the member name of the context menu you want to pop up when you right click it.
Title: Re: A few questions
Post by: G_G on October 22, 2009, 11:19:07 pm
Hide THE task bar
@4 I just noticed that to xD
@2 just noticed that one to xD
Title: Re: A few questions
Post by: Ryex on October 23, 2009, 01:21:56 am
@1 are you talking about going full screen? other wise no.
Title: Re: A few questions
Post by: Blizzard on October 23, 2009, 04:08:59 am
1. Google. There is an option in Windows itself to hide the taskbar and show it only when you touch the bottom of the screen with the mouse pointer.

3. Don't use that. It's not what you think it is.
Title: Re: A few questions
Post by: G_G on October 23, 2009, 06:49:52 pm
One more quickie, how do we test internet connection? and how do we shut off a computer?
Title: Re: A few questions
Post by: Blizzard on October 23, 2009, 07:23:16 pm
1. Can you be more specific?

2. There should be an API call for that. You can also just run a command line saying "shutdown". Google the command for info about parameters.
Title: Re: A few questions
Post by: G_G on October 24, 2009, 10:54:27 am
I meant I want to see if the user is connected to the internet.

Like for example, some one runs my browser, I want my browser to be able to see if they're connected to the internet, if not it'll let them know.
Title: Re: A few questions
Post by: Blizzard on October 24, 2009, 11:30:58 am
I don't know how that is done. Try googling it.
Title: Re: A few questions
Post by: fugibo on October 24, 2009, 12:55:02 pm
I'm pretty sure you just use the HTTP stack to try and contact the DNS, and if that fails the browser reports it.

(the browser should probably just use that code for all HTTP requests)
Title: Re: A few questions
Post by: Blizzard on October 24, 2009, 01:06:32 pm
There should be a quicker way without having to test a connection by trying to connect and then determining that a connection exists whether the attempt was successful or whether it timed out.