Click here to Skip to main content
15,920,896 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestiondataGridView Chenge with ComboBox Pin
sahar_mal31-May-08 3:39
sahar_mal31-May-08 3:39 
QuestionTransfer Datas Pin
senthilsstil31-May-08 1:34
senthilsstil31-May-08 1:34 
AnswerRe: Transfer Datas Pin
Mycroft Holmes31-May-08 2:00
professionalMycroft Holmes31-May-08 2:00 
GeneralRe: Transfer Datas Pin
senthilsstil31-May-08 2:08
senthilsstil31-May-08 2:08 
Question.Net and touch screens [modified] Pin
The Web Developer30-May-08 11:55
The Web Developer30-May-08 11:55 
AnswerRe: .Net and touch screens Pin
Joe Woodbury30-May-08 12:01
professionalJoe Woodbury30-May-08 12:01 
GeneralRe: .Net and touch screens Pin
The Web Developer30-May-08 12:24
The Web Developer30-May-08 12:24 
GeneralRe: .Net and touch screens Pin
Joe Woodbury30-May-08 12:31
professionalJoe Woodbury30-May-08 12:31 
JokeRe: .Net and touch screens Pin
FyreWyrm30-May-08 13:51
FyreWyrm30-May-08 13:51 
AnswerRe: .Net and touch screens PinPopular
Pete O'Hanlon30-May-08 12:04
mvePete O'Hanlon30-May-08 12:04 
GeneralRe: .Net and touch screens PinPopular
Michael Schubert30-May-08 12:33
Michael Schubert30-May-08 12:33 
GeneralRe: .Net and touch screens Pin
User 842030-May-08 12:35
User 842030-May-08 12:35 
GeneralRe: .Net and touch screens Pin
Michael Schubert30-May-08 12:40
Michael Schubert30-May-08 12:40 
GeneralRe: .Net and touch screens Pin
darkelv30-May-08 18:14
darkelv30-May-08 18:14 
RantRe: .Net and touch screens Pin
The Web Developer30-May-08 12:36
The Web Developer30-May-08 12:36 
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 

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.