?
Solved

Create run time buttons at runtime

Posted on 2016-11-18
8
Medium Priority
?
35 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 29

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 29

Expert Comment

by:Pawan Kumar
ID: 41892769
Great ! good one !!
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

752 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