15,900,725 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 Member 10532715 (Top 26 by date)
Member 10532715
7-Oct-16 6:54am
View
It has been solved, actually my constructor pass data after form load i have putted it to after.. then its working fine.. Thanks Mr.Tadit.. for looking my problem...
wrong code..
FrmDoctorOPD doctoropd = new FrmDoctorOPD();
doctoropd.Show();
doctoropd.label5.Text = label12.Text; /// here is wrong afterload
Correct code..
FrmDoctorOPD doctoropd = new FrmDoctorOPD();
doctoropd.label5.Text = label12.Text; before load
doctoropd.Show();
Member 10532715
7-Oct-16 4:42am
View
private void metroTile3_Click(object sender, EventArgs e)
{
search();
}
Member 10532715
7-Oct-16 4:41am
View
yes it is coming from data base.. when i use search button .. its working fine but not in page load.. pls see search button code it is working like charm..
private void search()
{
try
{
cnn.Open();
string sqlcommand = " select OPD_NO as [OPD No],Patientname as [Pateint Name],Age,VisitDate as [visit Date],Department,Consultent_Doctor from OPD_table where Status_pet='Checked In' and Consultent_Doctor='" + label5.Text + "' and visitdate between '" + DateTime.ParseExact(this.dateTimePicker1.Text, "MM/dd/yyyy", CultureInfo.InvariantCulture) + "' and '" + DateTime.ParseExact(this.dateTimePicker2.Text, "MM/dd/yyyy", CultureInfo.InvariantCulture) + "'";
SqlDataAdapter adap = new SqlDataAdapter(sqlcommand, cnn);
DataTable dt = new DataTable();
adap.Fill(dt);
if (dt.Rows.Count > 0)
{
this.dataGridView1.DataSource = dt;
cnn.Close();
}
else
{
MessageBox.Show("No Records found");
dataGridView1.DataSource = null;
cnn.Close();
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
Member 10532715
7-Oct-16 4:37am
View
yes it is windows desktop application pls see my full code
previous page code where i have putted
private void adminMenuToolStripMenuItem_Click(object sender, EventArgs e)
{
FrmDoctorOPD doctoropd = new FrmDoctorOPD();
doctoropd.Show();
doctoropd.label5.Text = label12.Text;
}
now in page to i have putted it as..
private void FrmDoctorOPD_Load(object sender, EventArgs e)
{
label7.Text = System.DateTime.Now.ToShortDateString();
fillgidview();
}
private void fillgidview()
{
try
{
cnn.Open();
string sqlcommand = " select OPD_NO as [OPD No],Patientname as [Pateint Name],Age,VisitDate as [visit Date],Department,Consultent_Doctor from OPD_table where Status_pet='Checked In' and Consultent_Doctor='" + label5.Text + "'";
SqlDataAdapter adap = new SqlDataAdapter(sqlcommand, cnn);
DataTable dt = new DataTable();
adap.Fill(dt);
this.dataGridView1.DataSource = dt;
cnn.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
Member 10532715
26-Nov-14 6:34am
View
Pls help my mind is just stuck
Member 10532715
26-Nov-14 6:18am
View
can you advise how to configure network services
Member 10532715
26-Nov-14 6:17am
View
under local system
Member 10532715
24-Jul-14 3:34am
View
This is my Coding. I need Varify date Before Insert to Database. only one column is variyfing Date Column Is my label2.text column it is not Varfy the date to Sql Server date.
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ReliableAttandance"].ConnectionString);
string CheckString = "SELECT COUNT(*) FROM attandence where StaffName='" + DropDownList1.SelectedItem.Text + " AND Dutydate = " + Label2.Text + "'";
SqlCommand commandCheck = new SqlCommand(CheckString, conn);
conn.Open();
int Count = (int)commandCheck.ExecuteScalar();
if (Count > 0)
{
Label4.Text = "Already exists";
}
else
{
Member 10532715
7-Jul-14 10:42am
View
Hi its correct but i need some more styles in my excel
Member 10532715
6-Jul-14 11:18am
View
Daar Sir,
Thanks a Lot its working fine..
realy you are the best
Member 10532715
6-Jul-14 11:02am
View
sir pls help.
i cant do
Member 10532715
6-Jul-14 10:54am
View
i want to insert 10 rows one one click after that i need the massage "Data Export Sucessfully", "My Application"
Member 10532715
6-Jul-14 10:49am
View
i want to insert 10 rows one one click after that i need the massage "Data Export Sucessfully", "My Application"
Member 10532715
6-Jul-14 10:38am
View
Its inserted but suppose in my excel 10 rows are available when i am going to insert in database its inserted one by one and getting message with ok after insert each row.
Member 10532715
6-Jul-14 10:17am
View
sir I have just paste the coding.
Pls advise if any issue with my coidng.
Member 10532715
6-Jul-14 0:59am
View
SIR help me
Member 10532715
6-Jul-14 0:49am
View
I want to Insert All row at only one click. When I am trying to Insert it's inserted one by one and getting ok massage after insert.
Member 10532715
6-Jul-14 0:43am
View
Yes Sir I need the same.
Member 10532715
4-Jul-14 7:25am
View
In this line i have getting error.
cmd.ExecuteNonQuery();
Failed to convert parameter value from a String to a Int32.
when conveting a string to datetime, parse the string to take the date before putting each variable into the datetime object
Member 10532715
4-Jul-14 7:14am
View
Content moved to question.
Member 10532715
30-Jun-14 9:16am
View
Dear Sir,
suppose my table is slNo. location date dropboxcode NoOfEntryDone
1 califonia 05/06/2014 121 5
2 arizona 06/06/2014 125 6
Member 10532715
30-Jun-14 8:03am
View
Sir i want generate my options columns not like as database column
Member 10532715
30-Jun-14 3:58am
View
Sir its generated Successfully but i want put it column and range wise.
pls help
Member 10532715
8-Mar-14 9:51am
View
suggest me a site
Member 10532715
8-Mar-14 1:40am
View
Hi am unable to find the solution
pls advise
Member 10532715
6-Mar-14 10:10am
View
Dear Team, I have developed a web Application with Vb.net Language asap.net with Login Form but when i hit the url for Inner page its opening directly why
Eg. Application/Default.aspx this is Login Form and DataEntry form is Application\Userdata.aspx kindly help me solve the issue beacuse my secret page is not secured anybody opeining the for with url hit
Show More