Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using ODBC databases Pin
joan_fl10-Sep-03 4:19
joan_fl10-Sep-03 4:19 
GeneralRe: Using ODBC databases Pin
Emilio Guijarro10-Sep-03 5:31
Emilio Guijarro10-Sep-03 5:31 
GeneralRe: Using ODBC databases Pin
David Stone10-Sep-03 5:37
sitebuilderDavid Stone10-Sep-03 5:37 
GeneralHelp: Object reference not set to an instance of an object. Pin
gros194410-Sep-03 1:30
gros194410-Sep-03 1:30 
GeneralRe: Help: Object reference not set to an instance of an object. Pin
Julian Bucknall [MSFT]10-Sep-03 5:07
Julian Bucknall [MSFT]10-Sep-03 5:07 
GeneralRe: Help: Object reference not set to an instance of an object. Pin
gros194412-Sep-03 1:16
gros194412-Sep-03 1:16 
QuestionBook: C# Unleashed - Any good ? Pin
Stone Free10-Sep-03 0:33
Stone Free10-Sep-03 0:33 
AnswerRe: Book: C# Unleashed - Any good ? Pin
Mazdak10-Sep-03 2:40
Mazdak10-Sep-03 2:40 
GeneralRe: Book: C# Unleashed - Any good ? Pin
Stone Free10-Sep-03 3:07
Stone Free10-Sep-03 3:07 
GeneralRe: Book: C# Unleashed - Any good ? Pin
Mazdak10-Sep-03 5:34
Mazdak10-Sep-03 5:34 
GeneralPlease, help me! Pin
Giant Penguin10-Sep-03 0:20
Giant Penguin10-Sep-03 0:20 
GeneralContextMenu problem Pin
Mazdak9-Sep-03 23:28
Mazdak9-Sep-03 23:28 
GeneralRe: ContextMenu problem Pin
James T. Johnson10-Sep-03 8:25
James T. Johnson10-Sep-03 8:25 
GeneralRe: ContextMenu problem Pin
Mazdak10-Sep-03 9:08
Mazdak10-Sep-03 9:08 
GeneralRe: ContextMenu problem Pin
James T. Johnson10-Sep-03 9:24
James T. Johnson10-Sep-03 9:24 
GeneralRe: ContextMenu problem Pin
Mazdak10-Sep-03 22:00
Mazdak10-Sep-03 22:00 
GeneralAdd typed DataTable from one DataSet to another DataSet Pin
STW9-Sep-03 21:36
STW9-Sep-03 21:36 
GeneralRe: Add typed DataTable from one DataSet to another DataSet Pin
A.Wegierski10-Sep-03 2:54
A.Wegierski10-Sep-03 2:54 
GeneralRelocating Generated Dlls Pin
jtmtv189-Sep-03 13:41
jtmtv189-Sep-03 13:41 
Generalcasting System.Drawing.Imaging.EncoderValue Pin
RHamilton9-Sep-03 12:54
RHamilton9-Sep-03 12:54 
I see people doing this with VB, but I can't get it to work in C#.

<br />
System.Drawing.Imaging.ImageCodecInfo    myImageCodecInfo;<br />
System.Drawing.Imaging.Encoder           myEncoder;<br />
System.Drawing.Imaging.EncoderParameter  myEncoderParameter;<br />
System.Drawing.Imaging.EncoderParameters myEncoderParameters;<br />
<br />
myImageCodecInfo = GetEncoderInfo("image/tiff");<br />
<br />
myEncoder = new System.Drawing.Imaging.Encoder(System.Drawing.Imaging.Encoder.Compression.Guid);<br />
<br />
myEncoderParameters = new System.Drawing.Imaging.EncoderParameters(1);<br />
<br />
myEncoderParameter = new System.Drawing.Imaging.EncoderParameter(myEncoder,<br />
	:confused:System.Drawing.Imaging.EncoderValue.CompressionCCITT3<br />
			);<br />
<br />
myEncoderParameters.Param[0] = myEncoderParameter;<br />
DestBitmap.Save(strFileName, myImageCodecInfo, myEncoderParameters); 


The compiler insists that it doesn't know how to convert CompressionCCITT3 to byteConfused | :confused: . I don't know why EncoderValue isn't one of the overloads in the first place. If I manually cast it as byte, int, or long, I get an invalid parameter error from save. Does anybody know which one of the 16 overloads I'm supposed to use?
GeneralRetraction: casting System.Drawing.Imaging.EncoderValue Pin
RHamilton10-Sep-03 2:23
RHamilton10-Sep-03 2:23 
Generalupdating dataset through datagrid Pin
zuhx9-Sep-03 10:14
zuhx9-Sep-03 10:14 
GeneralRe: updating dataset through datagrid Pin
STW9-Sep-03 21:23
STW9-Sep-03 21:23 
GeneralRe: updating dataset through datagrid Pin
zuhx10-Sep-03 10:50
zuhx10-Sep-03 10:50 
GeneralRe: updating dataset through datagrid Pin
STW10-Sep-03 22:39
STW10-Sep-03 22:39 

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.