Click here to Skip to main content
14,271,663 members
Rate this:
Please Sign up or sign in to vote.
See more:
IGNORE. I have solved my problem.

What I have tried:

IGNORE. I have solved my problem.
Posted
Updated 26-Mar-18 0:32am
v4
Comments
PIEBALDconsult 26-Mar-18 0:10am
   
So? What's the value?
Richard Deeming 27-Mar-18 9:37am
   
If you've solved the problem, then either delete your question, or post the solution if you think it might help other people.

DO NOT edit your question to remove all details.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

We can't help you - this depends entirely on the data you are looking at and processing, and we have no access to that at all.
So, it's going to be up to you.
Fortunately, you have a tool available to you which will help you find out what is going on: the debugger. How you use it depends on your compiler system, but a quick Google for the name of your IDE and "debugger" should give you the info you need.

Put a breakpoint on the line:
UserID = Guid.Parse(listboxUsers.SelectedValue);
and run your code through the debugger. Then look at your code, and at your data and work out what should happen manually. Then single step each line checking that what you expected to happen is exactly what did. When it isn't, that's when you have a problem, and you can back-track (or run it again and look more closely) to find out why.

Sorry, but we can't do that for you - time for you to learn a new (and very, very useful) skill: debugging!
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100