Thank you for your answer. I solved the problem. The cells have a continuous internal top component. then top is bigger than the field of vision. my control must be placed in the field of view. a cell is (unfortunately) not a container. So I have to insert the control relative to the scroll position. this is <br>tableview [a, b] .y - tableview.scrollY. <br>that's it :-), juhuuuuu<br><br>Von meinem Sony Xperia™-Smartphone gesendet<br><br>---- Gianluigi schrieb ----<br><br><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 11 mar 2019 alle ore 15:28 Peter Peyotle <<a href="mailto:peterpeyotle@gmx.de">peterpeyotle@gmx.de</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello and good day.<br><br>I have the following problem:<br><br>I put a combo box (or another control) in a cell of a tableview. The ComboBox is set by clicking on the cell.<br>I use the following code:<br>' -----------------------------------------------------------------------------------------------<br>'Gambas class file<br><br>Private myCombo As ComboBox<br><br>Public Sub form_Open ()<br>myCombo = New ComboBox (<a href="http://TableView1.Children">TableView1.Children</a> [0])<br><a href="http://Object.Attach">Object.Attach</a> (TableView1, Me, "tabEvents")<br>  <br><a href="http://  TableView1.Columns.Count">  TableView1.Columns.Count</a> = 2<br><a href="http://  TableView1.rows.Count">  TableView1.rows.Count</a> = 15<br><a href="http://  TableView1.Columns">  TableView1.Columns</a> [0] .Width = TableView1.W / <a href="tel:2 - 15">2 - 15</a><br><a href="http://  TableView1.Columns">  TableView1.Columns</a> [1] .Width = TableView1.W / <a href="tel:2 - 15">2 - 15</a><br>End<br><br>Public Sub showCombo (tabIndex As Integer)<br>  Dim Xstart, CorrY As Integer<br><br>  myCombo.w = TableView1 [0, 1] .Width<br>  myCombo.h = TableView1 [0, 1] .Height<br><br>  myCombo.Y = TableView1 [tabIndex, 1] .Y<br>  myCombo.X = TableView1 [tabIndex, 1] .x<br>End<br><br>Public Sub tabEvents_Click ()<br>  <br>  show combo (<a href="http://Last.row">Last.row</a>)<br>  <br>End<br><br>' --------------------------------------------------------------------------------------------------------------------<br><br>It works very well too.<br>But, if I scroll the view into the area whose cells are first visible by scrolling, then the position fails (thus here: myCombo.Y = TableView1 [tabIndex, 1] .Y)<br><br>Perhaps this can be compensated by a correction factor.<br>But I think the tableview should also place in the not (always) visible area correctly.<br><br>Thanks for the help - I need her :-(.<br><br></blockquote><div><br></div><div>I attach a project that could offer you some ideas.<br>It comes from this discussion on <a href="http://Gambas-it.org">Gambas-it.org</a> [0].<br>Use the translator for explanations (they are in Italian).<br><br>Regards<br>Gianluigi<br><br>[0] <a href="https://www.gambas-it.org/smf/index.php?topic=4921.0">https://www.gambas-it.org/smf/index.php?topic=4921.0</a> <br></div></div></div></div>