Sinisterly
[VB.NET] Help . - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework)
+--- Thread: [VB.NET] Help . (/Thread-VB-NET-Help)

Pages: 1 2


[VB.NET] Help . - H3ROiN - 03-03-2011

Question1) I WANT A BUTTON TO OPEN ' FORM 2 ' ( BUTTON IS AT FORM1 )
IS THIS CODE CORRECT ?

Code:
Dim SecondForm As New frmSecond SecondForm.Show()

Question2) I WANT WHEN THE APP LAUNCHES IT OPEN'S A WEPAGE ( www.hackcommunity.com e.g )

Code:
Process.start("http://www.hackcommunity.com")



RE: [VB.NET] Help . - Coder-san - 03-03-2011

You don't need a new instance of the Form2, so just open the Form2 directly.
Code:
Form2.ShowDialog 'Or Form2.Show 'Only a slight difference between these.

And,
Code:
Process.start("http://www.hackcommunity.com")



RE: [VB.NET] Help . - H3ROiN - 03-03-2011

OKay , i understand now , thanks .
btw do you know how to have an awesome GUI ?


RE: [VB.NET] Help . - Coder-san - 03-03-2011

I have a Tutorial for it:
[link=http://hackcommunity.com/Thread-Tutorial-VB-Net-How-To-Make-a-Professional-GUI]How To Make a Professional GUI in VB.Net[/link]


RE: [VB.NET] Help . - H3ROiN - 03-03-2011

Btw To Exit The Form With A Button Use What Code ?


RE: [VB.NET] Help . - Coder-san - 03-03-2011

Formname.Close


RE: [VB.NET] Help . - H3ROiN - 03-03-2011

AxWinsock1 , what is the tool from the toolbox ?


RE: [VB.NET] Help . - Coder-san - 03-03-2011

That is probably the Winsock COM control in VB.Net. It is used to send and receive network packets.


RE: [VB.NET] Help . - H3ROiN - 03-03-2011

where can i access the COM control i'm sorry i'm noob ><


RE: [VB.NET] Help . - Coder-san - 03-03-2011

Download it and browse from the Toolbox. It is a VB6 control, so you might face some problems using it.