Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
AnswerRe: Running an external proocess, How? Pin
Stephane Rodriguez.5-Jan-03 20:51
Stephane Rodriguez.5-Jan-03 20:51 
AnswerRe: Running an external proocess, How? Pin
wei_xiang6-Jan-03 14:35
wei_xiang6-Jan-03 14:35 
GeneralRe: Running an external proocess, How? Pin
Stephane Rodriguez.6-Jan-03 19:08
Stephane Rodriguez.6-Jan-03 19:08 
GeneralNew ECMA submission for VC# 1.1 Pin
SimonS5-Jan-03 20:06
SimonS5-Jan-03 20:06 
GeneralRe: New ECMA submission for VC# 1.1 Pin
Stephane Rodriguez.5-Jan-03 20:52
Stephane Rodriguez.5-Jan-03 20:52 
GeneralRe: New ECMA submission for VC# 1.1 Pin
Eric Gunnerson (msft)6-Jan-03 13:25
Eric Gunnerson (msft)6-Jan-03 13:25 
GeneralCustom sorting in TreeView Pin
Wizard_015-Jan-03 5:18
Wizard_015-Jan-03 5:18 
GeneralRe: Custom sorting in TreeView Pin
Stephane Rodriguez.5-Jan-03 5:41
Stephane Rodriguez.5-Jan-03 5:41 
First of all, set the System.Windows.TreeView.Sorted property to true.

Then, anytime you add a node, it calls the TreeNode.AddSorted(object) method instead of just adding it to the tail. The AddSorted(object) implementation has the compare function you can derive from and is as follows :
int AddSorted(TreeNode node) {
int local0;
int local1;
int local2;
int local3;
string local4;
CompareInfo local5;

local0 = 0;
local4 = node.Text;
if (this.childCount > 0) {
  local5 = Application.CurrentCulture.CompareInfo;
  if (local5.Compare(this.children[this.childCount - 1].Text, local4) <= 0)
    local0 = this.childCount;
  else {
    local1 = 0;
    local2 = this.childCount;
    while (local1 < local2) {
	local3 = local1 + local2 / 2;
	if (local5.Compare(this.children[local3].Text, local4) <= 0) {
	  local1 = local3 + 1;
	  continue;
	}
	local2 = local3;
    }
    local0 = local1;
  }
}
node.SortChildren();
this.InsertNodeAt(local0, node);
return local0;
}

Questionhow to get other key event? Pin
fretre5-Jan-03 5:04
fretre5-Jan-03 5:04 
AnswerRe: how to get other key event? Pin
Stephane Rodriguez.5-Jan-03 5:32
Stephane Rodriguez.5-Jan-03 5:32 
GeneralDB2 OLEDB Pin
Jassim Rahma5-Jan-03 0:16
Jassim Rahma5-Jan-03 0:16 
GeneralRe: DB2 OLEDB Pin
Stephane Rodriguez.5-Jan-03 2:58
Stephane Rodriguez.5-Jan-03 2:58 
GeneralEvent consuming Pin
kman4-Jan-03 19:15
kman4-Jan-03 19:15 
GeneralRe: Event consuming Pin
Stephane Rodriguez.4-Jan-03 21:20
Stephane Rodriguez.4-Jan-03 21:20 
GeneralRe: Event consuming Pin
kman6-Jan-03 6:56
kman6-Jan-03 6:56 
QuestionHow to do serial numbers and installation? Pin
Bog4-Jan-03 12:46
Bog4-Jan-03 12:46 
AnswerRe: How to do serial numbers and installation? Pin
Stephane Rodriguez.4-Jan-03 21:29
Stephane Rodriguez.4-Jan-03 21:29 
AnswerRe: How to do serial numbers and installation? Pin
Paul Riley5-Jan-03 4:00
Paul Riley5-Jan-03 4:00 
AnswerRe: How to do serial numbers and installation? Pin
Paul Ingles5-Jan-03 8:29
Paul Ingles5-Jan-03 8:29 
AnswerRe: How to do serial numbers and installation? Pin
jtmtv185-Jan-03 12:29
jtmtv185-Jan-03 12:29 
Generaladding images too context menu Pin
jtmtv184-Jan-03 12:29
jtmtv184-Jan-03 12:29 
GeneralRe: adding images too context menu Pin
Stephane Rodriguez.4-Jan-03 12:40
Stephane Rodriguez.4-Jan-03 12:40 
GeneralFocus Pin
Wizard_014-Jan-03 9:22
Wizard_014-Jan-03 9:22 
GeneralRe: Focus Pin
Stephane Rodriguez.4-Jan-03 9:32
Stephane Rodriguez.4-Jan-03 9:32 
Generalenumfontfamilies , dont work (?) Pin
Roger Alsing4-Jan-03 7:48
Roger Alsing4-Jan-03 7:48 

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.