Click here to Skip to main content
15,896,278 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# read of xls file works on Vista home preium but not XP Pro, Vista Business or 2003 server. Pin
mid_life_crisis16-Feb-09 10:37
mid_life_crisis16-Feb-09 10:37 
GeneralRe: C# read of xls file works on Vista home preium but not XP Pro, Vista Business or 2003 server. Pin
mid_life_crisis16-Feb-09 10:48
mid_life_crisis16-Feb-09 10:48 
GeneralRe: C# read of xls file works on Vista home preium but not XP Pro, Vista Business or 2003 server. Pin
MickCurley16-Feb-09 12:48
MickCurley16-Feb-09 12:48 
GeneralRe: C# read of xls file works on Vista home preium but not XP Pro, Vista Business or 2003 server. Pin
mid_life_crisis16-Feb-09 16:14
mid_life_crisis16-Feb-09 16:14 
GeneralRe: C# read of xls file works on Vista home preium but not XP Pro, Vista Business or 2003 server. Pin
MickCurley16-Feb-09 21:16
MickCurley16-Feb-09 21:16 
GeneralRe: C# read of xls file works on Vista home preium but not XP Pro, Vista Business or 2003 server. Pin
mid_life_crisis17-Feb-09 2:26
mid_life_crisis17-Feb-09 2:26 
QuestionListBox Control - using DisplayMember and ValueMember Pin
divinyl16-Feb-09 5:34
divinyl16-Feb-09 5:34 
AnswerRe: ListBox Control - using DisplayMember and ValueMember Pin
Xmen Real 16-Feb-09 7:45
professional Xmen Real 16-Feb-09 7:45 
divinyl wrote:
lbServerList.DisplayMember = reader[1].ToString();lbServerList.ValueMember = reader[0].ToString();

its not like this...


first of all make a class that will hold your data(server name and id thing) with the properties
class XHolder
{
string name;
string id;

public string Name
{ get{ return name;} set { name = value; } }

public string ID
{ get{ return id;} set { id = value; } }
}


now you can use Generic list and add like this
List<xholder> dataSource = new List<xholder>();
// in loop
dataSource.Add(new XHolder(reader[0].ToString(), reader[1].ToString())); // Add Constructor

lbServerList.DataSource = dataSource;
lbServerList.DisplayMember = "Name";
lbServerList.ValueMember = "ID";</xholder></xholder>


I wrote code in CP, it may have errors Wink | ;)

TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can

QuestionDrag&Drop over RichTextBox showing wrong DropEffect Pin
mav.northwind16-Feb-09 5:18
mav.northwind16-Feb-09 5:18 
AnswerRe: Drag&Drop over RichTextBox showing wrong DropEffect Pin
Xmen Real 16-Feb-09 7:54
professional Xmen Real 16-Feb-09 7:54 
GeneralRe: Drag&Drop over RichTextBox showing wrong DropEffect Pin
mav.northwind16-Feb-09 8:41
mav.northwind16-Feb-09 8:41 
GeneralRe: Drag&Drop over RichTextBox showing wrong DropEffect Pin
Xmen Real 16-Feb-09 13:44
professional Xmen Real 16-Feb-09 13:44 
QuestionSee the execution path of my program Pin
anderslundsgard16-Feb-09 5:17
anderslundsgard16-Feb-09 5:17 
AnswerRe: See the execution path of my program Pin
Eddy Vluggen16-Feb-09 7:36
professionalEddy Vluggen16-Feb-09 7:36 
QuestionShow Repeating Data Pin
Terick16-Feb-09 4:44
Terick16-Feb-09 4:44 
QuestionDesigning Menu/tool bar system takes action depending on control displayed Pin
SilimSayo16-Feb-09 4:38
SilimSayo16-Feb-09 4:38 
QuestionTreeView-Error Pin
Udayaraju16-Feb-09 3:33
Udayaraju16-Feb-09 3:33 
AnswerRe: TreeView-Error Pin
Xmen Real 16-Feb-09 7:34
professional Xmen Real 16-Feb-09 7:34 
GeneralRe: TreeView-Error Pin
Udayaraju16-Feb-09 8:06
Udayaraju16-Feb-09 8:06 
GeneralRe: TreeView-Error Pin
Xmen Real 16-Feb-09 8:08
professional Xmen Real 16-Feb-09 8:08 
QuestionDataGridView doesn't display anything. Pin
AxiliuM16-Feb-09 3:04
AxiliuM16-Feb-09 3:04 
AnswerRe: DataGridView doesn't display anything. Pin
Calin Tatar16-Feb-09 7:21
Calin Tatar16-Feb-09 7:21 
GeneralRe: DataGridView doesn't display anything. Pin
AxiliuM16-Feb-09 10:22
AxiliuM16-Feb-09 10:22 
GeneralRe: DataGridView doesn't display anything. Pin
Calin Tatar16-Feb-09 22:05
Calin Tatar16-Feb-09 22:05 
QuestionSystem.Net.Webexcpetion Pin
MamthaLalith16-Feb-09 2:01
MamthaLalith16-Feb-09 2:01 

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.