Click here to Skip to main content
15,905,963 members
Home / Discussions / C#
   

C#

 
Questionform control text value & XML Pin
Blubbo28-Aug-07 9:30
Blubbo28-Aug-07 9:30 
QuestionScaling a Polygon Pin
Joshua Lunsford28-Aug-07 9:26
Joshua Lunsford28-Aug-07 9:26 
AnswerRe: Scaling a Polygon Pin
Hessam Jalali28-Aug-07 21:56
Hessam Jalali28-Aug-07 21:56 
GeneralRe: Scaling a Polygon Pin
Joshua Lunsford4-Sep-07 10:01
Joshua Lunsford4-Sep-07 10:01 
GeneralRe: Scaling a Polygon Pin
Lewis Liu L8-Sep-09 13:56
Lewis Liu L8-Sep-09 13:56 
QuestionCheck MICR Pin
Saamir28-Aug-07 8:19
Saamir28-Aug-07 8:19 
Questionwhich is more faster Embedded Control or External Pin
I Believe In GOD28-Aug-07 7:14
I Believe In GOD28-Aug-07 7:14 
AnswerRe: which is more faster Embedded Control or External Pin
Scott Dorman28-Aug-07 7:20
professionalScott Dorman28-Aug-07 7:20 
GeneralRe: which is more faster Embedded Control or External Pin
I Believe In GOD28-Aug-07 7:42
I Believe In GOD28-Aug-07 7:42 
AnswerRe: which is more faster Embedded Control or External Pin
led mike28-Aug-07 7:22
led mike28-Aug-07 7:22 
GeneralRe: which is more faster Embedded Control or External Pin
I Believe In GOD28-Aug-07 7:45
I Believe In GOD28-Aug-07 7:45 
AnswerRe: which is more faster Embedded Control or External Pin
Daniel Turini28-Aug-07 10:51
Daniel Turini28-Aug-07 10:51 
QuestionConverting numbers Pin
Le centriste28-Aug-07 6:48
Le centriste28-Aug-07 6:48 
AnswerRe: Converting numbers Pin
Scott Dorman28-Aug-07 7:02
professionalScott Dorman28-Aug-07 7:02 
GeneralRe: Converting numbers Pin
Le centriste28-Aug-07 7:04
Le centriste28-Aug-07 7:04 
GeneralRe: Converting numbers Pin
Scott Dorman28-Aug-07 7:10
professionalScott Dorman28-Aug-07 7:10 
GeneralRe: Converting numbers Pin
Le centriste28-Aug-07 7:14
Le centriste28-Aug-07 7:14 
GeneralRe: Converting numbers Pin
Scott Dorman28-Aug-07 7:23
professionalScott Dorman28-Aug-07 7:23 
GeneralRe: Converting numbers Pin
DavidNohejl29-Aug-07 1:01
DavidNohejl29-Aug-07 1:01 
QuestionIcons in ListBox Pin
spotl28-Aug-07 6:46
spotl28-Aug-07 6:46 
AnswerRe: Icons in ListBox Pin
Scott Dorman28-Aug-07 7:06
professionalScott Dorman28-Aug-07 7:06 
AnswerRe: Icons in ListBox Pin
I Believe In GOD28-Aug-07 7:20
I Believe In GOD28-Aug-07 7:20 
hi
here is my code

first My Listbox1 has a name panellist
second make sure to set PanelList.DrawMode = DrawMode.OwnerDrawVariable;
third fill the list with with 5 items

NOTE : this code is not full example it's just and right idea

		private void PanelList_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)<br />
		{<br />
			SolidBrush br = new SolidBrush(Color.Navy );<br />
			Image img = PicFavorites.Image;<br />
			StringFormat sf = new StringFormat();<br />
			sf.Alignment = StringAlignment.Far ;<br />
			sf.LineAlignment = StringAlignment.Center ;<br />
			e.DrawBackground();<br />
			br.Color = Color.Navy ;<br />
			e.Graphics.DrawString(PanelList.Items [e.Index].ToString () ,e.Font ,br,e.Bounds ,sf );<br />
			switch (e.Index )<br />
			{<br />
				case 1:<br />
				{<br />
					img = PicGeneral.Image;<br />
				}<br />
					break;<br />
				case 2:<br />
				{<br />
					img = PicEditView.Image;<br />
				}<br />
					break;<br />
				case 3:<br />
				{<br />
					img = PicIncomingCalls.Image;<br />
				}<br />
					break;<br />
				case 4:<br />
				{<br />
					img = PicServices.Image;<br />
				}<br />
					break;<br />
				case 5:<br />
				{<br />
					img = PicSetting.Image;<br />
				}<br />
					break;<br />
				default:<br />
					break;<br />
			}<br />
		e.Graphics.DrawImage (img ,e.Bounds.X + 10, e.Bounds.Y );<br />
		e.DrawFocusRectangle();<br />
<br />
		}<br />
<br />
		private void PanelList_MeasureItem(object sender, System.Windows.Forms.MeasureItemEventArgs e)<br />
		{<br />
			e.ItemHeight = 48;<br />
		}


I know nothing , I know nothing

QuestionSet readonly attribute of an class property at runtime Pin
Paw Jershauge28-Aug-07 6:26
Paw Jershauge28-Aug-07 6:26 
AnswerRe: Set readonly attribute of an class property at runtime Pin
J4amieC28-Aug-07 6:42
J4amieC28-Aug-07 6:42 
GeneralRe: Set readonly attribute of an class property at runtime Pin
Paw Jershauge28-Aug-07 10:12
Paw Jershauge28-Aug-07 10:12 

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.