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

C#

 
GeneralVS.NET vs. aximp Pin
Paul Riley26-Jan-03 8:13
Paul Riley26-Jan-03 8:13 
GeneralRe: VS.NET vs. aximp Pin
Stephane Rodriguez.26-Jan-03 8:25
Stephane Rodriguez.26-Jan-03 8:25 
GeneralRe: VS.NET vs. aximp Pin
Paul Riley26-Jan-03 10:32
Paul Riley26-Jan-03 10:32 
GeneralRe: VS.NET vs. aximp Pin
Heath Stewart26-Jan-03 11:33
protectorHeath Stewart26-Jan-03 11:33 
QuestionSimilar function as WindowFromPoint in .NET ? Pin
Wizard_0126-Jan-03 3:03
Wizard_0126-Jan-03 3:03 
AnswerRe: Similar function as WindowFromPoint in .NET ? Pin
leppie26-Jan-03 3:59
leppie26-Jan-03 3:59 
GeneralProblems with TabControl & XP Visual Styles Pin
Furty25-Jan-03 20:17
Furty25-Jan-03 20:17 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
leppie25-Jan-03 20:27
leppie25-Jan-03 20:27 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
Heath Stewart25-Jan-03 22:32
protectorHeath Stewart25-Jan-03 22:32 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
leppie25-Jan-03 22:40
leppie25-Jan-03 22:40 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
Furty26-Jan-03 10:01
Furty26-Jan-03 10:01 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
Heath Stewart26-Jan-03 11:36
protectorHeath Stewart26-Jan-03 11:36 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
A.Wegierski26-Jan-03 19:15
A.Wegierski26-Jan-03 19:15 
GeneralRe: Problems with TabControl & XP Visual Styles Pin
A.Wegierski28-Jan-03 2:36
A.Wegierski28-Jan-03 2:36 
Questionif you could code one language for the rest of your life...what would it be ? Pin
jtmtv1825-Jan-03 17:44
jtmtv1825-Jan-03 17:44 
AnswerRe: if you could code one language for the rest of your life...what would it be ? Pin
leppie25-Jan-03 21:17
leppie25-Jan-03 21:17 
AnswerRe: if you could code one language for the rest of your life...what would it be ? Pin
Heath Stewart25-Jan-03 22:28
protectorHeath Stewart25-Jan-03 22:28 
AnswerRe: if you could code one language for the rest of your life...what would it be ? Pin
SimonS27-Jan-03 3:59
SimonS27-Jan-03 3:59 
Questioncreating an object? Pin
jinz25-Jan-03 11:27
jinz25-Jan-03 11:27 
AnswerRe: creating an object? Pin
Jeff J25-Jan-03 11:40
Jeff J25-Jan-03 11:40 
QuestionHow to get the index of a DataRow in a DataTable? Pin
lnong25-Jan-03 11:15
lnong25-Jan-03 11:15 
GeneralTreeNode checking Pin
Member 18598625-Jan-03 9:42
Member 18598625-Jan-03 9:42 
Hey every one, does any one know what the hell is wrong with this code =/
i am trying add a Node(file to the treeNode)works fine except
that
i am doing a check to see that the user wont add a same file 2wice but its
not returning a right value
its the second if statment
can you tell me whats wrong with my code thx


//Add Nodes to Tree
<br />
private void Add_Click(object sender, System.EventArgs e) {<br />
<br />
TreeNode currentNode;<br />
<br />
<br />
OpenFileDialog ofd = new OpenFileDialog();<br />
<br />
ofd.Filter="lib files (*.dll)|*.dll|Executable files(*.exe)|*.exe";<br />
<br />
<br />
if(ofd.ShowDialog()==DialogResult.OK){<br />
<br />
currentNode = new TreeNode(Path.GetFullPath(ofd.FileName));<br />
<br />
<br />
if(treeView1.Nodes.Contains(currentNode)==false){<br />
<br />
treeView1.Nodes.Add(currentNode);<br />
<br />
numberFiles = treeView1.Nodes.Count;<br />
<br />
Counter.Text=numberFiles.ToString();<br />
<br />
}<br />
<br />
else{<br />
<br />
MessageBox.Show("File AlreadyBeen selected","Warnning");<br />
<br />
currentNode=null;<br />
<br />
}<br />
<br />
}<br />
<br />
}<br />



Thanks in Advance

Amir
GeneralRe: TreeNode checking Pin
leppie25-Jan-03 10:52
leppie25-Jan-03 10:52 
GeneralRe: TreeNode checking Pin
Member 18598625-Jan-03 11:11
Member 18598625-Jan-03 11:11 
GeneralRe: TreeNode checking Pin
leppie25-Jan-03 11:35
leppie25-Jan-03 11:35 

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.