hello everyone i want to know if there is any way or possible to make msflexgrid to be clickable?like if i want to copy a certain data inside the row of the grid and paste it into notepad or excel..im pulling my hair with this one..need your help..thanks
androidz
-2
Junior Poster in Training
Recommended Answers
Jump to PostTrapthe keys "Ctrl" and "C" in their event procedure use
Clipboard.Clear Clipboard.SetText Screen.ActiveControl.SelText
Jump to PostCorrected Code
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyC Then If Shift = 2 Then Clipboard.Clear Clipboard.SetText grd.Clip End If End If End Sub
PS: For this to work set the KeyPreview Property of the your FORM to "True"
Regards
Shaik …
All 6 Replies
faroukmuhammad
10
Junior Poster
androidz
-2
Junior Poster in Training
androidz
-2
Junior Poster in Training
faroukmuhammad
10
Junior Poster
aktharshaik
16
Posting Whiz
debasisdas
commented:
agree, welcome back.
+13
androidz
-2
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.