I_R_Lee
Avatar/Signature-
Posts
51 -
Joined
-
Last visited
About I_R_Lee
- Birthday 10/05/1988
Personal Information
-
Occupation
I take calls at a pizza place.
-
Visual Studio .NET Version
Visual Studio .NET Enterprise Developer 2003
-
.NET Preferred Language
C#
I_R_Lee's Achievements
Newbie (1/14)
0
Reputation
-
The result of the number minus the result of its two digits added together always gives a multiple of 9. It just shows the symbol the the multiples of 9 have.
-
I know, I just mean an eval. version of 3.0.0.0 or 3.0.0.1.
-
Does anyone know where I can download DotNetBar 3.0.0.0 or 3.0.0.1, as 3.1.0.0 and 3.0.0.3 (the only other versions I could find) keep crashing Visual Studio .NET and I remember one of those versions worked.
-
This is the entire chunk of code that I used to do it: Private Sub LoadTreeView() Try trvTreeView.BeginUpdate() trvTreeView.Nodes.Clear() ' Sort out the root nodes Dim ViewByPC As New TreeNode("View by PC", 0, 0) ViewByPC.Tag = "View" Dim ViewByApp As New TreeNode("View by Application", 0, 0) ViewByApp.Tag = "View" Dim nodes() As TreeNode = {ViewByPC, ViewByApp} ' Start doing the View by PC Name nodes stuff For Each row As DataRow In tblTargetPCs.Rows ' Create new node holding the names of the PCs from the target PCs table Dim PCNode As New TreeNode(Convert.ToString(row.Item(0)), 1, 1) PCNode.Text = PCNode.Text.ToUpper ' Set the node's tag to 'PC', this is so that it can be easily identified when clicked. PCNode.Tag = "PC" For Each PCRow As DataRow In tblDomainPCs.Rows If Convert.ToString(PCRow(0)).ToUpper = PCNode.Text Then If Convert.ToBoolean(PCRow.Item(2)) Then PCNode.ImageIndex = 4 PCNode.SelectedImageIndex = 4 End If End If Next ViewByPC.Nodes.Add(PCNode) Next Dim NodeCount, t As Integer NodeCount = ViewByPC.GetNodeCount(False) - 1 Dim NodesToRemove(NodeCount) As Integer II = NodeCount I = 0 t = 0 Do Until I >= NodeCount Do Until II <= 0 ' Check for any duplicate PC name nodes and, if any, remove them If II = I Then II -= 1 If II <= 0 Then Exit Do If ViewByPC.Nodes(II).Text = ViewByPC.Nodes.Item(I).Text Then ViewByPC.Nodes(II).Remove() NodeCount -= 1 End If II -= 1 Loop I += 1 II = NodeCount If I >= NodeCount Then Exit Do Loop For I As Integer = 0 To tblTargetPCs.Rows.Count - 1 For II As Integer = 0 To ViewByPC.GetNodeCount(False) - 1 ' Add the applications installed on a PC into that PC's node If Convert.ToString(tblTargetPCs.Rows(I).Item(0)) = ViewByPC.Nodes.Item(II).Text Then Dim AppNode As New TreeNode(Convert.ToString(tblTargetPCs.Rows.Item(I).Item(1)), 2, 2) AppNode.Tag = "App" ViewByPC.Nodes(II).Nodes.Add(AppNode) End If Next Next ' Now start doing the View by Application stuff. ' Add all (if any) of the applications from the Target PCs' applications row into nodes to be parented by the View by Application node. For I As Integer = 0 To tblTargetPCs.Rows.Count - 1 Dim AppNodes As New TreeNode(Convert.ToString(tblTargetPCs.Rows.Item(I).Item(1)), 2, 2) AppNodes.Tag = "App" ViewByApp.Nodes.Add(AppNodes) Next NodeCount = ViewByApp.GetNodeCount(False) - 1 I = 0 II = NodeCount ' Remove any duplicate nodes. Do Until I >= NodeCount Do Until II <= 0 If II = I Then II -= 1 If II <= 0 Then Exit Do If ViewByApp.Nodes(II).Text = ViewByApp.Nodes(I).Text Then ViewByApp.Nodes(I).Remove() NodeCount -= 1 End If II -= 1 Loop I += 1 II = NodeCount If I >= NodeCount Then Exit Do Loop ' Now, add the PCs that the applications are installed on, underneath the Application nodes. For I As Integer = 0 To tblTargetPCs.Rows.Count - 1 For II As Integer = 0 To ViewByApp.GetNodeCount(False) - 1 If Convert.ToString(tblTargetPCs.Rows(I).Item(1)) = ViewByApp.Nodes(II).Text Then Dim PCNode As New TreeNode(Convert.ToString(tblTargetPCs.Rows(I).Item(0)), 1, 1) PCNode.Text = PCNode.Text.ToUpper PCNode.Tag = "PC" For Each PCrow As DataRow In tblDomainPCs.Rows If Convert.ToString(PCrow(0)).ToUpper = PCNode.Text Then If Convert.ToBoolean(PCrow.Item(2)) Then PCNode.ImageIndex = 4 PCNode.SelectedImageIndex = 4 End If End If Next ViewByApp.Nodes(II).Nodes.Add(PCNode) End If Next Next ' Add the nodes into the treeview trvTreeView.Nodes.AddRange(nodes) Catch ex As Exception MessageBox.Show(ex.ToString) Finally trvTreeView.EndUpdate() End Try End Sub It might be a bit messy, I haven't bothered rewriting it yet, but it does the trick nicely.
-
No, I mean the way you do in VB or C#, s = "123" + "456". I've tried that in MC++, but it won't work.
-
How do you combine strings in MC++? Also, is there a For Each...Next equivalent in MC++ and J#?
-
Aaaagh! Visual Studio .NET 2003 Enterprise Developer Trouble!
I_R_Lee replied to I_R_Lee's topic in Water Cooler
Thanks for all of your help. I've just found out what the problem was that the earliest supported version of the MSDN Library is April 2003, and it has just arrived along with a few other things. I've installed it and it works. -
:eek: Whoa! I didn't know that they came that young! I was kinda hoping that it could be me soon. I'm 14½ yrs old.
-
Does anyone know how young is the youngest MCAD or MCSD is?
-
I don't know much about 'real' C++, but I'm pretty good with MC++ (Managed C++). If you have Visual Studio .NET 2003, it has a Windows Forms designer for Managed C++. I don't know, but I'd say that MC++ is maybe more powerful than C#, both of which allow for unmanaged code. Personally, I'd use MC++ instead of MFC and C#.
-
Aaaagh! Visual Studio .NET 2003 Enterprise Developer Trouble!
I_R_Lee posted a topic in Water Cooler
Just yesterday, I downloaded Visual Studio .NET 2003 Enterprise Developer from MSDN. I have installed it and everything works beautifully, apart from the help. I have installed the January 2003 version of the MSDN Library and it is intergrated with both VS 2002 and VS 2003, but it only works properly in VS 2002. When I go to any of the help options in VS 2003, it tells me that it is not available and that I need to install the library, but it then opens. I was just wondering how to shut that notification up, because I have installed and intergrated the help with VS 2003, 3 times actually, and it does it every time and it is getting rather annoying. Please could someone help? Thanks in advance. -
How do you create custom dialogs? So you can add it to your form like an OpenFileDialog.
-
How do you include the managed assemblies in the project?
-
Ok, I just got that bit, but another problem has risen: Now that I have included (?) the DirectX dll, how do I actually use any of it's functions? When I put: using namespace Microsoft, DirectX isn't there. How do I deal with this one?
-
I am trying to something in DX9 in Managed C++, but I have just one tiny question, here it is: What do you put in the #using <Whatever.dll>? I've tried #using <Microsoft.DirectX.dll> and that didn't work, so what does it?