Click here to Skip to main content
15,914,481 members
Home / Discussions / C#
   

C#

 
GeneralRe: show/hide detection Pin
Morad SAJID8-Nov-07 5:21
Morad SAJID8-Nov-07 5:21 
AnswerRe: show/hide detection Pin
Michael Potter8-Nov-07 5:18
Michael Potter8-Nov-07 5:18 
QuestionHelp with SQL Server Connection Pin
MumbleB8-Nov-07 3:22
MumbleB8-Nov-07 3:22 
AnswerRe: Help with SQL Server Connection Pin
Pete O'Hanlon8-Nov-07 3:27
mvePete O'Hanlon8-Nov-07 3:27 
QuestionUrjent Pin
imatetvm8-Nov-07 3:14
imatetvm8-Nov-07 3:14 
AnswerRe: Urjent Pin
Pete O'Hanlon8-Nov-07 3:24
mvePete O'Hanlon8-Nov-07 3:24 
AnswerRe: Urjent Pin
Guffa8-Nov-07 3:24
Guffa8-Nov-07 3:24 
QuestionPrint problem [modified] Pin
rvds638-Nov-07 2:11
rvds638-Nov-07 2:11 
Hello

within my application i have a richtextbox, when i trying to print someting it doesn't work.
Bullets are not shown on the printpreview hereby the code

// OnBeginPrint
private void OnBeginPrint(object sender,
System.Drawing.Printing.PrintEventArgs e)
{
char[] param = { '\n' };

if (printDialog1.PrinterSettings.PrintRange == PrintRange.Selection)
{
lines = richTextBox1.SelectedText.Split(param);
}
else
{
lines = richTextBox1.Text.Split(param);
}

int i = 0;
char[] trimParam = { '\r' };
foreach (string s in lines)
{
lines[i++] = s.TrimEnd(trimParam);
}
}
// OnPrintPage
private void OnPrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e)
{
int x = e.MarginBounds.Left;
int y = e.MarginBounds.Top;
Brush brush = new SolidBrush(richTextBox1.ForeColor);

while (linesPrinted < lines.Length)
{
e.Graphics.DrawString(lines[linesPrinted++],
richTextBox1.Font, brush, x, y);
y += 15;
if (y >= e.MarginBounds.Bottom)
{
e.HasMorePages = true;
return;
}
else

e.HasMorePages = false;
}
}

I hope someone canhelp me

thanks anyway


-- modified at 8:41 Thursday 8th November, 2007

Greetzzz
Rudy

AnswerRe: Print problem Pin
Luc Pattyn8-Nov-07 2:54
sitebuilderLuc Pattyn8-Nov-07 2:54 
GeneralRe: Print problem Pin
rvds639-Nov-07 2:24
rvds639-Nov-07 2:24 
GeneralRe: Print problem Pin
Luc Pattyn9-Nov-07 3:12
sitebuilderLuc Pattyn9-Nov-07 3:12 
GeneralRe: Print problem Pin
rvds6313-Nov-07 1:48
rvds6313-Nov-07 1:48 
Questionget SqlServer resultset in dataset Pin
G.K.M.8-Nov-07 0:46
G.K.M.8-Nov-07 0:46 
AnswerRe: get SqlServer resultset in dataset Pin
Giorgi Dalakishvili8-Nov-07 1:16
mentorGiorgi Dalakishvili8-Nov-07 1:16 
AnswerRe: get SqlServer resultset in dataset Pin
N a v a n e e t h8-Nov-07 1:17
N a v a n e e t h8-Nov-07 1:17 
QuestionHow to display an array as Image Pin
assizas8-Nov-07 0:25
assizas8-Nov-07 0:25 
AnswerRe: How to display an array as Image Pin
Guffa8-Nov-07 2:07
Guffa8-Nov-07 2:07 
AnswerRe: How to display an array as Image Pin
Ennis Ray Lynch, Jr.8-Nov-07 6:37
Ennis Ray Lynch, Jr.8-Nov-07 6:37 
QuestionHTTPWebRequest class Pin
AssemblySoft8-Nov-07 0:02
AssemblySoft8-Nov-07 0:02 
AnswerRe: HTTPWebRequest class Pin
ChrisKo8-Nov-07 8:08
ChrisKo8-Nov-07 8:08 
GeneralRe: HTTPWebRequest class Pin
AssemblySoft8-Nov-07 11:17
AssemblySoft8-Nov-07 11:17 
QuestiondataGridView event handler Pin
merwa7-Nov-07 23:18
merwa7-Nov-07 23:18 
Questionpicturebox disappears? Pin
I'm a beginner7-Nov-07 22:47
I'm a beginner7-Nov-07 22:47 
AnswerRe: picturebox disappears? Pin
Christian Graus7-Nov-07 22:48
protectorChristian Graus7-Nov-07 22:48 
GeneralRe: picturebox disappears? Pin
I'm a beginner7-Nov-07 23:00
I'm a beginner7-Nov-07 23:00 

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.