Click here to Skip to main content
15,887,979 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to hide MaximizeBox ? Pin
harold aptroot3-Jul-09 15:33
harold aptroot3-Jul-09 15:33 
Questionopen an image from database Pin
A_A3-Jul-09 12:44
A_A3-Jul-09 12:44 
AnswerRe: open an image from database Pin
Luc Pattyn3-Jul-09 12:53
sitebuilderLuc Pattyn3-Jul-09 12:53 
GeneralRe: open an image from database Pin
A_A4-Jul-09 2:24
A_A4-Jul-09 2:24 
GeneralRe: open an image from database Pin
Luc Pattyn4-Jul-09 7:18
sitebuilderLuc Pattyn4-Jul-09 7:18 
GeneralRe: open an image from database Pin
A_A4-Jul-09 11:47
A_A4-Jul-09 11:47 
GeneralRe: open an image from database Pin
Luc Pattyn4-Jul-09 11:57
sitebuilderLuc Pattyn4-Jul-09 11:57 
GeneralRe: open an image from database Pin
A_A7-Jul-09 0:53
A_A7-Jul-09 0:53 
finally, i figer it out
i have to use a code similar to this
main idea is to write the type when we insert the image as "SqlDbType.Image"



SqlConnection con = new SqlConnection("DATA SOURCE = MAX_TOSHIBA;Initial Catalog=nodule; Integrated security = true");

                string sql = "INSERT INTO pic (pic_id,patient,id,the_pic,pic_no) values ('" + j + "','" + txt_patient_name.Text + "','" + 0 + "', @a,'" + 0 + "')";
                //string sql = "UPDATE CUSTOMER SET IMAGE = (@ImagPar)";
                SqlCommand cmd = new SqlCommand();
                SqlParameter sp = new SqlParameter("@a", SqlDbType.Image);
                sp.Value = by_img;
                cmd.Parameters.Add(sp);
                cmd.CommandText = sql;
                cmd.CommandType = CommandType.Text;
                cmd.Connection = con;

                //open connection
                con.Open();

                //execute the sql command
                cmd.ExecuteNonQuery();

                con.Close();

QuestionEntity Framework: EDM assigns primary key to view randomly (or so it seems) Pin
dfn3-Jul-09 11:36
dfn3-Jul-09 11:36 
AnswerRe: Entity Framework: EDM assigns primary key to view randomly (or so it seems) Pin
Henry Minute3-Jul-09 12:12
Henry Minute3-Jul-09 12:12 
GeneralRe: Entity Framework: EDM assigns primary key to view randomly (or so it seems) Pin
dfn6-Jul-09 9:21
dfn6-Jul-09 9:21 
GeneralRe: Entity Framework: EDM assigns primary key to view randomly (or so it seems) Pin
Henry Minute6-Jul-09 9:39
Henry Minute6-Jul-09 9:39 
QuestionNeed help...cannot load WPF projects to VS 2008 Pin
Jun Du3-Jul-09 10:06
Jun Du3-Jul-09 10:06 
AnswerRe: Need help...cannot load WPF projects to VS 2008 Pin
Henry Minute3-Jul-09 10:26
Henry Minute3-Jul-09 10:26 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Jun Du3-Jul-09 10:33
Jun Du3-Jul-09 10:33 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Henry Minute3-Jul-09 10:37
Henry Minute3-Jul-09 10:37 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Jun Du3-Jul-09 10:51
Jun Du3-Jul-09 10:51 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Henry Minute3-Jul-09 11:09
Henry Minute3-Jul-09 11:09 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Jun Du4-Jul-09 5:16
Jun Du4-Jul-09 5:16 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Jun Du7-Jul-09 5:51
Jun Du7-Jul-09 5:51 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Henry Minute7-Jul-09 6:00
Henry Minute7-Jul-09 6:00 
QuestionC# DataBase Application How you do it ? Pin
I Believe In GOD3-Jul-09 8:44
I Believe In GOD3-Jul-09 8:44 
AnswerRe: C# DataBase Application How you do it ? Pin
Member 44870833-Jul-09 11:38
Member 44870833-Jul-09 11:38 
AnswerRe: C# DataBase Application How you do it ? Pin
fly9043-Jul-09 12:16
fly9043-Jul-09 12:16 
QuestionUpload and delete server´s videos from client with webservices (C#) Pin
Hugo E.3-Jul-09 4:08
Hugo E.3-Jul-09 4:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.