Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
QuestionDrag And Drop Pin
shamsteady4-Mar-07 21:30
shamsteady4-Mar-07 21:30 
QuestionURGENT PLZ: how to print an invoice or receipt? Pin
Jassim Rahma4-Mar-07 21:03
Jassim Rahma4-Mar-07 21:03 
AnswerRe: URGENT PLZ: how to print an invoice or receipt? Pin
stancrm4-Mar-07 21:57
stancrm4-Mar-07 21:57 
GeneralRe: URGENT PLZ: how to print an invoice or receipt? Pin
Jassim Rahma4-Mar-07 22:40
Jassim Rahma4-Mar-07 22:40 
GeneralRe: URGENT PLZ: how to print an invoice or receipt? Pin
Pete O'Hanlon5-Mar-07 2:10
mvePete O'Hanlon5-Mar-07 2:10 
GeneralRe: URGENT PLZ: how to print an invoice or receipt? Pin
Jassim Rahma5-Mar-07 9:15
Jassim Rahma5-Mar-07 9:15 
GeneralRe: URGENT PLZ: how to print an invoice or receipt? Pin
Pete O'Hanlon5-Mar-07 22:16
mvePete O'Hanlon5-Mar-07 22:16 
QuestionProblem painting. Please help!!! Pin
Iker Llanos4-Mar-07 20:38
Iker Llanos4-Mar-07 20:38 
I have a ListView in details view. I need the item to be in a different position than the default one so I have written de code for DrawItem event. The items show in the correct position but when I select one and move to another one the control doesn't refresh its contents very well.

This is the code in the DrawItem event

Rectangle r = e.Item.Bounds;<br />
<br />
int charIndex = this.richIzquierda.GetFirstCharIndexFromLine(Convert.ToInt32(e.Item.Tag));<br />
<br />
r.Y = this.richIzquierda.GetPositionFromCharIndex(charIndex).Y;<br />
<br />
if (e.Item.Selected)<br />
{<br />
e.Graphics.FillRectangle(Brushes.Blue, r);<br />
e.Graphics.DrawString(e.Item.Text, e.Item.Font, new SolidBrush(Color.White), r);<br />
e.DrawFocusRectangle();<br />
}<br />
else<br />
{<br />
e.Graphics.DrawString(e.Item.Text, e.Item.Font, new SolidBrush((sender as ListView).ForeColor), r);<br />
}


This is the control shown on screen Link

How can I fix this problem? Thanks
QuestionHow to Create New File In C#.net Pin
jaganil4-Mar-07 20:33
jaganil4-Mar-07 20:33 
AnswerRe: How to Create New File In C#.net Pin
VirtualVoid.NET4-Mar-07 21:22
VirtualVoid.NET4-Mar-07 21:22 
QuestionData in the grid is not refreshing with out break points Pin
Najeed4-Mar-07 20:11
Najeed4-Mar-07 20:11 
QuestionThe report has no tables. Pin
waleed994-Mar-07 19:56
waleed994-Mar-07 19:56 
Questionhow to send a delegate to a fuction with a parameter? Pin
Hussam Fattahi4-Mar-07 19:43
Hussam Fattahi4-Mar-07 19:43 
AnswerRe: how to send a delegate to a fuction with a parameter? Pin
VirtualVoid.NET4-Mar-07 21:26
VirtualVoid.NET4-Mar-07 21:26 
GeneralRe: how to send a delegate to a fuction with a parameter? Pin
Hussam Fattahi4-Mar-07 22:52
Hussam Fattahi4-Mar-07 22:52 
GeneralRe: how to send a delegate to a fuction with a parameter? Pin
VirtualVoid.NET4-Mar-07 23:51
VirtualVoid.NET4-Mar-07 23:51 
AnswerRe: how to send a delegate to a fuction with a parameter? Pin
Ennis Ray Lynch, Jr.5-Mar-07 4:15
Ennis Ray Lynch, Jr.5-Mar-07 4:15 
QuestionHow to close the window using its Window Handle. Pin
engsrini4-Mar-07 19:41
engsrini4-Mar-07 19:41 
AnswerRe: How to close the window using its Window Handle. Pin
stancrm4-Mar-07 22:06
stancrm4-Mar-07 22:06 
GeneralRe: How to close the window using its Window Handle. Pin
engsrini4-Mar-07 22:32
engsrini4-Mar-07 22:32 
Questionhow to update changes in SQL database using DataAdapter Pin
niting854-Mar-07 19:22
niting854-Mar-07 19:22 
AnswerRe: how to update changes in SQL database using DataAdapter Pin
Colin Angus Mackay4-Mar-07 20:45
Colin Angus Mackay4-Mar-07 20:45 
AnswerRe: how to update changes in SQL database using DataAdapter Pin
Luka Grabarevic5-Mar-07 0:06
Luka Grabarevic5-Mar-07 0:06 
Questionadd virtual column Pin
waleed994-Mar-07 18:24
waleed994-Mar-07 18:24 
AnswerRe: add virtual column Pin
saeee4-Mar-07 19:59
saeee4-Mar-07 19:59 

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.