Click here to Skip to main content
15,924,193 members
Home / Discussions / C#
   

C#

 
Questionhide form using the close button Pin
Mridang Agarwalla7-Feb-06 23:11
Mridang Agarwalla7-Feb-06 23:11 
AnswerRe: hide form using the close button Pin
raheeli7-Feb-06 23:15
raheeli7-Feb-06 23:15 
AnswerRe: hide form using the close button Pin
Ingo7-Feb-06 23:16
Ingo7-Feb-06 23:16 
GeneralRe: hide form using the close button Pin
Mridang Agarwalla7-Feb-06 23:41
Mridang Agarwalla7-Feb-06 23:41 
GeneralRe: hide form using the close button Pin
Ingo8-Feb-06 0:00
Ingo8-Feb-06 0:00 
GeneralRe: hide form using the close button Pin
Mridang Agarwalla8-Feb-06 0:31
Mridang Agarwalla8-Feb-06 0:31 
JokeRe: hide form using the close button Pin
Ingo8-Feb-06 2:09
Ingo8-Feb-06 2:09 
GeneralRe: hide form using the close button Pin
Saravanan_article8-Feb-06 16:52
Saravanan_article8-Feb-06 16:52 
QuestionRedirect to the online web page Pin
raheeli7-Feb-06 22:51
raheeli7-Feb-06 22:51 
QuestionLeft-Click a Button Pin
Dave McCool7-Feb-06 22:27
Dave McCool7-Feb-06 22:27 
AnswerRe: Left-Click a Button Pin
Ingo7-Feb-06 22:57
Ingo7-Feb-06 22:57 
GeneralRe: Left-Click a Button Pin
Dave McCool8-Feb-06 2:06
Dave McCool8-Feb-06 2:06 
GeneralRe: Left-Click a Button Pin
Ingo8-Feb-06 2:26
Ingo8-Feb-06 2:26 
GeneralRe: Left-Click a Button Pin
Dave McCool9-Feb-06 0:35
Dave McCool9-Feb-06 0:35 
GeneralRe: Left-Click a Button Pin
Dave McCool26-Feb-06 22:08
Dave McCool26-Feb-06 22:08 
QuestionHow to place images in the ListBox items? Pin
Saravanan_article7-Feb-06 22:13
Saravanan_article7-Feb-06 22:13 
AnswerRe: How to place images in the ListBox items? Pin
Libor Tinka7-Feb-06 23:27
Libor Tinka7-Feb-06 23:27 
First, create a class that contains image, something like this:

<br />
public class ListBoxItem {<br />
<br />
  public Image img;<br />
  public string text;<br />
<br />
  public override ToString() {<br />
    return text;<br />
  }<br />
}<br />


Then you need to create owner-drawn ListBox (which iherits a ListBox class).

First, set DrawMode property to OwnerDrawFixed or OwnerDrawVariable (i like the second one).

Then you need to override OnMeasureItem and OnDrawItem methods. Make sure, you've set right size for the item in measuring method so you can draw it properly later. If you want to use images with alpha channel, use ImageList.Draw which can do the job.
GeneralRe: How to place images in the ListBox items? Pin
Saravanan_article7-Feb-06 23:44
Saravanan_article7-Feb-06 23:44 
QuestionIP Lookup Pin
quocbao7-Feb-06 21:52
quocbao7-Feb-06 21:52 
AnswerRe: IP Lookup Pin
Mridang Agarwalla7-Feb-06 23:39
Mridang Agarwalla7-Feb-06 23:39 
AnswerRe: IP Lookup Pin
WetRivrRat8-Feb-06 2:39
WetRivrRat8-Feb-06 2:39 
Questionmsde2000 backup Pin
JacquesDP7-Feb-06 21:52
JacquesDP7-Feb-06 21:52 
QuestionGDI Graphics Z-Order Pin
Dowfen7-Feb-06 21:49
Dowfen7-Feb-06 21:49 
AnswerRe: GDI Graphics Z-Order Pin
Ingo7-Feb-06 22:49
Ingo7-Feb-06 22:49 
GeneralRe: GDI Graphics Z-Order Pin
Dowfen8-Feb-06 6:38
Dowfen8-Feb-06 6:38 

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.