"=?Utf-8?B?dmluYXk=?=" <vi***@discussions.microsoft.com> wrote in
news:09**********************************@microsof t.com:
I tested ur code and i can see the tooltip !!
Ok ... try this and the tooltip will not work
I think it is because the image is ''UNDER'' the Table
____
Dim Img As New System.Web.UI.WebControls.Image
Img.ID = "Image1"
Img.ToolTip = "Trou"
Img.ImageUrl = "http://localhost/images/0.bmp"
Img.Style.Add("left", "50%")
Img.Style.Add("top", "50%")
Img.Style.Add("position", "absolute")
Page.Controls.Add(Img)
Dim TotalJeux As Integer = 5
Dim RollPerJeu As Integer = 5
Dim j As Integer
For j = 0 To TotalJeux - 1
Dim Jeu As New TableRow
Jeu.Width = Unit.Percentage(100)
Trim.Rows.Add(Jeu)
Dim i As Integer
For i = 0 To RollPerJeu - 1
Dim Rouleau As New TableCell
Rouleau.Text = "Rouleau" & i.ToString
Rouleau.BorderColor = Color.Black
Rouleau.BorderStyle = BorderStyle.Solid
Rouleau.BorderWidth = Unit.Pixel(1)
Select Case i
Case 0
Rouleau.Width = Unit.Percentage(20)
Case 1
Rouleau.Width = Unit.Percentage(30)
Case 2
Rouleau.Width = Unit.Percentage(20)
Case 3
Rouleau.Width = Unit.Percentage(10)
Case 4
Rouleau.Width = Unit.Percentage(20)
End Select
Jeu.Cells.Add(Rouleau)
Next i
Next j
End Sub