Click here to Skip to main content
15,919,341 members
Home / Discussions / C#
   

C#

 
GeneralRe: Play a stream via windows media player com object Pin
Christian Graus23-Feb-08 10:49
protectorChristian Graus23-Feb-08 10:49 
GeneralRe: Play a stream via windows media player com object Pin
Areff23-Feb-08 19:10
Areff23-Feb-08 19:10 
GeneralRe: Play a stream via windows media player com object Pin
electriac24-Feb-08 11:51
electriac24-Feb-08 11:51 
QuestionTCPClient Socket Pin
Mohammed Shahab23-Feb-08 1:25
Mohammed Shahab23-Feb-08 1:25 
Questionfrom C# 2003 to C# 2005 Pin
Knowledgestudent23-Feb-08 0:58
Knowledgestudent23-Feb-08 0:58 
GeneralRe: from C# 2003 to C# 2005 Pin
Colin Angus Mackay23-Feb-08 4:07
Colin Angus Mackay23-Feb-08 4:07 
GeneralRe: from C# 2003 to C# 2005 Pin
Knowledgestudent23-Feb-08 8:54
Knowledgestudent23-Feb-08 8:54 
Questionerror while retriving an image from Firebied database Pin
avvaru.murali23-Feb-08 0:57
avvaru.murali23-Feb-08 0:57 
Hi
iam in windows application in c#
my database is "Firebird Database";
iam saving an picture into database.but iam unable to retrive same picture from database
mycode is :
This code is in DataAccess layer.
string query = "select photo from cust1 where id=" + id;
FbDataAdapter adb = new FbDataAdapter(query, cnn);
DataSet ds = new DataSet();
adb.Fill(ds, "cust1");
if (ds.Tables[0].Rows.Count > 0)
{
DataRow dr;
dr = ds.Tables[0].Rows[0];
if (!dr["photo"].Equals(DBNull.Value))
{
byte[] content = (byte[])dr["photo"];
MemoryStream stream = new MemoryStream(content);
photo = stream;

}
}
Bitmap img = new Bitmap(objcls.photo);---------------"ERROR"

pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
pictureBox1.Image = img;
it is giving error "parameter is not valid"
please inform where the exact problem is

murali krishna

GeneralRe: error while retriving an image from Firebied database Pin
Colin Angus Mackay23-Feb-08 4:28
Colin Angus Mackay23-Feb-08 4:28 
QuestionDatabse connectivity ? Pin
Hum Dum23-Feb-08 0:14
Hum Dum23-Feb-08 0:14 
AnswerRe: Databse connectivity ? Pin
Colin Angus Mackay23-Feb-08 4:25
Colin Angus Mackay23-Feb-08 4:25 
GeneralManage keyboard shortcuts in a winform application Pin
Marlun22-Feb-08 23:28
Marlun22-Feb-08 23:28 
GeneralRe: Manage keyboard shortcuts in a winform application Pin
Mohammed Shahab23-Feb-08 2:04
Mohammed Shahab23-Feb-08 2:04 
GeneralRe: Manage keyboard shortcuts in a winform application Pin
Marlun24-Feb-08 3:23
Marlun24-Feb-08 3:23 
GeneralRe: Manage keyboard shortcuts in a winform application Pin
Marlun24-Feb-08 3:35
Marlun24-Feb-08 3:35 
Generalcontrolling a mesh in C# Pin
anarchi2322-Feb-08 22:47
anarchi2322-Feb-08 22:47 
GeneralRe: controlling a mesh in C# Pin
Gareth H23-Feb-08 0:11
Gareth H23-Feb-08 0:11 
Generalsend an Email. Pin
ali_reza_zareian22-Feb-08 22:34
ali_reza_zareian22-Feb-08 22:34 
GeneralRe: send an Email. Pin
Abhijit Jana22-Feb-08 23:37
professionalAbhijit Jana22-Feb-08 23:37 
GeneralStored procedure in C# Pin
mrkeivan22-Feb-08 22:05
mrkeivan22-Feb-08 22:05 
GeneralRe: Stored procedure in C# Pin
Hesham Amin22-Feb-08 22:38
Hesham Amin22-Feb-08 22:38 
GeneralRe: Stored procedure in C# Pin
mrkeivan23-Feb-08 9:25
mrkeivan23-Feb-08 9:25 
GeneralRe: Stored procedure in C# Pin
PIEBALDconsult23-Feb-08 14:56
mvePIEBALDconsult23-Feb-08 14:56 
GeneralRe: Stored procedure in C# Pin
ali_reza_zareian22-Feb-08 22:40
ali_reza_zareian22-Feb-08 22:40 
QuestionHow to generate random number [modified] Pin
D i x y22-Feb-08 20:50
D i x y22-Feb-08 20:50 

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.