Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
AnswerRe: can we connect SQLite using visual studio Pin
Shady George27-May-14 11:00
Shady George27-May-14 11:00 
QuestionHow we can shared any folder on all user of LAN using c# code. Pin
osmo3327-May-14 2:13
osmo3327-May-14 2:13 
AnswerRe: How we can shared any folder on all user of LAN using c# code. Pin
BobJanova27-May-14 2:50
BobJanova27-May-14 2:50 
GeneralRe: How we can shared any folder on all user of LAN using c# code. Pin
Member 1083865327-May-14 19:25
Member 1083865327-May-14 19:25 
QuestionHow to make a popup Change the Orientation at the border of my window? Pin
Member 1044722226-May-14 23:37
Member 1044722226-May-14 23:37 
QuestionConvert number from exponential form to decimal form ( dot notation ) Pin
Abhiroop0925-May-14 22:41
Abhiroop0925-May-14 22:41 
AnswerRe: Convert number from exponential form to decimal form ( dot notation ) Pin
Mycroft Holmes25-May-14 22:54
professionalMycroft Holmes25-May-14 22:54 
Questioni am changing size of imge with dimension given by textbox. Pin
megha_p25-May-14 22:14
megha_p25-May-14 22:14 
i used this code but my picturebox is changing value but my image in not fitting in that picturebox.. it comes half or first quadrant etc.
so please help me in this


private void Calculate_btn_Click(object sender, EventArgs e)
{

Bitmap sourceimage = (Bitmap)pictureBox2.Image.Clone();

int height = sourceimage.Size.Height;
int width = sourceimage.Size.Width;

float nPercent = 0;
float nPercentW = 0;
float nPercentH = 0;

int newheight = Convert.ToInt32(height_txt.Text);
int newwidth = Convert.ToInt32(width_txt.Text);


nPercentW = ((float)newheight / (float)height);
nPercentH = ((float)newwidth / (float)width);

if (nPercentH < nPercentW)
nPercent = nPercentH;
else
nPercent = nPercentW;

int destWidth = (int)(width * nPercent);
int destHeight = (int)(height * nPercent);

Bitmap b = new Bitmap(destWidth, destHeight);
Graphics g = Graphics.FromImage((Image)b);

g.DrawImage(sourceimage, 0, 0, destWidth, destHeight);

pictureBox3.Image = sourceimage;
pictureBox3.SizeMode = PictureBoxSizeMode.StretchImage;
Questionc# Pin
Member 1070273525-May-14 19:19
Member 1070273525-May-14 19:19 
AnswerRe: c# Pin
Kornfeld Eliyahu Peter25-May-14 20:38
professionalKornfeld Eliyahu Peter25-May-14 20:38 
AnswerRe: c# Pin
Richard MacCutchan25-May-14 21:50
mveRichard MacCutchan25-May-14 21:50 
Questionmicrosoft word interop - inserting file into a word document. Pin
Member 1065956825-May-14 15:48
Member 1065956825-May-14 15:48 
QuestionTimer and scrollbar position of update panel Pin
Tracy Chong25-May-14 0:16
Tracy Chong25-May-14 0:16 
AnswerRe: Timer and scrollbar position of update panel Pin
OriginalGriff25-May-14 0:31
mveOriginalGriff25-May-14 0:31 
Questionhow to gradient TextBox in word document by c#? Pin
Member 1078639324-May-14 23:56
Member 1078639324-May-14 23:56 
AnswerRe: how to gradient TextBox in word document by c#? Pin
Richard MacCutchan25-May-14 0:56
mveRichard MacCutchan25-May-14 0:56 
QuestionIssues with Microsoft.Deployment.WindowsInstaller Namespace Pin
Mohan Subramani24-May-14 8:15
Mohan Subramani24-May-14 8:15 
AnswerRe: Issues with Microsoft.Deployment.WindowsInstaller Namespace Pin
Richard Andrew x6424-May-14 9:09
professionalRichard Andrew x6424-May-14 9:09 
Questionimage scaling Pin
megha_p24-May-14 1:42
megha_p24-May-14 1:42 
AnswerRe: image scaling Pin
Richard MacCutchan24-May-14 3:37
mveRichard MacCutchan24-May-14 3:37 
Questionimage processing program using c# Pin
Member 1083976523-May-14 6:08
Member 1083976523-May-14 6:08 
AnswerRe: image processing program using c# Pin
OriginalGriff23-May-14 6:13
mveOriginalGriff23-May-14 6:13 
AnswerRe: image processing program using c# Pin
Richard MacCutchan23-May-14 6:18
mveRichard MacCutchan23-May-14 6:18 
QuestionRe: image processing program using c# Pin
Kenneth Haugland24-May-14 2:58
mvaKenneth Haugland24-May-14 2:58 
JokeRe: image processing program using c# Pin
Brien Dev26-May-14 11:28
Brien Dev26-May-14 11:28 

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.