Click here to Skip to main content
15,916,318 members
Home / Discussions / C#
   

C#

 
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 
Questioni want to continuously rotating Pin
maifs29-Sep-08 18:13
maifs29-Sep-08 18:13 
i am trying this but

private void pbx_MouseDown(object sender, MouseEventArgs e)
{
en = true;
}

public void FlagEnableForRotating(bool enable)
{
enable2 = enable;
}
public Bitmap rotateImage(Bitmap b, float angle)
{
if (enable2)
{
int maxside = (int)(Math.Sqrt(b.Width * b.Width + b.Height * b.Height));

////create a new empty bitmap to hold rotated image

Bitmap returnBitmap = new Bitmap(maxside, maxside);

////make a graphics object from the empty bitmap

Graphics g = Graphics.FromImage(returnBitmap);






//move rotation point to center of image

g.TranslateTransform((float)b.Width / 2, (float)b.Height / 2);

//rotate

g.RotateTransform(angle);

//move image back

g.TranslateTransform(-(float)b.Width / 2, -(float)b.Height / 2);

//draw passed in image onto graphics object

g.DrawImage(b, new Point(0, 0));




return returnBitmap;
}
return b;

}

private void pbx_MouseMove(object sender, MouseEventArgs e)
{
if (en && enable2)
{
pbx.Image = rotateImage(m, e.Y);
}
}

private void pbx_MouseUp(object sender, MouseEventArgs e)
{
en = false;
enable2 = false;
}

private void tsxImagesRota_Click(object sender, EventArgs e)
{
frm2.FlagEnableForRotating(true);
}

it is rotating but i want to set it on numericUPDOwn ,when user press on numericUpDown then its rotating continuously

hghghgh

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 
AnswerRe: Zoom problem with a picture within picturebox.? Pin
nelsonpaixao29-Sep-08 12:08
nelsonpaixao29-Sep-08 12: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.