Click here to Skip to main content
15,911,360 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionBUtton Click a Button help ? Pin
Bob Beaubien21-Oct-09 3:10
Bob Beaubien21-Oct-09 3:10 
AnswerRe: BUtton Click a Button help ? Pin
Eddy Vluggen21-Oct-09 3:23
professionalEddy Vluggen21-Oct-09 3:23 
AnswerRe: BUtton Click a Button help ? Pin
dan!sh 21-Oct-09 3:40
professional dan!sh 21-Oct-09 3:40 
AnswerRe: BUtton Click a Button help ? Pin
Andy_L_J21-Oct-09 22:02
Andy_L_J21-Oct-09 22:02 
GeneralRe: BUtton Click a Button help ? Pin
Bob Beaubien22-Oct-09 2:29
Bob Beaubien22-Oct-09 2:29 
Question[Message Deleted] Pin
khan201021-Oct-09 2:00
khan201021-Oct-09 2:00 
AnswerWrong Forum Pin
dan!sh 21-Oct-09 2:12
professional dan!sh 21-Oct-09 2:12 
QuestionPictureBox Pin
helelark12320-Oct-09 21:38
helelark12320-Oct-09 21:38 
Hello,

I am programming in VB2005.
I have a Form1 and Class A:
a) In Form1, I have a Picturebox (Name=PictureBox1)
b) Class A inherits from PictureBox

I am trying the following but the Picturebox1 does not display anything:

Dim MyA As New A(PictureBox1.Width, PictureBox1.Height)
MyA.Location = New System.Drawing.Point(150, 150)
MyA.BackColor = Color.Red
PictureBox1 = MyA

Why doesn't it works?


I have an alternative to solve the problem but I would like to understood the problem above.
Alternative sdolution:
Dim MyA As New A(500, 350)
MyA.Location = New System.Drawing.Point(150, 150)
MyA.BackColor = Color.Red
controls.add(MyA)

Shay Noy

AnswerRe: PictureBox Pin
Christian Graus20-Oct-09 22:35
protectorChristian Graus20-Oct-09 22:35 
GeneralRe: PictureBox Pin
helelark12321-Oct-09 20:45
helelark12321-Oct-09 20:45 
AnswerRe: PictureBox Pin
Eddy Vluggen20-Oct-09 23:11
professionalEddy Vluggen20-Oct-09 23:11 
GeneralRe: PictureBox Pin
helelark12321-Oct-09 20:37
helelark12321-Oct-09 20:37 
GeneralRe: PictureBox Pin
Eddy Vluggen21-Oct-09 21:17
professionalEddy Vluggen21-Oct-09 21:17 
GeneralRe: PictureBox Pin
helelark12321-Oct-09 21:35
helelark12321-Oct-09 21:35 
GeneralRe: PictureBox Pin
Eddy Vluggen21-Oct-09 21:58
professionalEddy Vluggen21-Oct-09 21:58 
GeneralRe: PictureBox Pin
helelark12321-Oct-09 22:34
helelark12321-Oct-09 22:34 
GeneralRe: PictureBox Pin
Eddy Vluggen21-Oct-09 23:59
professionalEddy Vluggen21-Oct-09 23:59 
GeneralRe: PictureBox Pin
helelark12322-Oct-09 0:58
helelark12322-Oct-09 0:58 
QuestionProblems with VB6 Winsock Connection and Senddata Method Pin
she-Developer20-Oct-09 20:29
she-Developer20-Oct-09 20:29 
AnswerRe: Problems with VB6 Winsock Connection and Senddata Method Pin
Christian Graus20-Oct-09 20:32
protectorChristian Graus20-Oct-09 20:32 
GeneralRe: Problems with VB6 Winsock Connection and Senddata Method Pin
she-Developer20-Oct-09 20:44
she-Developer20-Oct-09 20:44 
GeneralRe: Problems with VB6 Winsock Connection and Senddata Method Pin
Eddy Vluggen20-Oct-09 22:15
professionalEddy Vluggen20-Oct-09 22:15 
QuestionTest for NUMERIC values Pin
PAguilar0920-Oct-09 17:57
PAguilar0920-Oct-09 17:57 
AnswerRe: Test for NUMERIC values Pin
dan!sh 20-Oct-09 18:07
professional dan!sh 20-Oct-09 18:07 
GeneralRe: Test for NUMERIC values Pin
PAguilar0920-Oct-09 18:25
PAguilar0920-Oct-09 18:25 

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.