My own Application Only !?
jojoba2010
Posts
-
C# -
C#Thanks dear ! SORry?! So whats you idea !? I have tried :
public void PopulateTree(string dir, TreeNode node)
{// get the information of the directory DirectoryInfo directory = new DirectoryInfo(dir); // loop through each subdirectory foreach (DirectoryInfo d in directory.GetDirectories()) { if (d.Name != "bin" && d.Name != "obj" && d.Name != "Properties") { // create a new node TreeNode t = new TreeNode(d.Name); // populate the new node recursively PopulateTree(d.FullName, t); node.Nodes.Add(t); // add the node to the "master" node } } // lastly, loop through each file in the directory, and add these as nodes foreach (FileInfo f in directory.GetFiles()) { string\[\] Count = f.Name.Split('.'); // create a new node if (Count.Length == 2 && f.Extension == ".cs" && f.Name != "Program.cs") { TreeNode t = new TreeNode(f.Name); // add it to the "master" node.Nodes.Add(t); } } }
private void btnGenerate_Click(object sender, EventArgs e)
{
treeView1.Nodes.Add("Resource Generator");
// PopulateTree(@"G:\Resource Final Editor For JahanBane\ResourceGenerator(FINISHED FINAL)\ResourceGenerator", treeView1.Nodes[0]);
PopulateTree(@"F:\AliWinTAP\WinTAP", treeView1.Nodes[0]);
} -
C#If you think something like this ,I am sorry for you ? My Question : I wanna this(all subfolders and forms) and fill in treeview and then when i click on any form in subfolder or anywhere it returns all controls in that form ! So who can i do that !?
-
C#I wanna this(all subfolders and forms) and fill in treeview and then when i click on any form in subfolder or anywhere it returns all controls in that form ! So who can i do that !?
-
C#WHY
?:mad: -
C#How to get all folders , subfolders and forms of my project !
-
Castingno it looks like 10,20 for font : Arial for location : 15,19
-
CastingNo I have string and want to cast it to (color,point,font,...)
-
CastingI want to convert
string
to (Point,Font,Color,...
) ? -
Castinghow to convert (or Cast)
string
toC# classess
-
string to Font [modified]PropertyInfo propertys = control.GetType().GetProperty("Font");
tc = System.ComponentModel.TypeDescriptor.GetConverter(propertys.PropertyType);propertys.SetValue(control, (
?
)"Arial", null);modified on Tuesday, February 9, 2010 2:10 AM
-
سي -
سيعکس را دیدی؟
-
سيبرو به بلاگفا من www.jojoba2011.blogfa.com
-
سي -
ثشرمنده فعلا سرم شلوغه
-
ضsorry No!
-
سیماحل شد
-
سیماPublic Class Form1 Public Function changeNum(ByVal Number As Double) As Double Dim numDouble As Double Dim num As String Dim TestArray() As String = Split(Number.ToString(), ".") num = TestArray(1) + "." + TestArray(0) numDouble = CDbl(num) Return numDouble End Function Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim testnum As Double = changeNum(12.5) End Sub End Class
-
سیمااین را فقط کپی کن