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

C#

 
GeneralRe: converting vb.net code to c# Pin
LongRange.Shooter22-Jun-04 10:00
LongRange.Shooter22-Jun-04 10:00 
GeneralRe: converting vb.net code to c# Pin
Heath Stewart22-Jun-04 10:32
protectorHeath Stewart22-Jun-04 10:32 
GeneralAuto adjust column width Pin
vcorn22-Jun-04 7:44
vcorn22-Jun-04 7:44 
GeneralRe: Auto adjust column width Pin
Heath Stewart22-Jun-04 8:12
protectorHeath Stewart22-Jun-04 8:12 
GeneralHelp me with an e-mail. Pin
svenakela22-Jun-04 7:36
svenakela22-Jun-04 7:36 
Generalconverting vb.net code to c# Pin
vijju0422-Jun-04 7:35
vijju0422-Jun-04 7:35 
GeneralRe: converting vb.net code to c# Pin
Heath Stewart22-Jun-04 8:06
protectorHeath Stewart22-Jun-04 8:06 
GeneralSaving a collection of a class into form`s code. Pin
Member 114126622-Jun-04 6:41
Member 114126622-Jun-04 6:41 
Help! Help! Help!
I have a usercontrol that have a collection contain of a class(or struct). I want the collection be save autamatically with form's code.
my code:
public class Struct1<br />
		{<br />
			private int m_x ;<br />
			public int x <br />
			{<br />
				get{return m_x;}<br />
				set{m_x=value;}<br />
			}<br />
			private string m_y ;<br />
			public string y <br />
			{<br />
				get{return m_y;}<br />
				set{m_y=value;}<br />
			}<br />
		}<br />
		private Struct1 m_struct ;<br />
		//[DesignerSerializationVisibility(DesignerSerializationVisibility.Content),TypeConverter(typeof(ExpandableObjectConverter))]<br />
		[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]<br />
		<br />
		public Struct1 STRUCT<br />
		{<br />
			get{return m_struct ;}<br />
			set{m_struct=value;}<br />
		}<br />
<br />
		public class MyCoulumnClollectionClass : CollectionBase<br />
		{<br />
			<br />
			public Struct1 this[ int index ]  <br />
			{<br />
				get  <br />
				{<br />
					return( (Struct1) List[index] );<br />
				}<br />
				set  <br />
				{<br />
					List[index] = value;<br />
				}<br />
			}<br />
			public int Add( Struct1 value )  <br />
			{<br />
				return( List.Add( value ) );<br />
			}<br />
<br />
			public int IndexOf( Struct1 value )  <br />
			{<br />
				return( List.IndexOf( value ) );<br />
			}<br />
<br />
			public void Insert( int index, Struct1 value )  <br />
			{<br />
				List.Insert( index, value );<br />
			}<br />
<br />
			public void Remove( Struct1 value )  <br />
			{<br />
				List.Remove( value );<br />
			}<br />
<br />
			public bool Contains( Struct1 value )  <br />
			{<br />
				// If value is not of type Int16, this will return false.<br />
				return( List.Contains( value ) );<br />
			}<br />
		}

GeneralRe: Saving a collection of a class into form`s code. Pin
Heath Stewart22-Jun-04 8:04
protectorHeath Stewart22-Jun-04 8:04 
GeneralRe: Saving a collection of a class into form`s code. Pin
Member 114126622-Jun-04 20:00
Member 114126622-Jun-04 20:00 
GeneralRe: Saving a collection of a class into form`s code. Pin
Heath Stewart22-Jun-04 20:11
protectorHeath Stewart22-Jun-04 20:11 
QuestionSuppress click at load??? Pin
betterc22-Jun-04 6:39
betterc22-Jun-04 6:39 
AnswerRe: Suppress click at load??? Pin
Heath Stewart22-Jun-04 8:02
protectorHeath Stewart22-Jun-04 8:02 
GeneralWindows Service Problem (Capture screen) Pin
Milos.Sakovic22-Jun-04 5:15
Milos.Sakovic22-Jun-04 5:15 
GeneralRe: Windows Service Problem (Capture screen) Pin
Heath Stewart22-Jun-04 6:22
protectorHeath Stewart22-Jun-04 6:22 
QuestionPropertyGrid for Remote object? Pin
zericsson22-Jun-04 5:15
zericsson22-Jun-04 5:15 
GeneralDirectPlay Pin
bouli22-Jun-04 4:32
bouli22-Jun-04 4:32 
GeneralRe: DirectPlay Pin
Heath Stewart22-Jun-04 4:57
protectorHeath Stewart22-Jun-04 4:57 
GeneralRe: DirectPlay Pin
bouli22-Jun-04 5:04
bouli22-Jun-04 5:04 
GeneralRe: DirectPlay Pin
Heath Stewart22-Jun-04 5:37
protectorHeath Stewart22-Jun-04 5:37 
GeneralRe: DirectPlay Pin
bouli22-Jun-04 5:24
bouli22-Jun-04 5:24 
GeneralRe: DirectPlay Pin
Heath Stewart22-Jun-04 8:51
protectorHeath Stewart22-Jun-04 8:51 
GeneralRe: DirectPlay Pin
bouli22-Jun-04 21:04
bouli22-Jun-04 21:04 
Generalplaying quicktime MOV and VR Pin
buffer_k.st22-Jun-04 3:52
buffer_k.st22-Jun-04 3:52 
GeneralRe: playing quicktime MOV and VR Pin
Heath Stewart22-Jun-04 4:49
protectorHeath Stewart22-Jun-04 4:49 

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.