Click here to Skip to main content
15,923,087 members
Home / Discussions / C#
   

C#

 
GeneralRe: Mass Coding Pin
Guffa10-Jul-05 13:53
Guffa10-Jul-05 13:53 
GeneralRe: Mass Coding Pin
Expert Coming10-Jul-05 13:58
Expert Coming10-Jul-05 13:58 
GeneralRe: Mass Coding Pin
Guffa11-Jul-05 0:44
Guffa11-Jul-05 0:44 
GeneralDifferent Guffa Pin
Expert Coming11-Jul-05 7:39
Expert Coming11-Jul-05 7:39 
GeneralRe: Mass Coding Pin
Luis Alonso Ramos10-Jul-05 13:57
Luis Alonso Ramos10-Jul-05 13:57 
GeneralRe: Mass Coding Pin
Expert Coming10-Jul-05 13:59
Expert Coming10-Jul-05 13:59 
GeneralRe: Mass Coding Pin
DavidNohejl10-Jul-05 14:06
DavidNohejl10-Jul-05 14:06 
GeneralRe: Mass Coding Pin
Expert Coming10-Jul-05 14:13
Expert Coming10-Jul-05 14:13 
So where do I put that code.

private void map11_Click(object sender, System.EventArgs e)
{
object snd = (ComboBox)cmbLevel.SelectedItem;
ChangePicture(snd);
}

private void cmbLevel_SelectedIndexChanged(object sender, System.EventArgs e)
{
szLevel = cmbLevel.Text;
}

private void ChangePicture(object sender, System.EventArgs e, object snd)
{
// Display an OpenFileDialog so the user can select a Cursor.
openMap.Filter = "GIF Files|*.gif";
openMap.Title = "Select a GIF File";
openMap.Multiselect = true;

// Show the Dialog.
// If the user clicked OK in the dialog and
// a .GIF file was selected, open it.
if (openMap.ShowDialog() == DialogResult.OK)
{
if(openMap.FileName != "")
{
// Assign the images to the picture box according to the selected level.
if (szLevel != "Bottom")
{
"""PICTURE BOX""".Image = Image.FromStream(openMap.OpenFile());
}
if (szLevel != "Top")
{
"""PICTURE BOX""".BackgroundImage = Image.FromStream(openMap.OpenFile());
}
}
}
GeneralRe: Mass Coding Pin
Luis Alonso Ramos10-Jul-05 14:16
Luis Alonso Ramos10-Jul-05 14:16 
GeneralRe: Mass Coding Pin
Luis Alonso Ramos10-Jul-05 14:25
Luis Alonso Ramos10-Jul-05 14:25 
GeneralRe: Mass Coding Pin
Luis Alonso Ramos10-Jul-05 14:13
Luis Alonso Ramos10-Jul-05 14:13 
GeneralRe: Mass Coding Pin
Expert Coming10-Jul-05 14:21
Expert Coming10-Jul-05 14:21 
GeneralDONE Pin
Expert Coming10-Jul-05 14:26
Expert Coming10-Jul-05 14:26 
GeneralRe: DONE Pin
Luis Alonso Ramos10-Jul-05 14:28
Luis Alonso Ramos10-Jul-05 14:28 
GeneralFile Ops: Windows Service vs. EXE Pin
ahfong10-Jul-05 13:24
ahfong10-Jul-05 13:24 
GeneralRe: File Ops: Windows Service vs. EXE Pin
Dave Kreskowiak10-Jul-05 14:49
mveDave Kreskowiak10-Jul-05 14:49 
GeneralRe: File Ops: Windows Service vs. EXE Pin
ahfong10-Jul-05 15:46
ahfong10-Jul-05 15:46 
GeneralRe: File Ops: Windows Service vs. EXE Pin
Vasudevan Deepak Kumar10-Jul-05 19:50
Vasudevan Deepak Kumar10-Jul-05 19:50 
GeneralRe: File Ops: Windows Service vs. EXE Pin
Dave Kreskowiak11-Jul-05 1:46
mveDave Kreskowiak11-Jul-05 1:46 
Generaltextboxes Pin
mihai_152910-Jul-05 13:13
mihai_152910-Jul-05 13:13 
GeneralRe: textboxes Pin
Christian Graus10-Jul-05 13:37
protectorChristian Graus10-Jul-05 13:37 
GeneralRe: textboxes Pin
mihai_152910-Jul-05 23:40
mihai_152910-Jul-05 23:40 
GeneralRe: textboxes Pin
Christian Graus11-Jul-05 13:05
protectorChristian Graus11-Jul-05 13:05 
GeneralA question about ListBoxes... Pin
Lord Kixdemp10-Jul-05 10:57
Lord Kixdemp10-Jul-05 10:57 
Generalshallow/deep copy-- I give up...... Pin
...---...10-Jul-05 6:42
...---...10-Jul-05 6:42 

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.