Click here to Skip to main content
15,895,709 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: .Net and touch screens Pin
leckey30-May-08 18:08
leckey30-May-08 18:08 
GeneralRe: .Net and touch screens Pin
Michael Schubert30-May-08 21:38
Michael Schubert30-May-08 21:38 
GeneralRe: .Net and touch screens Pin
leckey31-May-08 4:35
leckey31-May-08 4:35 
GeneralRe: .Net and touch screens Pin
Christian Graus31-May-08 1:23
protectorChristian Graus31-May-08 1:23 
GeneralRe: .Net and touch screens Pin
leckey31-May-08 4:48
leckey31-May-08 4:48 
AnswerRe: .Net and touch screens Pin
JoeSox30-May-08 12:44
JoeSox30-May-08 12:44 
AnswerRe: .Net and touch screens Pin
Christian Graus31-May-08 1:22
protectorChristian Graus31-May-08 1:22 
QuestionAdd buttons at runtime Pin
Cory Kimble30-May-08 5:33
Cory Kimble30-May-08 5:33 
Does anyone know how to add buttons to a form dynamically.

Ex:
I am getting information from a database. It could return 1 item or 50. I want to be able to created a button on the screen no matter how many items are returned.

Right know I have this but it does not work. It only creates one button because I have not figured out a way to change the new Button's name.

For Each row In Me.UwPdataset.Level1.Rows
            btn = New Button
            cmbobxLevel1.Items.Add(row(0).ToString)
            btn.Location = New Point(lastbtnX + 120, lastbtnY)
            Controls.Add(btn)

            btn.Text = row(0).ToString
            btn.Width = 120
            btn.Height = 120
            lastbtnX = lastbtnX = 120

        Next


Does anyone know how to do this.
AnswerRe: Add buttons at runtime Pin
Steven J Jowett30-May-08 5:53
Steven J Jowett30-May-08 5:53 
AnswerRe: Add buttons at runtime Pin
Rob Smiley30-May-08 12:05
Rob Smiley30-May-08 12:05 
QuestionFinding the length of the second dimension of an array in Visual Basic 6.0 Pin
Eric Burns30-May-08 4:54
Eric Burns30-May-08 4:54 
AnswerRe: Finding the length of the second dimension of an array in Visual Basic 6.0 Pin
Dave Kreskowiak31-May-08 2:48
mveDave Kreskowiak31-May-08 2:48 
QuestionActivex Web Control Pin
Member 426163330-May-08 4:00
Member 426163330-May-08 4:00 
AnswerRe: Activex Web Control Pin
Christian Graus31-May-08 1:24
protectorChristian Graus31-May-08 1:24 
Questiondatagridview combobox column default value PinPopular
Mr Oizo30-May-08 3:50
Mr Oizo30-May-08 3:50 
AnswerRe: datagridview combobox column default value Pin
Mohammad Al Hoss30-May-08 4:30
Mohammad Al Hoss30-May-08 4:30 
QuestionHow could we open customize ribbon in Access 2007 development mode Pin
ayazhoda30-May-08 3:25
ayazhoda30-May-08 3:25 
QuestionProperties with parameters and databinding Pin
Kevin Brydon30-May-08 3:02
Kevin Brydon30-May-08 3:02 
AnswerRe: Properties with parameters and databinding Pin
Steven J Jowett30-May-08 4:15
Steven J Jowett30-May-08 4:15 
GeneralRe: Properties with parameters and databinding Pin
Kevin Brydon30-May-08 5:21
Kevin Brydon30-May-08 5:21 
QuestionUpgrade to VS 2005 problems Pin
Mohammad Al Hoss30-May-08 3:02
Mohammad Al Hoss30-May-08 3:02 
AnswerRe: Upgrade to VS 2005 problems Pin
Christian Graus31-May-08 1:25
protectorChristian Graus31-May-08 1:25 
QuestionRetrieve audio track informations Pin
Gaddonis30-May-08 1:45
professionalGaddonis30-May-08 1:45 
AnswerRe: Retrieve audio track informations Pin
jzonthemtn30-May-08 3:33
jzonthemtn30-May-08 3:33 
AnswerRe: Retrieve audio track informations Pin
Gaddonis3-Sep-08 1:55
professionalGaddonis3-Sep-08 1:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.