Adblock breaks this site

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

Discussion in 'Programming General' started by X Zero, Jan 30, 2007.

  1. X Zero

    X Zero Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0
    How do I add labels or any control in running time?

    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
     
  2. cooladrrang

    cooladrrang Active Member

    Joined:
    Jan 21, 2007
    Posts:
    125
    Referrals:
    0
    Sythe Gold:
    0
    How do I add labels or any control in running time?

    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
     
  3. X Zero

    X Zero Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0
    How do I add labels or any control in running time?

    yay link me

    and how do i use that thingy

    "dim labe as new label"
     
  4. cooladrrang

    cooladrrang Active Member

    Joined:
    Jan 21, 2007
    Posts:
    125
    Referrals:
    0
    Sythe Gold:
    0
    How do I add labels or any control in running time?

  5. X Zero

    X Zero Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0
    How do I add labels or any control in running time?

    thank you so so so much ,err u wouldn't happen to know how to write exes in running time
     
  6. cooladrrang

    cooladrrang Active Member

    Joined:
    Jan 21, 2007
    Posts:
    125
    Referrals:
    0
    Sythe Gold:
    0
    How do I add labels or any control in running time?

    so you want to do a program that does programs?
     
  7. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    How do I add labels or any control in running time?

    That won't be easy, ESPECIALLY with VB.
     
  8. Flaming Idiots

    Flaming Idiots Active Member
    Visual Basic Programmers

    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User
    How do I add labels or any control in running time?

    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.
     
  9. X Zero

    X Zero Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0
    How do I add labels or any control in running time?

    how do i see the design code
     
< Got Bored | plz need help! >


 
 
Adblock breaks this site