Click here to Skip to main content
15,897,226 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: outlook profile information Pin
newdolby200525-Oct-12 4:49
newdolby200525-Oct-12 4:49 
GeneralRe: outlook profile information Pin
Pete O'Hanlon25-Oct-12 5:05
mvePete O'Hanlon25-Oct-12 5:05 
GeneralRe: outlook profile information Pin
Richard MacCutchan25-Oct-12 6:12
mveRichard MacCutchan25-Oct-12 6:12 
QuestionAddRange and RemoveRange inconsistencies Pin
n.podbielski23-Oct-12 22:33
n.podbielski23-Oct-12 22:33 
AnswerRe: AddRange and RemoveRange inconsistencies Pin
Eddy Vluggen23-Oct-12 23:40
professionalEddy Vluggen23-Oct-12 23:40 
Questiongps feature Pin
johnson_shalom22-Oct-12 23:31
johnson_shalom22-Oct-12 23:31 
AnswerRe: gps feature Pin
Pete O'Hanlon23-Oct-12 0:00
mvePete O'Hanlon23-Oct-12 0:00 
QuestionIndex was out of range. Must be non-negative and less than the size of the collection. Pin
k3nny1222-Oct-12 16:03
k3nny1222-Oct-12 16:03 
Hello, when we move the scroll bar of a program we get this exception. I think its some thing to do with Index was out of range? Is this the correct section to post in? I'm using Windows 7 64 bit if that helps. Thank you.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at Network_Design_Tool.Network.GetLineType(Int32 index)
at Network_Design_Tool.MainForm.utilSlackParamBar_Scroll(Object sender, EventArgs e)
at System.Windows.Forms.TrackBar.OnScroll(EventArgs e)
at System.Windows.Forms.TrackBar.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

C#
private void utilSlackParamBar_ValueChanged(object sender, EventArgs e)
    {
      double num1 = Convert.ToDouble(this.utilSlackParamBar.Value) / 100.0;
      double num2 = 1.0 - Convert.ToDouble(this.utilSlackParamBar.Value) / 100.0;
      this.utilParam.Text = Convert.ToString(num1);
      this.slackParam.Text = Convert.ToString(num2);
    }

    private void utilSlackParamBar_Scroll(object sender, EventArgs e)
    {
      if (!this.menuDesignUpdate.Checked)
        return;
      this.Mentor(this.comboLineType.SelectedIndex, Convert.ToDouble(this.utilSlackParamBar.Value) / 100.0 * this.network.GetLineType(this.comboLineType.SelectedIndex).Linespeed, 1.0, 0.4, 0.2, Convert.ToDouble(this.alphaParamBar.Value) / 100.0, "F", 1.0 - Convert.ToDouble(this.utilSlackParamBar.Value) / 100.0);
      this.designDone = true;
      this.DrawNetwork();
    }

    private void utilLabel_Click(object sender, EventArgs e)
    {
    }

AnswerRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Bernhard Hiller22-Oct-12 20:48
Bernhard Hiller22-Oct-12 20:48 
AnswerRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Richard MacCutchan22-Oct-12 22:31
mveRichard MacCutchan22-Oct-12 22:31 
GeneralRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
k3nny1223-Oct-12 12:15
k3nny1223-Oct-12 12:15 
GeneralRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Richard MacCutchan23-Oct-12 21:56
mveRichard MacCutchan23-Oct-12 21:56 
GeneralRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Pete O'Hanlon23-Oct-12 22:17
mvePete O'Hanlon23-Oct-12 22:17 
AnswerRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
k3nny1224-Oct-12 10:10
k3nny1224-Oct-12 10:10 
GeneralRe: Index was out of range. Must be non-negative and less than the size of the collection. Pin
Richard MacCutchan24-Oct-12 21:56
mveRichard MacCutchan24-Oct-12 21:56 
QuestionInterface Pin
Ranjalkar Raghavendra22-Oct-12 0:01
Ranjalkar Raghavendra22-Oct-12 0:01 
AnswerRe: Interface Pin
Richard MacCutchan22-Oct-12 0:12
mveRichard MacCutchan22-Oct-12 0:12 
AnswerRe: Interface Pin
Eddy Vluggen22-Oct-12 0:13
professionalEddy Vluggen22-Oct-12 0:13 
QuestionAbstract Class Pin
Ranjalkar Raghavendra22-Oct-12 0:00
Ranjalkar Raghavendra22-Oct-12 0:00 
AnswerRe: Abstract Class Pin
Mayank_Gupta_26-Oct-12 1:07
professionalMayank_Gupta_26-Oct-12 1:07 
Questiontext search in tfs at root level Pin
Member 391904919-Oct-12 10:58
Member 391904919-Oct-12 10:58 
Questiondisplay control Pin
mahesh s charan18-Oct-12 20:50
mahesh s charan18-Oct-12 20:50 
AnswerRe: display control Pin
Eddy Vluggen19-Oct-12 3:02
professionalEddy Vluggen19-Oct-12 3:02 
GeneralRe: display control Pin
mahesh s charan19-Oct-12 22:38
mahesh s charan19-Oct-12 22:38 
GeneralRe: display control Pin
Eddy Vluggen19-Oct-12 22:44
professionalEddy Vluggen19-Oct-12 22:44 

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.