Click here to Skip to main content
15,907,493 members
Home / Discussions / C#
   

C#

 
QuestionDAL Framework... Working with more than 1 table at a time Pin
Stephen99929-Sep-08 19:42
Stephen99929-Sep-08 19:42 
AnswerRe: DAL Framework... Working with more than 1 table at a time Pin
Ashfield29-Sep-08 21:24
Ashfield29-Sep-08 21:24 
QuestionBar Code scanner integration with application Pin
neer129-Sep-08 19:11
neer129-Sep-08 19:11 
AnswerRe: Bar Code scanner integration with application Pin
Philip.F29-Sep-08 21:50
Philip.F29-Sep-08 21:50 
GeneralRe: Bar Code scanner integration with application Pin
neer129-Sep-08 22:10
neer129-Sep-08 22:10 
GeneralRe: Bar Code scanner integration with application Pin
Philip.F29-Sep-08 22:22
Philip.F29-Sep-08 22:22 
GeneralRe: Bar Code scanner integration with application [modified] Pin
neer130-Sep-08 0:14
neer130-Sep-08 0:14 
Questioni want to crop an image... picture is in picture box,, Pin
maifs29-Sep-08 18:20
maifs29-Sep-08 18:20 
i want to crop an image... picture is in picture box,,
iam trying this...
but

public void CropImage(bool enableImg)
{
cropEnable = enableImg;
if (cropEnable)
{
Rectangle cropArea = new Rectangle(20, 20, 100, 100);
Pic = (Bitmap)CroppingImage(m, cropArea);
m = (Bitmap)Pic;
Invalidate();


}


}
public Image CroppingImage(Image img, Rectangle cropArea)
{

Bitmap bmpImage = new Bitmap(img);
Bitmap bmpCrop = bmpImage.Clone(cropArea,
bmpImage.PixelFormat);
return (Image)(bmpCrop);
}

and the 2nd one:

public Image CropImage(Image img, Rectangle rect)
{
return ((Bitmap)img).Clone(rect, img.PixelFormat);
}

private void button1_Click(object sender, EventArgs e)
{
Rectangle CropRectangle = new Rectangle(100, 100, 100, 100);
pbx.Image = CropImage(pbx.Image, CropRectangle);
}

but a same error is generated.
error is this:

Error 1 Inconsistent accessibility: parameter type 'I_M_Editor.Rectangle' is less accessible than method 'I_M_Editor.frmEditable.CropImage(System.Drawing.Image, I_M_Editor.Rectangle)' D:\dot.net.programs.using.c#\0eh066\I'M Editor\I'M Editor\frmEditable.cs 442 22 I'M Editor



--------------------------------------------------------------------------------

maifs

Questioni want to continuously rotating Pin
maifs29-Sep-08 18:13
maifs29-Sep-08 18:13 
QuestionHow to display child rows INLINE along with Parent records using datagrid Pin
vkuttyp29-Sep-08 18:09
professionalvkuttyp29-Sep-08 18:09 
Questionnegative filter problem? Pin
maifs29-Sep-08 16:59
maifs29-Sep-08 16:59 
AnswerRe: negative filter problem? Pin
Wendelius29-Sep-08 18:04
mentorWendelius29-Sep-08 18:04 
GeneralRe: negative filter problem? Pin
maifs29-Sep-08 18:43
maifs29-Sep-08 18:43 
GeneralRe: negative filter problem? Pin
Wendelius30-Sep-08 3:29
mentorWendelius30-Sep-08 3:29 
QuestionPatch Deployment - Newbie Question Pin
kruegersck29-Sep-08 13:06
kruegersck29-Sep-08 13:06 
AnswerRe: Patch Deployment - Newbie Question Pin
Muhammad Shahid Farooq29-Sep-08 13:25
professionalMuhammad Shahid Farooq29-Sep-08 13:25 
GeneralRe: Patch Deployment - Newbie Question Pin
kruegersck30-Sep-08 1:57
kruegersck30-Sep-08 1:57 
GeneralRe: Patch Deployment - Newbie Question Pin
Muhammad Shahid Farooq30-Sep-08 4:54
professionalMuhammad Shahid Farooq30-Sep-08 4:54 
GeneralRe: Patch Deployment - Newbie Question Pin
kruegersck30-Sep-08 6:37
kruegersck30-Sep-08 6:37 
GeneralRe: Patch Deployment - Newbie Question Pin
Mycroft Holmes30-Sep-08 22:42
professionalMycroft Holmes30-Sep-08 22:42 
Questionxds Pin
postonoh29-Sep-08 11:35
postonoh29-Sep-08 11:35 
GeneralRe: xds Pin
nelsonpaixao29-Sep-08 11:56
nelsonpaixao29-Sep-08 11:56 
AnswerRe: xds Pin
Mycroft Holmes29-Sep-08 14:40
professionalMycroft Holmes29-Sep-08 14:40 
GeneralRe: xds Pin
postonoh29-Sep-08 15:56
postonoh29-Sep-08 15:56 
QuestionZoom problem with a picture within picturebox.? Pin
maifs29-Sep-08 10:53
maifs29-Sep-08 10:53 

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.