Click here to Skip to main content
15,901,505 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: open a website from a windows application in any browser Pin
Christian Graus25-Nov-08 19:58
protectorChristian Graus25-Nov-08 19:58 
AnswerRe: open a website from a windows application in any browser Pin
dmex26-Nov-08 6:13
dmex26-Nov-08 6:13 
Questiongurbage values coming from the comport while using mscomm32.ocx Pin
souravghosh1825-Nov-08 18:26
souravghosh1825-Nov-08 18:26 
AnswerRe: gurbage values coming from the comport while using mscomm32.ocx Pin
Nanda_MR25-Nov-08 18:36
Nanda_MR25-Nov-08 18:36 
GeneralRe: gurbage values coming from the comport while using mscomm32.ocx Pin
souravghosh1825-Nov-08 18:41
souravghosh1825-Nov-08 18:41 
GeneralRe: gurbage values coming from the comport while using mscomm32.ocx Pin
Nanda_MR25-Nov-08 22:58
Nanda_MR25-Nov-08 22:58 
AnswerRe: gurbage values coming from the comport while using mscomm32.ocx Pin
Rajesh Anuhya25-Nov-08 19:11
professionalRajesh Anuhya25-Nov-08 19:11 
QuestionIs it possible to build a control array based on existing controls created at design time? Pin
Jon_Boy25-Nov-08 7:10
Jon_Boy25-Nov-08 7:10 
I'm converting a VB6 app which has many control label arrays (95% of them contain 2 labels) with a slew of different property values (font sizes, colors, border styles, etc). I know that control arrays are not natively supported in design mode and I don't want to use the backwards comp. VB6 reference. I recreated each label at design time, but they lack an index property. Breaking out all the logic, which is very lengthy into sep property calls vs. index isn't really practical.

My question is this: is it possible in the CTOR or load to create a label array at runtime and then set each label element = to a an existing label (those created at design time). The code below obviously doesn't work, but shows what I'm trying to accomplish. Create a 2 element lbl Array which gets set to both of the correlated labels created at design time, remove the origs, and replace with label array.

I'm confused how I can set/copy all of the orig design-time label properties = to the array labels, and then destroy the origs without killing label array values (currently a pointer to an object that doesn't exist). Is it possible to loop properties on a control?

Private lblDestination(1) As Label

Private Sub frmMainForm_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load

        lblDestination(0) = lblDestinationTemp
        lblDestination(1) = lblDestinationBottomTemp

        lblDestinationTemp.Dispose()
End Sub


Any suggestions, ideas, or 'constructive criticism' are always welcome.

"There's no such thing as a stupid question, only stupid people." - Mr. Garrison

AnswerRe: Is it possible to build a control array based on existing controls created at design time? Pin
Jon_Boy25-Nov-08 7:36
Jon_Boy25-Nov-08 7:36 
GeneralRe: Is it possible to build a control array based on existing controls created at design time? Pin
Dave Kreskowiak25-Nov-08 8:20
mveDave Kreskowiak25-Nov-08 8:20 
AnswerRe: Is it possible to build a control array based on existing controls created at design time? Pin
Christian Graus25-Nov-08 9:34
protectorChristian Graus25-Nov-08 9:34 
AnswerRe: Is it possible to build a control array based on existing controls created at design time? Pin
Gideon Engelberth25-Nov-08 10:55
Gideon Engelberth25-Nov-08 10:55 
GeneralRe: Is it possible to build a control array based on existing controls created at design time? Pin
Jon_Boy26-Nov-08 3:51
Jon_Boy26-Nov-08 3:51 
QuestionReceiving the error "There is already an open DataReader associated with this Command which must be closed first." [solved] Pin
Marcus J. Smith25-Nov-08 4:08
professionalMarcus J. Smith25-Nov-08 4:08 
AnswerRe: Receiving the error "There is already an open DataReader associated with this Command which must be closed first." Pin
Ben Fair25-Nov-08 4:23
Ben Fair25-Nov-08 4:23 
GeneralRe: Receiving the error "There is already an open DataReader associated with this Command which must be closed first." Pin
Marcus J. Smith25-Nov-08 4:27
professionalMarcus J. Smith25-Nov-08 4:27 
Questiondelete questions Pin
yaya_star24-Nov-08 21:34
yaya_star24-Nov-08 21:34 
AnswerRe: delete questions Pin
Nanda_MR24-Nov-08 22:09
Nanda_MR24-Nov-08 22:09 
GeneralRe: delete questions Pin
yaya_star24-Nov-08 22:14
yaya_star24-Nov-08 22:14 
GeneralRe: delete questions Pin
indian14324-Nov-08 22:55
indian14324-Nov-08 22:55 
AnswerRe: delete questions Pin
Christian Graus24-Nov-08 23:08
protectorChristian Graus24-Nov-08 23:08 
GeneralRe: delete questions Pin
dan!sh 25-Nov-08 4:01
professional dan!sh 25-Nov-08 4:01 
QuestionHelp in reading File Pin
yaya_star24-Nov-08 21:28
yaya_star24-Nov-08 21:28 
AnswerRe: Help in reading File Pin
indian14324-Nov-08 21:43
indian14324-Nov-08 21:43 
GeneralRe: Help in reading File Pin
yaya_star24-Nov-08 21:52
yaya_star24-Nov-08 21:52 

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.