Click here to Skip to main content
15,910,862 members
Home / Discussions / C#
   

C#

 
Questionhow to capture packet in promiscus mode Pin
prabir kishore1-Mar-07 22:07
prabir kishore1-Mar-07 22:07 
QuestionFree resources of user control Pin
Robert Rohde1-Mar-07 22:06
Robert Rohde1-Mar-07 22:06 
AnswerRe: Free resources of user control Pin
Hayder Marzouk1-Mar-07 22:11
Hayder Marzouk1-Mar-07 22:11 
AnswerRe: Free resources of user control Pin
Guffa1-Mar-07 22:24
Guffa1-Mar-07 22:24 
GeneralRe: Free resources of user control Pin
Robert Rohde1-Mar-07 23:26
Robert Rohde1-Mar-07 23:26 
QuestionProblem in ASP.NET Control Pin
Mayank Parmar1-Mar-07 21:44
professionalMayank Parmar1-Mar-07 21:44 
AnswerRe: Problem in ASP.NET Control Pin
Frank Kerrigan2-Mar-07 2:34
Frank Kerrigan2-Mar-07 2:34 
QuestionProblem with ListView DrawItem Pin
Iker Llanos1-Mar-07 21:20
Iker Llanos1-Mar-07 21:20 
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
QuestionIDvdInfo2.GetCurrentLocation() acting strangly! Pin
Khoramdin1-Mar-07 21:07
Khoramdin1-Mar-07 21:07 
QuestionReasoning for public signature of interfaces? Pin
Zoltan Balazs1-Mar-07 20:41
Zoltan Balazs1-Mar-07 20:41 
AnswerRe: Reasoning for public signature of interfaces? Pin
Colin Angus Mackay1-Mar-07 22:18
Colin Angus Mackay1-Mar-07 22:18 
GeneralRe: Reasoning for public signature of interfaces? Pin
Zoltan Balazs1-Mar-07 23:09
Zoltan Balazs1-Mar-07 23:09 
GeneralRe: Reasoning for public signature of interfaces? Pin
Colin Angus Mackay2-Mar-07 0:48
Colin Angus Mackay2-Mar-07 0:48 
GeneralRe: Reasoning for public signature of interfaces? Pin
Zoltan Balazs2-Mar-07 5:57
Zoltan Balazs2-Mar-07 5:57 
AnswerRe: Reasoning for public signature of interfaces? Pin
Guffa1-Mar-07 22:19
Guffa1-Mar-07 22:19 
GeneralRe: Reasoning for public signature of interfaces? Pin
Colin Angus Mackay1-Mar-07 22:22
Colin Angus Mackay1-Mar-07 22:22 
GeneralRe: Reasoning for public signature of interfaces? Pin
Zoltan Balazs1-Mar-07 22:58
Zoltan Balazs1-Mar-07 22:58 
QuestionPopUp Blocker Detection using javascript Pin
babutkchn1-Mar-07 19:37
babutkchn1-Mar-07 19:37 
AnswerRe: PopUp Blocker Detection using javascript Pin
stancrm1-Mar-07 21:22
stancrm1-Mar-07 21:22 
Questiontextbox validation very urgent Pin
vijayashanthi1-Mar-07 19:27
vijayashanthi1-Mar-07 19:27 
AnswerRe: textbox validation very urgent Pin
sam#1-Mar-07 19:42
sam#1-Mar-07 19:42 
AnswerRe: textbox validation very urgent Pin
sharmit1-Mar-07 20:49
sharmit1-Mar-07 20:49 
AnswerRe: textbox validation very urgent Pin
Frank Kerrigan2-Mar-07 2:38
Frank Kerrigan2-Mar-07 2:38 
GeneralRe: textbox validation very urgent Pin
SandeepN10-Apr-07 11:22
SandeepN10-Apr-07 11:22 
GeneralRe: textbox validation very urgent Pin
SandeepN10-Apr-07 11:43
SandeepN10-Apr-07 11:43 

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.