Click here to Skip to main content
15,909,091 members
Home / Discussions / C#
   

C#

 
GeneralRe: Default Browser Pin
Daniel Turini20-Mar-03 23:10
Daniel Turini20-Mar-03 23:10 
GeneralRe: Default Browser Pin
Paul Riley20-Mar-03 23:42
Paul Riley20-Mar-03 23:42 
QuestionAdding Line Numbers to a text box? Pin
se99ts20-Mar-03 11:05
se99ts20-Mar-03 11:05 
AnswerRe: Adding Line Numbers to a text box? Pin
Brandon B20-Mar-03 12:19
Brandon B20-Mar-03 12:19 
GeneralRe: Adding Line Numbers to a text box? Pin
se99ts20-Mar-03 12:23
se99ts20-Mar-03 12:23 
GeneralHINSTANCE Pin
Andrei Matei20-Mar-03 9:29
Andrei Matei20-Mar-03 9:29 
GeneralRe: HINSTANCE Pin
Stephane Rodriguez.20-Mar-03 21:27
Stephane Rodriguez.20-Mar-03 21:27 
GeneralTreeview 3 State checkbox Pin
vlusardi20-Mar-03 9:09
vlusardi20-Mar-03 9:09 
Treeview checkboxes don't have a ThreeState style, so I added a third state to my treeview with these statements:

System.Windows.Forms.TreeNode n = e.Node.Parent;
Rectangle myRect = n.Bounds;
CheckBox myCheckbox = new CheckBox();
myCheckbox.SetBounds(myRect.X - 33 , myRect.Y + 1, myRect.Height,
myRect.Height);
myCheckbox.CheckState = CheckState.Indeterminate;
myCheckbox.FlatStyle = FlatStyle.System;
treeView1.Controls.Add(myCheckbox);
myCheckbox.Show();

Problems encountered:

The checkbox doesn't move when the treeview is scrolled... I've tried to set the Anchor property for the checkbox, but it has no effect...

Unable to Uncheck the checkbox, using Hide or by creating another checkbox with the Unchecked style and calling Show.

can someone tell me how to get the checkbox to scroll with its associated treeview node, and how to uncheck it?

thanks.
GeneralRe: Treeview 3 State checkbox Pin
Stephane Rodriguez.20-Mar-03 21:35
Stephane Rodriguez.20-Mar-03 21:35 
GeneralRe: Treeview 3 State checkbox Pin
Member 72690920-Mar-04 8:12
Member 72690920-Mar-04 8:12 
GeneralShutting down a W2K computer Pin
converdb20-Mar-03 9:04
converdb20-Mar-03 9:04 
GeneralRe: Shutting down a W2K computer Pin
Mark Conger20-Mar-03 10:14
Mark Conger20-Mar-03 10:14 
GeneralRe: Shutting down a W2K computer Pin
VoidMainVoid30-Mar-03 16:26
VoidMainVoid30-Mar-03 16:26 
GeneralRe: Shutting down a W2K computer Pin
converdb2-Apr-03 7:32
converdb2-Apr-03 7:32 
GeneralInter-app communication in C# Pin
Strat61320-Mar-03 7:06
Strat61320-Mar-03 7:06 
GeneralQuestion about methods. Pin
Jon Newman20-Mar-03 6:51
Jon Newman20-Mar-03 6:51 
GeneralRe: Question about methods. Pin
Daniel Turini20-Mar-03 6:59
Daniel Turini20-Mar-03 6:59 
GeneralRe: Question about methods. Pin
Jon Newman20-Mar-03 7:10
Jon Newman20-Mar-03 7:10 
GeneralRe: Question about methods. Pin
leppie20-Mar-03 7:21
leppie20-Mar-03 7:21 
GeneralRe: Question about methods. Pin
Jon Newman20-Mar-03 7:29
Jon Newman20-Mar-03 7:29 
GeneralRe: Question about methods. Pin
Michal Januszczyk21-Mar-03 12:51
sussMichal Januszczyk21-Mar-03 12:51 
GeneralException Management Application Block Pin
Le centriste20-Mar-03 4:23
Le centriste20-Mar-03 4:23 
GeneralRe: Exception Management Application Block Pin
David Stone20-Mar-03 5:56
sitebuilderDavid Stone20-Mar-03 5:56 
GeneralNeed a URL Combo like Combo box Pin
M Hanif20-Mar-03 1:18
M Hanif20-Mar-03 1:18 
GeneralMicrosoft Masked Edit Control Pin
Romeo20-Mar-03 1:02
Romeo20-Mar-03 1:02 

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.