15,891,943 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 ahmedbelal (Top 34 by date)
ahmedbelal
9-Jul-22 0:56am
View
Thank you for your Helping me OriginalGriff
but i want tell him to save image null if it's null during Edit Custmer data without upload image again
but it force me to upload image again
ahmedbelal
29-May-22 12:52pm
View
Compiler tell me that Error here
pictureBox_ForTRAINER.Image.Save(ms1, pictureBox_ForTRAINER.Image.RawFormat);
ahmedbelal
10-Apr-22 8:45am
View
Mr Richard
Do you want to write my StoredProcedure and More Codes ?
ahmedbelal
10-Apr-22 7:37am
View
it worked Here
private void btn_Update_FromGrid_Click(object sender, EventArgs e)
{
Forms.F_Patient f_Patient = new F_Patient();
f_Patient.btn_Add_NewPatient.Visible = false;
f_Patient.btn_Delete.Visible = false;
f_Patient.btn_Search.Visible = false;
label1.Text = "Update Patient";
f_Patient.PatientIDTextBox.Text = this.DGV.CurrentRow.Cells[0].Value.ToString();
f_Patient.PatientTCTextBox.Text = this.DGV.CurrentRow.Cells[1].Value.ToString();
f_Patient.PatientNameTextBox.Text = this.DGV.CurrentRow.Cells[2].Value.ToString();
f_Patient.PatientAgeTextBox.Text = this.DGV.CurrentRow.Cells[3].Value.ToString();
if (this.DGV.CurrentRow.Cells[4].Value.ToString() == "Male")
{
f_Patient.radioButton_Male.Checked = true;
}
else
{
f_Patient.radioButton_Female.Checked = true;
}
f_Patient.PatientPhoneTextBox.Text = this.DGV.CurrentRow.Cells[5].Value.ToString();
f_Patient.comboBox_ShowState.SelectedItem = (this.DGV.CurrentRow.Cells[6].Value);
f_Patient.dateTimeNOW.Value = Convert.ToDateTime(this.DGV.CurrentRow.Cells[7].Value.ToString());
f_Patient.EmailTextBox.Text = this.DGV.CurrentRow.Cells[8].Value.ToString();
f_Patient.PatientCostTextBox.Text = this.DGV.CurrentRow.Cells[9].Value.ToString();
f_Patient.PayedTextBox.Text = this.DGV.CurrentRow.Cells[10].Value.ToString();
f_Patient.RemindTextBox.Text = this.DGV.CurrentRow.Cells[11].Value.ToString();
byte[] pa_img = (byte[])ShowImage.Show_Patient_Image(Convert.ToInt32(this.DGV.CurrentRow.Cells[0].Value)).Rows[0][0];
MemoryStream ms = new MemoryStream(pa_img);
f_Patient.pictureBox1.Image = Image.FromStream(ms);
f_Patient.NOTES_TextBox.Text = this.DGV.CurrentRow.Cells[12].Value.ToString();
f_Patient.ShowDialog();
}
ahmedbelal
10-Apr-22 7:35am
View
thanks Richard
But,
i repeat my question because it already worked in another project
So i want to Know why doesn't work
ahmedbelal
4-Apr-22 11:54am
View
Dear M Imran Ansari
iam sorry i tried your solution
but error is
Can not Convert from byte To Integer
I want to design Edit Form in windows form
Customer_Function CLass that has all Funtion i will need
Show_Customer_Image function to showimage in datagridView
want to equal data in textbox or picturebox with Row in DataGridView
thanks Dear M Imran Ansari
ahmedbelal
4-Apr-22 11:47am
View
Dear Afzaal Ahmed
I want to design Edit Form in windows form
Customer_Function CLass that has all Funtion i will need
Show_Customer_Image function to showimage in datagridView
want to equal data in textbox or picturebox with Row in DataGridView
Thanks my Dear Afzaal Ahmed
ahmedbelal
16-Mar-22 14:06pm
View
Maciej Los
I try This and My Error is
Severity Code Description Project File Line Suppression State
Error CS0266 Cannot implicitly convert type 'object' to 'System.DateTime'. An explicit conversion exists (are you missing a cast?)
ahmedbelal
16-Mar-22 14:04pm
View
Deleted
I try This and Error Is
Severity Code Description Project File Line Suppression State
Error CS0266 Cannot implicitly convert type 'object' to 'System.DateTime'. An explicit conversion exists (are you missing a cast?)
ahmedbelal
16-Mar-22 13:50pm
View
thanks a lot for you, but I think you didn't understand my question , i already use
Visual Studio debugger and my Error Here
-------|>f_Patient.dateTimeNOW.Text = this.DGV.CurrentRow.Cells[7].Value.ToString();<|------
System.FormatException: 'The string was not recognized as a valid DateTime. There is an unknown word starting at index 0.'
ahmedbelal
11-Mar-22 9:58am
View
namespace TheClinic.DXL
{
public class DXL
{
SqlCommand cmd;
SqlDataAdapter da;
SqlConnection cn;
DataTable dt = new DataTable();
public DXL() /* باني افتراضي لاجل بناء اتصال */
{
cn = new SqlConnection(@"server=DESKTOP-VTLRB7T;database=DataBase_Clinic ;integrated security=true");
}
public void open()
{
if (cn.State == ConnectionState.Closed)
{
cn.Open();
}
}
public void close()
{
if (cn.State == ConnectionState.Open)
{
cn.Close();
}
}
//تابع لقراءة البيانات من قاعدة البيانات
public DataTable Reader(string sp, SqlParameter[] p)
{
cmd = new SqlCommand();
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = sp;
cmd.Connection = cn;
if (p != null)
{
cmd.Parameters.AddRange(p);
}
da = new SqlDataAdapter(cmd);
da.Fill(dt);
return dt;
}
//Remove ,Update ,Add
public void RUA(string sp, SqlParameter[] p)
{
cmd = new SqlCommand();
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = sp;
cmd.Connection = cn;
if (p != null)
{
cmd.Parameters.AddRange(p);
}
cmd.ExecuteNonQuery();
}
}
}
ahmedbelal
7-Mar-22 14:05pm
View
debugger give me error here
f_Patient.comboBox_ShowState.SelectedIndex =Convert.ToInt32( this.AllPatient_dataGridView.CurrentRow.Cells[6].Value);
ahmedbelal
18-Feb-22 4:18am
View
Thanks PIEBALDconsult
ahmedbelal
28-Dec-21 3:36am
View
Write a C# programming to convert a given roman number to an integer.
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000
ahmedbelal
28-Dec-21 3:36am
View
Write a C# programming to convert a given roman number to an integer.
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000
ahmedbelal
28-Dec-21 3:34am
View
https://www.dictionary.com/e/roman-numerals/
ahmedbelal
28-Dec-21 2:47am
View
https://www.dictionary.com/e/roman-numerals/
ahmedbelal
28-Dec-21 2:47am
View
Deleted
https://www.dictionary.com/e/roman-numerals/
ahmedbelal
23-Dec-21 12:37pm
View
For Example int[] array = { 1, 2, 3, 4, 5, 6, 7, 8 };
I want to Learn How to Create Function To RemoveAt element from This Array Without Using built-in Function
Really Iam Pleasure to Learning from You Dear Friend OriginalGriff
ahmedbelal
23-Dec-21 12:37pm
View
For Example int[] array = { 1, 2, 3, 4, 5, 6, 7, 8 };
I want to Learn How to Create Function To RemoveAt element from This Array Without Using built-in Function
Really Iam Pleasure to Learning from You
ahmedbelal
23-Dec-21 12:32pm
View
You Are right but i need it just For deep Learning
ahmedbelal
23-Dec-21 12:14pm
View
Done Thanks Really Thanks Really nice to meet you
Please I want to Learn How to Create Function To RemoveAt element from Array Without Using built-in Function
ahmedbelal
23-Dec-21 10:33am
View
Of Course i do that Now thanks , but i have Error in logic the function work First time the Outbut is 1 but when i calling function a gain and add second number 2 The Out but is 1 1 2 Why Mr Richard MacCutchan
ahmedbelal
23-Dec-21 10:27am
View
Hi Mr Richard Nice To meet You , i want to Create Function To add element to array C# Without Using built-in Function , but i have Error in logic the function work First time the Outbut is 1 but when i calling function a gain and add second number 2 The Out but is 1 1 2
ahmedbelal
5-Dec-20 17:03pm
View
OH ! yes Ok What's the Solution ??
ahmedbelal
9-Sep-20 11:44am
View
thanks Mr Sandeep everythings Ok
ahmedbelal
9-Sep-20 11:07am
View
thanks my dear friend bu i made @Renderbody() ??
ahmedbelal
15-May-20 9:02am
View
i turn on break point but I can not See any Error .
Also
MasterDetails is Save well in dataBase but orderDetails I can not save in database
ahmedbelal
15-May-20 8:48am
View
i tried but doesn't work,
return nothing and alert (Failed) instead of (saved)
ahmedbelal
15-May-20 8:36am
View
i have already tried but doesn't work, So please i want to sent my source for you
how?
have you Email
ahmedbelal
14-May-20 17:12pm
View
Iam Sorry my best friend
but (return ok ) Can not work With IEnumerable<ordermasterdetails>
ahmedbelal
14-May-20 15:56pm
View
Or My dear friend Can you write your Code
ahmedbelal
14-May-20 15:49pm
View
But my dear Frieand i have made alert massege Called save ,So jquery work good, and i want to see you my Source Code How Can i upload ?
ahmedbelal
10-May-19 7:14am
View
Do you mean i should make a view list to customer or table before code ??
Show More