Click here to Skip to main content
15,912,504 members
Home / Discussions / C#
   

C#

 
GeneralRe: Military Time Pin
led mike16-Oct-07 9:15
led mike16-Oct-07 9:15 
AnswerRe: Military Time Pin
Skippums16-Oct-07 10:07
Skippums16-Oct-07 10:07 
GeneralRe: Military Time Pin
stormcandi16-Oct-07 11:12
stormcandi16-Oct-07 11:12 
QuestionQuestion about Windows Control Libraries and Properties Pin
godspeed12316-Oct-07 7:43
godspeed12316-Oct-07 7:43 
AnswerRe: Question about Windows Control Libraries and Properties Pin
led mike16-Oct-07 8:24
led mike16-Oct-07 8:24 
GeneralRe: Question about Windows Control Libraries and Properties Pin
godspeed12316-Oct-07 9:04
godspeed12316-Oct-07 9:04 
GeneralRe: Question about Windows Control Libraries and Properties Pin
led mike16-Oct-07 9:17
led mike16-Oct-07 9:17 
GeneralRe: Question about Windows Control Libraries and Properties Pin
godspeed12316-Oct-07 12:01
godspeed12316-Oct-07 12:01 
Thanks for the help, I have linked it all up and it works!!

One more question is if I have an array with serial numbers in the Windows Control Library class, how do I send it over to the StringConverter class.

So in:
<br />
public class UserControl1 : System.Windows.Forms.UserControl<br />
{<br />
  ...<br />
<br />
  public string daqSerial = new string[10];<br />
  private string testProperty;<br />
<br />
  ...<br />
<br />
  public void RetrieveSerials() {<br />
    ... <br />
    // find all the serials connected to comp<br />
  }<br />
<br />
[DescriptionAttribute("Serial"),<br />
CategoryAttribute("Global Settings"),<br />
TypeConverter(typeof(testingPropertyConverter))]<br />
public string TestProp <br />
  {<br />
     get <br />
	{<br />
	  return testProperty;<br />
	}<br />
      set <br />
        {<br />
	   testProperty = value;<br />
	}<br />
  }<br />
}<br />
<br />
public class testingPropertyConverter : StringConverter <br />
{<br />
  public override bool GetStandardValuesSupported( ITypeDescriptorContext context ) <br />
  {<br />
    return true;<br />
  }<br />
<br />
  public override StandardValuesCollection<br />
			GetStandardValues( ITypeDescriptorContext context ) <br />
  {<br />
    return new StandardValuesCollection(new string[]{"test0", "test1", "test2"});<br />
  }<br />
}<br />


So instead of putting those fixed values how do I show the daqSerial Array.

Any help would be greatly appreciated
GeneralRe: Question about Windows Control Libraries and Properties Pin
visualhint17-Oct-07 14:04
visualhint17-Oct-07 14:04 
GeneralRe: Question about Windows Control Libraries and Properties Pin
godspeed12318-Oct-07 11:09
godspeed12318-Oct-07 11:09 
GeneralRe: Question about Windows Control Libraries and Properties Pin
visualhint18-Oct-07 11:54
visualhint18-Oct-07 11:54 
GeneralRe: Question about Windows Control Libraries and Properties Pin
godspeed12318-Oct-07 12:17
godspeed12318-Oct-07 12:17 
GeneralRe: Question about Windows Control Libraries and Properties Pin
visualhint18-Oct-07 12:51
visualhint18-Oct-07 12:51 
QuestionCheckedListBox Getting the Checked ones Pin
s3rro16-Oct-07 7:35
s3rro16-Oct-07 7:35 
AnswerRe: CheckedListBox Getting the Checked ones Pin
led mike16-Oct-07 7:44
led mike16-Oct-07 7:44 
JokeRe: CheckedListBox Getting the Checked ones Pin
Martin#16-Oct-07 8:06
Martin#16-Oct-07 8:06 
GeneralRe: CheckedListBox Getting the Checked ones Pin
s3rro16-Oct-07 9:32
s3rro16-Oct-07 9:32 
QuestionCharachter encoding troubles [modified] Pin
gregbrant16-Oct-07 7:16
gregbrant16-Oct-07 7:16 
AnswerRe: Charachter encoding troubles Pin
led mike16-Oct-07 7:41
led mike16-Oct-07 7:41 
AnswerUnicode vs Ascii Pin
Ennis Ray Lynch, Jr.16-Oct-07 7:42
Ennis Ray Lynch, Jr.16-Oct-07 7:42 
AnswerRe: Charachter encoding troubles Pin
Guffa16-Oct-07 7:56
Guffa16-Oct-07 7:56 
AnswerRe: object creation Pin
J4amieC16-Oct-07 6:05
J4amieC16-Oct-07 6:05 
QuestionGet ALL the Records in NS .. plz , Help of any kind Pin
Davids Maguire16-Oct-07 5:44
Davids Maguire16-Oct-07 5:44 
AnswerRe: Get ALL the Records in NS .. plz , Help of any kind Pin
Dave Kreskowiak16-Oct-07 5:53
mveDave Kreskowiak16-Oct-07 5:53 
GeneralRe: Get ALL the Records in NS .. plz , Help of any kind Pin
Davids Maguire16-Oct-07 6:05
Davids Maguire16-Oct-07 6:05 

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.