Click here to Skip to main content
16,008,490 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: validation of form Pin
kripa2117-Apr-07 1:51
kripa2117-Apr-07 1:51 
JokeRe: validation of form Pin
CPallini17-Apr-07 2:07
mveCPallini17-Apr-07 2:07 
QuestionSaving data on a user control that is placed inside a tab control Pin
steve_rm16-Apr-07 23:17
steve_rm16-Apr-07 23:17 
QuestionLooping through tab in a tab control Pin
steve_rm16-Apr-07 20:43
steve_rm16-Apr-07 20:43 
AnswerRe: Looping through tab in a tab control Pin
Werries16-Apr-07 21:48
Werries16-Apr-07 21:48 
AnswerRe: Looping through tab in a tab control Pin
Enriad16-Apr-07 21:50
Enriad16-Apr-07 21:50 
GeneralRe: Looping through tab in a tab control Pin
steve_rm16-Apr-07 22:35
steve_rm16-Apr-07 22:35 
QuestionRemove a Control Array Label Pin
coldude16-Apr-07 20:31
coldude16-Apr-07 20:31 
Hi,

i have been playing with some code that creates Control array labels that display dates down in a column in a Windows Form, but i am having trouble with removing Control array labels if a date range changes.

How do i remove a Control Array Label? in the case where the quantity of labels required where to be reduced by the Control Form control selecting the start and end dates.

some of the code that i have been playing with is attached below.



************************************
************************************

' remove the day array. 'this part doesnt work in my case..

For pd As Integer = 0 To 12
Me.Controls.Remove(lblDayArray(pd))
Next


strDayRow = datAStartDate.ToString("dddd,dd MMMM")

'using the label DayArray create days in rows

For i As Integer = 0 To DayDiff
lblDayArray(i) = New Label
Me.Controls.Add(lblDayArray(i))
With lblDayArray(i)
.TextAlign = ContentAlignment.MiddleRight
.BorderStyle = BorderStyle.None
.Location = New Point(intDInitLocationX, intLocationY)
.Size = New Size(intDInitSizeL, intInitSizeH)
.Text = strDayRow
.Name = "lblDay(i)"
End With

intLocationY = intLocationY + intSpacingY 'increments to next day
datAStartDate = dpStartDateRange.Value
datAStartDate.AddDays(1)
Next


Microsoft Visual Basic .NET (2003) version 7.1.6030
Microsoft .NET Framework 1.1


Regards,

Colin
QuestionXml Node Defining Pin
MatrixCoder16-Apr-07 20:21
MatrixCoder16-Apr-07 20:21 
Questionsaving problems Pin
Xmen Real 16-Apr-07 19:46
professional Xmen Real 16-Apr-07 19:46 
AnswerRe: saving problems Pin
Marek Grzenkowicz16-Apr-07 20:56
Marek Grzenkowicz16-Apr-07 20:56 
GeneralRe: saving problems Pin
Xmen Real 16-Apr-07 21:27
professional Xmen Real 16-Apr-07 21:27 
QuestionHow to calculate the time difference Pin
re infecta16-Apr-07 19:41
re infecta16-Apr-07 19:41 
AnswerRe: How to calculate the time difference Pin
MatrixCoder16-Apr-07 20:05
MatrixCoder16-Apr-07 20:05 
AnswerRe: How to calculate the time difference Pin
Guffa16-Apr-07 21:53
Guffa16-Apr-07 21:53 
AnswerRe: How to calculate the time difference Pin
Werries16-Apr-07 21:54
Werries16-Apr-07 21:54 
QuestionHow to use integrated zip-compression? Pin
re infecta16-Apr-07 19:39
re infecta16-Apr-07 19:39 
AnswerRe: How to use integrated zip-compression? Pin
MatrixCoder16-Apr-07 20:07
MatrixCoder16-Apr-07 20:07 
QuestionPassing data from one .aspx page to another .aspx page Pin
shyamts16-Apr-07 18:41
shyamts16-Apr-07 18:41 
AnswerRe: Passing data from one .aspx page to another .aspx page Pin
Christian Graus16-Apr-07 23:14
protectorChristian Graus16-Apr-07 23:14 
QuestionHow to get cheapest deal for vb6.0 Pin
ciacia16-Apr-07 16:59
ciacia16-Apr-07 16:59 
AnswerRe: How to get cheapest deal for vb6.0 Pin
Dave Kreskowiak16-Apr-07 17:42
mveDave Kreskowiak16-Apr-07 17:42 
QuestionHow to open HTML file? Pin
crazyteh16-Apr-07 16:05
crazyteh16-Apr-07 16:05 
AnswerRe: How to open HTML file? Pin
Christian Graus16-Apr-07 16:23
protectorChristian Graus16-Apr-07 16:23 
GeneralRe: How to open HTML file? Pin
crazyteh16-Apr-07 20:28
crazyteh16-Apr-07 20:28 

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.