Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

jojoba2010

@jojoba2010
About
Posts
149
Topics
51
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C#
    J jojoba2010

    My own Application Only !?

    C# csharp tutorial

  • C#
    J jojoba2010

    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# csharp tutorial

  • C#
    J jojoba2010

    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# csharp tutorial

  • C#
    J jojoba2010

    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# csharp tutorial

  • C#
    J jojoba2010

    WHY?:mad:

    C# csharp tutorial

  • C#
    J jojoba2010

    How to get all folders , subfolders and forms of my project !

    C# csharp tutorial

  • Casting
    J jojoba2010

    no it looks like 10,20 for font : Arial for location : 15,19

    C# csharp tutorial

  • Casting
    J jojoba2010

    No I have string and want to cast it to (color,point,font,...)

    C# csharp tutorial

  • Casting
    J jojoba2010

    I want to convert string to (Point,Font,Color,...) ?

    C# csharp tutorial

  • Casting
    J jojoba2010

    how to convert (or Cast) string to C# classess

    C# csharp tutorial

  • string to Font [modified]
    J jojoba2010

    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

    C# question

  • سي
    J jojoba2010

    www.jojoba2011.blogfa.com

    C#

  • سي
    J jojoba2010

    عکس را دیدی؟

    C#

  • سي
    J jojoba2010

    برو به بلاگفا من www.jojoba2011.blogfa.com

    C#

  • سي
    J jojoba2010

    سلام jojoba2011.blogfa.com

    C#

  • ث
    J jojoba2010

    شرمنده فعلا سرم شلوغه

    C#

  • ض
    J jojoba2010

    sorry No!

    C#

  • سیما
    J jojoba2010

    حل شد

    C#

  • سیما
    J jojoba2010
    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
    
    C#

  • سیما
    J jojoba2010

    این را فقط کپی کن

    C#
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups