I would like to have the caret displayed while I am editing a MSHFlexGrid. I
have tried the API call ShowCaret(MSHFlexGrid1.hWnd) with no visible
affects. Any ideas?
"news.ispnetbilling.com" <email@example.com> wrote in messageDid you see my reply in the vb.com group? My question to you still stands.
>I would like to have the caret displayed while I am editing a MSHFlexGrid.
> have tried the API call ShowCaret(MSHFlexGrid1.hWnd) with no visible
> affects. Any ideas?
How are you editing a read-only grid? If you're using the "hidden textbox"
technique, a cursor should show when the box gets focus.
Sorry for the multiple postings. Wasn't sure which group the question
applied to. Anyway, I am using the 'KeyPress' to allow the full range of
editing including entering data in a single cell and cut, copy and paste to
either single or muliple cells and or lines. Everything works extreemly well
except for the fact that the caret doesn't show up. I could use the hidden
textbox approach, except if I do this, I will lose the multiline cut, copy
Show quote Hide quote
"news.ispnetbilling.com" <firstname.lastname@example.org> wrote in message<lecture mode on>
> Sorry for the multiple postings. Wasn't sure which group the question
> applied to. Anyway, I am using the 'KeyPress' to allow the full range of
> editing including entering data in a single cell and cut, copy and paste
> either single or muliple cells and or lines. Everything works extreemly
> except for the fact that the caret doesn't show up. I could use the hidden
> textbox approach, except if I do this, I will lose the multiline cut, copy
> and paste...
If you're not sure which group, crossposting is the way to go. Place
multiple groups on the "destination" or "newsgroups" line at once, separated
by a semi-colon or comma. Just like sending mail to several people at once.
If you do this, your post will show in all groups in the list... the kicker
here is, no matter which group an answer originates in, the answer will show
in all groups in the list as well because they're connected by the
crosspost. That makes sure that A) you get answers (by posting to more than
one group), B) no matter which of the groups you visit, you'll see the
answer(s), C) People that view the answers may have a better idea and reply
on their own (you get better answers) D) Questions with decent answers can
be skipped by people looking for questions to answer. E) People visiting a
single group will see a stack of answers and may be able to use some of the
info themselves without actually posting a question. F-Z.. the list goes
on... Crossposting is great. Multiposting is the devil <g>
<lecture mode off>
I don't think you'll be able to get a caret to show in a flexgrid cell
without using the "hidden textbox" method. Caret's will only show in a
window that's ready for keyboard input.
Have you tried any of these? The first is the most complete I've seen.
Edit Data in a Read Only Grid
Easy Way to Edit MSFlexGrid Control
fwiw, I considered setting up an app to look "Excelish" and I was going to
use a visible textbox with the grid below it... just like Excel and it's
formula bar, transferring the textbox data to the selected cell as they
typed... and transferring the contents of the cell to the box when they
selected a different cell. I never completed that project <g> We went to
work on something else which made it "obsolete" before it was ever born.
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..
Other interesting topics