15,993,495 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 sachees123 (Top 18 by date)
sachees123
17-Nov-15 5:59am
View
I did search that too, but didn't get any help.. plz lemme know if u find any
sachees123
5-Feb-15 2:11am
View
gr8, thanks
sachees123
25-Aug-14 7:38am
View
getting date is not a problem, but getting it displayed in datetime control is a BIG problem. Also there are many other fields in query.
sachees123
1-Aug-14 4:37am
View
Ok, thanks once again
sachees123
1-Aug-14 4:08am
View
this is the error I get while compiling
Error 24 Argument 1: cannot convert from 'System.Windows.Forms.ComboBox' to 'System.Windows.Controls.ComboBox'
when my method is
public void BindComboBoxDataContext1(ComboBox comboBox, DataTable dtDataContext, string displayMemberPath)
now what is did is change method to:
internal void BindComboBoxDataContext(System.Windows.Forms.ComboBox cmbSession, DataTable dt, string p)
and it works. I hope you got my point/question
sachees123
1-Aug-14 3:16am
View
yupeeee....got the result .. thanks a ton..
but some correction that I did in class
internal void BindComboBoxDataContext(System.Windows.Forms.ComboBox cmbSession, DataTable dt, string p)
{
try
{
cmbSession.DataSource = dt;
cmbSession.SelectedIndex = -1;
cmbSession.DisplayMember = p;
}
catch (Exception ex)
{ }
}
what you had given is control type and it required form type of comboBox. So now my question is when we can use control type objects?
sachees123
1-Aug-14 3:01am
View
string queryString = "Select distinct(bc_session) from cm_master order by bc_session desc";
OleDbDataAdapter da = new OleDbDataAdapter(queryString, cs.connString());
DataSet ds = new DataSet();
DataTable dt = new DataTable();
da.Fill(dt);
BC.BindComboBoxDataContext(cmbSession, da);
sachees123
1-Aug-14 1:08am
View
Sure, I will but now let me try to solve it first... the time I will give up will give code...
sachees123
31-Jul-14 8:25am
View
System.Data.DataViewManagerListItemTypeDescriptor
This is the outcome of the above efforts by us in combo box.
here I escape the last two values of method given by you
sachees123
31-Jul-14 7:36am
View
Thank, it resolve namespace problem,
now, I'm using this method in my form, where I defined first two values but not get the value for string displayMemberPath, string selectedValueMemberPath
sachees123
31-Jul-14 7:01am
View
I did this too, now the error is
Error 1 The type or namespace name 'ComboBox' could not be found (are you missing a using directive or an assembly reference?)
sachees123
31-Jul-14 6:46am
View
I did the same , here is the code, plz tell me where i'm doing wrong
using System;
using System.Collections.Generic;
using System.Text;
namespace MINE.classes
{
class bc_session
{
}
public void BindComboBoxDataContext(ComboBox comboBox, DataTable dtDataContext, string displayMemberPath, string selectedValueMemberPath)
{
try
{
comboBox.DataContext = dtDataContext;
comboBox.DisplayMemberPath = displayMemberPath;
comboBox.SelectedValuePath = selectedValueMemberPath;
comboBox.SelectedIndex = -1;
}
catch (Exception ex)
{ }
}
}
sachees123
31-Jul-14 6:36am
View
thanks for your prompt reply, im getting an error
Error 3 Expected class, delegate, enum, interface, or struct
sachees123
29-Oct-12 2:14am
View
sry 4 that,
see, a data entry operator is more friendly with enter button. one way for me is to write the code for each and every text box and give its focus to another text box. it was perfect when i have 5 to 8 text box with me. now the fig. goes to 58. thats why i need a single mthod to control all text box. I hope now the problem is clear to you.
sachees123
29-Oct-12 2:07am
View
tab index is set as said. but dont want to use tab button for moving from one textbox to another. see, a data entry operator is more friendly with enter button. thats why i need single method for movement.
sachees123
21-Dec-11 6:35am
View
Thnaks, I know and im alreday using this. But what my question is " what if the software is running and a update of version is uploaded and the location is in 100's. What all i do is to mail all of them that please update the software or should a pop up appears on all the machines informing them a new version is available please update. thats what i want to do. I hope you got my question
sachees123
20-Aug-11 8:41am
View
This is the way to import/export data, but what to do for the count???
sachees123
2-Aug-10 0:47am
View
Issue is IM NOT BEEN ABLE SEND SMS VIA THIS CODE
Show More