For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
Without your code, we can't help: but that kind of error normally comes from an SQL Substring function - so start by looking at your queries and stored procedures, and the data you are passing to them.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
into a dataset and then I try to load the dataset into a list. The problem is there are 2 root tables (person and phone) in the main table (list) and I am not sure how to loop through the dataset to fill my list (List<Person> ListP = new List<Person>())
so that the the content of each would match the correct parts.
ListP would contain Micky Mouse, 1111111, 2222222,
ListP would contain Donald Duck 333333
ListP would contain Pluto
ListP would contain Goofy 5555555, 6666666, 7777777
I don't know why I wrote "root" tables. I meant 2 tables (person and phone) and that is what I don't know how to loop through properly and put there content into my list (List ListP = new List()).
I will try that change you wrote.
For .NET 4.5 with async / await, using await Task.WhenAll(tasks); is better than using Task.WaitAll(tasks);. The former releases the current thread until the tasks are complete; the latter blocks the current thread waiting for the tasks to complete.
some month ago, google have deprecate the 2nd version of "Google Calendar API", and my windows application stop to work.
Now I start to rewrote the code, but i discover a surprise, to add, delete, modify, list the appointments in 10 different google calendar, i need to do the authentication with OAuth2.0. And now appear the problem, I have stressed google to find an example of code, but every code was write for webapplication(asp.net) and not for a standalone windows application.
Somebody can help me to find a solution/example to integrate in my code????
I cannot get anything to work to add the code at runtime, besides having a button click add row by row (which I do not want and cannot use) so somehow I've done something in the beginning to break it in trying to figure this out, and now that I've asked for help and gotten working examples, it is thwarting my ability to get it to work properly.
Even the code from the msdn site isn't working and my data grid is indeed called dataGridView1?