Gridview activate event

Post

Posted
Rating:
#1 (In Topic #1401)
Trainee
Bonjour je debute avec gambas merci de votre compréhension.

Comment faire pour sélectionner une case et faire un copier/coller avec une texbox
Merci :)

Hello, I am new to Gambas, thank you for your understanding.

How to select a Gridview box and copy/paste with a texbox ?
THANKS :)
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
Welcome to the forum

I'm not sure what you are trying to do, but this is my best guess. Try running this code in a new 'graphical' program.

Bienvenue sur le forum

Je ne suis pas sûr de ce que vous essayez de faire, mais voici ma meilleure hypothèse. Essayez d'exécuter ce code dans un nouveau programme « graphique ».

Code (gambas)

  1. Private Gridview1 As GridView
  2. Private TextBox1 As Textbox
  3.  
  4. Public Sub Form_Open()
  5.  
  6.   BuildForm
  7.  
  8.  
  9. Public Sub GridView1_Click()
  10.  
  11.   GridView1[Last.Row, Last.Column].Text = TextBox1.Text
  12.  
  13.  
  14. Public Sub BuildForm()
  15.  
  16.   With Me
  17.     .Arrangement = Arrange.Vertical
  18.     .Padding = 5
  19.     .Width = 600
  20.     .Height = 275
  21.  
  22.   With GridView1 = New Gridview(Me) As "GridView1"
  23.     .Rows.Count = 10
  24.     .Columns.Count = 10
  25.     .Expand = True
  26.  
  27.   With TextBox1 = New TextBox(Me) As "TextBox1"
  28.     .Height = 32
  29.     .Text = " lucien91"
  30.  
  31.  
Online now: No Back to the top

Post

Posted
Rating:
#3
Online now: No Back to the top

Post

Posted
Rating:
#4
Trainee
merci a vous, oui ca correspond a ce que je cherchais

Thank you, yes it corresponds to what I was looking for :D
Online now: No Back to the top

Post

Posted
Rating:
#5
Trainee

BruceSteers said


ca ne m'avancait pas a grand chose, select n'est meme pas renseigné

It didn't go to me much, select isn't even informed, thanks
Online now: No Back to the top
1 guest and 0 members have just viewed this.