Click here to Skip to main content
15,898,816 members
Home / Discussions / C#
   

C#

 
GeneralGetting the HTML Page from an WebBrowser Component Pin
draco_iii8-Mar-03 23:35
draco_iii8-Mar-03 23:35 
GeneralRe: Getting the HTML Page from an WebBrowser Component Pin
Mazdak9-Mar-03 19:46
Mazdak9-Mar-03 19:46 
GeneralLimit Application Resource Usage Pin
Sassan Komeili Zadeh8-Mar-03 21:10
Sassan Komeili Zadeh8-Mar-03 21:10 
GeneralRe: Limit Application Resource Usage Pin
leppie9-Mar-03 6:43
leppie9-Mar-03 6:43 
Generalreguarding strings Pin
jtmtv188-Mar-03 20:47
jtmtv188-Mar-03 20:47 
GeneralRe: reguarding strings Pin
leppie9-Mar-03 7:58
leppie9-Mar-03 7:58 
GeneralRe: reguarding strings Pin
jtmtv189-Mar-03 16:05
jtmtv189-Mar-03 16:05 
GeneralRe: reguarding strings Pin
jtmtv189-Mar-03 16:22
jtmtv189-Mar-03 16:22 
hey leppie maybe you could help me with this. Im trying to add a "Drill" function to the TreeView open File Dialog i made for myself. The code you gave me earlyer helps me. but im having trouble expanding the nodes Foreach string in the string[] you gave me above... here is the code im trying to use. the string array does return the correct name of the node that would corrispond it.

public void DrillDirectory(string PathToDrill){<br />
		string root = Path.GetPathRoot(PathToDrill);<br />
		string nameWithoutRoot = PathToDrill.Replace(root,null);<br />
		string folders = Path.GetDirectoryName(nameWithoutRoot);<br />
		string[] tokens = PathToDrill.Split('\\');<br />
		int count = 0;<br />
		foreach(string f in tokens){<br />
			string Paths = f;<br />
			if(count ==0){<br />
				Paths =Paths+"\\";	<br />
			}<br />
			TreeNode ToNode = new TreeNode();<br />
			ToNode.Text = Paths;<br />
			if(this.Nodes.Contains(ToNode)){<br />
				this.SelectedNode = ToNode;<br />
				this.SelectedNode.Expand();<br />
			}<br />
			//MessageBox.Show(Paths);<br />
			count++;<br />
		}<br />
		//MessageBox.Show(root+"\n"+folders+"\n");<br />
	}


if you would like to see the source instead just let me know and ill email them (its only like 5kb or something..)

Jesse M

The Code Project Is Your Friend...
GeneralRe: reguarding strings Pin
leppie10-Mar-03 8:21
leppie10-Mar-03 8:21 
GeneralRe: reguarding strings Pin
Anonymous10-Mar-03 11:05
Anonymous10-Mar-03 11:05 
GeneralAccessing vairable etc in a different class Pin
monrobot138-Mar-03 12:27
monrobot138-Mar-03 12:27 
GeneralRe: Accessing vairable etc in a different class Pin
leppie8-Mar-03 12:48
leppie8-Mar-03 12:48 
GeneralRe: Accessing vairable etc in a different class Pin
monrobot139-Mar-03 11:31
monrobot139-Mar-03 11:31 
GeneralRe: Accessing vairable etc in a different class Pin
jpwkeeper10-Mar-03 1:59
jpwkeeper10-Mar-03 1:59 
GeneralRe: Accessing vairable etc in a different class Pin
monrobot1310-Mar-03 15:42
monrobot1310-Mar-03 15:42 
GeneralRe: Accessing vairable etc in a different class Pin
jpwkeeper11-Mar-03 3:40
jpwkeeper11-Mar-03 3:40 
GeneralInherited Static Constructors Pin
moredip8-Mar-03 9:51
moredip8-Mar-03 9:51 
GeneralRe: Inherited Static Constructors Pin
Nnamdi Onyeyiri8-Mar-03 10:45
Nnamdi Onyeyiri8-Mar-03 10:45 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 11:49
moredip8-Mar-03 11:49 
GeneralRe: Inherited Static Constructors Pin
leppie8-Mar-03 12:01
leppie8-Mar-03 12:01 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 12:14
moredip8-Mar-03 12:14 
GeneralRe: Inherited Static Constructors Pin
leppie8-Mar-03 12:44
leppie8-Mar-03 12:44 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 12:56
moredip8-Mar-03 12:56 
GeneralRe: Inherited Static Constructors Pin
leppie8-Mar-03 13:14
leppie8-Mar-03 13:14 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 13:43
moredip8-Mar-03 13:43 

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.