16,016,800 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by shriti 3 (Top 26 by date)
shriti 3
18-Dec-13 6:14am
View
Thanks for the help.I resolved by writing below code
grd.Gridlines=Gridlines.None;
grd.RowStyle.BorderStyle = BorderStyle.None;
grd.RowStyle.BorderWidth = Unit.Pixel(0);
shriti 3
16-Dec-13 7:32am
View
I already reviewed this url ,but it is using [DllImport("advapi32.dll", SetLastError = true)]
which i dont want in my code.Without using any dll how to use impersonation
shriti 3
16-Dec-13 2:17am
View
Yes im disposing objects in my code
FileInfo FI = null;
System.IO.FileStream FS = null;
FI = new System.IO.FileInfo(networkPath);
FS = FI.Create();
FS.Write(objDoc.DocBytes, 0, objDoc.DocBytes.Length);
FS.Close();
FS.Dispose();
shriti 3
4-Dec-13 7:14am
View
by mistake my issue was posted in solution
shriti 3
4-Dec-13 7:09am
View
if i will remove aspect ratio then resulting image i get will be distorted
Using Aspect Ratio->
if (image.Width > image.Height)
{
srcWidth = (int)(Math.Round(image.Height * croppedWidthToHeight));
if (srcWidth < image.Width)
{
srcHeight = image.Height;
left = (image.Width - srcWidth) / 2;
}
else
{
srcHeight = (int)Math.Round(image.Height * ((double)image.Width / srcWidth));
srcWidth = image.Width;
top = (image.Height - srcHeight) / 2;
}
}
else
{
srcHeight = (int)(Math.Round(image.Width * croppedHeightToWidth));
if (srcHeight < image.Height)
{
srcWidth = image.Width;
top = (image.Height - srcHeight) / 2;
}
else
{
srcWidth = (int)Math.Round(image.Width * ((double)image.Height / srcHeight));
srcHeight = image.Height;
left = (image.Width - srcWidth) / 2;
}
}
using (Graphics g = Graphics.FromImage(bitmap))
{
g.SmoothingMode = SmoothingMode.HighQuality;
g.PixelOffsetMode = PixelOffsetMode.HighQuality;
g.CompositingQuality = CompositingQuality.HighQuality;
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
g.DrawImage(image, new Rectangle(0, 0, bitmap.Width, bitmap.Height), new Rectangle(left, top, srcWidth, srcHeight), GraphicsUnit.Pixel);
}
finalImage = bitmap;
}
Without Aspect ratio-
Bitmap bmp = new Bitmap(targetWidth, targetHeight);
Graphics grp = Graphics.FromImage(bmp);
grp.DrawImage(image, new Rectangle(0, 0, bmp.Width, bmp.Height), new Rectangle(0, 0, image.Width, image.Height), GraphicsUnit.Pixel);
// return (Image)bmp;
bmp.Save(filePath);
return false;
shriti 3
13-Jun-13 2:29am
View
but i need to consider the person who is only two months less in completing 18 years
shriti 3
13-Jun-13 2:14am
View
Thanks alot
shriti 3
13-Jun-13 1:50am
View
yes i tried using Datepart function but not getting how exactly i consider it as 18 years
shriti 3
21-Dec-12 4:57am
View
Deleted
Actually i too know what google provides i just asked if code project have that apis for social site.very bad revert.Thanks
shriti 3
21-Dec-12 2:09am
View
Deleted
I think this is not the answer of my question.I need the urls which provide apis for social sites
shriti 3
21-Dec-12 1:57am
View
Deleted
what is one by one Api.Not getting can u please elaborate
shriti 3
12-Dec-12 7:19am
View
thanks
shriti 3
31-Oct-12 1:24am
View
ok i think this is not the correct solution which u provide.Anyways i resolved using htmlencode as output string .Thanks
shriti 3
31-Oct-12 0:37am
View
im putting above script in textarea and after enter it shows alert box.
shriti 3
15-Oct-12 0:26am
View
as i need that url.plz send
shriti 3
12-Oct-12 7:51am
View
I have a repeater which contains created date now i need to find highest date how do i get it
shriti 3
9-Oct-12 1:43am
View
I need Ideas How to Implement it using iphone application and server
shriti 3
18-Jul-12 8:48am
View
Thanx
shriti 3
18-Jul-12 8:47am
View
Thanx
shriti 3
25-Jun-12 3:08am
View
The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:ObjMsg. The InnerException message was 'There was an error deserializing the object of type Entities.Message. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property
shriti 3
21-Jun-12 2:50am
View
When i send data without writing any text in FCK editor
The output inserted in database is:
<br type="_moz" />
shriti 3
7-Jun-12 1:49am
View
Select MediaAlbumId from dbo.MediaAlbums where Guid='0f86759f-db8d-47dd-b862-8500afc1bf7e666'
When i enter anything wrong in Guid like i put vvvv in Guid than it gives error
"Conversion failed when converting from a character string to uniqueidentifier."
shriti 3
15-May-12 1:07am
View
main problem is in FckEditor when i enter long data execption-The maximum string content length quota (8192) has been exceeded while reading XML data.occurs
shriti 3
15-May-12 1:06am
View
Im using Post only
shriti 3
11-May-12 6:44am
View
We Should follow containment process or should go for Inheritance .Please Suggest
shriti 3
11-May-12 2:32am
View
Not able to differentiate which one is better to use EIther Containment or Inheritance
Show More