Click here to Skip to main content
15,917,875 members
Home / Discussions / C#
   

C#

 
QuestionMy ASP.NET 2.0 Web Pages do not run inside IIS Pin
tedhill1320-Jul-06 14:17
tedhill1320-Jul-06 14:17 
AnswerRe: My ASP.NET 2.0 Web Pages do not run inside IIS Pin
Andrei Ungureanu20-Jul-06 19:52
Andrei Ungureanu20-Jul-06 19:52 
GeneralRe: My ASP.NET 2.0 Web Pages do not run inside IIS Pin
tedhill1323-Jul-06 9:23
tedhill1323-Jul-06 9:23 
QuestionPictureBox in mdi form Pin
Saamir20-Jul-06 11:32
Saamir20-Jul-06 11:32 
AnswerRe: PictureBox in mdi form Pin
Ed.Poore20-Jul-06 12:50
Ed.Poore20-Jul-06 12:50 
QuestionRe: PictureBox in mdi form Pin
Saamir20-Jul-06 16:45
Saamir20-Jul-06 16:45 
AnswerRe: PictureBox in mdi form Pin
Ed.Poore20-Jul-06 21:07
Ed.Poore20-Jul-06 21:07 
Question.insert is inserting 2 entries instead of one... please help. Pin
jaman4dbz20-Jul-06 11:02
jaman4dbz20-Jul-06 11:02 
tabControl1.TabPages.Insert(tabControl1.TabPages.Count, newtabpage);<br />
            MessageBox.Show(Convert.ToString(tabControl1.TabPages.IndexOf(newtabpage)));


i use a breakpoint on the first line... and when i do, tabcontrol1.tabpages.count comes up as 5, therefor it should be inserting this new tabpage @ index 5... but the next line shows a messagebox, showing which index the tabpage i JUST added is at, and shows 0.

the visual output of this, is that it creates 2 tabpages one at index 0, or at the front or left side, and one at the back or right.

i don't understand how a single line of code could insert 2 tabpages...

because of the breakpoint and messagebox i don;t think the rest of the function is relevant but i'll post it anyways, because i really just want some help on this.

public void addatab(string title, string url, string tooltip)<br />
{<br />
    TabPage newtabpage = blanktabpage;<br />
    foreach (WebBrowser i in newtabpage.Controls)<br />
    {<br />
        i.Name = title;<br />
    }<br />
    newtabpage.Name = "tab" + title;<br />
    newtabpage.Text = title;<br />
    newtabpage.Tag = url;<br />
    newtabpage.ToolTipText = tooltip;<br />
    tabControl1.TabPages.Insert(tabControl1.TabPages.Count, newtabpage);<br />
    MessageBox.Show(Convert.ToString(tabControl1.TabPages.IndexOf(newtabpage)));<br />
}

also i tried using .add first, and that produced the same thing... i used .insert so i could blatently point out the conundrum =P

i've had the problem posted on microsofts site... msdn or something like thatm, but didnt get a response for a month... and i posted on my university forum, but the one person who kept helping me out, appears to be taking a break from the forums... so i've finally came here, because i know this place has some notbad tutorials and such, it's gotta have some smart people Wink | ;)

also while im waiting i'll look more indepth of what exactly insert and add does for collections, to see if i can get an awnser there.

FFXI ftw
beatmania IIDX ftw
Soccer ftw
AnswerRe: .insert is inserting 2 entries instead of one... please help. Pin
Ed.Poore20-Jul-06 12:48
Ed.Poore20-Jul-06 12:48 
AnswerRe: .insert is inserting 2 entries instead of one... please help. Pin
Alexander Wiseman20-Jul-06 13:33
Alexander Wiseman20-Jul-06 13:33 
AnswerRe: .insert is inserting 2 entries instead of one... please help. Pin
jaman4dbz20-Jul-06 14:09
jaman4dbz20-Jul-06 14:09 
GeneralRe: .insert is inserting 2 entries instead of one... please help. Pin
Alexander Wiseman20-Jul-06 14:26
Alexander Wiseman20-Jul-06 14:26 
GeneralRe: .insert is inserting 2 entries instead of one... please help. Pin
jaman4dbz21-Jul-06 6:21
jaman4dbz21-Jul-06 6:21 
QuestionSecurity Permissions Pin
JuanAlbertoMD20-Jul-06 10:21
JuanAlbertoMD20-Jul-06 10:21 
QuestionAutomatic variable name incrementation [modified] Pin
The Big Bunny20-Jul-06 10:21
The Big Bunny20-Jul-06 10:21 
AnswerRe: Automatic variable name incrementation Pin
ankita patel20-Jul-06 11:00
ankita patel20-Jul-06 11:00 
AnswerRe: Automatic variable name incrementation Pin
led mike20-Jul-06 11:06
led mike20-Jul-06 11:06 
GeneralRe: Automatic variable name incrementation Pin
The Big Bunny21-Jul-06 8:51
The Big Bunny21-Jul-06 8:51 
Questionhelp file issue Pin
_tasleem20-Jul-06 9:42
_tasleem20-Jul-06 9:42 
AnswerRe: help file issue Pin
Ed.Poore20-Jul-06 12:41
Ed.Poore20-Jul-06 12:41 
GeneralRe: help file issue Pin
_tasleem21-Jul-06 1:06
_tasleem21-Jul-06 1:06 
GeneralRe: help file issue Pin
Ed.Poore21-Jul-06 12:09
Ed.Poore21-Jul-06 12:09 
GeneralRe: help file issue Pin
_tasleem21-Jul-06 20:30
_tasleem21-Jul-06 20:30 
QuestionDocumentation of DLL(.net) in design time Pin
mosquets20-Jul-06 9:16
mosquets20-Jul-06 9:16 
AnswerRe: Documentation of DLL(.net) in design time Pin
Ed.Poore20-Jul-06 12:37
Ed.Poore20-Jul-06 12:37 

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.