16,018,417 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by obp42 (Top 22 by date)
obp42
17-Aug-12 16:45pm
View
Have you debugged to make sure you are actually running the query you intend to?
obp42
17-Aug-12 15:53pm
View
Start by changing
if (textBox1.Text.Trim() == OleDbDataRead[6].ToString() | textBox1.Text.Trim() == OleDbDataRead[7].ToString())
to
if (textBox1.Text.Trim() == OleDbDataRead[6].ToString() || textBox1.Text.Trim() == OleDbDataRead[7].ToString())
obp42
3-Aug-12 9:56am
View
I'm glad I was able to help.
obp42
3-Aug-12 9:35am
View
I'm not sure that I understand what you're trying to say but I think you still should be able to do this in the DataBindingComplete handler. Right after you return your DataTable, add the cells you need highlighted to a global array (something like int coords[,]), then loop through these in the DataBindingComplete event and set them all to selected.
If this doesn't work then try posting some more code in your original question and hopefully myself or someone else can help.
obp42
2-Aug-12 16:19pm
View
You said you got it to work if you put it in the DataBindingComplete event right? Is there something wrong with doing it that way?
obp42
2-Aug-12 16:12pm
View
I updated my answer for you, take a look and let me know if it works.
obp42
2-Aug-12 15:48pm
View
You should add at least a little more code to your question. Show us where you are calling this line, etc. Otherwise I don't know how much more anyone is going to be able to help you.
obp42
1-Aug-12 16:11pm
View
Have you actually connected your database yet? If so, what are you using to make the connection?
If you haven't, here's a link that should provide a good starting place:
http://www.codeproject.com/Articles/43438/Connect-C-to-MySQL
obp42
1-Aug-12 12:03pm
View
Added some code that will hopefully help you, check it out.
obp42
31-Jul-12 23:28pm
View
Let's remember OP did not specify what he was even doing. I highly doubt that his homework is to print that matrix to the console. Since that is probably the most basic thing possible here, I gave him that code assuming he could replace the print outs with operations to store and do whatever it is he needs to with that data.
obp42
31-Jul-12 14:54pm
View
I'm not even sure what "how to write loop for this matrix" means. I provided a general solution he can work with for whatever it is he needs to do. Thanks for the downvote anyway though.
obp42
27-Jun-12 9:12am
View
So you're suggesting that I don't use polymorphism on mainPanel, but instead create a new instance of FirstPanel, Second Panel, etc.? I'll try it out, but it's possible that a couple of the screens will have a lot of data on them - enough that I believe it could definitely affect performance.
obp42
3-Aug-11 10:24am
View
Can you explain how to do this?
obp42
27-Jul-11 15:23pm
View
Nevermind, you're right.
When I first tried it I also changed the problem line to:
itemNum_noRev[count + 1] = '\0';
which is obviously wrong.
Thanks alot for your help!
obp42
27-Jul-11 15:21pm
View
I have actually tried that, and unfortunately I get the exact same error :(
Any other ideas?
obp42
1-Jul-11 20:44pm
View
Thanks Albert, I won't have a chance to work on this again until Tuesday but I'm sure I'll be able to figure it out with the information you've provided.
obp42
1-Jul-11 16:36pm
View
Sorry I should have mentioned that I'm using the express edition, which I don't think will let me use any of the CWnd classes. Any other ideas?
obp42
24-Jun-11 15:07pm
View
After playing around with it a little bit, it looks like this is going to work. Very helpful link, thanks Vivek
obp42
24-Jun-11 11:38am
View
Skimmed over this a little bit and I like what I've seen, I think I can definitely modify it to work with my code. I'll give it a try and get back to you
obp42
24-Jun-11 11:03am
View
Thanks Marcus, any advice on how to do this pre-scan? If I got that list I could just call the code I already have written for each folder.
obp42
16-Jun-11 17:17pm
View
Yeah I'm not too sure what exactly I was thinking when I was typing that garbage in... haha oh well I guess it's been a long day. Thanks again Albert.
obp42
16-Jun-11 16:51pm
View
Well yes like I said that's not at all how I'd like to do it, I was hoping for suggestions on a better way. Going to update it to what I'm working with now, which makes a little more sense. Thanks for your input though.
Show More