15,912,204 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 Python 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 Ramtin992 (Top 5 by date)
Ramtin992
15-Sep-20 10:17am
View
Yes, I am sure there are so many other ways to do it better, but as you might notice I am pretty new to programming and especially c#. I will try to improve my code. Thanks for your help and also being patient with me.
Sure I will vote.
Ramtin992
15-Sep-20 9:48am
View
I have done this:
checkedListBox1.Items.Add($"{row[1]}>>\tMax Tons: {row[3]}");
It is working perfectly.
Thank you.
Ramtin992
14-Sep-20 21:06pm
View
Thanks again for your help. I could fix it.
I should mention that I really liked your idea.
Also this part is great :
checkedListBox1.Items.Add($"{row[1]}\t\tMax Tons: {row[3]}");
There is a weird problem here, it is working but in a weird way
There are 13 items that populate in the checkelistbox and all of them are aligned with eachother except for two of them, it seems that those to items do not accept the " \t\t" in the code and attache to the {row[1]}.
If it happened for all of them I thought that I have done something wrong, but it is just for 2 items that happend always. Those two does not align with the rest of the items.
Ramtin992
14-Sep-20 13:22pm
View
Thanks for your response.
No, the user does not have to put a number there, it is optional to refine the results if he or she wants.
I got an error for this section:
string csel = comboBox1.SelectedValue.ToString();
it says: Object reference not set to an instance of an object
How can I fix this? I know the reason but how can I fix it?
I have comboBox1.SelectedItem = null; as I want the combobox be null at the beginning of the program.
Ramtin992
13-Sep-20 15:19pm
View
Could you please explain a little more? I am pretty new to c#
Thank you.