Msgbox function :D (not finished)

If you have completed an application and wish to share the complete source/project files with everyone then please post it in here. Source-code files only, no tutorials.
10 posts Page 1 of 1
Contributors
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Msgbox function :D (not finished)
Axel
Here you can finish my little project i dont wanna finish it :P
its a little messy :D
Code: Select all
    Public Enum StyleCol
        RightToLeft
        Normal
        YesNo
        YesNoCancel
    End Enum
    Public Function Msg(ByVal text As String, Optional ByVal Title As String = "", Optional ByVal icon As Boolean = True, Optional ByVal style As StyleCol = StyleCol.Normal) As Form
        Dim formx As New Form
        Dim lbl As New Label
        Dim buttonyes As New Button
        Dim buttonno As New Button
        Dim buttoncancel As New Button
        Dim buttonok As New Button
        buttonok.Text = "&Ok"
        buttonno.Text = "&No"
        buttoncancel.Text = "&Cancel"
        buttonyes.Text = "&Yes"
        formx.Text = Title
        lbl.Text = text
        formx.Controls.Add(lbl)
        formx.Size = New Size(240, 110)
        If icon Then
            formx.ShowIcon = True
        Else
            formx.ShowIcon = False
        End If
        formx.ShowInTaskbar = False
        formx.TopMost = True
        formx.MinimizeBox = False
        formx.MaximizeBox = False
        lbl.Location = New Point(10, 20)
        formx.Icon = Me.Icon
        Select Case style
            Case StyleCol.Normal
                formx.Controls.Add(buttonok)
                buttonok.Location = New Point(73, 35)
            Case StyleCol.RightToLeft
                formx.RightToLeftLayout = True
                formx.Controls.Add(buttonok)
                buttonok.Location = New Point(73, 35)
            Case StyleCol.YesNo

            Case StyleCol.YesNoCancel

        End Select
        formx.Show()
    End Function
you can extend whatever you want this is the basic thing written by me :D
please donate !
Thank you ! xd.zip
<< contains just the debug folder , no useful information ( if you want useful information , go to agust1337 :D)
You do not have the required permissions to view the files attached to this post.
http://vagex.com/?ref=25000
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

this is a real nice source :D
also if we save the project will this class be saved as a dll?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: Msgbox function :D (not finished)
Lewis
Very good Also zach you need to build it :D
Image
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

i know to use but like when we build to publish do we need to get the exe along with the dll in the debug folder?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Msgbox function :D (not finished)
Axel
zachman61 wrote:
i know to use but like when we build to publish do we need to get the exe along with the dll in the debug folder?
no dll's :P just place the code on top of your code , under your Class form1 or something then you can call it :P (Msg("LOL","Mytitle , style.normal ) and such :P you can make alot of styles :D ) :P
http://vagex.com/?ref=25000
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

ok so it will save into the project auto?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Msgbox function :D (not finished)
Axel
zachman61 wrote:
ok so it will save into the project auto?
yes but no dll's needed just the code on top :D
http://vagex.com/?ref=25000
User avatar
NecroPhis
VIP - Donator
VIP - Donator
Posts: 345
Joined: Sun Aug 08, 2010 1:14 pm

nice source cooll;
Image
User avatar
tought5
New Member
New Member
Posts: 19
Joined: Fri Dec 10, 2010 6:50 pm

cool dude :) ty
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

Thanks YourSocksRoxx, but I prefer using the original one, it's much accurate. Nice work!
Image
10 posts Page 1 of 1
Return to “Source-Code”