• Log in or sign up for an account here: https://www.sythe.org/login

How do I add labels or any control in running time?

X Zero

Forum Addict
Joined
Jan 21, 2007
Sythe Gold
0
Messages
577
Location
Australia, The South
As the title says


I wouldn't like to use the visible method but if i have to i will

A huge Thanks to all the people that have helped me learn/convert from vb 6
 
use a FlowLayoutPanel i think thats what you are looking for i think the code for a lable will be like
Code:
 dim labe as new label
and ill continue later cause im doing this of memory and i dont rembmber sorry
NOte: My progrma works now WOOT
 
Le Monkey
PHP Shit Show 2k26
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
That won't be easy, ESPECIALLY with VB.
 
Two Factor Authentication User
That won't be easy, ESPECIALLY with VB.

It's really easy actually.

Code:
Module Module1

    Sub Main()
        Dim VBC As New Microsoft.VisualBasic.VBCodeProvider
        Dim Source As New List(Of String)
        Source.Add( _
        "Module Module1" & vbNewLine & _
        "   Sub Main()" & vbNewLine & _
        "       System.Console.WriteLine(""Hi"")" & vbNewLine & _
        "       System.Console.ReadKey()" & vbNewLine & _
        "   End Sub" & vbNewLine & _
        "End Module")
        Dim Options As New CodeDom.Compiler.CompilerParameters
        Options.GenerateExecutable = True
        Options.MainClass = "Module1"
        Options.OutputAssembly = "C:\Output.exe"
        Options.ReferencedAssemblies.Add("System.dll")
        VBC.CompileAssemblyFromSource(Options, Source.ToArray)
    End Sub

End Module
That will make a program at "C:\Output.exe" that writes "Hi" to a console.
 
duelarena.gg
Back
Top