Solved

Over typing List Items in List views

Posted on 2000-03-31
9
117 Views
Last Modified: 2010-05-02
Hi,

Just finished an app featuring  List View's  - used to allow easy sorting of the presented data by the users.

During testing, the ability to overwrite the List items has been questioned, (you know - as in the file re-name functionality of Windows Explorer)

Although it is just a cosmetic problem as this overwriting does not have an adverse affect on the functionality of the app - I have to conceed it is a bit 'naff' the data presented would never be re-named at this point.

Is there an obvious way to prevent this from happening without disabling the control (I have code behind the itemclick event as well - so cant just build the list and then 'turn it off').

Cheers,

Gareth

London
0
Comment
Question by:G_Evans
  • 4
  • 4
9 Comments
 
LVL 7

Expert Comment

by:Vbmaster
Comment Utility
Use the BeforeLabelEdit event and set the Cancel property to True.
0
 
LVL 10

Accepted Solution

by:
caraf_g earned 30 total points
Comment Utility
Or set the labelEdit property to manual.
0
 

Author Comment

by:G_Evans
Comment Utility
Cheers!
0
 
LVL 10

Expert Comment

by:caraf_g
Comment Utility
Awright so... and what exactly was not quite good enough about my answer?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 10

Expert Comment

by:caraf_g
Comment Utility
I mean... not to nag... but... I posted that as a comment. Fair enough if it helps you to accept it as an answer, but to be honest, it was a 30 point question which is rather under par. I did not actually propose it as an "answer" so to punish me with a "B" is a bit unfair to say the least.

<grumpy>
0
 

Author Comment

by:G_Evans
Comment Utility
Hey caraf g,

No offence meant!!!!!!!!

I only gave out thirty points as it was an 'either you know it or you don't' question as opposed to one that required any analysis.

As for the 'B' grade - I really thought 'Good' was a fair grade for the question type. (i.e. saving the 'Excellent' rating for a real head turner).

I have actually graded all answers to questions I've asked so far with this rating - though as it did not affect the number of points involved, I didn't feel I would be depriving anybody of any 'kudos'.

After all, it's the points that make the prizes.........

Anyway, the answer was 'completely' correct - thus I am moved by your note to be less 'tight' in future!!!!!!!

Gareth
London  
0
 

Author Comment

by:G_Evans
Comment Utility
PS

Surely all comments are proposed answers............?
0
 
LVL 10

Expert Comment

by:caraf_g
Comment Utility
Hi Gareth,

Thanks for coming back on this one! It's much appreciated. The "right" way of giving points is very much open for debate and it has been debated quite often here, but in general amongst people who've been around for a while it is agreed that if an answer is 100% correct, no matter how trivial, it deserves an "A", so that I hope explains my grumpy reaction.

I commented because Vbmaster's suggestion would quite probably work as well. In that case I feel it's not fair to lock the question with my alternative. I'd rather leave it up to the asker to decide.

Not all comments are proposed answers. Sometimes people comment to propose a suggestion, hoping to get confirmation from another expert for example, or even to start a discussion about different ways of tackling a problem.

Anyway, like I said, I appreciate your response, and I hope you'll enjoy participating in EE as much as I do ;-)
0
 

Author Comment

by:G_Evans
Comment Utility
Cheers!!!!

Believe me, it has been both useful and, (much to my surprise), most entertaining (e.g. caraf g vs jonder  -  "Package and Deployment Issues" - 21/03/00)  

Gareth
London
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now