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

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

How do I add labels or any control in running time?
  1. Unread #1 - Jan 30, 2007 at 11:14 PM
  2. X Zero
    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0

    X Zero Forum Addict

    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
     
  3. Unread #2 - Jan 30, 2007 at 11:39 PM
  4. cooladrrang
    Joined:
    Jan 21, 2007
    Posts:
    125
    Referrals:
    0
    Sythe Gold:
    0

    cooladrrang Active Member

    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
     
  5. Unread #3 - Jan 30, 2007 at 11:41 PM
  6. X Zero
    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0

    X Zero Forum Addict

    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"
     
  7. Unread #4 - Feb 1, 2007 at 5:56 PM
  8. cooladrrang
    Joined:
    Jan 21, 2007
    Posts:
    125
    Referrals:
    0
    Sythe Gold:
    0

    cooladrrang Active Member

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

  9. Unread #5 - Feb 1, 2007 at 6:41 PM
  10. X Zero
    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0

    X Zero Forum Addict

    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
     
  11. Unread #6 - Feb 1, 2007 at 7:08 PM
  12. cooladrrang
    Joined:
    Jan 21, 2007
    Posts:
    125
    Referrals:
    0
    Sythe Gold:
    0

    cooladrrang Active Member

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

    so you want to do a program that does programs?
     
  13. Unread #7 - Feb 1, 2007 at 8:03 PM
  14. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

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

    That won't be easy, ESPECIALLY with VB.
     
  15. Unread #8 - Feb 1, 2007 at 8:44 PM
  16. Flaming Idiots
    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User

    Flaming Idiots Active Member
    Visual Basic Programmers

    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.
     
  17. Unread #9 - Feb 2, 2007 at 6:22 AM
  18. X Zero
    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0

    X Zero Forum Addict

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

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

Users viewing this thread
1 guest


 
 
Adblock breaks this site