Author Topic: An application I made (Program Updated Again)  (Read 1918 times)

he can't seem to make a fullscreen application in VB so it's laughable
4/10 you tried

he can't seem to make a fullscreen application in VB so it's laughable
4/10 you tried
You have the wrong screen size. i tested it on the computer i had, it worked fine.

Regardless, your program is full of fail.





What kind of prank asks for your screen resolution?

For a small program i had to finish really fast, yes?
I have 20 minutes left in class i had to get something done.
I spent 10 of that looking for a good blue screen of death picture.


I coded it in VB it isn't exactly easy to detect your screen size.
« Last Edit: December 18, 2012, 10:43:06 AM by Rainzx¹ »

My monitor's resolution is 1920x1080. The resolutions available weren't big enough for my screen.

joke's also on you because i have a corresponding resolution

fullscreen apps are not hard to make
try again perhaps when you know more?
I coded it in VB it isn't exactly easy to detect your screen size.
just because it isn't easy doesn't mean it's impossible
« Last Edit: December 18, 2012, 10:57:01 AM by KoopaScooper »

>not using c or Java
Lol

isn't the blue screen of death one static resolution with black space surrounding it?

if that's the case, why even ask for a resolution?

isn't the blue screen of death one static resolution with black space surrounding it?

if that's the case, why even ask for a resolution?
depending on your video adapter yeah it is
it's completely possible to do this correctly in VB, OP didn't try hard enough

Code: [Select]
Public Class Form1
    Dim RWidth As String = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width.ToString()
    Dim RHeight As String = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width.ToString()
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Me.Width = RWidth
        Me.Height = RHeight
        Death.Width = RWidth
        Death.Height = RHeight
    End Sub
End Class

Auto Detect screen size code makes the program a bit too big.
I figured it out you have to remove the () off System.Windows.Forms.Screen.P rimaryScreen.Bounds.Blah.ToSt ring()
« Last Edit: December 18, 2012, 11:50:32 AM by Rainzx¹ »

Why not just crash the computer for real?

Why not just crash the computer for real?
wow why didn't i think of this

10/10 best idea 2012

Why not just crash the computer for real?
a method would be to force terminate csrss.exe
or pretty much anything vital to the windows subsystem

wow why didn't i think of this

10/10 best idea 2012
Make it crash iPhones and sell it on the app store.

Code: [Select]
Public Class Form1
    Dim RWidth As String = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width.ToString()
    Dim RHeight As String = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width.ToString()
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Me.Width = RWidth
        Me.Height = RHeight
        Death.Width = RWidth
        Death.Height = RHeight
    End Sub
End Class

Auto Detect screen size code makes the program a bit too big.
I figured it out you have to remove the () off System.Windows.Forms.Screen.P rimaryScreen.Bounds.Blah.ToSt ring()
First of all, why are you converting something that returns a Integer into a String then back into an Integer?
Since the window's width and height are both Integers, you don't need the ToString() part.

So basically, you are able to do it like this instead:
Code: [Select]
    Dim RWidth As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width
    Dim RHeight As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height

Second, for optimization you don't need to make a variable for the bounds when you can just do it directly. This is because Bounds.(Width or Height) is a function that returns a Integer.
You can also use Imports for long namespaces:
Code: [Select]
Imports System.Windows.Forms.Screen
Public Class Form1
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Me.Width = PrimaryScreen.Bounds.Width
        Me.Height = PrimaryScreen.Bounds.Height
        Death.Width = PrimaryScreen.Bounds.Width
        Death.Height = PrimaryScreen.Bounds.Height
    End Sub
End Class

First of all, why are you converting something that returns a Integer into a String then back into an Integer?
Since the window's width and height are both Integers, you don't need the ToString() part.

So basically, you are able to do it like this instead:
Code: [Select]
    Dim RWidth As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width
    Dim RHeight As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height

Second, for optimization you don't need to make a variable for the bounds when you can just do it directly. This is because Bounds.(Width or Height) is a function that returns a Integer.
You can also use Imports for long namespaces:
Code: [Select]
Imports System.Windows.Forms.Screen
Public Class Form1
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Me.Width = PrimaryScreen.Bounds.Width
        Me.Height = PrimaryScreen.Bounds.Height
        Death.Width = PrimaryScreen.Bounds.Width
        Death.Height = PrimaryScreen.Bounds.Height
    End Sub
End Class

I'm no expert at this.
« Last Edit: September 29, 2014, 06:47:34 PM by Rainzx¹ »

i get out of linux to test this and i am surprised

my wine installation is more up-to-date than my windows installation