15,906,329 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 vishal deb (Top 26 by date)
vishal deb
4-Sep-13 14:05pm
View
5
4 3
4
6
7 9
1
8
0 3
7
2
4 5
9
Hence
4 3 6 1 8 7 4 5
vishal deb
4-Sep-13 14:03pm
View
Deleted
cout<<"\n Diagonal Two:";
for (i=0;i
vishal deb
4-Sep-13 13:57pm
View
Deleted
cout<<"\n Diagonal Two:";
for (i=0;i
vishal deb
2-Aug-13 16:18pm
View
Thank you again, you said that "Replace double space with single space at the level of string" how to do this may I get some code snippet.
vishal deb
2-Aug-13 16:10pm
View
Thank you for feedback.. then how can I able to replace the consecutive blank with one blank, guidance required.
vishal deb
20-Jun-13 13:56pm
View
@JackDingler
I have a small theory can you verify my concept -
Accessibility of a class's constructors and destructor only affects the creation or destruction of object of that class. You will need at least one of the publicly accessable constructors or destructor for creating or destructing object of a class.
vishal deb
20-Jun-13 13:40pm
View
@Richard MacCutchan Thank you for your link
But I need a glass of water and you thrown me in Swimming Pool.
Please give me some easy explanation as I am in learning phase not an expert like you.
vishal deb
5-Jun-13 3:20am
View
Thank You Lukker You are right
I was confuesd with the loops
vishal deb
5-Jun-13 2:46am
View
You can see the table in my post where I have made everything clear
Take Example No. 1. ROW1 and ROW4 is having same values that is 2 2 2 again ROW1 and ROW2 have same value 6 and again ROW1 and ROW2 and ROW4 have same value 7 7 7 so now I want to color them with RED color as showing the conflicts.
Take Example No. 2. ROW2 and ROW3 have same value 1 1 so I want to color them in RED to show the conflict.
I hope now my intention is clear
vishal deb
5-Jun-13 2:21am
View
Thank You Kumar but I want to view this table with full data I don't want to use DISTINCT.
Here is the C# code of winform
public void check_conflict()
{
int rowCount=dataGridView1.RowCount;
int colCount=dataGridView1.ColumnCount;
string val1;
int c = 1;
for (int k = 0; k < rowCount - 1; k++)
{
for (int i = 1; i < colCount; i++, c++)
{
val1 = Convert.ToString(dataGridView1.Rows[k].Cells[i].Value);
for (int j = 1; j < rowCount - 1; j++)
{
string val2 = Convert.ToString(dataGridView1.Rows[j].Cells[i].Value);
if (val1 == val2 && (val1 != "" && val2 != ""))
{
DataGridViewCellStyle CellStyle = new DataGridViewCellStyle();
CellStyle.BackColor = Color.Red;
dataGridView1.Rows[j].Cells[i].Style = CellStyle;
}
}
}
}
Problem I facing with code is it is only comparing 1 Row with others
vishal deb
29-May-13 9:41am
View
I want to show checkbox under each day(columns) and values from database in these checkbox.
vishal deb
29-May-13 9:38am
View
Yes I do understand the purpose of checkbox whether the option is selected or not. So if I want to select Sun day then I I want to put a tick on checkbox means Select Sunday and if it is not tiked means I don't want Sunday. And the value of check box will be saved in Access database as Yes/No. Well what best way you have please let me n
vishal deb
24-May-13 11:40am
View
Thanx u r right...
vishal deb
24-May-13 11:10am
View
Thank you for suggestion but can you please give some small hint on code how to use same event handler for all of the comboboxes
vishal deb
24-May-13 11:08am
View
Thank you for your guidance.. But I am bit confused about your code. What does myComboBox represent in your code. If it the name of one of the combo box out of 84 combo boxes then how the problem is solved?
vishal deb
14-May-13 8:14am
View
I mean to say that if I need to fix timing for days say take an example - under group1 I have selected 3 days - Sun, Mon and Thr and from Group 2 I have selected 5 days-Mon, Tue,Wed, Thr,Fri.
Now I have to fix timing and teachers for all days in next step. So How can I adjust A teacher for Group1 Sun period 1, B teacher Sun period 2, C teacher Sun period 3, B Teacher Mon Period 1, A teacher Mon Period 2, A teacher Mon Period 3 and so on. Now you can understand Why I need to club Group and their Days respectively.
vishal deb
14-May-13 4:49am
View
@Ankit If I pass 2 List how can I relate groupbox with checkbox any hint
vishal deb
14-May-13 3:03am
View
How can pass the values of checkboxes with their respective groupbox via constructor. I am actually confused about this only
vishal deb
14-May-13 2:54am
View
Please see this code for clarification
<pre lang="c#">
GroupBox[] grpBox;
CheckBox[] dayCheckBox;
int grpposition = 40;
public step2(List<string> list)
{
InitializeComponent();
int x = list.Count;
grpBox = new GroupBox[x];
for (int i = 0; i < x; i++)
{
grpBox[i] = new GroupBox();
grpBox[i] = new GroupBox();
grpBox[i].Name = "gpBox" + Convert.ToString(i);
grpBox[i].Text = list[i];
grpBox[i].Location = new Point(5, grpposition);
grpBox[i].Width = 500;
grpBox[i].Height = 75;
this.Controls.Add(grpBox[i]);
dayCheckBox = new CheckBox[7];
String[] dayName={"Sun","Mon","Tue","Wed","Thr","Fri","Sat"};
for (int j = 0; j < 7; ++j)
{
dayCheckBox[j] = new CheckBox();
dayCheckBox[j].Name = "radio" + Convert.ToString(j);
dayCheckBox[j].Text = dayName[j];
dayCheckBox[j].Width = 50;
dayCheckBox[j].Location = new System.Drawing.Point(70 * j, 25);
grpBox[i].Controls.Add(dayCheckBox[j]);
//dayCheckBox[i].CheckStateChanged += new System.EventHandler(dayCheckBoxCheckedChanged);
}
grpposition += 80;
}</pre>
vishal deb
14-May-13 2:51am
View
1st option is looks Good. As I already done same thing for Step1 to Step2. I used List<string> in Step1 to pass the groupBox names to the constructor of Step2 Form. And from Step2 I need both the groupbox and checkbox names respectively. And Yes Section(Groupbox) can increase.
By this way
<pre lang="c#"> list = new List<string>();
}
private void BatchBoxCheckedChanged(object sender, EventArgs e)
{
CheckBox batchBox = (CheckBox)sender;
//Here I want to store name of checkbox in array
if (batchBox.Checked == true)
{
list.Add(batchBox.Text);
}
}
private void button1_Click(object sender, EventArgs e)
{
step2 st2 = new step2(list);
st2.ShowDialog();
} </pre>
vishal deb
13-May-13 3:29am
View
Hi Maciej
I never used list but I think it I have to do something like this
<pre lang="c#">List<checkbox> chks = Controls.OfType<checkbox>().ToList();</pre>
But after this how can I get the name of batchBox (dynamic checkbox) name and store them in list. Can you give some code snippet
vishal deb
13-May-13 0:43am
View
Thank you Maciej Los
I gave a deep thought as you suggested and found the way
vishal deb
12-May-13 15:36pm
View
Sorry for confusion I actually mean by this "I want to add record of access database in datagridview when button is clicked" is " I want to show record of database in datagridview" I am able to view all records at once on button click. But this is not my purpose... Can you give some more lights on the idea
vishal deb
12-May-13 15:20pm
View
Thank you for suggestion but... I don't want to insert record in database, I want to show record of database, as 1 record on 1 button click in datagridview
vishal deb
12-May-13 13:05pm
View
I already done with these articles and also if you gone through my issue then you can see I am able to created dynamic check box done many operation with them. I want to generate dynamic groupbox based on checkbox selection
vishal deb
8-May-13 9:51am
View
Yes but confused what to do to get the name or reference of selected checkboxes
Show More