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

C#

 
GeneralStrage problem on AfterLabelEdit event of treeview Pin
Dan Shi11-Aug-05 14:00
sussDan Shi11-Aug-05 14:00 
GeneralRe: Strage problem on AfterLabelEdit event of treeview Pin
Mohamad Al Husseiny11-Aug-05 15:23
Mohamad Al Husseiny11-Aug-05 15:23 
GeneralRe: Strage problem on AfterLabelEdit event of treeview Pin
Dan Shi12-Aug-05 13:43
sussDan Shi12-Aug-05 13:43 
Generalmakefile and resources Pin
dirkhelmet11-Aug-05 13:52
dirkhelmet11-Aug-05 13:52 
Generalagain way to use flash inside c# application Pin
malak nour11-Aug-05 13:43
malak nour11-Aug-05 13:43 
GeneralRe: again way to use flash inside c# application Pin
Mohamad Al Husseiny11-Aug-05 14:09
Mohamad Al Husseiny11-Aug-05 14:09 
GeneralRe: again way to use flash inside c# application Pin
Mohamad Al Husseiny11-Aug-05 14:13
Mohamad Al Husseiny11-Aug-05 14:13 
GeneralAxis Pin
Anonymous11-Aug-05 13:41
Anonymous11-Aug-05 13:41 
I want to label tick marks along XYgraph axes. The code fragment below will draw the tick marks along the x-axis. It will also draw the labels (i.e. -8.0 -7.0, -6.0 etc...) but I can't seem to get the tick marks and the numbers to line up. One problem is that when the labels float value is >= 0.0, the minus sign disappears and skews the label from the tick mark...
//Here is the code fragment
void DrawGraphXandYTicks(Graphics g)
{
Pen tickPen = new Pen(new SolidBrush(Color.BlueViolet), 1);
//Draw x-axis ticks.
float f = -8.0f;
PointF xtickPoint = new PointF(xIndent, yIndent + graphRect.Height/2);
Font labelFont = new Font("Courier",6);
SolidBrush labelBrush = new SolidBrush(Color.BlueViolet);
StringFormat strFmt = new StringFormat();
for(float fx = xtickPoint.X; fx <= graphRect.Width; fx += xtickPoint.X)
{
g.DrawLine(tickPen, fx, xtickPoint.Y - 2, fx, xtickPoint.Y + 2);
g.DrawString(f.ToString("f1"), labelFont, labelBrush, fx + 14, xtickPoint.Y + 4, strFmt);
f++;

}
Please Advise and thanks in advance
GeneralRe: Axis Pin
Christian Graus11-Aug-05 14:34
protectorChristian Graus11-Aug-05 14:34 
GeneralRemoting question Pin
machocr11-Aug-05 13:18
machocr11-Aug-05 13:18 
GeneralRe: Remoting question Pin
Mohamad Al Husseiny11-Aug-05 13:32
Mohamad Al Husseiny11-Aug-05 13:32 
GeneralRe: Remoting question Pin
machocr11-Aug-05 13:43
machocr11-Aug-05 13:43 
GeneralRe: Remoting question Pin
Mohamad Al Husseiny11-Aug-05 14:01
Mohamad Al Husseiny11-Aug-05 14:01 
GeneralRe: Remoting question Pin
machocr12-Aug-05 6:09
machocr12-Aug-05 6:09 
QuestionWhich treenode when double clicked? Pin
bouli11-Aug-05 11:26
bouli11-Aug-05 11:26 
AnswerRe: Which treenode when double clicked? Pin
Mohamad Al Husseiny11-Aug-05 12:23
Mohamad Al Husseiny11-Aug-05 12:23 
GeneralRe: Which treenode when double clicked? Pin
bouli11-Aug-05 12:27
bouli11-Aug-05 12:27 
GeneralRe: Which treenode when double clicked? Pin
Luis Alonso Ramos11-Aug-05 14:38
Luis Alonso Ramos11-Aug-05 14:38 
GeneralNunit for TDD or testing Pin
Anonymous11-Aug-05 10:48
Anonymous11-Aug-05 10:48 
GeneralNunit for TDD or testing Pin
Anonymous11-Aug-05 10:41
Anonymous11-Aug-05 10:41 
GeneralRe: Nunit for TDD or testing Pin
Christian Graus11-Aug-05 12:54
protectorChristian Graus11-Aug-05 12:54 
GeneralThumbnail image in a checkListBox Pin
sahoREGS11-Aug-05 10:10
sahoREGS11-Aug-05 10:10 
GeneralRe: Thumbnail image in a checkListBox Pin
Mohamad Al Husseiny11-Aug-05 10:46
Mohamad Al Husseiny11-Aug-05 10:46 
Generalregex expression that crashes regex engine Pin
eggie511-Aug-05 9:08
eggie511-Aug-05 9:08 
GeneralRe: regex expression that crashes regex engine Pin
User 665811-Aug-05 10:23
User 665811-Aug-05 10:23 

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.