Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert String to byte[] and vice versa? Pin
David Stone1-Apr-03 17:04
sitebuilderDavid Stone1-Apr-03 17:04 
GeneralRe: Convert String to byte[] and vice versa? Pin
Member 961-Apr-03 18:34
Member 961-Apr-03 18:34 
AnswerRe: Convert String to byte[] and vice versa? Pin
Alexander Kojevnikov1-Apr-03 20:49
Alexander Kojevnikov1-Apr-03 20:49 
QuestionCreating MS Access Database? Pin
BM_CSharp1-Apr-03 11:01
sussBM_CSharp1-Apr-03 11:01 
QuestionHow to assign executable's icon Pin
Mmithat1-Apr-03 9:00
Mmithat1-Apr-03 9:00 
AnswerRe: How to assign executable's icon Pin
Chris Jobson1-Apr-03 11:09
Chris Jobson1-Apr-03 11:09 
AnswerRe: How to assign executable's icon Pin
CSharpTeam1-Apr-03 11:09
CSharpTeam1-Apr-03 11:09 
GeneralLISTBOX How to select more than one entry at the startup Pin
Mmithat1-Apr-03 8:26
Mmithat1-Apr-03 8:26 
Hi All,
I have list box in one of of my form:

private System.Windows.Forms.ListBox listCampaign;

(InitializeComponent()) function contains those initializations for that list box:

this.listCampaign.Location = new System.Drawing.Point(80, 144);<br />
this.listCampaign.Name = "listCampaign";<br />
this.listCampaign.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;<br />
this.listCampaign.Size = new System.Drawing.Size(168, 69);<br />
this.listCampaign.TabIndex = 1;<br />
this.listCampaign.Visible = false;


And then I add the items to List Box.
listSkillSet.Items.Add("AB");<br />
listSkillSet.Items.Add("AC");<br />
listSkillSet.Items.Add("AD");<br />
listSkillSet.Items.Add("AE");


QUESTION:
Now I have 4 items in my list, I want to show 2 of em already selected.(at the beggining before user chooses - like telling him, we did choose for you already)
I know how to choose one item (highlighted i mean)
as in : listCampaign.SelectedIndex = 0;
But How you select more then one ?
(if I want to Choose (highlight) "AB" and "AC" at the same time
Thanks,


~Mithat
GeneralRe: LISTBOX How to select more than one entry at the startup Pin
Chris Jobson1-Apr-03 11:02
Chris Jobson1-Apr-03 11:02 
GeneralRe: LISTBOX How to select more than one entry at the startup Pin
Mmithat1-Apr-03 12:30
Mmithat1-Apr-03 12:30 
Generala .Net portal Pin
Madhuri Mittal1-Apr-03 7:01
Madhuri Mittal1-Apr-03 7:01 
GeneralRe: a .Net portal (clickety police :) ) Pin
Ray Cassick1-Apr-03 8:54
Ray Cassick1-Apr-03 8:54 
GeneralRe: a .Net portal (clickety police :) ) Pin
Madhuri Mittal1-Apr-03 9:37
Madhuri Mittal1-Apr-03 9:37 
GeneralNondismissable form Pin
B.W.1-Apr-03 4:55
B.W.1-Apr-03 4:55 
GeneralRe: Nondismissable form Pin
Le centriste1-Apr-03 6:40
Le centriste1-Apr-03 6:40 
GeneralRe: Nondismissable form Pin
James T. Johnson1-Apr-03 7:02
James T. Johnson1-Apr-03 7:02 
GeneralComponents Pin
victorb1-Apr-03 4:04
victorb1-Apr-03 4:04 
GeneralRe: Components Pin
Nnamdi Onyeyiri1-Apr-03 5:05
Nnamdi Onyeyiri1-Apr-03 5:05 
GeneralRe: Components Pin
Andy Smith2-Apr-03 12:34
Andy Smith2-Apr-03 12:34 
Questiontlbimp.exe and Ildasm.exe? Pin
econner1-Apr-03 3:40
econner1-Apr-03 3:40 
AnswerRe: tlbimp.exe and Ildasm.exe? Pin
pallep41-Apr-03 4:25
pallep41-Apr-03 4:25 
AnswerRe: tlbimp.exe and Ildasm.exe? Pin
monrobot131-Apr-03 4:28
monrobot131-Apr-03 4:28 
GeneralRe: tlbimp.exe and Ildasm.exe? Pin
econner1-Apr-03 4:37
econner1-Apr-03 4:37 
GeneralRe: tlbimp.exe and Ildasm.exe? Pin
econner1-Apr-03 4:53
econner1-Apr-03 4:53 
GeneralRe: tlbimp.exe and Ildasm.exe? Pin
monrobot131-Apr-03 5:38
monrobot131-Apr-03 5: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.