?
Solved

Create run time buttons at runtime

Posted on 2016-11-18
8
Medium Priority
?
38 Views
Last Modified: 2016-11-23
Hello,
How do I create run time buttons placed one below the other.

Cheers
0
Comment
Question by:RIAS
  • 5
  • 2
8 Comments
 
LVL 38

Expert Comment

by:Pawan Kumar
ID: 41892767
Hi Rias,
Can you please explain more?
0
 

Accepted Solution

by:
RIAS earned 0 total points
ID: 41892768
Pawan,
Found the solution:

  Dim newButton = New Button()

                ' Add some properties, etc. to the button
                newButton.Text = "Liils : " & IntPositionNumber
                newButton.Location = New Point(739, 67 + int)
                newButton.Size = Me.btnIetails.Size
                Me.Controls.Add(newButton)
                int += 25
0
 
LVL 38

Expert Comment

by:Pawan Kumar
ID: 41892769
Great ! good one !!
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 28

Expert Comment

by:Ark
ID: 41895176
I suggest using flowlayoutpanel:
FlowLayoutPanel1.FlowDirection = FlowDirection.TopDown
For i = 1 To 25
    FlowLayoutPanel1.Controls.Add(New Button With {.Text = "Button_" & i})
 Next

Open in new window

1
 

Author Comment

by:RIAS
ID: 41895235
Hello Ark,

Will try your solution.
0
 

Author Comment

by:RIAS
ID: 41895236
Thanks!
0
 

Author Comment

by:RIAS
ID: 41895238
Moderator,

Can I accept Ark's Solution.
0
 

Author Closing Comment

by:RIAS
ID: 41898886
Found the solution.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question