15,906,463 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 Hemas Ilearn (Top 52 by date)
Hemas Ilearn
25-Jan-17 6:32am
View
so then how can do the way i want?
please help me?
Hemas Ilearn
4-Jul-16 3:27am
View
this will run the program?
but it will close my all frames?
i need to run the class and keep remain the frame?
Hemas Ilearn
22-Jun-16 3:40am
View
example:
test class 1
test class 2
i want to run test class 1 files in test class 2
Hemas Ilearn
21-Jun-16 6:47am
View
i have mysql workbench with me
Hemas Ilearn
6-Apr-16 5:48am
View
that means localhost has to change into ip address?
Hemas Ilearn
21-Mar-16 4:37am
View
its fine.. i have enabled less security app option.
https://support.google.com/accounts/answer/6010255
Hemas Ilearn
21-Mar-16 4:15am
View
that link is not working?
Hemas Ilearn
25-Feb-16 0:17am
View
i dont know where is it exactly?
it just gives the details inside my catch phrases?
Hemas Ilearn
15-Dec-15 2:26am
View
Yes of course.........
Hemas Ilearn
15-Dec-15 0:39am
View
but there are two separate files?
Hemas Ilearn
27-Nov-15 3:32am
View
those are okay......
Hemas Ilearn
11-Jun-15 3:12am
View
still same error...
in
command.ExecuteNonQuery();
Hemas Ilearn
10-Jun-15 23:32pm
View
command.ExecuteNonQuery();
this code gives an error....!!
but there is no data type for date in compact sql server?
Hemas Ilearn
18-Feb-15 22:26pm
View
i want if else conditions?
because if(input.selectedIndex==13.75){
var total = 13.75*12
}
else(input.selectedIndex==10.75){
var total = 10.75*6
}
like that.
please it will be very helpful for me if you can solve this issue?
i don't have much experience in html as well
Hemas Ilearn
18-Feb-15 2:46am
View
but is there anyway to readfile? because it gives me an error saying not (readfile)implemented a method?
byte[] imageData = ReadFile(txtImagePath.Text);
Hemas Ilearn
17-Feb-15 5:04am
View
yesss...
Hemas Ilearn
17-Feb-15 1:06am
View
i can convert base 64... if database content is in binary format.
but it is in image format..
Hemas Ilearn
12-Feb-15 22:48pm
View
Difficult thing is i cant save the the file on my project folder?
one button will open the image ? using openfiledialog.
to do the save i don't need savefiledialog?
i just need upload button click and just save that file on project folder? and give user message saying successful.
that's it
Hemas Ilearn
9-Feb-15 2:28am
View
but my one won't work
i think my port is not free...
how can i free the port?
Hemas Ilearn
7-Feb-15 2:40am
View
yeah i did, yeap i know google.. but i couldn't find any
Hemas Ilearn
22-Jan-15 2:51am
View
yeap i did? why i cant access the database from other pc?
now it gives me an error like this?
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Hemas Ilearn
22-Jan-15 1:32am
View
yeah i have installed kaspersky but i disabled it already?
and i created an inbound rule for 1433 in firewall advance setting.
when i installed sql server r2.. i put default instance? so do i need to put instance here?
Hemas Ilearn
22-Jan-15 0:52am
View
do i need to share my sql server database among all users?
or is it enough to add ip address to my connection string?
Hemas Ilearn
22-Jan-15 0:52am
View
yes... i did... nothing work out yet.........
Hemas Ilearn
20-Jan-15 6:37am
View
please give me a solution... any solution couldn't help me properly?
Hemas Ilearn
20-Jan-15 6:37am
View
please give me a solution... any solution couldn't help me properly?
Hemas Ilearn
20-Jan-15 6:37am
View
please give me a solution... any solution couldn't help me properly?
Hemas Ilearn
19-Jan-15 1:07am
View
i checked sql sever configuration manager and tcpport is 1433,
share memory enabled
tcp/ip enabled
named pipes enabled
via disabled
and i had kaspersky virus guard installed on as well. but i disabled the virus guard as well.
still not working................
Hemas Ilearn
27-Dec-14 2:40am
View
i removed try catch block as well
no errors still.............
Hemas Ilearn
27-Dec-14 2:32am
View
What should i do now?
Hemas Ilearn
27-Dec-14 2:32am
View
ah forgot that!!!!
Hemas Ilearn
11-Dec-14 5:26am
View
got it..
Hemas Ilearn
11-Dec-14 5:23am
View
yess i put 1st code and 2nd code to the parent form?
and 3rd code to form which i needed to set enables the toolstrip
Hemas Ilearn
11-Dec-14 1:02am
View
i applied this in to my form.
but nothing happened?
toolstrip contained form name is ParentWindow and
LogEnq is the form which handle username and password
if password is correct it will automatically enables the toolstrip which contains in ParentWindow.
how can i access ParentWindow objects From LogEnq Form?
Is that Possible
Hemas Ilearn
8-Dec-14 5:06am
View
i'm just reading login name password and i want compare those with my textbox values?
actually this is just a basic program?
Hemas Ilearn
8-Dec-14 0:10am
View
in my computer.. its working perfectly.
when i run exe file on another computer it won't
Hemas Ilearn
4-Dec-14 5:34am
View
but it will close the whole program...
Hemas Ilearn
4-Dec-14 4:35am
View
But this one won't open my Enquiry form. it will open a new form?
Hemas Ilearn
28-Nov-14 5:00am
View
Yes but what is the assembly name for databaseset?
Hemas Ilearn
24-Nov-14 1:50am
View
private void button5_Click(object sender, EventArgs e)
{
string team = comboBox3.SelectedText;
string name = textBox1.Text;
DateTime result = dateTimePicker1.Value.Date;
string date1 = result.ToString("dd/MM/yyyy");
DateTime result2 = dateTimePicker2.Value.Date;
string date2 = result2.ToString("dd/MM/yyyy");
try
{
System.Data.OleDb.OleDbConnection MyConnection;
System.Data.OleDb.OleDbCommand myCommand = new System.Data.OleDb.OleDbCommand();
string sql = null;
MyConnection = new System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;Data Source='d:\\enquiry1/enquiry-Excel.xls';Extended Properties=Excel 8.0;");
MyConnection.Open();
myCommand.Connection = MyConnection;
sql = "Update [Sheet1$] set FinalStatus='Succeed' where [Name]='" + name + "' and [Team]='" + team + "' and [Date]='" + date1 + "' and [Req Date]='" + date2 + "'";
myCommand.CommandText = sql;
myCommand.ExecuteNonQuery();
MyConnection.Close();
MessageBox.Show("Successfully Saved");
}
Code will successfully execute. but nothing change in the excel file?
Hemas Ilearn
24-Nov-14 1:50am
View
private void button5_Click(object sender, EventArgs e)
{
string team = comboBox3.SelectedText;
string name = textBox1.Text;
DateTime result = dateTimePicker1.Value.Date;
string date1 = result.ToString("dd/MM/yyyy");
DateTime result2 = dateTimePicker2.Value.Date;
string date2 = result2.ToString("dd/MM/yyyy");
try
{
System.Data.OleDb.OleDbConnection MyConnection;
System.Data.OleDb.OleDbCommand myCommand = new System.Data.OleDb.OleDbCommand();
string sql = null;
MyConnection = new System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;Data Source='d:\\enquiry1/enquiry-Excel.xls';Extended Properties=Excel 8.0;");
MyConnection.Open();
myCommand.Connection = MyConnection;
sql = "Update [Sheet1$] set FinalStatus='Succeed' where [Name]='" + name + "' and [Team]='" + team + "' and [Date]='" + date1 + "' and [Req Date]='" + date2 + "'";
myCommand.CommandText = sql;
myCommand.ExecuteNonQuery();
MyConnection.Close();
MessageBox.Show("Successfully Saved");
}
Code will successfully execute. but nothing change in the excel file?
Hemas Ilearn
24-Nov-14 0:30am
View
excel doesn't get updated bro?
Hemas Ilearn
21-Nov-14 6:28am
View
how do i compare with string?
string name = "sgfsdg";
sql = "Update [Sheet1$] set FinalStatus='f***' where Name="name" and Team='Group 2'";
Hemas Ilearn
15-Nov-14 1:03am
View
String date1...
Hemas Ilearn
15-Nov-14 0:58am
View
i input data to an excel sheet like this?
private void button1_Click(object sender, EventArgs e)
{
string szConn = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\172.21.1.91\enquiry/enquiry-Excel.xls;Extended Properties='Excel 8.0;HDR=YES;'";
string szConn1 = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=d:\\enquiry1/enquiry-Excel.xls;Extended Properties='Excel 8.0;HDR=YES;'";
OleDbConnection conn = new OleDbConnection(szConn);
OleDbConnection conn1 = new OleDbConnection(szConn1);
DateTime result = dateTimePicker1.Value.Date;
string date1 = result.ToShortDateString();
String name = textBox1.Text;
int Contct = Convert.ToInt32(textBox2.Text);
DateTime result2 = dateTimePicker2.Value.Date;
string date2 = result2.ToShortDateString();
string requirment = textBox3.Text;
string cb = "";
string cb2 = "";
string cb3 = "";
if (checkBox1.Checked)
{
cb = "checked";
}
else if (checkBox2.Checked)
{
cb2 = "checked";
}
else if (checkBox3.Checked)
{
cb3 = "checked";
}
string team;
team = comboBox3.Text;
string cmb;
cmb = comboBox1.Text;
string cmb2;
cmb2 = comboBox2.Text;
string status1 = textBox5.Text;
string status2 = textBox6.Text;
string finalstats = "finalized";
//conn.Open();
OleDbCommand cmd = new OleDbCommand("INSERT INTO [Sheet1$]([Team],[Date],[Name],[Contact Details],[Req Date],[Requirment],[Ticket],[Fit Package],[Group],[No of Pax],[Status 1],[Status 2],[Status 3],[FinalStatus]) VALUES('" + team + "','" + date1 + "','" + name + "','" + Contct + "','" + date2 + "','" + requirment + "','" + cb + "','" + cb2 + "','" + cb3 + "','" + cmb2 + "','" + cmb + "','" + status1 + "','" + status2 + "','" + finalstats + "')", conn);
OleDbCommand cmd2 = new OleDbCommand("INSERT INTO [Sheet1$]([Team],[Date],[Name],[Contact Details],[Req Date],[Requirment],[Ticket],[Fit Package],[Group],[No of Pax],[Status 1],[Status 2],[Status 3],[FinalStatus]) VALUES('" + team + "','" + date1 + "','" + name + "','" + Contct + "','" + date2 + "','" + requirment + "','" + cb + "','" + cb2 + "','" + cb3 + "','" + cmb2 + "','" + cmb + "','" + status1 + "','" + status2 + "','" + finalstats + "')", conn1);
conn.Open();
conn1.Open();
cmd.ExecuteNonQuery();
cmd2.ExecuteNonQuery();
conn.Close();
MessageBox.Show("complete");
conn1.Close();
}
and i update data like this?
private void button5_Click(object sender, EventArgs e)
{
string team = comboBox3.SelectedText;
string name = textBox1.Text;
DateTime result = dateTimePicker1.Value.Date;
string date1 = result.ToShortDateString();
DateTime result2 = dateTimePicker2.Value.Date;
string date2 = result2.ToShortDateString();
try
{
System.Data.OleDb.OleDbConnection MyConnection;
System.Data.OleDb.OleDbCommand myCommand = new System.Data.OleDb.OleDbCommand();
string sql = null;
MyConnection = new System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;Data Source='d:\\enquiry1/enquiry-Excel.xls';Extended Properties=Excel 8.0;");
MyConnection.Open();
myCommand.Connection = MyConnection;
sql = "Update [Sheet1$] set FinalStatus='Success' where Name=promod";
myCommand.CommandText = sql;
myCommand.ExecuteNonQuery();
MyConnection.Close();
}
catch (Exception ex)
Hemas Ilearn
14-Nov-14 2:31am
View
No....
Hemas Ilearn
1-Nov-14 0:39am
View
got it.... (y)
thank you
Hemas Ilearn
1-Nov-14 0:25am
View
i did like this?
string szConn = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\172.21.1.91\enquiry/enquiry-Excel.xls;Extended Properties='Excel 8.0;HDR=YES;'";
string szConn1 = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=d:\\enquiry1/enquiry-Excel.xls;Extended Properties='Excel 8.0;HDR=YES;'";
OleDbConnection conn = new OleDbConnection(szConn);
OleDbConnection conn1 = new OleDbConnection(szConn1);
OleDbCommand cmd = new OleDbCommand("INSERT INTO [Sheet1$]([Team],[Date],[Name],[Contact Details],[Req Date],[Requirment],[Ticket],[Fit Package],[Group],[No of Pax],[Status 1],[Status 2],[Status 3]) VALUES('" + team + "','" + date1 + "','" + name + "','" + Contct + "','" + date2 + "','" + requirment + "','" + cb + "','" + cb2 + "','" + cb3 + "','" + cmb2 + "','" + cmb + "','" + status1 + "','" + status2 + "')", conn);
OleDbCommand cmd2 = new OleDbCommand("INSERT INTO [Sheet1$]([Team],[Date],[Name],[Contact Details],[Req Date],[Requirment],[Ticket],[Fit Package],[Group],[No of Pax],[Status 1],[Status 2],[Status 3]) VALUES('" + team + "','" + date1 + "','" + name + "','" + Contct + "','" + date2 + "','" + requirment + "','" + cb + "','" + cb2 + "','" + cb3 + "','" + cmb2 + "','" + cmb + "','" + status1 + "','" + status2 + "')", conn);
conn.Open();
conn1.Open();
cmd.ExecuteNonQuery();
cmd2.ExecuteNonQuery();
conn.Close();
MessageBox.Show("complete");
conn1.Close();
but still have same problem?
Hemas Ilearn
5-Sep-14 3:40am
View
yes i'm getting values from users through input boxes......
Hemas Ilearn
27-Jun-14 1:21am
View
i said because my if condition and i tried else condition. both are working. just else if only not working.
Hemas Ilearn
27-Jun-14 1:20am
View
actually it's more than two conditions. so o have to use 40 persons b'day like this. for that i have to use 4o if conditions.
your code is working perfect. no doubt about that
thanks for that.
but i need to work with else if.
Hemas Ilearn
25-Jun-14 6:32am
View
Thank you. It helps lot.........
actually i'm doing a birthday generate thing.
and i want to know
how to compare a variable with an array in jquery?
Show More