![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIGiEoefWOgb05-O8fPRGs37vfejevx4nPG2zctNR_xmiPOI98iSFtMAYDTUl6c0BEf7FoP73FhyOSqeforvJVT570ZKW3Z4rMwS8K_t8m8iL5NLFDonp7YQlXMjsfr9-K3B4tfsHvPwz1/s400/2008-09-28-PixieColorPicker.jpg)
To download Pixie for free: http://www.nattyware.com/pixie.html
|
Pixie a fast and tiny color picker utility
How to get Tables' name, Columns' name, and Column's type in Sql 2005
Cropper - Point and Shoot Screen Captures
JR Screen Ruler - A tool to measure a picture size
How to limit the number of rows to enter in DataGridView
How to make Visual Studio Full Screen
How to clear "Recent Projects" in Visual Studio
myTreeNode = new TreeNode(myMovie.movieName, 0, 0);
treeViewMovies.Nodes.Add(myTreeNode);
for next image you can use 1 and so .How to add images for a Node in TreeView control
public class MyTextBox : TextBox
{
public MyTextBox()
{
this.SetStyle(ControlStyles.UserPaint, true);
}
protected override void OnPaint(PaintEventArgs e)
{
SolidBrush myDrwBrush = new SolidBrush(Color.Black);
e.Graphics.DrawString(this.Text, this.Font, myDrwBrush, 0F, 0F);
}
}
- Instantiate an object from the new class on your formMyTextBox myTxtBox = new MyTextBox();
myTxtBox.Location = new System.Drawing.Point(12, 36);
myTxtBox.Name = "myTxtBox";
myTxtBox.Size = new System.Drawing.Size(260, 20);
myTxtBox.Text = "This is a test text box";
this.Controls.Add(myTxtBox);
- Disable it in your code to see the effect:this.Controls["myTxtBox"].Enabled = false
In addition, I found another similar solution in the following URL:Change ForeColor of a TextBox control
public TreeNode srchTxtInTreeView(TreeView trvToSrch, String strToSrch) |
{ |
// check if the treeView is not NULL |
if (trvToSrch == null) |
return null; |
// loop through the nodes in the treeview's root nodes |
for (int i = 0; i < trvToSrch.Nodes.Count; i++) |
{ |
TreeNode trvNode = srchTxtInTreeViewNode(trvToSrch.Nodes[i], strToSrch); |
if (trvNode != null) |
return trvNode; |
} |
return null; |
} |
public TreeNode srchTxtInTreeViewNode(TreeNode trvNode, String strToSrch) |
{ |
// check if the treeView is not NULL |
if (trvNode == null) |
return null; |
if (trvNode.Text == strToSrch) |
return trvNode; |
// loop through the nodes in the treeview's sub nodes |
for (int i = 0; i < trvNode.Nodes.Count; i++) |
{ |
// recursive call to itself to check lower level nodes |
TreeNode retTrvNode = srchTxtInTreeViewNode(trvNode.Nodes[i], strToSrch); |
if (retTrvNode != null) |
return retTrvNode; |
} |
return null; |
} |
private void button1_Click(object sender, EventArgs e) |
{ |
TreeNode retNode = srchTxtInTreeView(this.trvJust4Test, "Hello"); |
if (retNode != null) |
MessageBox.Show(retNode.ToString() + "Node Found!"); |
} |
How to search a text in Nodes of a TreeVew control?