Click here to Skip to main content
15,891,722 members
Home / Discussions / C#
   

C#

 
GeneralRe: Enabling dataGridView sorting for a bound List [modified] Pin
Pete O'Hanlon17-Dec-07 10:00
mvePete O'Hanlon17-Dec-07 10:00 
QuestionFilepaths on Linux and Windows Pin
Johan Martensson16-Dec-07 1:04
Johan Martensson16-Dec-07 1:04 
GeneralRe: Filepaths on Linux and Windows Pin
Luc Pattyn16-Dec-07 5:14
sitebuilderLuc Pattyn16-Dec-07 5:14 
GeneralRe: Filepaths on Linux and Windows Pin
Johan Martensson16-Dec-07 22:16
Johan Martensson16-Dec-07 22:16 
GeneralRotate Problem Pin
anupamwb15-Dec-07 22:43
anupamwb15-Dec-07 22:43 
GeneralRe: Rotate Problem Pin
Guffa16-Dec-07 0:22
Guffa16-Dec-07 0:22 
GeneralRe: Rotate Problem Pin
anupamwb16-Dec-07 3:58
anupamwb16-Dec-07 3:58 
AnswerRe: Rotate Problem Pin
techieboi16-Dec-07 17:00
techieboi16-Dec-07 17:00 
Hi,

Regarding your problem, the best way to flip text (of which I know) is to convert the text to an image. Once it's an image, you can do all sorts of kewl stuff to it.

Depending on whether you're working in a web or windows environment, once you have flipped the image you will need to display it. If you're working in a web environment, I would create a HTTP Handler to perform the flip and stream the resultant image to the browser.

I've put together a small example which should help:

class Program
{
static void Main(string[] args)
{
RotateClockwise(@"This is a test!").Save(@"C:\Test.gif", System.Drawing.Imaging.ImageFormat.Gif);
}

/// <summary>Draws a string to an image and rotates the image 90 degrees</summary>
/// <param name="text">The string to be rotated</param>
/// <returns>An image containing the rotated text</returns>
public static System.Drawing.Image RotateClockwise(string text)
{
System.Drawing.Image rotateImage = null;

// Create a new bitmap
using (System.Drawing.Bitmap rotateBitmap = new System.Drawing.Bitmap(100, 100))
{
// Create an image from the bitmap
rotateImage = System.Drawing.Image.FromHbitmap(rotateBitmap.GetHbitmap());

// Draw the string to the image
using (System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage(rotateImage))
{
graphics.DrawString(text, new System.Drawing.Font("verdana", 8), new System.Drawing.SolidBrush(System.Drawing.Color.Pink), 0, 0);
}

// Rotate the image
rotateImage.RotateFlip(System.Drawing.RotateFlipType.Rotate90FlipNone);
}

// Return an image containing our rotated text
return rotateImage;
}
}
GeneralCatch Mouse Event Pin
Sabry190515-Dec-07 22:05
Sabry190515-Dec-07 22:05 
GeneralRe: Catch Mouse Event Pin
Y_R16-Dec-07 5:53
Y_R16-Dec-07 5:53 
QuestionHelp me to design a user form maker! Pin
arefkarimi15-Dec-07 19:12
arefkarimi15-Dec-07 19:12 
GeneralRe: Help me to design a user form maker! Pin
GuyThiebaut16-Dec-07 6:49
professionalGuyThiebaut16-Dec-07 6:49 
GeneralRe: Help me to design a user form maker! Pin
arefkarimi16-Dec-07 18:41
arefkarimi16-Dec-07 18:41 
GeneralRe: Help me to design a user form maker! Pin
GuyThiebaut16-Dec-07 22:40
professionalGuyThiebaut16-Dec-07 22:40 
GeneralDelayed Clipboard rendering Pin
peterchen15-Dec-07 17:40
peterchen15-Dec-07 17:40 
AnswerRe: Delayed Clipboard rendering Pin
Ravi Bhavnani15-Dec-07 20:40
professionalRavi Bhavnani15-Dec-07 20:40 
GeneralOut of Memory Pin
MAW3015-Dec-07 15:41
MAW3015-Dec-07 15:41 
GeneralRe: Out of Memory Pin
Mark Churchill15-Dec-07 19:05
Mark Churchill15-Dec-07 19:05 
JokeRe: Out of Memory Pin
Vasudevan Deepak Kumar15-Dec-07 22:02
Vasudevan Deepak Kumar15-Dec-07 22:02 
AnswerRe: Out of Memory Pin
Guffa16-Dec-07 0:26
Guffa16-Dec-07 0:26 
GeneralOnline Messages / High Scores Pin
MasterSharp15-Dec-07 12:35
MasterSharp15-Dec-07 12:35 
GeneralRe: Online Messages / High Scores Pin
Christian Graus15-Dec-07 13:54
protectorChristian Graus15-Dec-07 13:54 
GeneralProblem to use System.Diagnostics.ProcessWindowStyle.Hidden. Pin
hdv21215-Dec-07 11:46
hdv21215-Dec-07 11:46 
GeneralRe: Problem to use System.Diagnostics.ProcessWindowStyle.Hidden. Pin
Luc Pattyn15-Dec-07 12:26
sitebuilderLuc Pattyn15-Dec-07 12:26 
GeneralRe: Problem to use System.Diagnostics.ProcessWindowStyle.Hidden. Pin
hdv21215-Dec-07 21:11
hdv21215-Dec-07 21:11 

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.