1809:
How can I display the limits/margins of the project, in the overview part of the control

exg2antt1.BeginUpdate();
exg2antt1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAAEhABVADg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGUYBRgmFgAQhFcZQSBcEgTDaMYzgMBYJhEMQyDSAUIjPEyMg0DjIIwgJIUaw0GSXIRkGQZC" +
"hGJooTJQMrTZIEbQxHSkIyRVTmZACS5NRZPYy0FAkQhlFSbJBCOKwVomR5KUxTVg1DJwahLCKULLhGI7KgObIRSJOcZ1XAdCQ0cB0XpAC6LaqSA4nSjKcqwJKEZRJIyj" +
"JwgSrrWhePoJYBVAAQPQdDYaCivK5uWK6PqKUIlZBQGQVNS1MRrLSEcwgPKgAyzDadZzfQAWTZFTQjN61RgtXR6eyoAJ0aziFDVFo0WRlEwacorGhcbgPPrCRrxGBVNw" +
"gGOJo4kIeASB0Zw/iGDoym6dobh2XpiDWJo5HMd56h6dxjlICIEhQDQmDOIZUmQZZlAADpYHIEQ3nUGgNhCEIhAkawamAAAYEWRAGB2bA2EqYg2AyA4glgPgSgQYRIEI" +
"FoEmEeBWBiBphFAAgPDwDgDEycQ4A0Q5IwkDwjgyWA8k4SIsmUNoPEOFJbD0DhjHINA3E8Q4eDiDojhiYJmg+Ixokic4LmKQxiCkNk2CCX4DmGaA0nAN4NBiDJSDwTgT" +
"Eycg4E0WIYlcPJiiiMJZhCTYpgCcw5g2OYOGWGQmCkEJkheYopGoVw1GSGQuA2ExIlOQJcDOZJzEDSJNBiAgiU4Q5GCeChNHkHJygsaBzGaCYimiCY0mMNZoCMWhUDUJ" +
"5pkYTIDk6YxwkwO5NlMOoch6JQJm4U4JCIMxWFSKbCBoKIgmJDAuDgKhohKIoTk0GhaHOJgNiMKJuDaaYzHCTYnAyaZmjSKIiDiCghjEYg6AaR4yk0OpOiFSQLAKNgjG" +
"cQ40lkMhOmqZo7DKTpzG6Pw3CmYx2HiNAsCqBh8h6Z5bh6T4oC0G4Im+OAtlMNpTjUTYDCKVo2C3QBLi6a5bH6YY4EyehzAGO4wEwDoejwK5rnK95vDgPJsDWTBjjSWA" +
"xnEK5aleNhriuawKi8Lp7H8HpHHGXBskyQpxguXwNgMTpDFiRZDnEExfBSPRvHuXwYkycYslae5NjMQwrDGNZxFyHINDsDRTBMKZKnKLIwm2S4xF0Jw8lKTIcm9eA0hy" +
"QwuksM5jiyVQwnQDQIlaVo0EyLwQlGcRNCME5EjKfYXGSWEhDMQ5QnOahHG6KwoFOCoFiOaBNlcdIjiQag7HOL0dwuxKC1aeNQI4BQihNDoEwXowxmh8CIL8Yg8ROBfA" +
"SMcaIOR6CHBkMgLgrwUjLHkHMG4NQaBzE4MQaIyw5gxEsH0Dw9FBBNA6PUDoLwpjTHqF0N4WQShSHgGwcY2RkhdFCL8bYdwOivDqNse4fRnh5G+PYEgaR1B0E4B4D4ix" +
"xB4G8E8SI5R8D+DeJUc4eRPB/EaJ8DwpwojDHUPofwtxYjtH2F4d4sx3j7E+AcXo8B9geFCNYOIHhfg/GmPQPoXw3jZHuPoX4hxuj1H8J8T43RPhDEgM8eo/B/iQGuPw" +
"fxEh1guAIAwQAgCAg");
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	var_Chart.OverviewVisible = (exontrol.EXG2ANTTLib.OverviewVisibleEnum)0x400 | exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowSelMargins | exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowMargins | exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowDateTimeScaleBottom | exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
	var_Chart.OverviewHeight = 64;
	var_Chart.OverviewSelBackColor32 = 0x1000000;
	var_Chart.OverviewBackColor = Color.FromArgb(250,250,250);
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("2/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("2/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 3"),"Task",Convert.ToDateTime("3/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("3/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1808:
Is it possible to display a time-scale for the overview part of the control (separated)

exg2antt1.BeginUpdate();
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	var_Chart.OverviewVisible = exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowDateTimeScaleSplit | exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
	var_Chart.OverviewHeight = 48;
	var_Chart.LevelCount = 2;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("2/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("2/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 3"),"Task",Convert.ToDateTime("3/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("3/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1807:
Is it possible to display a time-scale for the overview part of the control

exg2antt1.BeginUpdate();
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	var_Chart.OverviewVisible = exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowDateTimeScale | exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
	var_Chart.LevelCount = 2;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("2/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("2/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 3"),"Task",Convert.ToDateTime("3/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("3/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1806:
How can I display the time-scale only, in the overview part of the control

exg2antt1.BeginUpdate();
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	var_Chart.OverviewVisible = exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowDateTimeScale | exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewHideBars | exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
	var_Chart.LevelCount = 2;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("2/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("2/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 3"),"Task",Convert.ToDateTime("3/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("3/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1805:
How can I detect that the mouse pointer is within an InsideZoom object
// MouseMove event - Occurs when the user moves the mouse.
private void exg2antt1_MouseMoveEvent(object sender,short   Button,short   Shift,int   X,int   Y)
{
	exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
		Date d = var_Chart.get_DateFromPoint(-1,-1);
		Object iz = (var_Chart.InsideZooms.get_Contains(d) as Object);
		System.Diagnostics.Debug.Print( d.ToString() );
		System.Diagnostics.Debug.Print( "If the iz object is nothing, the date is not zoomed, else it is." );
		System.Diagnostics.Debug.Print( iz.ToString() );
}
//this.exg2antt1.MouseMoveEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseMoveEventHandler(this.exg2antt1_MouseMoveEvent);

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.AllowInsideZoom = true;
	var_Chart.InsideZooms.Add(Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

1804:
Is it possible to word-wrap text/caption on the bar, so it gets displayed on multiple lines

exg2antt1.BeginUpdate();
exg2antt1.ScrollBySingleLine = true;
exg2antt1.ItemsAllowSizing = exontrol.EXG2ANTTLib.ItemsAllowSizingEnum.exResizeItem;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exHLines;
exg2antt1.HeaderHeight = 28;
exg2antt1.DefaultItemHeight = 24;
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exg2antt1.HeaderAppearance = exontrol.EXG2ANTTLib.AppearanceEnum.Bump;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exHLines;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars.Copy("Task","TaskB");
		var_Bar.Height = 15;
		var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBox;
		var_Bar.StartColor = Color.FromArgb(204,232,255);
		var_Bar.EndColor = var_Bar.StartColor;
		var_Bar.Color = Color.FromArgb(0,0,255);
	exontrol.EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars["Task"];
		var_Bar1.Height = -1;
		var_Bar1.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBox;
		var_Bar1.StartColor = Color.FromArgb(204,232,255);
		var_Bar1.EndColor = var_Bar1.StartColor;
		var_Bar1.Color = Color.FromArgb(0,0,255);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Word-Wrap Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A1",null);
	var_Items.set_ItemBar(h,"A1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(2,2,100%-4,100%-4),text=`This is a bit of text that should break the line`,wordwrap]");
	h = var_Items.AddItem("Word-Wrap Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/19/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2",null);
	var_Items.set_ItemBar(h,"A2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(2,2,100%-4,100%-4),align=0x11,text=`This is a bit of text that should break the line`,wordwrap]");
	h = var_Items.AddItem("Word-Wrap Back");
	var_Items.AddBar(h,"TaskB",Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A3",null);
	var_Items.set_ItemBar(h,"A3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"client[align=0x11,text=`This is a bit of text that should break the line`,wordwrap]");
	var_Items.set_ItemBar(h,"A3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,2);
exg2antt1.EndUpdate();

1803:
Can I set the search box / filterbarprompt to invisible, so I can use my own input and *string* via VBA
exg2antt1.BeginUpdate();
exg2antt1.ColumnAutoResize = true;
exg2antt1.ContinueColumnScroll = false;
exg2antt1.MarkSearchColumn = false;
exg2antt1.SearchColumnIndex = 1;
exg2antt1.FilterBarHeight = 0;
exg2antt1.FilterBarPromptVisible = true;
exg2antt1.Chart.set_PaneWidth(true,0);
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	(var_Columns.Add("Name") as exontrol.EXG2ANTTLib.Column).Width = 96;
	(var_Columns.Add("Title") as exontrol.EXG2ANTTLib.Column).Width = 96;
	var_Columns.Add("City");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h0 = var_Items.AddItem("Nancy Davolio");
	var_Items.set_CellValue(h0,1,"Sales Representative");
	var_Items.set_CellValue(h0,2,"Seattle");
	h0 = var_Items.AddItem("Andrew Fuller");
	var_Items.set_CellValue(h0,1,"Vice President, Sales");
	var_Items.set_CellValue(h0,2,"Tacoma");
	var_Items.set_SelectItem(h0,true);
	h0 = var_Items.AddItem("Janet Leverling");
	var_Items.set_CellValue(h0,1,"Sales Representative");
	var_Items.set_CellValue(h0,2,"Kirkland");
	h0 = var_Items.AddItem("Margaret Peacock");
	var_Items.set_CellValue(h0,1,"Sales Representative");
	var_Items.set_CellValue(h0,2,"Redmond");
	h0 = var_Items.AddItem("Steven Buchanan");
	var_Items.set_CellValue(h0,1,"Sales Manager");
	var_Items.set_CellValue(h0,2,"London");
	h0 = var_Items.AddItem("Michael Suyama");
	var_Items.set_CellValue(h0,1,"Sales Representative");
	var_Items.set_CellValue(h0,2,"London");
	h0 = var_Items.AddItem("Robert King");
	var_Items.set_CellValue(h0,1,"Sales Representative");
	var_Items.set_CellValue(h0,2,"London");
	h0 = var_Items.AddItem("Laura Callahan");
	var_Items.set_CellValue(h0,1,"Inside Sales Coordinator");
	var_Items.set_CellValue(h0,2,"Seattle");
	h0 = var_Items.AddItem("Anne Dodsworth");
	var_Items.set_CellValue(h0,1,"Sales Representative");
	var_Items.set_CellValue(h0,2,"London");
exg2antt1.FilterBarPromptPattern = "London";
exg2antt1.EndUpdate();

1802:
How to load a hierarchy using the control's DataSource property (Parent-ID-Relation)

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.SetParent(Item,var_Items.get_FindItem(var_Items.get_CellValue(Item,"ReportsTo"),"EmployeeID",null));
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

exg2antt1.BeginUpdate();
exg2antt1.Chart.set_PaneWidth(true,0);
exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot;
exg2antt1.ColumnAutoResize = false;
exg2antt1.ContinueColumnScroll = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("SELECT * FROM Employees ORDER BY ReportsTo","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\SAMPLE.MDB",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.Items.set_ExpandItem(0,true);
exg2antt1.EndUpdate();

1801:
How can I highlight the limits/margins of a summary bar, according with the child bars

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABRkIQAAYAQGKQYhiAKBQAGaAoDDcMA4QwAAyjhwkAIIQK/cZRPC0Ow8GSEZAgOKIch6FgCQjEIxDKIsVRZEiDYRmGLpIiOJoWSQBUIyJKoA" +
"Q0f6fIziaTpNiGL4yTBPMzyJRcEx1GyBZ5negaAo2AwIQiUBomGahajkMqZQAJaCSCI2Y4eDZCIoTXR1WAxDq3ZruKpLUpOc4DOrEMIwCEBA=");
	var_Appearance.Add(2,"CP:1 -4 0 5 0");
	var_Appearance.Add(3,"gBFLBCJwBAEHhEJAAEhABOMGACAADACAxSDEMQBQKAAzQFAYbhgHCGAAGUYBRgmFgAQhFcZQSKUOQTDKMIziYBYJhEMQyDAAUIjOKsIhkGYcZAGQBJCjWGodQRHc5TN" +
"CMTRRECDY4kAYpAiKRYbSpAcyQHQ8bQtHwYKAoOg6JjWIAHRqCMI0XINHQ3FwaRJsCwoJhOZIDWZENDQTSsLSxJSkIRfe4wArNf4XVBVMqSdKEZRJLybJwADApAo2eIl" +
"QjJdQ4TSdBSdQwDLYhECpbwCT6JT7jGLQJZsNyvBLIYDrKA8UozFqHQRYNhxDZNShhM6rMigPQQAq8AKlRbVNzXLamLwHRS9BpoORhUjHD4bVxVOyaPpAAaBFbhI44QZ" +
"OHYNYfjgaI0BySp8HMVZdlgaxtBqexWkqOw1lGbZzlwfQ0AwYR/gka5FiMGpgkQYYviGV4kBUWpmlsaYGHMEgACECQUAaEYMHQHRHCGFRBECRJkGQQgTGCVBoDYQhCgQ" +
"JZoG4EIAGEFwGB+dwxHaB5iAabReggYhGnUToJGIRgCCiCBdjiNguGmYo4gIKoMGIKIeDSCYTGiXg4EITo3hAiJAICA==");
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.Bars["Summary"].Color32 = 0x3000000;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int hSummary = var_Items.AddItem("Summary");
	var_Items.AddBar(hSummary,"Summary",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	int hTask = var_Items.InsertItem(hSummary,null,"Task A");
	var_Items.AddBar(hTask,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	hTask = var_Items.InsertItem(hSummary,null,"Task B");
	var_Items.AddBar(hTask,"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	hTask = var_Items.InsertItem(hSummary,null,"Task C");
	var_Items.AddBar(hTask,"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	var_Items.set_ExpandItem(hSummary,true);
	var_Items.DefineSummaryBars(hSummary,"",-1,"<*>");
	var_Items.set_ItemBar(hSummary,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exSummaryBarBackColor,33554432);
exg2antt1.EndUpdate();

1800:
How can I highlight somehow the child bars of a summary bar

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.Bars["Task"].Color = Color.FromArgb(240,240,240);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int hSummary = var_Items.AddItem("Summary");
	var_Items.AddBar(hSummary,"Project Summary",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	int hTask = var_Items.InsertItem(hSummary,null,"Task A");
	var_Items.AddBar(hTask,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	hTask = var_Items.InsertItem(hSummary,null,"Task B");
	var_Items.AddBar(hTask,"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	hTask = var_Items.InsertItem(hSummary,null,"Task C");
	var_Items.AddBar(hTask,"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	var_Items.set_ExpandItem(hSummary,true);
	var_Items.DefineSummaryBars(hSummary,"",-1,"<*>");
	var_Items.set_ItemBar(hSummary,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exSummaryBarBackColor,65536);
	var_Items.set_ItemBar(hSummary,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exSummaryBarBackColorTransparent,50);
exg2antt1.EndUpdate();

1799:
How do I change the color for the selected bars, without showing the frame arround

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.SelBarColor32 = 0x7f0000ff;
	var_Chart.set_PaneWidth(false,48);
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/6/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/11/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C",null);
	var_Items.set_ItemBar(0,"<A B>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true);
exg2antt1.EndUpdate();

1798:
Is it possible to enumerate the activities/bars of critical path

// BarResize event - Occurs when a bar is moved or resized.
private void exg2antt1_BarResize(object sender,int   Item,object   Key)
{
	exg2antt1.Items.SchedulePDM(Item,Key);
}
//this.exg2antt1.BarResize += new exontrol.EXG2ANTTLib.exg2antt.BarResizeEventHandler(this.exg2antt1_BarResize);

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,96);
	var_Chart.Bars["Task"].set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<%=int(%269) > 0 ? (`<b>` + %269 + `</b>`) : ``%>");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int hSummary1 = var_Items.AddItem("Summary");
	var_Items.set_ItemBold(hSummary1,true);
	var_Items.AddBar(hSummary1,"Summary",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"sum",null);
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.DefineSummaryBars(hSummary1,"sum",h1,"");
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.DefineSummaryBars(hSummary1,"sum",h2,"");
	var_Items.AddLink("L1",h1,"",h2,"");
	int h3 = var_Items.AddItem("Task 3");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.DefineSummaryBars(hSummary1,"sum",h3,"");
	var_Items.AddLink("L2",h2,"",h3,"");
	int h4 = var_Items.AddItem("Task 4");
	var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.DefineSummaryBars(hSummary1,"sum",h4,"");
	var_Items.AddLink("L3",h1,"",h4,"");
	var_Items.set_DefSchedulePDM(exontrol.EXG2ANTTLib.DefSchedulePDMEnum.exPDMCriticalPathBarColor,65280);
	var_Items.SchedulePDM(h1,"");
exg2antt1.EndUpdate();

1797:
How can I add a SF link

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/25/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	var_Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	int h3 = var_Items.AddItem("Task 3");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	int h4 = var_Items.AddItem("Task 4");
	var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null);
	int h5 = var_Items.AddItem("Task 5");
	var_Items.AddBar(h5,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K5",null);
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.AddLink("L2",h2,"K2",h3,"K3");
	var_Items.AddLink("L3",h3,"K3",h4,"K4");
	var_Items.AddLink("L4",h4,"K4",h5,"K5");
	var_Items.set_Link("L4",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkStartPos,0);
	var_Items.set_Link("L4",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkEndPos,2);
	var_Items.set_Link("L4",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkColor,65280);
	var_Items.SchedulePDM(0,"K5");
exg2antt1.Chart.ShowLinks = exontrol.EXG2ANTTLib.ShowExtendedLinksEnum.exShowExtendedLinks;
exg2antt1.EndUpdate();

1796:
How do I get the Start and End date of a bar

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exg2antt1.Debug = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	int h = var_Items[1];
	var_Items.set_ItemBold(h,true);
	System.Diagnostics.Debug.Print( "Start of " );
	System.Diagnostics.Debug.Print( var_Items.get_FirstItemBar(h).ToString() );
	System.Diagnostics.Debug.Print( var_Items.get_ItemBar(h,var_Items.get_FirstItemBar(h),exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarStart).ToString() );
	System.Diagnostics.Debug.Print( "End of  " );
	System.Diagnostics.Debug.Print( var_Items.get_FirstItemBar(h).ToString() );
	System.Diagnostics.Debug.Print( var_Items.get_ItemBar(h,var_Items.get_FirstItemBar(h),exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEnd).ToString() );
exg2antt1.EndUpdate();

1795:
I haven't found options to change/localize (in German, or my current regional settings) the captions/text/strings ( dates, tooltip ) that shows in the chart area (method 2)

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstWeekDay = var_Chart.LocFirstWeekDay;
	var_Chart.MonthNames = var_Chart.LocMonthNames;
	var_Chart.WeekDays = var_Chart.LocWeekDays;
	var_Chart.AMPM = var_Chart.LocAMPM;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay;

1794:
Is it possible to change caption of the print and print preview, as it just says "Untitled Document", but I cant find the code that writes this caption

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
exg2antt1.EndUpdate();
// Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
exontrol.EXPRINTLib.exprint var_Print = new exontrol.EXPRINTLib.exprint();
	var_Print.Caption = "This is your new caption for print and print preview";
	var_Print.AutoRelease = false;
	var_Print.PrintExt = (exg2antt1 as exontrol.EXG2ANTTLib.exg2antt);
	var_Print.Preview();

1793:
Is it possible to specify the A4 paper size for the print preview
exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
exg2antt1.EndUpdate();
// Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
exontrol.EXPRINTLib.exprint var_Print = new exontrol.EXPRINTLib.exprint();
	var_Print.set_Settings(exontrol.EXPRINTLib.FieldsEnum.exPaperSize,9);
	var_Print.AutoRelease = false;
	var_Print.PrintExt = (exg2antt1 as exontrol.EXG2ANTTLib.exg2antt);
	var_Print.Preview();

1792:
Is it possible to tell the print preview to open up in "landscape mode" by default, not in "portrait mode"
exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
exg2antt1.EndUpdate();
// Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
exontrol.EXPRINTLib.exprint var_Print = new exontrol.EXPRINTLib.exprint();
	var_Print.PageOrientation = exontrol.EXPRINTLib.PageOrientationEnum.exLandscape;
	var_Print.AutoRelease = false;
	var_Print.PrintExt = (exg2antt1 as exontrol.EXG2ANTTLib.exg2antt);
	var_Print.Preview();

1791:
How do I prevent a caption outside the bar from overlapping other bars

exg2antt1.BeginUpdate();
exg2antt1.ScrollBySingleLine = true;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	var_Chart.Bars.Copy("Task","Default-Task");
	var_Chart.Bars["Task"].OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsIncludeCaption | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStackAutoArrange | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A1","task");
	var_Items.set_ItemBar(h,"A1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2","task");
	var_Items.set_ItemBar(h,"A2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,16);
	h = var_Items.AddItem("Task 2");
	var_Items.AddBar(h,"Default-Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A1","task");
	var_Items.set_ItemBar(h,"A1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
	var_Items.AddBar(h,"Default-Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2","task");
	var_Items.set_ItemBar(h,"A2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,16);
exg2antt1.EndUpdate();

1790:
How do I clip/hide/align the bar's extra-caption/text based on the bar's size/width/length

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Clip");
exg2antt1.ScrollBySingleLine = true;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exRowLines;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.AllowResizeChart = exontrol.EXG2ANTTLib.ResizeChartEnum.exAllowResizeChartMiddle | exontrol.EXG2ANTTLib.ResizeChartEnum.exAllowResizeChartHeader;
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exRowLines;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/23/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,216);
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBox;
		var_Bar.Color = Color.FromArgb(164,164,164);
		var_Bar.StartColor = Color.FromArgb(240,240,240);
		var_Bar.EndColor = var_Bar.StartColor;
		var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsIncludeCaption | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStackAutoArrange | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack;
		var_Bar.Height = 15;
	var_Chart.MinUnitWidth = var_Chart.UnitWidth;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("no clip, (0-2)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"no clip, right(<b>2</b>)");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,2);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"no clip, center(<b>1</b>)");
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,1);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"no clip, left(<b>0</b>)");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,0);
	h = var_Items.AddItem("clip, inside (3-5)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"clip, inside, right(<b>5</b>)");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,5);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"clip, inside, center(<b>4</b>)");
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,4);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"clip, inside, left(<b>3</b>)");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,3);
	h = var_Items.AddItem("hide on min width, clip if not fit, inside (6-8)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/26/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"hide on min width, clip if not fit, inside, right(<b>8</b>)");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,8);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/26/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"hide on min width, clip if not fit, inside, center(<b>7</b>)");
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,7);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/26/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"hide on min width, clip if not fit, inside, left(<b>6</b>)");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,6);
	h = var_Items.AddItem("hide if not fit, no clip, inside (9-11)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"hide if not fit, no clip, inside, right(<b>11</b>)");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,11);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"hide if not fit, no clip, center(<b>10</b>)");
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,10);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"hide if not fit, no clip, inside, left(<b>9</b>)");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,9);
	h = var_Items.AddItem("no clip, inside, outside (12-14)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"no clip, inside, outside, right(<b>14</b>)");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,14);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"no clip, inside, outside, center(<b>13</b>)");
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,13);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"no clip, inside, outside, left(<b>12</b>)");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,12);
	h = var_Items.AddItem("no clip, outside (16-18)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"no clip, outside, right(<b>18</b>)");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,18);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"no clip, outside, center(<b>17</b>)");
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,17);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"no clip, outside, left(<b>16</b>)");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,16);
exg2antt1.EndUpdate();

1789:
What options do I have to show the links between bars (rectangular SEV, starts vertically, ends vertically)

exg2antt1.BeginUpdate();
exg2antt1.AntiAliasing = true;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.NonworkingDays = 0;
	var_Chart.LinksWidth = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("");
	int h3 = var_Items.AddItem("Task 3");
	var_Items.AddItem("");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddItem("");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddItem("");
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.AddLink("L2",h2,"K2",h3,"K3");
	var_Items.set_Link("<*>",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowRound,5);
exg2antt1.EndUpdate();

1788:
What options do I have to show the links between bars (rectangular SV, starts vertically, ends horizontally)

exg2antt1.BeginUpdate();
exg2antt1.AntiAliasing = true;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.NonworkingDays = 0;
	var_Chart.LinksWidth = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("");
	int h3 = var_Items.AddItem("Task 3");
	var_Items.AddItem("");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddItem("");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddItem("");
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.AddLink("L2",h2,"K2",h3,"K3");
	var_Items.set_Link("<*>",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowRound,4);
exg2antt1.EndUpdate();

1787:
What options do I have to show the links between bars (rectangular EV, starts horizontally, ends vertically)

exg2antt1.BeginUpdate();
exg2antt1.AntiAliasing = true;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.NonworkingDays = 0;
	var_Chart.LinksWidth = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("");
	int h3 = var_Items.AddItem("Task 3");
	var_Items.AddItem("");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddItem("");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddItem("");
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.AddLink("L2",h2,"K2",h3,"K3");
	var_Items.set_Link("<*>",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowRound,3);
exg2antt1.EndUpdate();

1786:
What options do I have to show the links between bars (straight)

exg2antt1.BeginUpdate();
exg2antt1.AntiAliasing = true;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.NonworkingDays = 0;
	var_Chart.LinksWidth = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("");
	int h3 = var_Items.AddItem("Task 3");
	var_Items.AddItem("");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddItem("");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddItem("");
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.AddLink("L2",h2,"K2",h3,"K3");
	var_Items.set_Link("<*>",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowRound,2);
exg2antt1.EndUpdate();

1785:
What options do I have to show the links between bars (direct)

exg2antt1.BeginUpdate();
exg2antt1.AntiAliasing = true;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.NonworkingDays = 0;
	var_Chart.LinksWidth = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("");
	int h3 = var_Items.AddItem("Task 3");
	var_Items.AddItem("");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddItem("");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddItem("");
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.AddLink("L2",h2,"K2",h3,"K3");
	var_Items.set_Link("<*>",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowRound,1);
exg2antt1.EndUpdate();

1784:
What options do I have to show the links between bars (round)

exg2antt1.BeginUpdate();
exg2antt1.AntiAliasing = true;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.NonworkingDays = 0;
	var_Chart.LinksWidth = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("");
	int h3 = var_Items.AddItem("Task 3");
	var_Items.AddItem("");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddItem("");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddItem("");
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.AddLink("L2",h2,"K2",h3,"K3");
	var_Items.set_Link("<*>",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowRound,-1);
exg2antt1.EndUpdate();

1783:
What options do I have to show the links between bars (rectangular, default)

exg2antt1.BeginUpdate();
exg2antt1.AntiAliasing = true;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.NonworkingDays = 0;
	var_Chart.LinksWidth = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("");
	int h3 = var_Items.AddItem("Task 3");
	var_Items.AddItem("");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddItem("");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddItem("");
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.AddLink("L2",h2,"K2",h3,"K3");
	var_Items.set_Link("<*>",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowRound,0);
exg2antt1.EndUpdate();

1782:
I have a question about whether the control has the functionality to add two bars on the same item, as one would correspond to the item bar and another bar their progress, but progress is required to show dividedly at different times outside the activity bar item

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars.Copy("Progress","TProgressD");
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
		var_Bar.Shape = exontrol.EXG2ANTTLib.ShapeBarEnum.exShapeThinDown;
	exontrol.EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars.Copy("Progress","TProgressC");
		var_Bar1.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
	exontrol.EXG2ANTTLib.Bar var_Bar2 = var_Chart.Bars.Copy("Progress","TProgressU");
		var_Bar2.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
		var_Bar2.Shape = exontrol.EXG2ANTTLib.ShapeBarEnum.exShapeThinUp;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/30/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1",null);
	var_Items.AddBar(h,"TProgressU",Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/4/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"TP1",null);
	var_Items.GroupBars(h,"T1",true,h,"TP1",true,3,null);
	var_Items.set_ItemBar(h,"TP1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<font ;6>progress up");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/1/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T2",null);
	var_Items.AddBar(h,"TProgressC",Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/5/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"TP2",null);
	var_Items.GroupBars(h,"T2",true,h,"TP2",true,3,null);
	var_Items.set_ItemBar(h,"TP2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<font ;6>progress center");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/30/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3",null);
	var_Items.AddBar(h,"TProgressD",Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/6/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"TP3",null);
	var_Items.GroupBars(h,"T3",true,h,"TP3",true,3,null);
	var_Items.set_ItemBar(h,"TP3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<font ;6>progress down");
exg2antt1.EndUpdate();

1781:
I have a column of date-type, the question is how can I move the associated bar, instead of resizing it (summary, inclusive, working)

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.Indent = 11;
exg2antt1.HasLines = exontrol.EXG2ANTTLib.HierarchyLineEnum.exSolidLine;
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,544);
		var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
		var_Column.LevelKey = 1;
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
		var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,546);
		var_Column1.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
		var_Column1.LevelKey = 1;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowLinkBars = false;
	var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,224);
	exontrol.EXG2ANTTLib.Bars var_Bars = var_Chart.Bars;
		exontrol.EXG2ANTTLib.Bar var_Bar = var_Bars.Add("Underline");
			var_Bar.Color = Color.FromArgb(0,0,255);
			var_Bar.Shape = exontrol.EXG2ANTTLib.ShapeBarEnum.exShapeThinDown;
		exontrol.EXG2ANTTLib.Bar var_Bar1 = var_Bars.Add("Task:Underline");
			var_Bar1.Shortcut = "T";
			var_Bar1.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Project");
	var_Items.AddBar(h,"Summary",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/3/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.AddBar(h1,"T",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h2 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.AddBar(h2,"T",Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h3 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.AddBar(h3,"T",Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/3/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.DefineSummaryBars(h,"",h1,"");
	var_Items.DefineSummaryBars(h,"",h2,"");
	var_Items.DefineSummaryBars(h,"",h3,"");
	var_Items.set_ExpandItem(h,true);
	var_Items.set_ItemBold(h,true);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMoveStart,Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

1780:
I have a column of date-type, the question is how can I move the associated bar, instead of resizing it (summary)

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.Indent = 11;
exg2antt1.HasLines = exontrol.EXG2ANTTLib.HierarchyLineEnum.exSolidLine;
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,544);
		var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
		var_Column.LevelKey = 1;
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
		var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,545);
		var_Column1.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
		var_Column1.LevelKey = 1;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowLinkBars = false;
	var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,224);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Project");
	var_Items.AddBar(h,"Summary",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/3/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h2 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h3 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/3/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.DefineSummaryBars(h,"",h1,"");
	var_Items.DefineSummaryBars(h,"",h2,"");
	var_Items.DefineSummaryBars(h,"",h3,"");
	var_Items.set_ExpandItem(h,true);
	var_Items.set_ItemBold(h,true);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMoveStart,Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

1779:
Is it possible to programmatically move all bars of specified key to end at specified date (inclusive)

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task A.1"),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task A.2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task B.1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.AddBar(var_Items.AddItem("Task B.2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.set_ItemBar(0,"<A*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMoveEndInclusive,Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

1778:
Is it possible to programmatically move all bars to end at specified date (inclusive)

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task A.1"),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task A.2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task B.1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.AddBar(var_Items.AddItem("Task B.2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.set_ItemBar(0,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMoveEndInclusive,Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

1777:
Is it possible to programmatically move all bars of specified key to end at specified date

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task A.1"),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task A.2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task B.1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.AddBar(var_Items.AddItem("Task B.2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.set_ItemBar(0,"<A*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMoveEnd,Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

1776:
Is it possible to programmatically move all bars to end at specified date

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task A.1"),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task A.2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task B.1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.AddBar(var_Items.AddItem("Task B.2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.set_ItemBar(0,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMoveEnd,Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

1775:
Is it possible to programmatically move all bars of specified key to start at specified date

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task A.1"),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task A.2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task B.1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.AddBar(var_Items.AddItem("Task B.2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.set_ItemBar(0,"<A*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMoveStart,Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

1774:
Is it possible to programmatically move all bars to start at specified date

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task A.1"),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task A.2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task B.1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.AddBar(var_Items.AddItem("Task B.2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.set_ItemBar(0,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMoveStart,Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

1773:
Is it possible to programmatically move all bars of specified key

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task A.1"),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task A.2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task B.1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.AddBar(var_Items.AddItem("Task B.2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.set_ItemBar(0,"<A*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMove,2);
exg2antt1.EndUpdate();

1772:
Is it possible to programmatically move all bars

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task A.1"),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task A.2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(var_Items.AddItem("Task B.1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.AddBar(var_Items.AddItem("Task B.2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.set_ItemBar(0,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMove,2);
exg2antt1.EndUpdate();

1771:
How can I programmatically move a bar, so it ends at specified date (inclusive)
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.set_ItemBar(h,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMoveEndInclusive,Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

1770:
How can I programmatically move a bar, so it ends at specified date
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.set_ItemBar(h,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMoveEnd,Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

1769:
How can I programmatically move a bar, so it starts at specified date
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.set_ItemBar(h,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMoveStart,Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));

1768:
I canít figure out how to control the date and time format (in level 0, 1 and 2) when the user click on the OverviewZoom bottom

exg2antt1.BeginUpdate();
exg2antt1.HeaderHeight = 22;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.DrawLevelSeparator = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
	var_Chart.AllowResizeChart = exontrol.EXG2ANTTLib.ResizeChartEnum.exAllowResizeChartMiddle | exontrol.EXG2ANTTLib.ResizeChartEnum.exAllowResizeChartHeader;
	var_Chart.MaxUnitWidth = 196;
	exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
		var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.exHOutside | exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
	exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
		var_Level1.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelMiddleLine | exontrol.EXG2ANTTLib.LevelLineEnum.exLevelDotLine;
		var_Level1.DrawTickLinesFrom(0,exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine);
		var_Level1.BackColor = Color.FromArgb(240,240,240);
	var_Chart.OverviewVisible = exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
	var_Chart.AllowOverviewZoom = exontrol.EXG2ANTTLib.OverviewZoomEnum.exAlwaysZoom;
	var_Chart.UnitWidth = 24;
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exSecond,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exMinute,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exHour,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exWeek,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exDay,"<font ;6><%d%><|><%d%><|><%d%> <fgcolor=A0A0A0><off -4><%d1%><|><%d%> <fgcolor=A0A0A0><off -4><%d2%><|><%d%> <fgcolor=A0A0A0><o" +
"ff -4><%d3%><|><%d%> <fgcolor=A0A0A0><off -4><%dddd%><||><||>4096");
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.ScrollTo(var_Chart.FirstVisibleDate,1);
exg2antt1.Columns.Add("Default");
exg2antt1.EndUpdate();

1767:
Can I use GroupBars with OverlaidType method

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exg2antt1.Debug = true;
exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot;
exg2antt1.ScrollBySingleLine = true;
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,96);
	var_Chart.Bars["Task"].OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Project");
	var_Items.AddBar(h,"Summary",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/4/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h1 = var_Items.InsertItem(h,null,"Tasks");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"h1",null);
	string h2 = h1;
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/30/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"h2",null);
	var_Items.AddLink("L1",h1,"h1",h2,"h2");
	string h3 = h1;
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/4/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"h3",null);
	var_Items.AddLink("L2",h2,"h2",h3,"h3");
	var_Items.DefineSummaryBars(h,"",h1,"h1");
	var_Items.DefineSummaryBars(h,"",h2,"h2");
	var_Items.DefineSummaryBars(h,"",h3,"h3");
	var_Items.set_ExpandItem(h,true);
	var_Items.set_ItemBold(h,true);
	var_Items.GroupBars(h1,"h1",false,h2,"h2",true,31,"0;5;-1");
	var_Items.GroupBars(h2,"h2",false,h3,"h3",true,31,"0;5;-1");
exg2antt1.EndUpdate();

1766:
How do I change the link's lag so I can schedule bars to start later (with nonworking part)

// BarResizing event - Occurs when a bar is moving or resizing.
private void exg2antt1_BarResizing(object sender,int   Item,object   Key)
{
	exg2antt1.Items.SchedulePDM(Item,Key);
}
//this.exg2antt1.BarResizing += new exontrol.EXG2ANTTLib.exg2antt.BarResizingEventHandler(this.exg2antt1_BarResizing);

exg2antt1.BeginUpdate();
exg2antt1.DefaultItemHeight = 22;
exg2antt1.HeaderHeight = exg2antt1.DefaultItemHeight;
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exg2antt1.AntiAliasing = true;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LinksStyle = exontrol.EXG2ANTTLib.LinkStyleEnum.exLinkSolid;
	var_Chart.LinksColor = Color.FromArgb(128,128,128);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
		var_Bar.Color = Color.FromArgb(0,0,0);
		var_Bar.StartColor = Color.FromArgb(190,190,190);
		var_Bar.EndColor = var_Bar.StartColor;
		var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBox;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","FS lag=0 (default)");
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","FS lag=4");
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	int h3 = var_Items.AddItem("Task 3");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","FS lag=-1");
	var_Items.AddLink("L2",h2,"K2",h3,"K3");
	var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkPDMWorkingDelay,4);
	int h4 = var_Items.AddItem("Task 4");
	var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null);
	var_Items.AddLink("L3",h3,"K3",h4,"K4");
	var_Items.set_Link("L3",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkPDMWorkingDelay,-1);
	var_Items.SchedulePDM(0,"K1");
exg2antt1.EndUpdate();

1765:
How do I change the link's lag so I can schedule bars to start later (without nonworking part)

// BarResizing event - Occurs when a bar is moving or resizing.
private void exg2antt1_BarResizing(object sender,int   Item,object   Key)
{
	exg2antt1.Items.SchedulePDM(Item,Key);
}
//this.exg2antt1.BarResizing += new exontrol.EXG2ANTTLib.exg2antt.BarResizingEventHandler(this.exg2antt1_BarResizing);

exg2antt1.BeginUpdate();
exg2antt1.DefaultItemHeight = 22;
exg2antt1.HeaderHeight = exg2antt1.DefaultItemHeight;
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exg2antt1.AntiAliasing = true;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LinksStyle = exontrol.EXG2ANTTLib.LinkStyleEnum.exLinkSolid;
	var_Chart.LinksColor = Color.FromArgb(128,128,128);
	var_Chart.LevelCount = 2;
	var_Chart.NonworkingDays = 0;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
		var_Bar.Color = Color.FromArgb(0,0,0);
		var_Bar.StartColor = Color.FromArgb(190,190,190);
		var_Bar.EndColor = var_Bar.StartColor;
		var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBox;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","FS lag=0 (default)");
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","FS lag=4");
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	int h3 = var_Items.AddItem("Task 3");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","FS lag=-1");
	var_Items.AddLink("L2",h2,"K2",h3,"K3");
	var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkPDMDelay,4);
	int h4 = var_Items.AddItem("Task 4");
	var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null);
	var_Items.AddLink("L3",h3,"K3",h4,"K4");
	var_Items.set_Link("L3",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkPDMDelay,-1);
	var_Items.SchedulePDM(0,"K1");
exg2antt1.EndUpdate();

1764:
Is it possible to select the entire row/line, when user clicks the first column, and select individually the rest of cells, while user clicks any other column

// AddGroupItem event - Occurs after a new Group Item has been inserted to Items collection.
private void exg2antt1_AddGroupItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Summary",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
		var_Items.DefineSummaryBars(Item,"",-3,"");
}
//this.exg2antt1.AddGroupItem += new exontrol.EXG2ANTTLib.exg2antt.AddGroupItemEventHandler(this.exg2antt1_AddGroupItem);

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

// MouseDown event - Occurs when the user presses a mouse button.
private void exg2antt1_MouseDownEvent(object sender,short   Button,short   Shift,int   X,int   Y)
{
	int i = exg2antt1.get_ItemFromPoint(-1,-1,c,hit);
	exg2antt1.FullRowSelect = exg2antt1.Columns[c].Data;
}
//this.exg2antt1.MouseDownEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseDownEventHandler(this.exg2antt1_MouseDownEvent);

exg2antt1.BeginUpdate();
exg2antt1.HeaderHeight = 22;
exg2antt1.HeaderAppearance = exontrol.EXG2ANTTLib.AppearanceEnum.Flat;
exg2antt1.BackColorLock = Color.FromArgb(240,240,240);
exg2antt1.BackColorHeader = exg2antt1.BackColorLock;
exg2antt1.HasLines = exontrol.EXG2ANTTLib.HierarchyLineEnum.exNoLine;
exg2antt1.ColumnAutoResize = false;
exg2antt1.SortBarVisible = false;
exg2antt1.AllowGroupBy = true;
exg2antt1.ReadOnly = exontrol.EXG2ANTTLib.ReadOnlyEnum.exReadOnly;
exg2antt1.ShowFocusRect = false;
exg2antt1.CountLockedColumns = 1;
exg2antt1.AutoDrag = exontrol.EXG2ANTTLib.AutoDragEnum.exAutoDragScroll;
exg2antt1.SingleSort = false;
exg2antt1.ColumnsAllowSizing = true;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
exg2antt1.GridLineStyle = exontrol.EXG2ANTTLib.GridLinesStyleEnum.exGridLinesSolid;
exg2antt1.GridLineColor = Color.FromArgb(220,220,220);
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.LevelCount = 2;
exg2antt1.Chart.set_PaneWidth(false,256);
exg2antt1.BackColorSortBar = exg2antt1.BackColor;
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.Columns[0].Data = -1;
exg2antt1.Layout = "singlesort=\"C5:1\";multiplesort=\" C1:2\"";
exg2antt1.EndUpdate();

1763:
I've also hit a strange problem with the BeforeExpandItem event - the Cancel parameter is declared as const in Delphi when I believe it should be declared as var or out so I can use it to return OleVariant(True) to cancel the operation, or am I missing something, or how can I disable expanding / collapsing the items
// BeforeExpandItem event - Fired before an item is about to be expanded (collapsed).
private void exg2antt1_BeforeExpandItem(object sender,int   Item,ref object   Cancel)
{
	exg2antt1.set_EventParam(1,true);
}
//this.exg2antt1.BeforeExpandItem += new exontrol.EXG2ANTTLib.exg2antt.BeforeExpandItemEventHandler(this.exg2antt1_BeforeExpandItem);

// Event event - Notifies the application once the control fires an event.
private void exg2antt1_Event(object sender,int   EventID)
{
	System.Diagnostics.Debug.Print( exg2antt1.get_EventParam(-2).ToString() );
}
//this.exg2antt1.Event += new exontrol.EXG2ANTTLib.exg2antt.EventEventHandler(this.exg2antt1_Event);

exg2antt1.BeginUpdate();
exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot;
exg2antt1.Columns.Add("Default");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root A");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.set_ExpandItem(h,true);
	h = var_Items.AddItem("Root B");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.set_ExpandItem(h,true);
exg2antt1.EndUpdate();

1762:
Is there any way I can get rid / hide of the vertical blue lines ( today, selected date )
exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.MarkSelectDateColor = var_Chart.BackColor;
	var_Chart.MarkTodayColor = var_Chart.BackColor;
exg2antt1.EndUpdate();

1761:
Is it possible to search for a bar through items only ( not including the locked items )

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2015",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.BackColorAlternate = Color.FromArgb(250,250,250);
exg2antt1.ShowLockedItems = true;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Find") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
	var_Column.Visible = false;
	var_Column.FormatColumn = "int(value) = 0 ? `` : ` <fgcolor=FF0000><b>found here ` ";
exg2antt1.Chart.ColumnsFormatLevel = "1";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,3);
	int h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,0);
	var_Items.set_CellValue(h,0,"locked-top 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,1);
	var_Items.set_CellValue(h,0,"locked-top 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T2",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,2);
	var_Items.set_SelectItem(h,false);
	var_Items.set_ItemDivider(h,0);
	var_Items.set_ItemHeight(h,2);
	var_Items.AddBar(var_Items.AddItem("un-locked item 1"),"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3",null);
	var_Items.AddBar(var_Items.AddItem("un-locked item 2"),"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T4",null);
	var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,3);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,0);
	var_Items.set_SelectItem(h,false);
	var_Items.set_ItemDivider(h,0);
	var_Items.set_ItemHeight(h,2);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,1);
	var_Items.set_CellValue(h,0,"locked-bottom 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T5",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,2);
	var_Items.set_CellValue(h,0,"locked-bottom 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T6",null);
exontrol.EXG2ANTTLib.Items var_Items1 = exg2antt1.Items;
	h = var_Items1.get_FindBar("T4",0);
	var_Items1.set_ItemBar(h,var_Items1.get_FirstItemBar(h),exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
	var_Items1.set_CellValue(h,1,h);
exg2antt1.EndUpdate();

1760:
Is it possible to search for a bar through bottom-locked-items only

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2015",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.BackColorAlternate = Color.FromArgb(250,250,250);
exg2antt1.ShowLockedItems = true;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Find") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
	var_Column.Visible = false;
	var_Column.FormatColumn = "int(value) = 0 ? `` : ` <fgcolor=FF0000><b>found here ` ";
exg2antt1.Chart.ColumnsFormatLevel = "1";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,3);
	int h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,0);
	var_Items.set_CellValue(h,0,"locked-top 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,1);
	var_Items.set_CellValue(h,0,"locked-top 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T2",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,2);
	var_Items.set_SelectItem(h,false);
	var_Items.set_ItemDivider(h,0);
	var_Items.set_ItemHeight(h,2);
	var_Items.AddBar(var_Items.AddItem("un-locked item 1"),"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3",null);
	var_Items.AddBar(var_Items.AddItem("un-locked item 2"),"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T4",null);
	var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,3);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,0);
	var_Items.set_SelectItem(h,false);
	var_Items.set_ItemDivider(h,0);
	var_Items.set_ItemHeight(h,2);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,1);
	var_Items.set_CellValue(h,0,"locked-bottom 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T5",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,2);
	var_Items.set_CellValue(h,0,"locked-bottom 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T6",null);
exontrol.EXG2ANTTLib.Items var_Items1 = exg2antt1.Items;
	h = var_Items1.get_FindBar("T6",-4);
	var_Items1.set_ItemBar(h,var_Items1.get_FirstItemBar(h),exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
	var_Items1.set_CellValue(h,1,h);
exg2antt1.EndUpdate();

1759:
Is it possible to search for a bar through top-locked-items only

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2015",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.BackColorAlternate = Color.FromArgb(250,250,250);
exg2antt1.ShowLockedItems = true;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Find") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
	var_Column.Visible = false;
	var_Column.FormatColumn = "int(value) = 0 ? `` : ` <fgcolor=FF0000><b>found here ` ";
exg2antt1.Chart.ColumnsFormatLevel = "1";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,3);
	int h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,0);
	var_Items.set_CellValue(h,0,"locked-top 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,1);
	var_Items.set_CellValue(h,0,"locked-top 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T2",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,2);
	var_Items.set_SelectItem(h,false);
	var_Items.set_ItemDivider(h,0);
	var_Items.set_ItemHeight(h,2);
	var_Items.AddBar(var_Items.AddItem("un-locked item 1"),"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3",null);
	var_Items.AddBar(var_Items.AddItem("un-locked item 2"),"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T4",null);
	var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,3);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,0);
	var_Items.set_SelectItem(h,false);
	var_Items.set_ItemDivider(h,0);
	var_Items.set_ItemHeight(h,2);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,1);
	var_Items.set_CellValue(h,0,"locked-bottom 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T5",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,2);
	var_Items.set_CellValue(h,0,"locked-bottom 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T6",null);
exontrol.EXG2ANTTLib.Items var_Items1 = exg2antt1.Items;
	h = var_Items1.get_FindBar("T1",-3);
	var_Items1.set_ItemBar(h,var_Items1.get_FirstItemBar(h),exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
	var_Items1.set_CellValue(h,1,h);
exg2antt1.EndUpdate();

1758:
Is it possible to search for a bar through all locked-items only

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2015",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.BackColorAlternate = Color.FromArgb(250,250,250);
exg2antt1.ShowLockedItems = true;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Find") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
	var_Column.Visible = false;
	var_Column.FormatColumn = "int(value) = 0 ? `` : ` <fgcolor=FF0000><b>found here ` ";
exg2antt1.Chart.ColumnsFormatLevel = "1";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,3);
	int h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,0);
	var_Items.set_CellValue(h,0,"locked-top 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,1);
	var_Items.set_CellValue(h,0,"locked-top 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T2",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,2);
	var_Items.set_SelectItem(h,false);
	var_Items.set_ItemDivider(h,0);
	var_Items.set_ItemHeight(h,2);
	var_Items.AddBar(var_Items.AddItem("un-locked item 1"),"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3",null);
	var_Items.AddBar(var_Items.AddItem("un-locked item 2"),"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T4",null);
	var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,3);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,0);
	var_Items.set_SelectItem(h,false);
	var_Items.set_ItemDivider(h,0);
	var_Items.set_ItemHeight(h,2);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,1);
	var_Items.set_CellValue(h,0,"locked-bottom 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T5",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,2);
	var_Items.set_CellValue(h,0,"locked-bottom 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T6",null);
exontrol.EXG2ANTTLib.Items var_Items1 = exg2antt1.Items;
	h = var_Items1.get_FindBar("T2",-2);
	var_Items1.set_ItemBar(h,var_Items1.get_FirstItemBar(h),exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
	var_Items1.set_CellValue(h,1,h);
exg2antt1.EndUpdate();

1757:
Is it possible to search for a bar through all items ( including locked items )

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2015",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.BackColorAlternate = Color.FromArgb(250,250,250);
exg2antt1.ShowLockedItems = true;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Find") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
	var_Column.Visible = false;
	var_Column.FormatColumn = "int(value) = 0 ? `` : ` <fgcolor=FF0000><b>found here ` ";
exg2antt1.Chart.ColumnsFormatLevel = "1";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,3);
	int h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,0);
	var_Items.set_CellValue(h,0,"locked-top 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,1);
	var_Items.set_CellValue(h,0,"locked-top 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T2",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,2);
	var_Items.set_SelectItem(h,false);
	var_Items.set_ItemDivider(h,0);
	var_Items.set_ItemHeight(h,2);
	var_Items.AddBar(var_Items.AddItem("un-locked item 1"),"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3",null);
	var_Items.AddBar(var_Items.AddItem("un-locked item 2"),"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T4",null);
	var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,3);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,0);
	var_Items.set_SelectItem(h,false);
	var_Items.set_ItemDivider(h,0);
	var_Items.set_ItemHeight(h,2);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,1);
	var_Items.set_CellValue(h,0,"locked-bottom 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T5",null);
	h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exMiddle,2);
	var_Items.set_CellValue(h,0,"locked-bottom 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T6",null);
exontrol.EXG2ANTTLib.Items var_Items1 = exg2antt1.Items;
	h = var_Items1.get_FindBar("T5",-1);
	var_Items1.set_ItemBar(h,var_Items1.get_FirstItemBar(h),exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
	var_Items1.set_CellValue(h,1,h);
exg2antt1.EndUpdate();

1756:
How do I clip/hide/align the bar's caption/text based on the bar's size/width/length

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Clip");
exg2antt1.ScrollBySingleLine = true;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exRowLines;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.AllowResizeChart = exontrol.EXG2ANTTLib.ResizeChartEnum.exAllowResizeChartMiddle | exontrol.EXG2ANTTLib.ResizeChartEnum.exAllowResizeChartHeader;
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exRowLines;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/23/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,216);
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBox;
		var_Bar.Color = Color.FromArgb(164,164,164);
		var_Bar.StartColor = Color.FromArgb(240,240,240);
		var_Bar.EndColor = var_Bar.StartColor;
		var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsIncludeCaption | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStackAutoArrange | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack;
		var_Bar.Height = 15;
	var_Chart.MinUnitWidth = var_Chart.UnitWidth;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("no clip, (0-2)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","no clip, right(<b>2</b>)");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,2);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","no clip, center(<b>1</b>)");
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,1);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","no clip, left(<b>0</b>)");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,0);
	h = var_Items.AddItem("clip, inside (3-5)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","clip, inside, right(<b>5</b>)");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,5);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","clip, inside, center(<b>4</b>)");
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,4);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","clip, inside, left(<b>3</b>)");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,3);
	h = var_Items.AddItem("hide on min width, clip if not fit, inside (6-8)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/26/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","hide on min width, clip if not fit, inside, right(<b>8</b>)");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,8);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/26/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","hide on min width, clip if not fit, inside, center(<b>7</b>)");
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,7);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/26/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","hide on min width, clip if not fit, inside, left(<b>6</b>)");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,6);
	h = var_Items.AddItem("hide if not fit, no clip, inside (9-11)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","hide if not fit, no clip, inside, right(<b>11</b>)");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,11);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","hide if not fit, no clip, center(<b>10</b>)");
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,10);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","hide if not fit, no clip, inside, left(<b>9</b>)");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,9);
	h = var_Items.AddItem("no clip, inside, outside (12-14)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","no clip, inside, outside, right(<b>14</b>)");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,14);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","no clip, inside, outside, center(<b>13</b>)");
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,13);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","no clip, inside, outside, left(<b>12</b>)");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,12);
	h = var_Items.AddItem("no clip, outside (16-18)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","no clip, outside, right(<b>18</b>)");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","no clip, outside, center(<b>17</b>)");
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,17);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","no clip, outside, left(<b>16</b>)");
	var_Items.set_ItemBar(h,"K3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,16);
exg2antt1.EndUpdate();

1755:
Is there a way to prevent the automatic horizontal scrolling of the chart when moving or resizing a bar (method 2)
// DateChange event - Occurs when the first visible date is changed.
private void exg2antt1_DateChange(object sender)
{
	exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
}
//this.exg2antt1.DateChange += new exontrol.EXG2ANTTLib.exg2antt.DateChangeEventHandler(this.exg2antt1_DateChange);

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
	var_Column.Visible = false;
	var_Column.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.LeftAlignment;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
	var_Column1.Visible = false;
	var_Column1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.RightAlignment;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
	var_Chart.ColumnsFormatLevel = "1[bg=12500670]:52,|,2[bg=12500670]:52";
	var_Chart.ColumnsTransparent = 50;
	var_Chart.ScrollBar = false;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1754:
Is there a way to prevent the automatic horizontal scrolling of the chart when moving or resizing a bar, including limiting the bars
// BarResizing event - Occurs when a bar is moving or resizing.
private void exg2antt1_BarResizing(object sender,int   Item,object   Key)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.set_ItemBar(Item,Key,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMinStart,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
		var_Items.set_ItemBar(Item,Key,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMaxEnd,Convert.ToDateTime("2/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
}
//this.exg2antt1.BarResizing += new exontrol.EXG2ANTTLib.exg2antt.BarResizingEventHandler(this.exg2antt1_BarResizing);

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
	var_Column.Visible = false;
	var_Column.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.LeftAlignment;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
	var_Column1.Visible = false;
	var_Column1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.RightAlignment;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
	var_Chart.ColumnsFormatLevel = "1[bg=12500670]:52,|,2[bg=12500670]:52";
	var_Chart.ColumnsTransparent = 50;
	var_Chart.set_ScrollRange(exontrol.EXG2ANTTLib.ScrollRangeEnum.exStartDate,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.set_ScrollRange(exontrol.EXG2ANTTLib.ScrollRangeEnum.exEndDate,Convert.ToDateTime("1/31/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1753:
Is there a way to prevent the automatic horizontal scrolling of the chart when moving or resizing a bar (method 1)
exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
	var_Column.Visible = false;
	var_Column.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.LeftAlignment;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
	var_Column1.Visible = false;
	var_Column1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.RightAlignment;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
	var_Chart.ColumnsFormatLevel = "1[bg=12500670]:52,|,2[bg=12500670]:52";
	var_Chart.ColumnsTransparent = 50;
	var_Chart.set_ScrollRange(exontrol.EXG2ANTTLib.ScrollRangeEnum.exStartDate,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.set_ScrollRange(exontrol.EXG2ANTTLib.ScrollRangeEnum.exEndDate,Convert.ToDateTime("1/31/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1752:
Is it possible to have "Preview Window" as a "Modal Window or 'always-on-top window'"
exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkStartPos,0);
exg2antt1.EndUpdate();
// Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
exontrol.EXPRINTLib.exprint var_Print = new exontrol.EXPRINTLib.exprint();
	System.Diagnostics.Debug.Print( var_Print.Version );
	var_Print.Foreground = -1;
	var_Print.PrintExt = (exg2antt1 as exontrol.EXG2ANTTLib.exg2antt);
	var_Print.Preview();

1751:
The week number is not correct. What can I do

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstWeekDay = var_Chart.LocFirstWeekDay;
	var_Chart.MonthNames = var_Chart.LocMonthNames;
	var_Chart.WeekDays = var_Chart.LocWeekDays;
	var_Chart.AMPM = var_Chart.LocAMPM;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exWeek;
	var_Chart.UnitWidth = 32;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AdjustLevelsToBase = true;
	var_Chart.WeekNumberAs = exontrol.EXG2ANTTLib.WeekNumberAsEnum.exISO8601WeekNumber;
	var_Chart.ShowNonworkingDates = false;
	var_Chart.ScrollTo(var_Chart.FirstVisibleDate,1);

1750:
When the user zooms with the mouse, the chart automatically switches the unit scale - ideally I'd like to replicate this so I can switch the unitscale at the same "zoom levels" that the mouse zooming does - is this possible
// ChartEndChanging event - Occurs after the chart has been changed.
private void exg2antt1_ChartEndChanging(object sender,exontrol.EXG2ANTTLib.BarOperationEnum   Operation)
{
	exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
		System.Diagnostics.Debug.Print( "FirstVisibleDate" );
		System.Diagnostics.Debug.Print( var_Chart.FirstVisibleDate.ToString() );
		System.Diagnostics.Debug.Print( "UnitScale" );
		System.Diagnostics.Debug.Print( var_Chart.UnitScale.ToString() );
		System.Diagnostics.Debug.Print( "UnitWidth" );
		System.Diagnostics.Debug.Print( var_Chart.UnitWidth.ToString() );
}
//this.exg2antt1.ChartEndChanging += new exontrol.EXG2ANTTLib.exg2antt.ChartEndChangingEventHandler(this.exg2antt1_ChartEndChanging);

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 3;
	var_Chart.AllowResizeChart = exontrol.EXG2ANTTLib.ResizeChartEnum.exAllowChangeUnitScale | exontrol.EXG2ANTTLib.ResizeChartEnum.exAllowResizeChartMiddle | exontrol.EXG2ANTTLib.ResizeChartEnum.exAllowResizeChartHeader;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.MarkTodayColor = var_Chart.BackColor;
exg2antt1.EndUpdate();

1749:
The first week number is not correctly assigned. What can I do

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2016",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exWeek;
	var_Chart.ScrollTo(var_Chart.FirstVisibleDate,1);
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
	var_Chart.AdjustLevelsToBase = true;
	var_Chart.get_Level(0).Label = "<c><%mmmm%>";

1748:
How can I display the +/- expand - collapse buttons, a bit larger

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
	var_Appearance.Add(3,"c:\\exontrol\\images\\normal.ebn");
	var_Appearance.Add(4,"c:\\exontrol\\images\\pushed.ebn");
	var_Appearance.Add(1,"CP:3 -4 -4 4 4");
	var_Appearance.Add(2,"CP:4 -4 -4 4 4");
exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exGroupLinesAtRoot;
exg2antt1.HasButtons = exontrol.EXG2ANTTLib.ExpandButtonEnum.exCustom;
exg2antt1.set_HasButtonsCustom(false,16777216);
exg2antt1.set_HasButtonsCustom(true,33554432);
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root 1");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.set_ExpandItem(h,true);
	h = var_Items.AddItem("Root 2");
	var_Items.InsertItem(h,null,"Child");
exg2antt1.EndUpdate();

1747:
Is there any option to control where I can drop the items when using the AutoDrag property
// AllowAutoDrag event - Occurs when the user drags the item between InsertA and InsertB as child of NewParent.
private void exg2antt1_AllowAutoDrag(object sender,int   Item,int   NewParent,int   InsertA,int   InsertB,ref bool   Cancel)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		System.Diagnostics.Debug.Print( "NewParent" );
		System.Diagnostics.Debug.Print( var_Items.get_CellCaption(NewParent,0) );
		System.Diagnostics.Debug.Print( "After" );
		System.Diagnostics.Debug.Print( var_Items.get_CellCaption(InsertA,0) );
		System.Diagnostics.Debug.Print( "Before" );
		System.Diagnostics.Debug.Print( var_Items.get_CellCaption(InsertB,0) );
	Cancel = true;
}
//this.exg2antt1.AllowAutoDrag += new exontrol.EXG2ANTTLib.exg2antt.AllowAutoDragEventHandler(this.exg2antt1_AllowAutoDrag);

exg2antt1.BeginUpdate();
exg2antt1.AutoDrag = exontrol.EXG2ANTTLib.AutoDragEnum.exAutoDragPositionAny;
exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exNoLinesAtRoot;
exg2antt1.HasLines = exontrol.EXG2ANTTLib.HierarchyLineEnum.exThinLine;
exg2antt1.ShowFocusRect = false;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.ShowNonworkingDates = false;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,96);
	var_Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Group 1");
	var_Items.set_ItemDivider(h,0);
	var_Items.set_ItemBold(h,true);
	int h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	int h2 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.AddLink("L1",h1,"K1",h2,"K2");
	var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"L1");
	int h3 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	var_Items.AddLink("L2",h2,"K2",h3,"K3");
	var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"L2");
	var_Items.set_ExpandItem(h,true);
	h = var_Items.AddItem("Group 2");
	var_Items.set_ItemBold(h,true);
	var_Items.set_ItemDivider(h,0);
exg2antt1.EndUpdate();

1746:
The column (chart section ) overlaps the bars, when using the ColumnsFormatLevel property. How can I prevent that

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
	var_Column.Visible = false;
	var_Column.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.LeftAlignment;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
	var_Column1.Visible = false;
	var_Column1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.RightAlignment;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
	var_Chart.ColumnsFormatLevel = "1[bg=12500670]:52,|,2[bg=12500670]:52";
	var_Chart.ColumnsTransparent = 50;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1745:
How do I show the column ( chart section ) with a different background color, when using the ColumnsFormatLevel property (method 2)

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
	var_Column.Visible = false;
	var_Column.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.LeftAlignment;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
	var_Column1.Visible = false;
	var_Column1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.RightAlignment;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
	var_Chart.ColumnsFormatLevel = "1[bg=12500670]:52,|,2[bg=12500670]:52";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1744:
How do I show the column ( chart section ) with a different background color, when using the ColumnsFormatLevel property (method 1)

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
	var_Column.Visible = false;
	var_Column.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.LeftAlignment;
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellBackColor,12500670);
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
	var_Column1.Visible = false;
	var_Column1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.RightAlignment;
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellBackColor,12500670);
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,48);
	var_Chart.ColumnsFormatLevel = "1:52,|,2:52";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1743:
How can I display the control's content on an single A3 paper size, when using PDF format

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.AntiAliasing = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/24/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,96);
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
		var_Bar.Color = Color.FromArgb(0,0,0);
		var_Bar.Height = 16;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/25/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1","<fgcolor=FFFFFF>Center");
	var_Items.set_ItemBar(h,"1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"left");
	var_Items.set_ItemBar(h,"1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,16);
	h = var_Items.AddItem("Task 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/16/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1","<fgcolor=FFFFFF>Center");
	h = var_Items.AddItem("Task 3");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/16/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/26/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"2","Center");
	var_Items.set_ItemBar(h,"2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"right");
	var_Items.set_ItemBar(h,"2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,18);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
	exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("1S",exg2antt1.Items[1],"1","<%m3%>-<%d%>");
		var_Note.set_PartShadow(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
		var_Note.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,-16);
		var_Note.set_PartVOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,4);
	exontrol.EXG2ANTTLib.Note var_Note1 = var_Notes.Add("1F",exg2antt1.Items[1],"1","<%m3%>-<%d%>");
		var_Note1.RelativePosition = 1;
		var_Note1.set_PartShadow(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
		var_Note1.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,16);
		var_Note1.set_PartVOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,-4);
object var_CopyTo = exg2antt1.get_CopyTo("C:\\Temp\\Preview.pdf|11.69 in x 16.53 in||single");
System.Diagnostics.Debug.Print( "Look for C:\\Temp\\Preview.pd file." );
exg2antt1.EndUpdate();

1742:
How can I display the control's content on an A3 paper size, when using PDF format

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.AntiAliasing = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/24/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,96);
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
		var_Bar.Color = Color.FromArgb(0,0,0);
		var_Bar.Height = 16;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/25/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1","<fgcolor=FFFFFF>Center");
	var_Items.set_ItemBar(h,"1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"left");
	var_Items.set_ItemBar(h,"1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,16);
	h = var_Items.AddItem("Task 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/16/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1","<fgcolor=FFFFFF>Center");
	h = var_Items.AddItem("Task 3");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/16/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/26/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"2","Center");
	var_Items.set_ItemBar(h,"2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"right");
	var_Items.set_ItemBar(h,"2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,18);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
	exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("1S",exg2antt1.Items[1],"1","<%m3%>-<%d%>");
		var_Note.set_PartShadow(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
		var_Note.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,-16);
		var_Note.set_PartVOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,4);
	exontrol.EXG2ANTTLib.Note var_Note1 = var_Notes.Add("1F",exg2antt1.Items[1],"1","<%m3%>-<%d%>");
		var_Note1.RelativePosition = 1;
		var_Note1.set_PartShadow(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
		var_Note1.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,16);
		var_Note1.set_PartVOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,-4);
object var_CopyTo = exg2antt1.get_CopyTo("C:\\Temp\\Preview.pdf|11.69 in x 16.53 in");
System.Diagnostics.Debug.Print( "Look for C:\\Temp\\Preview.pd file." );
exg2antt1.EndUpdate();

1741:
How can I specify the grouping strategy, ie numbers from 1 to 5 are given the value (1-5) and grouping is done on this new value

// AddGroupItem event - Occurs after a new Group Item has been inserted to Items collection.
private void exg2antt1_AddGroupItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.set_ItemBold(Item,true);
		var_Items.AddBar(Item,"Summary",var_Items.get_CellValue(Item,1),var_Items.get_CellValue(Item,2),null,null);
		var_Items.DefineSummaryBars(Item,"",-3,"");
}
//this.exg2antt1.AddGroupItem += new exontrol.EXG2ANTTLib.exg2antt.AddGroupItemEventHandler(this.exg2antt1_AddGroupItem);

exg2antt1.BeginUpdate();
exg2antt1.AllowGroupBy = true;
exg2antt1.SortBarVisible = true;
exg2antt1.MarkSearchColumn = false;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.AllowGroupBy = false;
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
		var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
		var_Column1.AllowGroupBy = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,256);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("1"),"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/27/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("1"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("2"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("2"),"Task",Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("3"),"Task",Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("3"),"Task",Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/30/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exontrol.EXG2ANTTLib.Column var_Column2 = (exg2antt1.Columns.Add("Tasks - Group") as exontrol.EXG2ANTTLib.Column);
	var_Column2.Visible = false;
	var_Column2.FormatColumn = "%0 in (1,2) ? `1 - 2` : `3 -`";
	var_Column2.SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exg2antt1.EndUpdate();

1740:
How can I filter the chart and its content, not the items section

// RClick event - Fired when right mouse button is clicked
private void exg2antt1_RClick(object sender)
{
	exg2antt1.Columns["Start"].ShowFilter("-1,-1,128,128");
}
//this.exg2antt1.RClick += new exontrol.EXG2ANTTLib.exg2antt.RClickEventHandler(this.exg2antt1_RClick);

exg2antt1.BeginUpdate();
exg2antt1.SortBarVisible = true;
exg2antt1.MarkSearchColumn = false;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.DisplayFilterDate = true;
		var_Column.DisplayFilterPattern = false;
		var_Column.FilterList = exontrol.EXG2ANTTLib.FilterListEnum.exShowExclude | exontrol.EXG2ANTTLib.FilterListEnum.exShowCheckBox;
		var_Column.Visible = false;
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
		var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
		var_Column1.DisplayFilterDate = true;
		var_Column1.DisplayFilterPattern = false;
		var_Column1.Visible = false;
		var_Column1.FilterList = exontrol.EXG2ANTTLib.FilterListEnum.exShowExclude | exontrol.EXG2ANTTLib.FilterListEnum.exShowCheckBox;
		var_Column1.Visible = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,128);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/27/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 4"),"Task",Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 5"),"Task",Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 6"),"Task",Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/30/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1739:
How do I enable the Group-By feature

// AddGroupItem event - Occurs after a new Group Item has been inserted to Items collection.
private void exg2antt1_AddGroupItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.set_ItemBackColor(Item,Color.FromArgb(240,240,240));
		exg2antt1.Chart.set_ItemBackColor(Item,Color.FromArgb(240,240,240));
		var_Items.set_ItemDividerLine(Item,exontrol.EXG2ANTTLib.DividerLineEnum.EmptyLine);
		var_Items.AddBar(Item,"Summary",var_Items.get_CellValue(Item,1),var_Items.get_CellValue(Item,2),null,null);
		var_Items.DefineSummaryBars(Item,"",-3,"");
}
//this.exg2antt1.AddGroupItem += new exontrol.EXG2ANTTLib.exg2antt.AddGroupItemEventHandler(this.exg2antt1_AddGroupItem);

exg2antt1.BeginUpdate();
exg2antt1.AllowGroupBy = true;
exg2antt1.SortBarVisible = true;
exg2antt1.MarkSearchColumn = false;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.AllowGroupBy = false;
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
		var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
		var_Column1.AllowGroupBy = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,256);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/27/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/30/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.Columns[0].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exg2antt1.EndUpdate();

1738:
Is there any method to know number/length/count/duration of working days in a bar ( excluding non-working days)

// SelectionChanged event - Fired after a new item has been selected.
private void exg2antt1_SelectionChanged(object sender)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		System.Diagnostics.Debug.Print( var_Items.get_CellCaption(var_Items.FocusItem,0) );
		System.Diagnostics.Debug.Print( var_Items.get_ItemBar(var_Items.FocusItem,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarWorkingCount).ToString() );
}
//this.exg2antt1.SelectionChanged += new exontrol.EXG2ANTTLib.exg2antt.SelectionChangedEventHandler(this.exg2antt1_SelectionChanged);

exg2antt1.BeginUpdate();
exg2antt1.SelBackColor = Color.FromArgb(142,190,255);
exg2antt1.SelForeColor = Color.FromArgb(0,0,0);
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,96);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars.Add("Task:Split");
		var_Bar.Shortcut = "Task";
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<%=%258%><font ;6><off 3>w/units");
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
	var_Chart.SelBackColor = exg2antt1.SelBackColor;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task A");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Task B");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_SelectItem(h,true);
	h = var_Items.AddItem("Task C");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1737:
How do i verify weather specified unit is Nonworking Working Unit

// MouseMove event - Occurs when the user moves the mouse.
private void exg2antt1_MouseMoveEvent(object sender,short   Button,short   Shift,int   X,int   Y)
{
	int h = exg2antt1.get_ItemFromPoint(-1,-1,c,hit);
	Date d = exg2antt1.Chart.get_DateFromPoint(-1,-1);
	System.Diagnostics.Debug.Print( d.ToString() );
	System.Diagnostics.Debug.Print( exg2antt1.Chart.get_IsNonworkingDate(d,h).ToString() );
}
//this.exg2antt1.MouseMoveEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseMoveEventHandler(this.exg2antt1_MouseMoveEvent);

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("NonWorking");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/24/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	var_Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Default");
	h = var_Items.AddItem("January");
	var_Items.set_ItemNonworkingUnits(h,false,"month(value) = 1");
	h = var_Items.AddItem("February, Saturday, Sunday");
	var_Items.set_ItemNonworkingUnits(h,false,"month(value) = 2 or (weekday(value) = 0 or weekday(value) = 6)");
	h = var_Items.AddItem("Sunday");
	var_Items.set_ItemNonworkingUnits(h,false,"weekday(value) = 0");
exg2antt1.EndUpdate();

1736:
How can I specify the bar's caption to be caption from a column/cell

// Change event - Occurs when the user changes the cell's content.
private void exg2antt1_Change(object sender,int   Item,int   ColIndex,ref object   NewValue)
{
	exg2antt1.Refresh();
}
//this.exg2antt1.Change += new exontrol.EXG2ANTTLib.exg2antt.ChangeEventHandler(this.exg2antt1_Change);

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=808080><%=%C0%>");
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
exontrol.EXG2ANTTLib.Editor var_Editor = (exg2antt1.Columns.Add("Task") as exontrol.EXG2ANTTLib.Column).Editor;
	var_Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DropDownListType;
	var_Editor.AddItem(1,"Aka",null);
	var_Editor.AddItem(2,"Baka",null);
	var_Editor.AddItem(3,"Taka",null);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem(1),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem(2),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem(3),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1735:
The histogram values displayed on the chart are using 2 decimal places. Can this be formated to just 0 decimal place, so 86.79% becomes 87%

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Effort") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,21);
	var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.NonworkingDays = 0;
	var_Chart.set_PaneWidth(false,96);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramHeight = 128;
	var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar.HistogramCriticalValue = 3;
		var_Bar.ShowHistogramValues = "value>3?255:1";
		var_Bar.HistogramItems = -11;
		var_Bar.HistogramGridLinesColor = Color.FromArgb(192,192,192);
		var_Bar.HistogramRulerLinesColor = Color.FromArgb(0,0,1);
		var_Bar.FormatHistogramValues = "(value format `0`) + ` units`";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellValue(h1,1,6.79);
	h1 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/24/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellValue(h1,1,3.19);
	h1 = var_Items.AddItem("Task 3");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/29/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellValue(h1,1,2);
	h1 = var_Items.AddItem("Task 4");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/30/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/2/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellValue(h1,1,1);
exg2antt1.EndUpdate();

1734:
How can I create a relative time-scale

exg2antt1.BeginUpdate();
exg2antt1.DefaultItemHeight = 24;
exg2antt1.HeaderHeight = exg2antt1.DefaultItemHeight;
exg2antt1.GridLineStyle = exontrol.EXG2ANTTLib.GridLinesStyleEnum.exGridLinesSolid;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exNoLinesAtRoot;
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
	var_Chart.GridLineStyle = exontrol.EXG2ANTTLib.GridLinesStyleEnum.exGridLinesSolid;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = 0;
	var_Chart.NonworkingDays = 0;
	var_Chart.UnitWidth = 36;
	exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
		var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
		var_Level.Count = 6;
		var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level.Label = "<%i%>";
		var_Level.FormatLabel = "'<b>' + ( (value / 6)  array ('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec') ) + '-16'";
	exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
		var_Level1.Label = "<%i%>";
		var_Level1.FormatLabel = "1 + value mod 6 + ` `";
		var_Level1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.RightAlignment;
	var_Chart.AdjustLevelsToBase = true;
	var_Chart.set_ScrollRange(exontrol.EXG2ANTTLib.ScrollRangeEnum.exStartDate,0);
	var_Chart.set_ScrollRange(exontrol.EXG2ANTTLib.ScrollRangeEnum.exEndDate,95);
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.Height = 15;
		var_Bar.Color = Color.FromArgb(252,213,180);
		var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"date blocking");
exg2antt1.Columns.Add("Company");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("ABC Company");
	var_Items.set_ItemBackColor(h,Color.FromArgb(240,240,240));
	exg2antt1.Chart.set_ItemBackColor(h,Color.FromArgb(240,240,240));
	int hChild = var_Items.InsertItem(h,null,"line 1");
	var_Items.AddBar(hChild,"Task",0,3,null,null);
	hChild = var_Items.InsertItem(h,null,"line 2");
	var_Items.AddBar(hChild,"Task",3,5,"A",null);
	var_Items.AddBar(hChild,"Task",7,10,"B",null);
	hChild = var_Items.InsertItem(h,null,"line 3");
	var_Items.AddBar(hChild,"Task",5,8,"A",null);
	var_Items.AddBar(hChild,"Task",9,12,"B",null);
	var_Items.set_ExpandItem(h,true);
exg2antt1.EndUpdate();

1733:
Extending the bar's visual appearance with additional objects, EBNs, using the exBarBackgroundExt and exBarBackgroundExtInflate

exg2antt1.BeginUpdate();
exg2antt1.DefaultItemHeight = 32;
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAADhABcMIQAAYAQGKIYBkAKBQAGaAoDDUMQyQwAAyDAK8EwsACEIrAAJoaAAPoJRDGMTvfIgARIf6MIRAeCYFDAJQtDCMICwSKsXBaGwBJYGGaYE" +
"DGHQATxKM7wGBcEyLDSgXZDQRAAoqTI/SICEIlAZJRjoOo5DJGGQmChkQhNVzGQzQSJFDTNAaEAwidDJCoOGgkBw7NwXFaNZznBK7LpvK5HNrie55XzAcj3dbmAYJQzB" +
"JLxKSIDwCd6NXrCOJ5HhWDzjQjJMozLC8YiPG6fZRbeT4ToGNdXYhJWiyLiFeYtVzSMj1fD9Ir/EakbLtey4Lq2A53RzdHThSQpCwPA4BgIA=");
	var_Appearance.Add(2,"gBFLBCJwBAEHhEJAADhABcMIQAAYAQGKIYBkAKBQAGaAoDDUMQyQwAAyDAK8EwsACEIrAAJoaAAPoJRDGMTvfIgARIf6MIRAeCYFDAJQtDCMICwSKsXBaGwBJYGGaYE" +
"DGHQATxKM7wGBcEyLDSgXZDQRAAoqTI/SICEIlAZJRjoOo5DJGGQmChkQhNVzGQzQSJFDTNAaEAwidDJCoOGgkBw7NrXHZ9YwTOC5IDke67cr2J53XZAd4QTb2Cz7QC8" +
"QAvDA7awafM1MSuHIcOw/AqTYDkTq4XjODYhTDEc4zPLcFx/I6haBoWCSLi+T5VVrRMo1TKtRxnNaubZqO5aRrGe5NW6EXThSQpCr+f4BgIA=");
	var_Appearance.Add(3,"gBFLBCJwBAEHhEJAADhABcMIQAAYAQGKIYBkAKBQAGaAoDDUMQyQwAAyDAK8EwsACEIrAAJoaAAPoJRDGMTvfIgARIf6MIRAeCYFDAJQtDCMICwSKsXBaGwBJYGGaYE" +
"DGHQATxKM7wGBcEyLDSgXZDQRAAoqTI/SICEIlAZJRjoOo5DJGGQmChkQhNVzGQzQSJFDTNAaEAwidDJCoOGgkBw7NwXFaNZznBK7LpvK5HNrie55XxfV6YBa8B4JPaE" +
"ZLwLB7dwaf6IQLiWLYHiAAYZRKTcxlDI8AwvFaaZjnWA5ZaOMZBU7RNRyHR9IyTDaWaTqeqbHIuJ4FUzaNY2fZrOz2F6FAA6cKSFIWFYVAMBA");
	var_Appearance.Add(4,"gBFLBCJwBAEHhEJAADhABb8IQAAYAQGKIYBkAKBQAGaAoDDUMQyQwAAyDAK8EwsACEIrAAJoaAAPoJRDGMTvfIgARIf6MIRAeCYFDAJQtDCMICwSKsXBaGwBJYGGaYE" +
"DGHQATxKM7wGBcEyLDSgXZDQRAAoqTI/SICEIlAZJRjoOo5DJGGQmChkQhNVzGQzQSJFDTNAaEAwidDJCoOGgkBw7NwXFaNZznBK7LpvK5HNrie55XxfV6YBa8B4JPaE" +
"ZLwLB7dwaf6IQLiWLYHiAAYBIbJI5yeb5Hx3HqfZjbeSxVoML43SzHcByGRcTwzC6pYjrGoZJpWZ4ZQrbNR3DZ8VzzNTrQxIUhYVhUAkB");
	var_Appearance.RenderType = -16777216;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,164);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.NonworkingDaysColor = Color.FromArgb(240,240,240);
	var_Chart.NonworkingDaysPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.Height = 17;
		var_Bar.Color = Color.FromArgb(255,255,255);
		var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,1);
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	int h = var_Items.AddItem("Task+Rhombus(red)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(100%-11,50%-6,11,11),back=0x10000FF]");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtInflate,",,5");
	h = var_Items.AddItem("Rhombus(red)+Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(0,50%-6,11,11),back=0x10000FF]");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtInflate,"-5");
	h = var_Items.AddItem("Task(yellow)+Rhombus(blue)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(100%-11,50%-6,11,11),back=0x1FF0000]");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtInflate,",,5");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,65535);
	h = var_Items.AddItem("Rhombus(blue)+Task(yellow)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(0,50%-6,11,11),back=0x1FF0000]");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtInflate,"-5");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,65535);
	h = var_Items.AddItem("TriangleUp(white)+Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(0,50%-6,11,11),back=0x2FFFFFF]");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtInflate,"-5");
	h = var_Items.AddItem("TriangleUp(blue)+Task(magenta)+TriangleDown(red)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(0,50%-6,11,11),back=0x02FF0000],none[(100%-11,50%-6,11,11),back=0x030000FF]");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtInflate,"-5,0,5,0");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,16744703);
	h = var_Items.AddItem("Rhombus+Task+TriangleDown");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(0,50%-6,11,11),back=0x01FF0000],none[(100%-11,50%-6,11,11),back=0x030000FF]");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtInflate,"-5, 0,5,0");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,16744448);
	h = var_Items.AddItem("Rhombus+Task+TriangleDown");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(50%-6,0,11,11),back=0x01FF0000],none[(50%-6,100%-11,11,11),back=0x010000FF]");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtInflate,"0,-5,0,5");
	h = var_Items.AddItem("Task+Star");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(100%-11,0,11,11),back=0x4FFFFFF]");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtInflate,5);
	h = var_Items.AddItem("Star+Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(0,100%-11,11,11),back=0x04FFFFFF]");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtInflate,5);
	h = var_Items.AddItem("Task+Star");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(100%-11,0,11,11),back=0x4FFFFFF]");
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtInflate,"0,-6,14");
exg2antt1.EndUpdate();

1732:
I am using the ItemBar(exBarFrameColor) to display an additional EBN on the current bar. The problem is that I still need a black frame around the bar. How can I achieve that

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAADhABXMIQAAYAQGKIYBkAKBQAGaAoDDWDoMAANAyjPBMKgBBCLAACaKQAD6CYQRhFT7yGAERr/C6EQLhGBRQCULQxDCBMIjLJoWhsASVRhnCBBR" +
"hwAI7ShPUBgXBNCQzICTJJkSJZBiECIJFAaJhnIapZDKGKQWCjAgiNpqGQ2QiKFC2HAcEAxCxGJBoKKZGq2bpJQLbdxUXRVZzpNi7Louay5CrOCZvXxaeAXDa+Az5ODD" +
"MRwLBcKhzCKDYzfdrZFaWFT3Qi8aCvG6sbw/HZ0OrEEIwCEBA");
	var_Appearance.Add(2,"CP:1 0 0 5 0");
	var_Appearance.Add(3,"gBFLBCJwBAEHhEJAADhABUEIQAAYAQGKIYBkAKBQAGaAoDDWDoMAANAyjPBMKgBBCLIxhEYobgmGIaRiBMIxAKIZhzEgYRoiAYhXDiHwxARHUgRfIEOwHDiBZomWKZE" +
"iaKIqRrLMryFLMZx3CqcAApGaqHiOCYlSbTcoyfJYZBzD6mKJpWipWheW48U7PVRDJSkNysASZIyrGKqJouX4WR7BcZgNR4YBgEoWRouSBLWrgNIVR6/eBABZFPzbNK3" +
"ZzdOIIJgEgIA=");
	var_Appearance.RenderType = -16777216;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,164);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.Bars["Task"].Color32 = 0x3ff0000;
	var_Chart.Bars.Copy("Task","NewTask").Height = 15;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(h,"NewTask",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"new",null);
	h = var_Items.AddItem("Task+Rhombus");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33554432);
	var_Items.AddBar(h,"NewTask",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"new",null);
	var_Items.set_ItemBar(h,"new",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33554432);
	h = var_Items.AddItem("Task/Color+Rhombus");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33554687);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,65280);
	var_Items.AddBar(h,"NewTask",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"new",null);
	var_Items.set_ItemBar(h,"new",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33554687);
	var_Items.set_ItemBar(h,"new",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,65280);
	h = var_Items.AddItem("Task/Color+Rhombus/Color");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33619712);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,16711935);
	var_Items.AddBar(h,"NewTask",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"new",null);
	var_Items.set_ItemBar(h,"new",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33619712);
	var_Items.set_ItemBar(h,"new",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,16711935);
exg2antt1.EndUpdate();

1731:
I am using EBN objects to show my bars, but when apply a color to the EBN looks darker. Is it possible to get the same color brightness

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAADhABWkIQAAYAQGKIYBkAKBQAGaAoDDWDoMAANAyjPBMKgBBCLAACaKQAD6CYQRhFT7yGAERr/C6EZBGABYJDUMAlCyNQBQSKIYxnAgYY4ACZ5I" +
"jqAwLQjQEYzZI0SxJCqQZBBCCSQKkYx0HScRijDILBQwIQmaqjEZoJCiQZfQLCAYRMhkQx9DKTLRtKhYDqubpHUZbdwWRaVYTlM6RLbhGy7YqefJtXLfN4WZgWCz9QLD" +
"I4wS78JruaqOW5hVz4BasfTrOzLcTzG4HLhCCYBgI");
	var_Appearance.Add(2,"CP:1 -6 0 0 0");
	var_Appearance.RenderType = -16777216;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,164);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Task+Rhombus");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33554432);
	h = var_Items.AddItem("Task/Color+Rhombus");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33554687);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,65280);
	h = var_Items.AddItem("Task/Color+Rhombus/Color");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33619712);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,16711935);
exg2antt1.EndUpdate();

1730:
The ItemBar(exBarColor) changes the color for margins, and there is no exBarStartColor/exBarEndColor. However in my case I would then like do dynamically change the bar color to a different color without changing the start shape color

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAADhABWkIQAAYAQGKIYBkAKBQAGaAoDDWDoMAANAyjPBMKgBBCLAACaKQAD6CYQRhFT7yGAERr/C6EZBGABYJDUMAlCyNQBQSKIYxnAgYY4ACZ5I" +
"jqAwLQjQEYzZI0SxJCqQZBBCCSQKkYx0HScRijDILBQwIQmaqjEZoJCiQZfQLCAYRMhkQx9DKTLRtKhYDqubpHUZbdwWRaVYTlM6RLbhGy7YqefJtXLfN4WZgWCz9QLD" +
"I4wS78JruaqOW5hVz4BasfTrOzLcTzG4HLhCCYBgI");
	var_Appearance.Add(2,"CP:1 -6 0 0 0");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,164);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Task+Rhombus");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33554432);
	h = var_Items.AddItem("Task/Color+Rhombus");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33554432);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,65280);
	h = var_Items.AddItem("Task/Color+Rhombus/Color");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33619712);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,16711935);
exg2antt1.EndUpdate();

1729:
The ItemBar(exBarColor) changes the color for margins, and there is no exBarStartColor/exBarEndColor. However in my case I would then like do dynamically change the bar color to a different color without changing the end shape color

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAADhABXMIQAAYAQGKIYBkAKBQAGaAoDDWDoMAANAyjPBMKgBBCLAACaKQAD6CYQRhFT7yGAERr/C6EQLhGBRQCULQxDCBMIjLJoWhsASVRhnCBBR" +
"hwAI7ShPUBgXBNCQzICTJJkSJZBiECIJFAaJhnIapZDKGKQWCjAgiNpqGQ2QiKFC2HAcEAxCxGJBoKKZGq2bpJQLbdxUXRVZzpNi7Louay5CrOCZvXxaeAXDa+Az5ODD" +
"MRwLBcKhzCKDYzfdrZFaWFT3Qi8aCvG6sbw/HZ0OrEEIwCEBA");
	var_Appearance.Add(2,"CP:1 0 0 6 0");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,164);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Task+Rhombus");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33554432);
	h = var_Items.AddItem("Task/Color+Rhombus");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33554432);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,65280);
	h = var_Items.AddItem("Task/Color+Rhombus/Color");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33619712);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,16711935);
exg2antt1.EndUpdate();

1728:
Is it possible to resize a column with the mouse without changing the width of the next column

exg2antt1.BeginUpdate();
exg2antt1.ColumnAutoResize = false;
(exg2antt1.Columns.Add("Column 1") as exontrol.EXG2ANTTLib.Column).Width = 256;
(exg2antt1.Columns.Add("Column 2") as exontrol.EXG2ANTTLib.Column).Width = 512;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
exg2antt1.EndUpdate();

1727:
How can I align captions of items with checkbox, with items with no checkbox

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Default");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_CellImages(var_Items.AddItem(0),0,"1");
	var_Items.set_CellHasCheckBox(var_Items.AddItem(1),0,true);
	var_Items.set_CellImages(var_Items.AddItem(2),0,"1");
exg2antt1.EndUpdate();

1726:
How can I show each group header ( not-subroup ), with a different background color, while alternate background colors for inside items

// AddGroupItem event - Occurs after a new Group Item has been inserted to Items collection.
private void exg2antt1_AddGroupItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Summary",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
		var_Items.DefineSummaryBars(Item,"",-3,"");
}
//this.exg2antt1.AddGroupItem += new exontrol.EXG2ANTTLib.exg2antt.AddGroupItemEventHandler(this.exg2antt1_AddGroupItem);

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

// LayoutChanged event - Occurs when column's position or column's size is changed.
private void exg2antt1_LayoutChanged(object sender)
{
	exg2antt1.Refresh();
}
//this.exg2antt1.LayoutChanged += new exontrol.EXG2ANTTLib.exg2antt.LayoutChangedEventHandler(this.exg2antt1_LayoutChanged);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,312);
exg2antt1.BackColorSortBar = exg2antt1.BackColor;
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.Items.AllowCellValueToItemBar = true;
exg2antt1.Columns[2].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
exg2antt1.Columns[4].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
exg2antt1.SortBarVisible = true;
exg2antt1.SortBarCaption = "Drag a <b>column</b> header here to group by that column.";
exg2antt1.AllowGroupBy = true;
exg2antt1.Columns[1].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Position") as exontrol.EXG2ANTTLib.Column);
	var_Column.FormatColumn = "(0:= (1 rpos '')) right ( ( 1:= ( =:0 rfind `.` ) ) != -1 ? =:1 : len(=:0))";
	var_Column.Visible = false;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("Position") as exontrol.EXG2ANTTLib.Column);
	var_Column1.FormatColumn = "(1 rpos '') contains '.'";
	var_Column1.Visible = false;
exg2antt1.ConditionalFormats.Add("(%C13 mod 2) != 0",null).BackColor = Color.FromArgb(240,240,240);
exg2antt1.ConditionalFormats.Add("%C14 = 0",null).BackColor = Color.FromArgb(190,190,190);
exg2antt1.EndUpdate();

1725:
What is the difference between %0 and %C0, when using in expressions ( format, conditional format, computed fields, and so on )

exg2antt1.BeginUpdate();
exg2antt1.Chart.set_PaneWidth(true,0);
exg2antt1.HeaderAppearance = exontrol.EXG2ANTTLib.AppearanceEnum.Etched;
exg2antt1.HeaderHeight = 24;
exg2antt1.ScrollBySingleLine = true;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exRowLines;
(exg2antt1.Columns.Add("Value") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("FormatColumn = `%0` ~ CellValue") as exontrol.EXG2ANTTLib.Column);
	var_Column.FormatColumn = "%0";
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellSingleLine,false);
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("FormatColumn = `%C0`~ CellCaption") as exontrol.EXG2ANTTLib.Column);
	var_Column1.FormatColumn = "%C0";
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellSingleLine,false);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(1.1234);
	var_Items.set_CellValueFormat(var_Items.AddItem("<sha ;;0>This <fgcolor=FF0000>is a <s><b>HTM</fgcolor>L</b> text</s>."),0,exontrol.EXG2ANTTLib.ValueFormatEnum.exHTML);
	exontrol.EXG2ANTTLib.Editor var_Editor = var_Items.get_CellEditor(var_Items.AddItem(3),null);
		var_Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.CheckListType;
		var_Editor.AddItem(1,"Border",null);
		var_Editor.AddItem(2,"Thick",null);
		var_Editor.AddItem(4,"Shadow",null);
	var_Items.set_FormatCell(var_Items.AddItem(10000),0,"`<b>` + currency(value)");
exg2antt1.EndUpdate();

1724:
How can I alternate colors for each group header ( not-subroup ), with a different background color, while items of the same group showing with a different color

// AddGroupItem event - Occurs after a new Group Item has been inserted to Items collection.
private void exg2antt1_AddGroupItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Summary",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
		var_Items.DefineSummaryBars(Item,"",-3,"");
}
//this.exg2antt1.AddGroupItem += new exontrol.EXG2ANTTLib.exg2antt.AddGroupItemEventHandler(this.exg2antt1_AddGroupItem);

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

// LayoutChanged event - Occurs when column's position or column's size is changed.
private void exg2antt1_LayoutChanged(object sender)
{
	exg2antt1.Refresh();
}
//this.exg2antt1.LayoutChanged += new exontrol.EXG2ANTTLib.exg2antt.LayoutChangedEventHandler(this.exg2antt1_LayoutChanged);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,312);
exg2antt1.BackColorSortBar = exg2antt1.BackColor;
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.Items.AllowCellValueToItemBar = true;
exg2antt1.Columns[2].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
exg2antt1.Columns[4].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
exg2antt1.SortBarVisible = true;
exg2antt1.SortBarCaption = "Drag a <b>column</b> header here to group by that column.";
exg2antt1.AllowGroupBy = true;
exg2antt1.Columns[1].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Position") as exontrol.EXG2ANTTLib.Column);
	var_Column.FormatColumn = "(0:= (1 rpos '')) left ( ( 1:= ( =:0 lfind `.` ) ) != -1 ? =:1 : len(=:0))";
	var_Column.Visible = false;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("Position") as exontrol.EXG2ANTTLib.Column);
	var_Column1.FormatColumn = "(1 rpos '') contains '.'";
	var_Column1.Visible = false;
exg2antt1.ConditionalFormats.Add("(%C13 mod 2) != 0",null).BackColor = Color.FromArgb(240,240,240);
exg2antt1.ConditionalFormats.Add("%C14 = 0",null).BackColor = Color.FromArgb(190,190,190);
exg2antt1.EndUpdate();

1723:
How can I highlight each group header, with a different background color (method 2)

// AddGroupItem event - Occurs after a new Group Item has been inserted to Items collection.
private void exg2antt1_AddGroupItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.set_ItemBackColor(Item,Color.FromArgb(190,190,190));
		var_Items.AddBar(Item,"Summary",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
		var_Items.DefineSummaryBars(Item,"",-3,"");
}
//this.exg2antt1.AddGroupItem += new exontrol.EXG2ANTTLib.exg2antt.AddGroupItemEventHandler(this.exg2antt1_AddGroupItem);

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

// LayoutChanged event - Occurs when column's position or column's size is changed.
private void exg2antt1_LayoutChanged(object sender)
{
	exg2antt1.Refresh();
}
//this.exg2antt1.LayoutChanged += new exontrol.EXG2ANTTLib.exg2antt.LayoutChangedEventHandler(this.exg2antt1_LayoutChanged);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,312);
exg2antt1.BackColorSortBar = exg2antt1.BackColor;
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.Items.AllowCellValueToItemBar = true;
exg2antt1.Columns[2].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
exg2antt1.Columns[4].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
exg2antt1.SortBarVisible = true;
exg2antt1.SortBarCaption = "Drag a <b>column</b> header here to group by that column.";
exg2antt1.AllowGroupBy = true;
exg2antt1.Columns[1].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exg2antt1.EndUpdate();

1722:
How can I highlight each group header ( not-subroup ), with a different background color (method 1)

// AddGroupItem event - Occurs after a new Group Item has been inserted to Items collection.
private void exg2antt1_AddGroupItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Summary",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
		var_Items.DefineSummaryBars(Item,"",-3,"");
}
//this.exg2antt1.AddGroupItem += new exontrol.EXG2ANTTLib.exg2antt.AddGroupItemEventHandler(this.exg2antt1_AddGroupItem);

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

// LayoutChanged event - Occurs when column's position or column's size is changed.
private void exg2antt1_LayoutChanged(object sender)
{
	exg2antt1.Refresh();
}
//this.exg2antt1.LayoutChanged += new exontrol.EXG2ANTTLib.exg2antt.LayoutChangedEventHandler(this.exg2antt1_LayoutChanged);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,312);
exg2antt1.BackColorSortBar = exg2antt1.BackColor;
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.Items.AllowCellValueToItemBar = true;
exg2antt1.Columns[2].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
exg2antt1.Columns[4].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
exg2antt1.SortBarVisible = true;
exg2antt1.SortBarCaption = "Drag a <b>column</b> header here to group by that column.";
exg2antt1.AllowGroupBy = true;
exg2antt1.Columns[1].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Position") as exontrol.EXG2ANTTLib.Column);
	var_Column.FormatColumn = "(0:= (1 rpos '')) left ( ( 1:= ( =:0 lfind `.` ) ) != -1 ? =:1 : len(=:0))";
	var_Column.Visible = false;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("Position") as exontrol.EXG2ANTTLib.Column);
	var_Column1.FormatColumn = "(1 rpos '') contains '.'";
	var_Column1.Visible = false;
exg2antt1.ConditionalFormats.Add("%C14 = 0",null).BackColor = Color.FromArgb(190,190,190);
exg2antt1.EndUpdate();

1721:
The BackColorAlternate displays each second row with a different background color. Is it possible to apply a different background color, for each sub-tree, ConditionalFormats, Add

// LayoutChanged event - Occurs when column's position or column's size is changed.
private void exg2antt1_LayoutChanged(object sender)
{
	exg2antt1.Refresh();
}
//this.exg2antt1.LayoutChanged += new exontrol.EXG2ANTTLib.exg2antt.LayoutChangedEventHandler(this.exg2antt1_LayoutChanged);

// Sort event - Fired when the control sorts a column.
private void exg2antt1_Sort(object sender)
{
	exg2antt1.Refresh();
}
//this.exg2antt1.Sort += new exontrol.EXG2ANTTLib.exg2antt.SortEventHandler(this.exg2antt1_Sort);

exg2antt1.BeginUpdate();
exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("P1") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
	var_Column.PartialCheck = true;
exg2antt1.Chart.set_PaneWidth(true,0);
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("P2") as exontrol.EXG2ANTTLib.Column);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
	var_Column1.PartialCheck = true;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Root 1");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.set_ExpandItem(h,true);
	h = var_Items.AddItem("Root 2");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.set_ExpandItem(h,true);
	h = var_Items.AddItem("Root 2");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.set_ExpandItem(h,true);
exontrol.EXG2ANTTLib.Column var_Column2 = (exg2antt1.Columns.Add("Position") as exontrol.EXG2ANTTLib.Column);
	var_Column2.FormatColumn = "(0:= (1 rpos '')) left ( ( 1:= ( =:0 lfind `.` ) ) != -1 ? =:1 : len(=:0))";
	var_Column2.Visible = false;
exg2antt1.ConditionalFormats.Add("(%C2 mod 2) != 0",null).BackColor = Color.FromArgb(240,240,240);
exg2antt1.EndUpdate();

1720:
The BackColorAlternate displays each second row with a different background color. Is it possible to apply a different background color, for 2nd, 3rd, 4th, row, and so on

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

// LayoutChanged event - Occurs when column's position or column's size is changed.
private void exg2antt1_LayoutChanged(object sender)
{
	exg2antt1.Refresh();
}
//this.exg2antt1.LayoutChanged += new exontrol.EXG2ANTTLib.exg2antt.LayoutChangedEventHandler(this.exg2antt1_LayoutChanged);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,312);
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.Items.AllowCellValueToItemBar = true;
exg2antt1.Columns[2].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
exg2antt1.Columns[4].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
exg2antt1.Columns[1].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Position") as exontrol.EXG2ANTTLib.Column);
	var_Column.FormatColumn = "1 apos ''";
	var_Column.Visible = false;
exg2antt1.ConditionalFormats.Add("(%C13 mod 5) = 1",null).BackColor = Color.FromArgb(128,128,128);
exg2antt1.ConditionalFormats.Add("(%C13 mod 5) = 2",null).BackColor = Color.FromArgb(164,164,164);
exg2antt1.ConditionalFormats.Add("(%C13 mod 5) = 3",null).BackColor = Color.FromArgb(190,190,190);
exg2antt1.ConditionalFormats.Add("(%C13 mod 5) = 4",null).BackColor = Color.FromArgb(240,240,240);
exg2antt1.EndUpdate();

1719:
The BackColorAlternate displays each second row with a different background color. The question I have it is possible to apply a different background color for 3rd, 4th, row, and so on

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

// LayoutChanged event - Occurs when column's position or column's size is changed.
private void exg2antt1_LayoutChanged(object sender)
{
	exg2antt1.Refresh();
}
//this.exg2antt1.LayoutChanged += new exontrol.EXG2ANTTLib.exg2antt.LayoutChangedEventHandler(this.exg2antt1_LayoutChanged);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,312);
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.Items.AllowCellValueToItemBar = true;
exg2antt1.Columns[2].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
exg2antt1.Columns[4].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
exg2antt1.Columns[1].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Position") as exontrol.EXG2ANTTLib.Column);
	var_Column.FormatColumn = "1 apos ''";
	var_Column.Visible = false;
exg2antt1.ConditionalFormats.Add("(%C13 mod 4) = 0",null).BackColor = Color.FromArgb(240,240,240);
exg2antt1.EndUpdate();

1718:
The BackColorAlternate looks fine for flat tables, but how about using it when displaying a hierarchy/tree, like grouping rows. The sample alternate colors for each group found

// AddGroupItem event - Occurs after a new Group Item has been inserted to Items collection.
private void exg2antt1_AddGroupItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Summary",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
		var_Items.DefineSummaryBars(Item,"",-3,"");
}
//this.exg2antt1.AddGroupItem += new exontrol.EXG2ANTTLib.exg2antt.AddGroupItemEventHandler(this.exg2antt1_AddGroupItem);

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

// LayoutChanged event - Occurs when column's position or column's size is changed.
private void exg2antt1_LayoutChanged(object sender)
{
	exg2antt1.Refresh();
}
//this.exg2antt1.LayoutChanged += new exontrol.EXG2ANTTLib.exg2antt.LayoutChangedEventHandler(this.exg2antt1_LayoutChanged);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,312);
exg2antt1.BackColorSortBar = exg2antt1.BackColor;
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.Items.AllowCellValueToItemBar = true;
exg2antt1.Columns[2].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
exg2antt1.Columns[4].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
exg2antt1.SortBarVisible = true;
exg2antt1.SortBarCaption = "Drag a <b>column</b> header here to group by that column.";
exg2antt1.AllowGroupBy = true;
exg2antt1.Columns[1].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Position") as exontrol.EXG2ANTTLib.Column);
	var_Column.FormatColumn = "(0:= (1 rpos '')) left ( ( 1:= ( =:0 lfind `.` ) ) != -1 ? =:1 : len(=:0))";
	var_Column.Visible = false;
exg2antt1.ConditionalFormats.Add("(%C13 mod 2) != 0",null).BackColor = Color.FromArgb(240,240,240);
exg2antt1.EndUpdate();

1717:
How do I show the chart's labels in 24-hour clock format

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 3;
	exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
		var_Level.Label = "<%mmm%> <%d%>, <%yyyy%>";
		var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.exHOutside | exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
		var_Level1.Label = "<b><%h%>:00</b>";
		var_Level1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level1.Unit = exontrol.EXG2ANTTLib.UnitEnum.exHour;
		var_Level1.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelDefaultLine;
		var_Level1.DrawGridLines = true;
	exontrol.EXG2ANTTLib.Level var_Level2 = var_Chart.get_Level(2);
		var_Level2.Label = "<%nn%>";
		var_Level2.Unit = exontrol.EXG2ANTTLib.UnitEnum.exMinute;
		var_Level2.Count = 15;
	var_Chart.ScrollTo(Convert.ToDateTime("1/1/2001 8:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),0);

1716:
How do I show the chart's labels in 12-hour clock format

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 3;
	exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
		var_Level.Label = "<%mmm%> <%d%>, <%yyyy%>";
		var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.exHOutside | exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
		var_Level1.Label = "<b><%h%>:00</b> <%AM/PM%>";
		var_Level1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level1.Unit = exontrol.EXG2ANTTLib.UnitEnum.exHour;
		var_Level1.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelDefaultLine;
		var_Level1.DrawGridLines = true;
	exontrol.EXG2ANTTLib.Level var_Level2 = var_Chart.get_Level(2);
		var_Level2.Label = "<%nn%>";
		var_Level2.Unit = exontrol.EXG2ANTTLib.UnitEnum.exMinute;
		var_Level2.Count = 15;
	var_Chart.ScrollTo(Convert.ToDateTime("1/1/2001 8:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),0);

1715:
I would like to avoid manual typing in the date-cell because user often type wrong things (no decimal points and so on) and so the todays-date is generated for the cell. What can be done

// KeyPress event - Occurs when the user presses and releases an ANSI key.
private void exg2antt1_KeyPress(object sender,ref short   KeyAscii)
{
	System.Diagnostics.Debug.Print( "if .Editying != 0 then" );
	System.Diagnostics.Debug.Print( exg2antt1.Editing.ToString() );
	KeyAscii = 0;
}
//this.exg2antt1.KeyPress += new exontrol.EXG2ANTTLib.exg2antt.KeyPressEventHandler(this.exg2antt1_KeyPress);

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
		var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
		var_Column1.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowLinkBars = true;
	var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,196);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1714:
When a Day, Week etc is clicked how can we make it centre/zoom the chart to cover all the bars

// OverviewZoom event - Occurs once the user selects a new time scale unit in the overview zoom area.
private void exg2antt1_OverviewZoom(object sender)
{
	exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
		var_Chart.ScrollTo(Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1);
		System.Diagnostics.Debug.Print( "Start" );
		System.Diagnostics.Debug.Print( var_Chart.StartPrintDate.ToString() );
		System.Diagnostics.Debug.Print( "End" );
		System.Diagnostics.Debug.Print( var_Chart.EndPrintDate.ToString() );
}
//this.exg2antt1.OverviewZoom += new exontrol.EXG2ANTTLib.exg2antt.OverviewZoomEventHandler(this.exg2antt1_OverviewZoom);

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.OverviewVisible = exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
	var_Chart.AllowOverviewZoom = exontrol.EXG2ANTTLib.OverviewZoomEnum.exAlwaysZoom;
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exSecond,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exMinute,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exHour,"");
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.ScrollTo(Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1);
	var_Chart.MarkTimeZone("zone",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),10516548,null);
exg2antt1.Columns.Add("Default");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("12/15/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1713:
The first time we run the application, the day label headers looks different then pressing Week and then Day again on the control's overview part. How do we make to show the header in the same format

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.OverviewVisible = exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
	var_Chart.AllowOverviewZoom = exontrol.EXG2ANTTLib.OverviewZoomEnum.exAlwaysZoom;
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exSecond,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exMinute,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exHour,"");
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay;

1712:
How to sort numerically by columns

exg2antt1.BeginUpdate();
(exg2antt1.Columns.Add("Numeric") as exontrol.EXG2ANTTLib.Column).SortType = exontrol.EXG2ANTTLib.SortTypeEnum.SortNumeric;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(1);
	var_Items.AddItem(2);
	var_Items.AddItem(12);
	var_Items.AddItem(22);
exg2antt1.Columns[0].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exg2antt1.EndUpdate();

1711:
The control does not ensure the item to fit the control's client area once the user clicks the cell's button or check box. What can be done
// MouseDown event - Occurs when the user presses a mouse button.
private void exg2antt1_MouseDownEvent(object sender,short   Button,short   Shift,int   X,int   Y)
{
	// Items.EnsureVisibleItem(ItemFromPoint(-1,-1,c,hit))
}
//this.exg2antt1.MouseDownEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseDownEventHandler(this.exg2antt1_MouseDownEvent);

exg2antt1.BeginUpdate();
exg2antt1.TreeColumnIndex = -1;
exg2antt1.SelForeColor = exg2antt1.ForeColor;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Buttons") as exontrol.EXG2ANTTLib.Column);
	var_Column.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasButton,true);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("Button A");
	var_Items.AddItem("Button B");
	var_Items.AddItem("Button C");
exg2antt1.EndUpdate();

1710:
How do I arrange the levels when the user changes the scale using the control's overview part

// OverviewZoom event - Occurs once the user selects a new time scale unit in the overview zoom area.
private void exg2antt1_OverviewZoom(object sender)
{
	System.Diagnostics.Debug.Print( exg2antt1.Chart.UnitScale.ToString() );
	exg2antt1.EnsureVisibleColumn(0);
	exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
		var_Chart.get_Level(0).DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelNoLine;
		var_Chart.ScrollTo(Convert.ToDateTime("11/18/2015",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1);
}
//this.exg2antt1.OverviewZoom += new exontrol.EXG2ANTTLib.exg2antt.OverviewZoomEventHandler(this.exg2antt1_OverviewZoom);

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("11/18/2015",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.DrawLevelSeparator = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
	exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
		var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.exHOutside | exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
		var_Level.BackColor = exg2antt1.BackColor;
	exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
		var_Level1.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelMiddleLine | exontrol.EXG2ANTTLib.LevelLineEnum.exLevelDotLine;
		var_Level1.DrawTickLinesFrom(0,exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine);
	var_Chart.OverviewVisible = exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
	var_Chart.AllowOverviewZoom = exontrol.EXG2ANTTLib.OverviewZoomEnum.exAlwaysZoom;
	var_Chart.UnitWidth = 24;
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exSecond,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exMinute,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exHour,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exWeek,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exDay,"<|><%d%><|><%d3%>, <%m3%> <%d%>, '<%yy%><|><%dddd%>, <%mmmm%> <%d%>, <%yyyy%><||><||>4096");
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.ScrollTo(var_Chart.FirstVisibleDate,1);
exg2antt1.Columns.Add("Default");
exg2antt1.EndUpdate();

1709:
I am using AllowGroupBy, the question is it is possible to add summary bars for child item, when user do grouping

// AddGroupItem event - Occurs after a new Group Item has been inserted to Items collection.
private void exg2antt1_AddGroupItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Summary",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
		var_Items.DefineSummaryBars(Item,"",-3,"");
}
//this.exg2antt1.AddGroupItem += new exontrol.EXG2ANTTLib.exg2antt.AddGroupItemEventHandler(this.exg2antt1_AddGroupItem);

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.BackColorSortBar = exg2antt1.BackColor;
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.SortBarVisible = true;
exg2antt1.SortBarCaption = "Drag a <b>column</b> header here to group by that column.";
exg2antt1.AllowGroupBy = true;
exg2antt1.Columns[1].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exg2antt1.EndUpdate();

1708:
I noticed that when grouping on a field, its details are always expanded. Is it possible to show collapsed by default (method 3)

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.BackColorSortBar = exg2antt1.BackColor;
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.SortBarVisible = true;
exg2antt1.SortBarCaption = "Drag a <b>column</b> header here to group by that column.";
exg2antt1.AllowGroupBy = true;
exg2antt1.Chart.ShowCollapsedBars = true;
exg2antt1.EndUpdate();
exg2antt1.Layout = "multiplesort=\"C1:1\";collapse=\"0-9999\"";

1707:
I noticed that when grouping on a field, its details are always expanded. Is it possible to show collapsed by default (method 2)

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.BackColorSortBar = exg2antt1.BackColor;
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.SortBarVisible = true;
exg2antt1.SortBarCaption = "Drag a <b>column</b> header here to group by that column.";
exg2antt1.AllowGroupBy = true;
exg2antt1.Columns[1].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exg2antt1.EndUpdate();
exg2antt1.BeginUpdate();
exg2antt1.EnsureVisibleColumn(0);
exg2antt1.Items.set_ExpandItem(0,false);
exg2antt1.EndUpdate();

1706:
I noticed that when grouping on a field, its details are always expanded. Is it possible to show collapsed by default (method 1)

// AddGroupItem event - Occurs after a new Group Item has been inserted to Items collection.
private void exg2antt1_AddGroupItem(object sender,int   Item)
{
	exg2antt1.Items.set_ExpandItem(Item,false);
}
//this.exg2antt1.AddGroupItem += new exontrol.EXG2ANTTLib.exg2antt.AddGroupItemEventHandler(this.exg2antt1_AddGroupItem);

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.BackColorSortBar = exg2antt1.BackColor;
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.SortBarVisible = true;
exg2antt1.SortBarCaption = "Drag a <b>column</b> header here to group by that column.";
exg2antt1.AllowGroupBy = true;
exg2antt1.Columns[1].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exg2antt1.EndUpdate();

1705:
Is there a possibility to expand / collapse all groups (or group by group) at runtime with a method (equivalent to pressing the + or - button in the group header)

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.BackColorSortBar = exg2antt1.BackColor;
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.SortBarVisible = true;
exg2antt1.SortBarCaption = "Drag a <b>column</b> header here to group by that column.";
exg2antt1.AllowGroupBy = true;
exg2antt1.Columns[1].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exg2antt1.EndUpdate();
exg2antt1.EnsureVisibleColumn(0);
exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_ExpandItem(var_Items.get_RootItem(0),false);
	var_Items.set_ExpandItem(var_Items.get_RootItem(1),false);
	var_Items.set_ExpandItem(var_Items.get_RootItem(2),false);
exg2antt1.EndUpdate();

1704:
Is there a possibility to expand / collapse all groups (or group by group) at runtime with a method (equivalent to pressing the + or - button in the group header)

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("9/1/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.BackColorSortBar = exg2antt1.BackColor;
exg2antt1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.SortBarVisible = true;
exg2antt1.SortBarCaption = "Drag a <b>column</b> header here to group by that column.";
exg2antt1.AllowGroupBy = true;
exg2antt1.Columns[1].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
exg2antt1.EndUpdate();
exg2antt1.BeginUpdate();
exg2antt1.EnsureVisibleColumn(0);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_ExpandItem(var_Items.FirstVisibleItem,false);
exg2antt1.EndUpdate();

1703:
How can I move automatically a bar once another is moved ( non-working bars )

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
exg2antt1.Columns.Add("Tasks");
(exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).Visible = false;
(exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column).Visible = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars.Add("Task:Split");
		var_Bar.Shortcut = "TSplit";
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Project");
	var_Items.set_CellValue(h,1,Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("10/3/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddBar(h,"Summary",var_Items.get_CellValue(h,1),var_Items.get_CellValue(h,2),null,null);
	int h1 = var_Items.InsertItem(h,null,"Task 1");
	var_Items.set_CellValue(h1,1,var_Items.get_CellValue(h,1));
	var_Items.set_CellValue(h1,2,Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddBar(h1,"TSplit",var_Items.get_CellValue(h1,1),var_Items.get_CellValue(h1,2),null,null);
	int h2 = var_Items.InsertItem(h,null,"Task 2");
	var_Items.set_CellValue(h2,1,var_Items.get_CellValue(h1,2));
	var_Items.set_CellValue(h2,2,Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddBar(h2,"TSplit",var_Items.get_CellValue(h2,1),var_Items.get_CellValue(h2,2),null,null);
	var_Items.AddLink("L1",h1,"",h2,"");
	int h3 = var_Items.InsertItem(h,null,"Task 3");
	var_Items.set_CellValue(h3,1,var_Items.get_CellValue(h2,2));
	var_Items.set_CellValue(h3,2,var_Items.get_CellValue(h,2));
	var_Items.AddBar(h3,"TSplit",var_Items.get_CellValue(h3,1),var_Items.get_CellValue(h3,2),null,null);
	var_Items.AddLink("L2",h2,"",h3,"");
	var_Items.GroupBars(h1,"",false,h2,"",true,7,null);
	var_Items.GroupBars(h2,"",false,h3,"",true,7,null);
	var_Items.DefineSummaryBars(h,"",h1,"");
	var_Items.DefineSummaryBars(h,"",h2,"");
	var_Items.DefineSummaryBars(h,"",h3,"");
	var_Items.set_ExpandItem(h,true);
	var_Items.set_ItemBold(h,true);
exg2antt1.EndUpdate();

1702:
How can I get notified once the user expands a column

// LayoutChanged event - Occurs when column's position or column's size is changed.
private void exg2antt1_LayoutChanged(object sender)
{
	System.Diagnostics.Debug.Print( "Column-Expanded" );
	System.Diagnostics.Debug.Print( exg2antt1.Columns["C0"].Expanded.ToString() );
}
//this.exg2antt1.LayoutChanged += new exontrol.EXG2ANTTLib.exg2antt.LayoutChangedEventHandler(this.exg2antt1_LayoutChanged);

exg2antt1.BeginUpdate();
exg2antt1.ShowFocusRect = false;
exg2antt1.ColumnAutoResize = false;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("C0") as exontrol.EXG2ANTTLib.Column);
		var_Column.ExpandColumns = "0,1,2";
		var_Column.DisplayExpandButton = true;
	var_Columns.Add("C1");
	var_Columns.Add("C2");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Cell 0.0");
	var_Items.set_CellValue(h,1,"Cell 0.1");
	var_Items.set_CellValue(h,2,"Cell 0.2");
	h = var_Items.AddItem("Cell 1.0");
	var_Items.set_CellValue(h,1,"Cell 1.1");
	var_Items.set_CellValue(h,2,"Cell 1.2");
exg2antt1.EndUpdate();

1701:
I am using expandable headers, the question is how I can display the column itself, not just the child columns

exg2antt1.BeginUpdate();
exg2antt1.ColumnAutoResize = false;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("C0") as exontrol.EXG2ANTTLib.Column);
		var_Column.ExpandColumns = "0,1,2";
		var_Column.DisplayExpandButton = true;
	var_Columns.Add("C1");
	var_Columns.Add("C2");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Cell 0.0");
	var_Items.set_CellValue(h,1,"Cell 0.1");
	var_Items.set_CellValue(h,2,"Cell 0.2");
	h = var_Items.AddItem("Cell 1.0");
	var_Items.set_CellValue(h,1,"Cell 1.1");
	var_Items.set_CellValue(h,2,"Cell 1.2");
exg2antt1.EndUpdate();

1700:
How do I layout expandable columns

exg2antt1.BeginUpdate();
exg2antt1.ColumnAutoResize = false;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("C0") as exontrol.EXG2ANTTLib.Column);
		var_Column.ExpandColumns = "1,2";
		var_Column.DisplayExpandButton = true;
	var_Columns.Add("C1");
	var_Columns.Add("C2");
	var_Columns.Add("C3");
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("C4") as exontrol.EXG2ANTTLib.Column);
		var_Column1.ExpandColumns = "5,6";
		var_Column1.DisplayExpandButton = true;
	var_Columns.Add("C5");
	exontrol.EXG2ANTTLib.Column var_Column2 = (var_Columns.Add("C6") as exontrol.EXG2ANTTLib.Column);
		var_Column2.ExpandColumns = "6,7";
		var_Column2.DisplayExpandButton = true;
	var_Columns.Add("C7");
exg2antt1.EndUpdate();
exg2antt1.Columns["C4"].Expanded = false;

1699:
Is it possible to display automatically the start/end margins of the bars

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<%=%1%>");
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,16);
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"<%=%2%>");
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,18);
	var_Chart.ScrollTo(var_Chart.FirstVisibleDate,1);
exg2antt1.Columns.Add("Task");
(exg2antt1.Columns.Add("ToolTip") as exontrol.EXG2ANTTLib.Column).Visible = false;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Item 1");
	var_Items.set_CellValue(h,1,"bar <b>a");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Item 2");
	var_Items.set_CellValue(h,1,"bar <b>b");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1698:
Is it possible to assign the bar's caption from a hidden column

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<%=%C1%>");
		var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
exg2antt1.Columns.Add("Task");
(exg2antt1.Columns.Add("ToolTip") as exontrol.EXG2ANTTLib.Column).Visible = false;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Item 1");
	var_Items.set_CellValue(h,1,"bar <b>a");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Item 2");
	var_Items.set_CellValue(h,1,"bar <b>b");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1697:
Is it possible to assign the bar's tooltip from a hidden column

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	var_Chart.Bars["Task"].set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarToolTip,"<%=%C1%>");
exg2antt1.Columns.Add("Task");
(exg2antt1.Columns.Add("ToolTip") as exontrol.EXG2ANTTLib.Column).Visible = false;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Item 1");
	var_Items.set_CellValue(h,1,"This is a bit of text that's shown when the cursor hovers the bar on item 1.");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Item 2");
	var_Items.set_CellValue(h,1,"This is a bit of text that's shown when the cursor hovers the bar on item 2.");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1696:
I am using exBarFrameColor, but no black frame is shown. What could be wrong (method 2)

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Default");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,65536);
exg2antt1.EndUpdate();

1695:
I am using exBarFrameColor, but no black frame is shown. What could be wrong (method 1)

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.Bars["Task"].set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,65536);
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Default"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1694:
What I need is bars that have a solid color, but with a black frame. How can we do that

exg2antt1.BeginUpdate();
exg2antt1.DefaultItemHeight = 22;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,0);
exontrol.EXG2ANTTLib.Bar var_Bar = exg2antt1.Chart.Bars.Add("Frame");
	var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
	var_Bar.Color = Color.FromArgb(0,255,0);
	var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,65536);
	var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<font ;6><%=%C0%>");
	var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
	var_Bar.Height = 15;
exg2antt1.Columns.Add("Frames");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Default"),"Frame",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h = var_Items.AddItem("Inside Color");
	var_Items.AddBar(h,"Frame",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
	h = var_Items.AddItem("Border Color");
	var_Items.AddBar(h,"Frame",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33023);
	h = var_Items.AddItem("Inside/Border Color");
	var_Items.AddBar(h,"Frame",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,16711680);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33023);
	h = var_Items.AddItem("Thick-Border");
	var_Items.AddBar(h,"Frame",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarPattern,4097);
	h = var_Items.AddItem("Thick-Border + Pattern");
	var_Items.AddBar(h,"Frame",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarPattern,4098);
exg2antt1.EndUpdate();

1693:
How can we drag bars from one item to the other

exg2antt1.BeginUpdate();
exg2antt1.DefaultItemHeight = 22;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
(exg2antt1.Columns.Add("Members") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowLinkBars = false;
	var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
	var_Chart.AllowSelectObjects = exontrol.EXG2ANTTLib.SelectObjectsEnum.exNoSelectObjects;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,96);
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsIncludeCaption | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStackAutoArrange | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack;
		var_Bar.Height = 18;
		var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
		var_Bar.Color = Color.FromArgb(0,128,255);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Member <b>1</b>");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T102","<font ;6><fgcolor FFFFFF>Task <b>102</b>");
	var_Items.set_ItemBar(h,"T102",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCanMoveToAnother,true);
	h = var_Items.AddItem("Member <b>2</b>");
	h = var_Items.AddItem("Member <b>3</b>");
	h = var_Items.AddItem("Member <b>4</b>");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T103","<font ;6><fgcolor FFFFFF>Task <b>103</b>");
	var_Items.set_ItemBar(h,"T103",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCanMoveToAnother,true);
exg2antt1.EndUpdate();

1692:
How can I use the exBarBackgroundExt option of the Items.ItemBar property

exg2antt1.BeginUpdate();
exg2antt1.DefaultItemHeight = 26;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.NonworkingDays = 0;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.Bars["Task"].Height = 22;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Border-Top");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[3,back=RGB(0,0,0)]");
	h = var_Items.AddItem("Border-Bottom");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"bottom[3,back=RGB(255,0,0)]");
	h = var_Items.AddItem("Border-Left");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[6,back=RGB(0,255,0)]");
	h = var_Items.AddItem("Border-Right");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"right[6,back=RGB(0,0,255)]");
	h = var_Items.AddItem("Border-All");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[3,back=RGB(0,0,0)],right[3,back=RGB(0,0,255)],bottom[3,back=RGB(255,0,0)],left[3,back=RGB(0,255,0)],client");
	h = var_Items.AddItem("Middle");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(25%,25%,50%,50%),back=RGB(255,0,0)]");
	h = var_Items.AddItem("Horizontal");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(0,50%-2,100%,4),back=RGB(255,0,0)]");
	h = var_Items.AddItem("Vertical");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(50%-2,0,4,100%),back=RGB(255,0,0)]");
	h = var_Items.AddItem("Mixt");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"[[patterncolor=RGB(255,0,0)](none[(4,4,100%-8,100%-8),pattern=0x006,patterncolor=RGB(255,0,0),frame=RGB(255,0,0),framethick])]");
	h = var_Items.AddItem("Misc");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"bottom[50%,pattern=10,frame]");
	h = var_Items.AddItem("Complex");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[10%](top[90%,back=RGB(0,0,0)]),top[30%,back=RGB(254,217,102)],client[back=RGB(91,156,212)]");
exg2antt1.EndUpdate();

1691:
Does the title of the cell's tooltip supports HTML format

exg2antt1.BeginUpdate();
exg2antt1.Chart.set_PaneWidth(true,0);
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("") as exontrol.EXG2ANTTLib.Column);
	var_Column.Caption = "";
	var_Column.HTMLCaption = "Column";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_CellToolTip(var_Items.AddItem("tooltip w/h different title"),0,"<c><b><fgcolor=FF0000>Title</fgcolor></b><br>This is bit of text that's shown when the user hovers the cell. This shows the tit" +
"le centered with a different color.");
exg2antt1.EndUpdate();

1690:
How do I specify a different title for the cell's tooltip

exg2antt1.BeginUpdate();
exg2antt1.Chart.set_PaneWidth(true,0);
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("") as exontrol.EXG2ANTTLib.Column);
	var_Column.Caption = "This is the title";
	var_Column.HTMLCaption = "Column";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_CellToolTip(var_Items.AddItem("tooltip w/h different title"),0,"This is bit of text that's shown when the user hovers the cell.");
exg2antt1.EndUpdate();

1689:
The cell's tooltip displays the column's caption in its title. How can I get ride of that

exg2antt1.BeginUpdate();
exg2antt1.Chart.set_PaneWidth(true,0);
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("C1");
	var_Columns.Add("C2");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("tooltip w/h caption");
	var_Items.set_CellToolTip(h,0,"This is bit of text that's shown when the user hovers the cell. This shows the column's caption in the title.");
	var_Items.set_CellValue(h,1,"tooltip no caption");
	var_Items.set_CellToolTip(h,1,"This is bit of text that's shown when the user hovers the cell. This shows no column's caption in the title.");
exontrol.EXG2ANTTLib.Column var_Column = exg2antt1.Columns["C2"];
	var_Column.HTMLCaption = var_Column.Caption;
	var_Column.Caption = "";
exg2antt1.EndUpdate();

1688:
How can I programmatically show the column's filter

// RClick event - Fired when right mouse button is clicked
private void exg2antt1_RClick(object sender)
{
	int i = exg2antt1.get_ItemFromPoint(-1,-1,c,hit);
	exg2antt1.Columns[c].ShowFilter("-1,-1,128,128");
}
//this.exg2antt1.RClick += new exontrol.EXG2ANTTLib.exg2antt.RClickEventHandler(this.exg2antt1_RClick);

exg2antt1.BeginUpdate();
exg2antt1.ShowFocusRect = false;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Items ") as exontrol.EXG2ANTTLib.Column);
	var_Column.DisplayFilterPattern = false;
	var_Column.FilterList = exontrol.EXG2ANTTLib.FilterListEnum.exShowExclude | exontrol.EXG2ANTTLib.FilterListEnum.exShowFocusItem | exontrol.EXG2ANTTLib.FilterListEnum.exShowCheckBox;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("Item 1");
	var_Items.AddItem("Item 2");
	var_Items.AddItem("Item 3");
exg2antt1.EndUpdate();

1687:
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 2)

// ColumnClick event - Fired after the user clicks on column's header.
private void exg2antt1_ColumnClick(object sender,exontrol.EXG2ANTTLib.Column   Column)
{
	// Column.SortOrder = 1
	exg2antt1.SortOnClick = exontrol.EXG2ANTTLib.SortOnClickEnum.exDefaultSort;
	exg2antt1.Columns["Sort"].SortOrder = exontrol.EXG2ANTTLib.SortOrderEnum.SortAscending;
	exg2antt1.SortOnClick = exontrol.EXG2ANTTLib.SortOnClickEnum.exUserSort;
}
//this.exg2antt1.ColumnClick += new exontrol.EXG2ANTTLib.exg2antt.ColumnClickEventHandler(this.exg2antt1_ColumnClick);

exg2antt1.BeginUpdate();
exg2antt1.SortOnClick = exontrol.EXG2ANTTLib.SortOnClickEnum.exUserSort;
exg2antt1.Columns.Add("Items");
(exg2antt1.Columns.Add("Sort") as exontrol.EXG2ANTTLib.Column).Visible = false;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_CellValue(var_Items.AddItem("Item 1 (3)"),1,3);
	var_Items.set_CellValue(var_Items.AddItem("Item 2 (1)"),1,1);
	var_Items.set_CellValue(var_Items.AddItem("Item 3 (2)"),1,2);
exg2antt1.EndUpdate();

1686:
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 1)

// ColumnClick event - Fired after the user clicks on column's header.
private void exg2antt1_ColumnClick(object sender,exontrol.EXG2ANTTLib.Column   Column)
{
	// Column.SortOrder = 1
	exg2antt1.Items.SortChildren(0,"Sort",true);
}
//this.exg2antt1.ColumnClick += new exontrol.EXG2ANTTLib.exg2antt.ColumnClickEventHandler(this.exg2antt1_ColumnClick);

exg2antt1.BeginUpdate();
exg2antt1.SortOnClick = exontrol.EXG2ANTTLib.SortOnClickEnum.exUserSort;
exg2antt1.Columns.Add("Items");
(exg2antt1.Columns.Add("Sort") as exontrol.EXG2ANTTLib.Column).Visible = false;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_CellValue(var_Items.AddItem("Item 1 (3)"),1,3);
	var_Items.set_CellValue(var_Items.AddItem("Item 2 (1)"),1,1);
	var_Items.set_CellValue(var_Items.AddItem("Item 3 (2)"),1,2);
exg2antt1.EndUpdate();

1685:
How do I get information about control's events
// Event event - Notifies the application once the control fires an event.
private void exg2antt1_Event(object sender,int   EventID)
{
	System.Diagnostics.Debug.Print( exg2antt1.ExecuteTemplate("EventParam(-2)").ToString() );
}
//this.exg2antt1.Event += new exontrol.EXG2ANTTLib.exg2antt.EventEventHandler(this.exg2antt1_Event);

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	var_Chart.AllowLinkBars = false;
	var_Chart.Bars["Task"].OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsTransparent | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsOffset;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Item 1");
	var_Items.set_EnableItem(h,false);
	var_Items.set_ItemData(h,-1);
	h = var_Items.AddItem("Item 2");
	var_Items.set_ItemData(h,0);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.set_ItemBar(h,"B",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCanMoveToAnother,true);
	var_Items.set_ItemData(var_Items.AddItem("Item 3"),0);
	h = var_Items.AddItem("Item 4");
	var_Items.set_EnableItem(h,false);
	var_Items.set_ItemData(h,-1);
exg2antt1.EndUpdate();

1684:
How can I sort by two-columns, one by date and one by time

exg2antt1.BeginUpdate();
exg2antt1.SingleSort = false;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	(var_Columns.Add("Index") as exontrol.EXG2ANTTLib.Column).FormatColumn = "1 index ``";
	(var_Columns.Add("Date") as exontrol.EXG2ANTTLib.Column).SortType = exontrol.EXG2ANTTLib.SortTypeEnum.SortDate;
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Time") as exontrol.EXG2ANTTLib.Column);
		var_Column.SortType = exontrol.EXG2ANTTLib.SortTypeEnum.SortTime;
		var_Column.FormatColumn = "time(value)";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem(0);
	var_Items.set_CellValue(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(0);
	var_Items.set_CellValue(h,1,Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(0);
	var_Items.set_CellValue(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("1/1/2001 6:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(0);
	var_Items.set_CellValue(h,1,Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("1/1/2001 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(0);
	var_Items.set_CellValue(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("1/1/2001 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(0);
	var_Items.set_CellValue(h,1,Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("1/1/2001 6:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.Layout = "multiplesort=\"C1:1 C2:1\"";
exg2antt1.EndUpdate();

1683:
I am trying to hide the non-working dates by using the AddNonworkingDate to specify custom non-working dates while NonworkingDays property is 0, but the non-working date is still shown. What can be wrong

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.ShowNonworkingUnits = false;
	var_Chart.ShowNonworkingDates = false;
	var_Chart.NonworkingDays = 128;
	var_Chart.AddNonworkingDate(Convert.ToDateTime("1/7/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.AddNonworkingDate(Convert.ToDateTime("1/8/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.AddNonworkingDate(Convert.ToDateTime("1/9/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.AddNonworkingDate(Convert.ToDateTime("1/10/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

1682:
How can I display the task's duration, in days, hours and minutes

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Tasks") as exontrol.EXG2ANTTLib.Column);
	var_Column.AllowSizing = false;
	var_Column.Width = 36;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("Duration") as exontrol.EXG2ANTTLib.Column);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,513);
	var_Column1.FormatColumn = "((1:=int(0:= (value))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)*24))) != 0 " +
"? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')";
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,148);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("4/6/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exHour;
	var_Chart.ResizeUnitScale = exontrol.EXG2ANTTLib.UnitEnum.exMinute;
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("T1"),"Task",Convert.ToDateTime("4/6/2009 2:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("4/6/2009 12:35:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("T2"),"Task",Convert.ToDateTime("4/6/2009 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("4/6/2009 10:10:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1681:
Does your control support working half-hour/minutes/seconds

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Tasks") as exontrol.EXG2ANTTLib.Column);
	var_Column.AllowSizing = false;
	var_Column.Width = 36;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("Working") as exontrol.EXG2ANTTLib.Column);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,258);
	var_Column1.FormatColumn = "((1:=int(0:= (value))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)*24))) != 0 " +
"? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')";
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("4/6/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,148);
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exHour;
	var_Chart.ResizeUnitScale = exontrol.EXG2ANTTLib.UnitEnum.exMinute;
	var_Chart.ResizeUnitCount = 15;
	var_Chart.NonworkingHours = 15728767;
	var_Chart.ShowNonworkingDates = false;
	var_Chart.ShowNonworkingUnits = false;
	exontrol.EXG2ANTTLib.Bars var_Bars = var_Chart.Bars;
		var_Bars["Task"].set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
		var_Bars.Add("Task:Split").Shortcut = "Task";
	var_Chart.AllowLinkBars = false;
	var_Chart.UnitWidth = 26;
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("T1");
	var_Items.set_ItemNonworkingUnits(h,false,"(weekday(value) in (1,2,3,4,5) and (timeF(value)<\"09:30\"  or timeF(value)>=\"17:30\")) or (weekday(value) in (0,6))");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("4/6/2009 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("4/6/2009 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("T2");
	var_Items.set_ItemNonworkingUnits(h,false,"(weekday(value) in (1,2,3,4,5) and (timeF(value)<\"08:00\"  or timeF(value)>=\"16:00\")) or (weekday(value) in (0,6))");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("4/6/2009 9:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("4/6/2009 10:45:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();

1680:
How can I programmatically move a bar to a specified date-time
exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Original");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	h = var_Items.AddItem("Moved");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	object duration = var_Items.get_ItemBar(h,"key",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarDuration);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	var_Items.set_ItemBar(h,"key",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarDuration,duration);
exg2antt1.EndUpdate();

1679:
How can I programmatically move a bar, with a specified ammount
exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Original");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	h = var_Items.AddItem("Moved");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	var_Items.set_ItemBar(h,"key",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMove,3);
exg2antt1.EndUpdate();

1678:
How can I programmatically move a bar to a specified date-time (auto-adjust spans over a non-working period)

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	exontrol.EXG2ANTTLib.Bars var_Bars = var_Chart.Bars;
		var_Bars["Task"].set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
		var_Bars.Add("Task:Split").Shortcut = "Task";
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Original");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	h = var_Items.AddItem("Moved");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	object workingCount = var_Items.get_ItemBar(h,"key",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarWorkingCount);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	var_Items.set_ItemBar(h,"key",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarWorkingCount,workingCount);
exg2antt1.EndUpdate();

1677:
How can I programmatically move a bar, with a specified ammount (auto-adjust spans over a non-working period)

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	exontrol.EXG2ANTTLib.Bars var_Bars = var_Chart.Bars;
		var_Bars["Task"].set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
		var_Bars.Add("Task:Split").Shortcut = "Task";
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Original");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	h = var_Items.AddItem("Moved");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	var_Items.set_ItemBar(h,"key",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMove,3);
exg2antt1.EndUpdate();

1676:
How can I show a secondary curve, line in the control's histogram

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exg2antt1.AntiAliasing = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,40);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramNoGrouping | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 128;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar.HistogramItems = 8;
		var_Bar.HistogramRulerLinesColor = Color.FromArgb(0,0,1);
	var_Chart.get_Level(1).Label = "<font ;3><%d%>";
	var_Chart.UnitWidth = 9;
	exontrol.EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars["Summary"];
		var_Bar1.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exRoundCurve;
		var_Bar1.HistogramColor = Color.FromArgb(255,0,0);
		var_Bar1.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar1.HistogramItems = 8;
		var_Bar1.HistogramBorderSize = 1;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,1);
	int h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,0);
	var_Items.set_ItemHeight(h,0);
	var_Items.AddBar(h,"Summary",Convert.ToDateTime("1/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("12/31/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null);
	var_Items.set_ItemBar(h,"1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"(value mod 31) array (1,1,1,2,1,2.5,3,4,5,4,3,2,1,2,2,3,4.5,4,5,6,7,6,1,2,3,1,1,1,2,3,2,2)");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/16/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"weekday(value) in (0,6) ? 0.25 : 2");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/18/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"weekday(value) = 1 ? 2.5 : .5");
exg2antt1.EndUpdate();

1675:
How can I add an owner-draw bar
// AfterDrawPart event - Occurs right after drawing the part of the control.
private void exg2antt1_AfterDrawPart(object sender,exontrol.EXG2ANTTLib.DrawPartEnum   Part,int   hDC,int   X,int   Y,int   Width,int   Height)
{
	System.Diagnostics.Debug.Print( "AfterDrawPart" );
	System.Diagnostics.Debug.Print( Part.ToString() );
	System.Diagnostics.Debug.Print( exg2antt1.Items.get_CellCaption(exg2antt1.DrawPartItem,0) );
	System.Diagnostics.Debug.Print( exg2antt1.DrawPartKey.ToString() );
}
//this.exg2antt1.AfterDrawPart += new exontrol.EXG2ANTTLib.exg2antt.AfterDrawPartEventHandler(this.exg2antt1_AfterDrawPart);

// BeforeDrawPart event - Occurs just before drawing a part of the control.
private void exg2antt1_BeforeDrawPart(object sender,exontrol.EXG2ANTTLib.DrawPartEnum   Part,int   hDC,ref int   X,ref int   Y,ref int   Width,ref int   Height,ref bool   Cancel)
{
	Cancel = true;
	System.Diagnostics.Debug.Print( "BeforeDrawPart" );
	System.Diagnostics.Debug.Print( Part.ToString() );
	System.Diagnostics.Debug.Print( exg2antt1.Items.get_CellCaption(exg2antt1.DrawPartItem,0) );
	System.Diagnostics.Debug.Print( exg2antt1.DrawPartKey.ToString() );
}
//this.exg2antt1.BeforeDrawPart += new exontrol.EXG2ANTTLib.exg2antt.BeforeDrawPartEventHandler(this.exg2antt1_BeforeDrawPart);

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.Bars.Add("OwnerDraw");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Draw-Item-Bar-1"),"OwnerDraw",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.AddBar(var_Items.AddItem("Draw-Item-Bar-2"),"OwnerDraw",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(0,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true);
exg2antt1.EndUpdate();

1674:
Is it possible to show a status left or right to the bar (method 2, exBarFrameColor, EBN)

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
	var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAChABP0IQAAYAQGKIaBoAKBQAGaAoDDYMQyQwAAxDOKsEwsACEIrjKCRShyCYZRrGUQyAKESRAGyTJBlKKodgOLYYSrFcgSIAsEhqGASRZGUBIJ" +
"DEMI4AJPIwxNIDfyNGKWI6gOQKIoSCYlU7IED0fQNGxVF6XaYqYAIRDINQlVzXcQzPYEbRxCKLKppWqIfpuSIBgI=");
	var_Appearance.Add(1,"CP:2 -8 -1 0 0");
	var_Appearance.Add(3,"CP:2 0 -1 0 0");
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Red-Status-Outside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,16777471);
	h = var_Items.AddItem("Blue-Status-Outside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33488896);
	h = var_Items.AddItem("Red-Status-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,50331903);
	h = var_Items.AddItem("Blue-Status-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,67043328);
exg2antt1.EndUpdate();

1673:
Is it possible to show a status left or right to the bar (method 1, exBarBackgroundExt)

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Red-Left-Status-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[6,back=RGB(255,0,0)]");
	h = var_Items.AddItem("Blue-Left-Status-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[6,back=RGB(0,0,255)]");
	h = var_Items.AddItem("Red-Right-Status-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"right[6,back=RGB(255,0,0)]");
	h = var_Items.AddItem("Blue-Right-Status-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"right[6,back=RGB(0,0,255)]");
exg2antt1.EndUpdate();

1672:
How can I use the ItemBar(exBarBackgroundExt) property for a bar

exg2antt1.BeginUpdate();
exg2antt1.DefaultItemHeight = 31;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
exg2antt1.GridLineColor = Color.FromArgb(224,224,224);
exg2antt1.BackColorLevelHeader = exg2antt1.BackColor;
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.get_Level(0).GridLineColor = exg2antt1.GridLineColor;
	var_Chart.get_Level(1).GridLineColor = exg2antt1.GridLineColor;
	var_Chart.ShowNonworkingDates = false;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.Bars["Task"].Height = 21;
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Normal");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	h = var_Items.AddItem("Red-Frame-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"[frame=RGB(255,0,0),framethick]");
	h = var_Items.AddItem("LR-Margins");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[4,back=RGB(0,255,0)],right[4,back=RGB(0,0,255)]");
	h = var_Items.AddItem("LR-Margins (front)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[4,back=RGB(0,255,0)],right[4,back=RGB(0,0,255)]");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,2);
	h = var_Items.AddItem("LR-Margins (back)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[4,back=RGB(0,255,0)],right[4,back=RGB(0,0,255)]");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,3);
	h = var_Items.AddItem("TB-Margins");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[4,back=RGB(255,0,0)],bottom[4,back=RGB(0,255,0)]");
	h = var_Items.AddItem("TB-Margins");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[2,back=RGB(255,0,0)],bottom[2,back=RGB(0,255,0)]");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,2);
	h = var_Items.AddItem("Caption(back)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"client(bottom[14,text=`<sha ;;0><font ;8>background`,align=0x11])");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,2);
	h = var_Items.AddItem("Pattern-Outside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"bottom[10%,pattern=7,frame]");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,2);
	h = var_Items.AddItem("Pattern-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"bottom[7,pattern=3,frame]");
	h = var_Items.AddItem("Pattern-Inside-Caption");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[4](left[4],right[4],client),bottom[4](left[4],right[4],client),left[4],right[4],client(left[75%,text=`<fgcolor FFFFFF>75%`," +
"align=0x11,pattern=0x001,frame=RGB(255,0,0)])");
	h = var_Items.AddItem("Complex(back)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[30%,back=RGB(253,218,101)],client[back=RGB(91,157,210)],none[(0%,0%,10%,100%)](top[90%,back=RGB(0,0,0)])");
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,3);
	h = var_Items.AddItem("Complex(inside)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[30%,back=RGB(253,218,101)],client[back=RGB(91,157,210)],none[(0%,0%,10%,100%)](top[90%,back=RGB(0,0,0)])");
exg2antt1.EndUpdate();

1671:
How can display seconds

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,96);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/17/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exSecond;
	var_Chart.get_Level(0).Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.exHOutside | exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
	var_Chart.get_Level(1).FormatLabel = "(0:=sec(dvalue)) mod 10 ? 0=: : '<c><font ;6>sec<br><b>' + 0=:";
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/17/2008 0:00:02",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/17/2008 0:00:08",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/17/2008 0:00:05",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/17/2008 0:00:15",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);

1670:
How can I check if an item contains a bar
// SelectionChanged event - Fired after a new item has been selected.
private void exg2antt1_SelectionChanged(object sender)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		System.Diagnostics.Debug.Print( "Count of A: " );
		System.Diagnostics.Debug.Print( var_Items.get_ItemBar(var_Items.FocusItem,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount).ToString() );
		System.Diagnostics.Debug.Print( "Count of B: " );
		System.Diagnostics.Debug.Print( var_Items.get_ItemBar(var_Items.FocusItem,"B",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount).ToString() );
		System.Diagnostics.Debug.Print( "Count of C: " );
		System.Diagnostics.Debug.Print( var_Items.get_ItemBar(var_Items.FocusItem,"C",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount).ToString() );
}
//this.exg2antt1.SelectionChanged += new exontrol.EXG2ANTTLib.exg2antt.SelectionChangedEventHandler(this.exg2antt1_SelectionChanged);

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	var_Chart.Bars["Task"].set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A");
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","B");
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","C");
exg2antt1.EndUpdate();

1669:
How can I connect to a DBF file
exg2antt1.BeginUpdate();
exg2antt1.ColumnAutoResize = false;
exg2antt1.ContinueColumnScroll = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Select * From foxcode.DBF","Provider=vfpoledb;Data Source=C:\\Program Files\\Microsoft Visual FoxPro 9\\",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.Chart.set_PaneWidth(true,0);
exg2antt1.EndUpdate();

1668:
How do I get the caption with no HTML format

exg2antt1.Columns.Add("Default");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("This is a bit of <b>HTML-formatted</b> text");
	var_Items.set_CellValueFormat(h,0,exontrol.EXG2ANTTLib.ValueFormatEnum.exHTML);
	var_Items.AddItem(var_Items.get_CellCaption(h,0));

1667:
How can I change the bar's color based on its length/duration

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Duration") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,513);
		var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/6/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
exontrol.EXG2ANTTLib.ConditionalFormat var_ConditionalFormat = exg2antt1.ConditionalFormats.Add("%1 >= 4",null);
	var_ConditionalFormat.ApplyTo = (exontrol.EXG2ANTTLib.FormatApplyToEnum)0x1;
	var_ConditionalFormat.Bold = true;
	var_ConditionalFormat.ApplyToBars = "Task";
	var_ConditionalFormat.BarColor = Color.FromArgb(255,0,0);
	var_ConditionalFormat.ForeColor = var_ConditionalFormat.BarColor;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/13/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/11/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/16/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
exg2antt1.EndUpdate();

1666:
Is it possible to colorize the bars based on its starting/ending date

exg2antt1.BeginUpdate();
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exDisableSplitter | exontrol.EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.Visible = false;
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("5/31/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,0);
	var_Chart.AllowInsideZoom = true;
	var_Chart.AllowResizeInsideZoom = false;
	var_Chart.InsideZoomOnDblClick = false;
	exontrol.EXG2ANTTLib.InsideZoomFormat var_InsideZoomFormat = var_Chart.DefaultInsideZoomFormat;
		var_InsideZoomFormat.PatternChart = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
		var_InsideZoomFormat.PatternColorChart = Color.FromArgb(255,0,0);
		var_InsideZoomFormat.ForeColor = var_InsideZoomFormat.PatternColorChart;
	exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.SplitBaseLevel = false;
		var_InsideZooms.DefaultWidth = 18;
		var_InsideZooms.Add(Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllowInsideFormat = false;
exontrol.EXG2ANTTLib.ConditionalFormat var_ConditionalFormat = exg2antt1.ConditionalFormats.Add("%1 <= #6/10/2005#",null);
	var_ConditionalFormat.ApplyToBars = "Task";
	var_ConditionalFormat.BarColor = Color.FromArgb(255,0,0);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/11/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/16/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
exg2antt1.EndUpdate();

1665:
How can I change the bar's color based on values on the columns

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("8/3/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,256);
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.OverviewVisible = exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
exg2antt1.ColumnAutoResize = false;
exg2antt1.ContinueColumnScroll = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\SAMPLE.MDB",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.Items.AllowCellValueToItemBar = true;
exg2antt1.Columns[2].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
exg2antt1.Columns[4].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
exontrol.EXG2ANTTLib.ConditionalFormats var_ConditionalFormats = exg2antt1.ConditionalFormats;
	exontrol.EXG2ANTTLib.ConditionalFormat var_ConditionalFormat = var_ConditionalFormats.Add("1",null);
		var_ConditionalFormat.ApplyTo = (exontrol.EXG2ANTTLib.FormatApplyToEnum)0x1;
		var_ConditionalFormat.Bold = true;
		var_ConditionalFormat.BackColor = Color.FromArgb(250,250,250);
	exontrol.EXG2ANTTLib.ConditionalFormat var_ConditionalFormat1 = var_ConditionalFormats.Add("%1 = 5",null);
		var_ConditionalFormat1.ApplyToBars = "Task";
		var_ConditionalFormat1.BarColor = Color.FromArgb(255,0,0);
		var_ConditionalFormat1.ForeColor = Color.FromArgb(255,0,0);
		var_ConditionalFormat1.BarOverviewColor = Color.FromArgb(255,0,0);
	exontrol.EXG2ANTTLib.ConditionalFormat var_ConditionalFormat2 = var_ConditionalFormats.Add("%1 = 3",null);
		var_ConditionalFormat2.ApplyToBars = "Task";
		var_ConditionalFormat2.BarColor = Color.FromArgb(0,255,0);
		var_ConditionalFormat2.ForeColor = Color.FromArgb(0,255,0);
		var_ConditionalFormat2.BarOverviewColor = Color.FromArgb(0,255,0);
exg2antt1.EndUpdate();

1664:
How can I display / specify a fixed percent for the task in the histogram, no matter how long the task is

exg2antt1.BeginUpdate();
exg2antt1.DefaultItemHeight = 32;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.UnitWidth = 32;
	var_Chart.LevelCount = 2;
	var_Chart.NonworkingDays = 0;
	var_Chart.set_PaneWidth(false,64);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 64;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
		var_Bar.ShowHistogramValues = 1.ToString();
	exontrol.EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars.Copy("Task","TaskFixed");
		var_Bar1.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocationFixed | exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
		var_Bar1.ShowHistogramValues = 1.ToString();
	exontrol.EXG2ANTTLib.Bar var_Bar2 = var_Chart.Bars.Copy("Task","TaskMultiply");
		var_Bar2.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocationMultiply | exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
		var_Bar2.ShowHistogramValues = 1.ToString();
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Allocation");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","Effort/Length");
	var_Items.set_ItemBar(h,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,0.25);
	var_Items.set_ItemBar(h,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarVAlignCaption,18);
	var_Items.AddBar(h,"TaskFixed",Convert.ToDateTime("6/24/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","Effort");
	var_Items.set_ItemBar(h,"B",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,0.25);
	var_Items.set_ItemBar(h,"B",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarVAlignCaption,18);
	var_Items.AddBar(h,"TaskMultiply",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/29/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","Effort*Length");
	var_Items.set_ItemBar(h,"C",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,0.25);
	var_Items.set_ItemBar(h,"C",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarVAlignCaption,18);
exg2antt1.EndUpdate();

1663:
Does your control supports scrolling by touching the screen

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void exg2antt1_AddItem(object sender,int   Item)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null);
}
//this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem);

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("8/3/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,256);
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.OverviewVisible = exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
exg2antt1.ColumnAutoResize = false;
exg2antt1.ContinueColumnScroll = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0);
exg2antt1.DataSource = (rs as ADODB.Recordset);
exg2antt1.Items.AllowCellValueToItemBar = true;
exg2antt1.Columns[2].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
exg2antt1.Columns[4].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
exg2antt1.ContinueColumnScroll = true;
exg2antt1.ScrollBySingleLine = true;
exg2antt1.Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
exg2antt1.AutoDrag = exontrol.EXG2ANTTLib.AutoDragEnum.exAutoDragScrollOnShortTouch | exontrol.EXG2ANTTLib.AutoDragEnum.exAutoDragScroll;
exg2antt1.EndUpdate();

1662:
Is it possible to use build-in zoom-functionality to zoom time periods spanning to just some hours of one day (zoom-onfly)

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
	var_Chart.AllowZoomOnFly = exontrol.EXG2ANTTLib.ZoomOnFlyEnum.exZoomOnFly;
	var_Chart.ResizeUnitScale = exontrol.EXG2ANTTLib.UnitEnum.exHour;
	var_Chart.ResizeUnitCount = 4;
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exHour,"<font ;5><b><%h%><br><%AM/PM%></b></font><||>4<||>65536");
	var_Chart.ZoomOnFlyCaption = "<br><c><b><font ;12><%=%C0%>";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1","T1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3","T3");
	h = var_Items.AddItem(null);
	var_Items.AddBar(h,"",Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Focus the chart ( click here ), and press the <b>CTRL + SHIFT</b>, so the Zoom-OnFly is shown.");
	var_Items.set_SelectableItem(h,false);
exg2antt1.EndUpdate();

1661:
Is it possible to use build-in zoom-functionality to zoom time periods spanning to just some hours of one day (inside-zoom)

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	exontrol.EXG2ANTTLib.InsideZoomFormat var_InsideZoomFormat = var_Chart.DefaultInsideZoomFormat;
		var_InsideZoomFormat.InsideLabel = "<%hh%>";
		var_InsideZoomFormat.InsideUnit = exontrol.EXG2ANTTLib.UnitEnum.exHour;
		var_InsideZoomFormat.InsideCount = 8;
	var_Chart.AllowInsideZoom = true;
	exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.Add(Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
exg2antt1.EndUpdate();

1660:
How can I export the control's content to a PDF document (method 1)
exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
		var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
		var_Column1.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,196);
	var_Chart.LevelCount = 2;
	var_Chart.ShowEmptyBars = 1;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
// Add 'exontrol.exprint.dll(ExPrint.dll)' reference to your project.
// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
exontrol.EXPRINTLib.exprint var_Print = new exontrol.EXPRINTLib.exprint();
	var_Print.PrintExt = (exg2antt1 as exontrol.EXG2ANTTLib.exg2antt);
	var_Print.CopyTo("c:/temp/xtest.pdf");
System.Diagnostics.Debug.Print( "Look for C:\\Temp\\xtest.pdf file." );
exg2antt1.EndUpdate();

1659:
How can I export the control's content to a PDF document (method 2)
exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Tasks");
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
	exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
		var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
		var_Column1.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,196);
	var_Chart.LevelCount = 2;
	var_Chart.ShowEmptyBars = 1;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
object var_CopyTo = exg2antt1.get_CopyTo("c:/temp/xtest.pdf");
System.Diagnostics.Debug.Print( "Look for C:\\Temp\\xtest.pdf file." );
exg2antt1.EndUpdate();

1658:
Today date is shown, if we use the Column.FormatColumn and Editor.Option(exDateAllowNullDate) properties. What can be done

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Date") as exontrol.EXG2ANTTLib.Column);
	var_Column.FormatColumn = "len(value) ? ( (longdate(date(value)) left 3) + ' ' + day(date(value)) + '/' + month(date(value)) + '/' + (year(date(value)) ri" +
"ght 2) ) : '' )";
	exontrol.EXG2ANTTLib.Editor var_Editor = var_Column.Editor;
		var_Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType;
		var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exDateAllowNullDate,true);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("5/12/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(null);
	var_Items.AddItem(Convert.ToDateTime("5/14/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.EndUpdate();

1657:
Is there a syntax for conditional formatting of items, based on CellState/CellStateChange

// CellStateChanged event - Fired after cell's state has been changed.
private void exg2antt1_CellStateChanged(object sender,int   Item,int   ColIndex)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.set_CellValue(Item,2,var_Items.get_CellState(Item,0));
}
//this.exg2antt1.CellStateChanged += new exontrol.EXG2ANTTLib.exg2antt.CellStateChangedEventHandler(this.exg2antt1_CellStateChanged);

exg2antt1.BeginUpdate();
exg2antt1.ShowFocusRect = false;
exg2antt1.SelBackMode = exontrol.EXG2ANTTLib.BackModeEnum.exTransparent;
exontrol.EXG2ANTTLib.ConditionalFormat var_ConditionalFormat = exg2antt1.ConditionalFormats.Add("%2 != 0",null);
	var_ConditionalFormat.Bold = true;
	var_ConditionalFormat.ForeColor = Color.FromArgb(255,0,0);
	var_ConditionalFormat.ApplyTo = exontrol.EXG2ANTTLib.FormatApplyToEnum.exFormatToItems;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
	var_Column.Width = 16;
	var_Column.AllowSizing = false;
exg2antt1.Columns.Add("Information");
(exg2antt1.Columns.Add("Hidden") as exontrol.EXG2ANTTLib.Column).Visible = false;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_CellValue(var_Items.AddItem(""),1,"This is a bit of text associated");
	int h = var_Items.AddItem("");
	var_Items.set_CellValue(h,1,"This is a bit of text associated");
	var_Items.set_CellState(h,0,1);
	var_Items.set_CellValue(var_Items.AddItem(""),1,"This is a bit of text associated");
exg2antt1.EndUpdate();

1656:
How can I hide the items/grid section of the control

exg2antt1.BeginUpdate();
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exDisableSplitter | exontrol.EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 128;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
	var_Chart.set_PaneWidth(false,0);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/11/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/16/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
exg2antt1.EndUpdate();

1655:
How can I draw an extra line which could indicate deadline for my tasks

exg2antt1.BeginUpdate();
exg2antt1.DefaultItemHeight = 24;
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
	var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAChABLMIQAAYAQGKIaBoAKBQAGaAoDDQOQ4QwAAxjAKUEwsACEIrjKCYVgOHYYRrIIEvZAAMIlSbCMoxcAsSQSf6YJBmKL4fiWMobRCMQyiLLMd" +
"wiGoYJ4hGgKChqI43RZNErURRkEwCgIA=");
	var_Appearance.Add(1,"CP:2 0 -4 0 4");
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Default");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,16777471);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33488896);
exg2antt1.EndUpdate();

1654:
How can I mark/highlight a zone in the control's histogram

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,40);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 128;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar.HistogramItems = 12;
		var_Bar.HistogramRulerLinesColor = Color.FromArgb(0,0,1);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/11/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/16/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
exg2antt1.Chart.MarkTimeZone("zone",Convert.ToDateTime("6/13/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),15790320,";;;;histogram;1");
exg2antt1.EndUpdate();

1653:
How can I get the min/max values from the histogram
// MouseMove event - Occurs when the user moves the mouse.
private void exg2antt1_MouseMoveEvent(object sender,short   Button,short   Shift,int   X,int   Y)
{
	exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
		System.Diagnostics.Debug.Print( "Value" );
		System.Diagnostics.Debug.Print( var_Chart.get_HistogramValue(var_Chart.get_DateFromPoint(-1,-1),null,null).ToString() );
		System.Diagnostics.Debug.Print( "MIN" );
		System.Diagnostics.Debug.Print( var_Chart.get_HistogramValue("min",null,null).ToString() );
		System.Diagnostics.Debug.Print( "MAX" );
		System.Diagnostics.Debug.Print( var_Chart.get_HistogramValue("max",null,null).ToString() );
}
//this.exg2antt1.MouseMoveEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseMoveEventHandler(this.exg2antt1_MouseMoveEvent);

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,40);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 128;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar.HistogramItems = 12;
		var_Bar.HistogramRulerLinesColor = Color.FromArgb(0,0,1);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/11/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/16/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
exg2antt1.EndUpdate();

1652:
How can I assign different efforts to the same bar

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,40);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 128;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar.HistogramItems = 12;
		var_Bar.HistogramRulerLinesColor = Color.FromArgb(0,0,1);
	var_Chart.get_Level(1).Label = "<font ;3><%d%>";
	var_Chart.UnitWidth = 9;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"weekday(value) in (0,6) ? 0.25 : 2");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/18/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"weekday(value) = 1 ? 2 : 1");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"month (value) = 7 ? 1 : 0");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/5/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"(month(value)=month(value+1)) ? 1 : 0");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"int(value-start) ? 1 : 2");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("7/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"(int(value-start) and int(end-value) != 0 ) ? 1 : 2");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("7/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"(int(value-start)+1) mod 2 ? 1 : 0");
exg2antt1.EndUpdate();

1651:
How can I prevent showing the representation of the bar on the week days, nonworking part

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,40);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 128;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar.HistogramItems = 12;
		var_Bar.HistogramRulerLinesColor = Color.FromArgb(0,0,1);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"weekday(value) in (0,6) ? 0 : 2");
exg2antt1.EndUpdate();

1650:
How do I programatically focus a cell
// FocusChanged event - Occurs when a cell gets the focus.
private void exg2antt1_FocusChanged(object sender)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.set_CellBackColor(var_Items.FocusItem,exg2antt1.FocusColumnIndex,Color.FromArgb(255,0,0));
}
//this.exg2antt1.FocusChanged += new exontrol.EXG2ANTTLib.exg2antt.FocusChangedEventHandler(this.exg2antt1_FocusChanged);

exg2antt1.BeginUpdate();
exg2antt1.SelForeColor = exg2antt1.ForeColor;
exg2antt1.SelBackColor = exg2antt1.BackColor;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exRowLines;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	var_Columns.Add("Column1");
	var_Columns.Add("Column2");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.set_CellValue(var_Items.AddItem("Cell 1.1"),1,"Cell 1.2");
	var_Items.set_CellValue(var_Items.AddItem("Cell 2.1"),1,"Cell 2.2");
exontrol.EXG2ANTTLib.Items var_Items1 = exg2antt1.Items;
	var_Items1.set_SelectItem(var_Items1[1],true);
exg2antt1.FocusColumnIndex = 1;
exg2antt1.EndUpdate();

1649:
How do I programatically focus a cell (excrd)
// FocusChanged event - Occurs when a cell gets the focus.
private void exg2antt1_FocusChanged(object sender)
{
	exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
		var_Items.set_CellBackColor(var_Items.FocusItem,exg2antt1.FocusColumnIndex,Color.FromArgb(255,0,0));
}
//this.exg2antt1.FocusChanged += new exontrol.EXG2ANTTLib.exg2antt.FocusChangedEventHandler(this.exg2antt1_FocusChanged);

exg2antt1.BeginUpdate();
exg2antt1.SelForeColor = exg2antt1.ForeColor;
exg2antt1.SelBackColor = exg2antt1.BackColor;
exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exRowLines;
exg2antt1.DefaultItemHeight = 36;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
	(var_Columns.Add("Column1") as exontrol.EXG2ANTTLib.Column).Visible = false;
	(var_Columns.Add("Column2") as exontrol.EXG2ANTTLib.Column).Visible = false;
	(var_Columns.Add("Column3") as exontrol.EXG2ANTTLib.Column).Visible = false;
	exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("FormatLevel") as exontrol.EXG2ANTTLib.Column);
		var_Column.FormatLevel = "(0/1),2";
		var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellFormatLevel,var_Column.FormatLevel);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Cell 1.1");
	var_Items.set_CellValue(h,1,"Cell 1.2");
	var_Items.set_CellValue(h,2,"Cell 1.3");
	h = var_Items.AddItem("Cell 2.1");
	var_Items.set_CellValue(h,1,"Cell 2.2");
	var_Items.set_CellValue(h,2,"Cell 2.3");
exontrol.EXG2ANTTLib.Items var_Items1 = exg2antt1.Items;
	var_Items1.set_SelectItem(var_Items1[1],true);
exg2antt1.FocusColumnIndex = 2;
exg2antt1.EndUpdate();

1648:
How can I get task's user data ( exBarData ) when user double clicks the bar
// DblClick event - Occurs when the user dblclk the left mouse button over an object.
private void exg2antt1_DblClick(object sender,short   Shift,int   X,int   Y)
{
	int item = exg2antt1.get_ItemFromPoint(-1,-1,c,hit);
	object key = exg2antt1.Chart.get_BarFromPoint(-1,-1);
	System.Diagnostics.Debug.Print( exg2antt1.Items.get_ItemBar(item,key,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarData).ToString() );
}
//this.exg2antt1.DblClick += new exontrol.EXG2ANTTLib.exg2antt.DblClickEventHandler(this.exg2antt1_DblClick);

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarData,"this is a bit of extra data associated with task 1");
	h = var_Items.AddItem("Task 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarData,"this is a bit of extra data associated with task 2");
exg2antt1.EndUpdate();

1647:
How do I get arranged the levels to display, weeks, days and so on

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.UnitWidth = 24;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday;
	exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
		var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level.Label = "<b><Font Tahoma;7><%m3%>, <%yyyy%></b><b>, <Font Tahoma;7>Wk <%ww%>";
		var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exWeek;
		var_Level.DrawGridLines = true;
	exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
		var_Level1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level1.Label = "<Font Tahoma;7><%d%>";
		var_Level1.Unit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
exg2antt1.EndUpdate();

1646:
How can I add a task and a milestone to the same item
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Milestone",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"MKey",null);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);

1645:
How can I change the visual appearance of the buttons on the control's overview part

exg2antt1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAADhABdQFg6AADACAxRDAMgBQKAAzQFAYawdBgABoGUZ4JhUAIIRZGMIjFDcEwxC6NIpAWCYQDENQwSSMMJwSKYYBiASEYJASQZUhmHIDTbIEBxf" +
"IMIRLE6PZbmEYYfgeNY6TQCcIgVD0ExhAZ2Q4EQAKRpOFY/DBQNLgAKNCQ3LaQY7BaKgZouTYDVrVNSVFC0IBkGoSbauCIJHrGCZ1RBYMI0VDNRwHJiMbRtSyqXjGJ4p" +
"SrAcq0FAgYRHI6jZxnGL5chqPqGVjMNZ1bQuKwzT0Ld5wTYsdydBK1MIkTKKaoORZgRpYUI6FAeSgBWyPcCqPSoDrKdo4XLdYwbeAFcSPD6+NBhG7tXm/NarNTgTB6DB" +
"thsGJbgYYw9AQVxBoOch2hEbh+nAARYkQdZ7CMPYGH+FxmlqbJ5lqDAdjMC5AmIW54hwaBvA4IQ8D+T8IFscgenAAZMHiEgWiWdRZlSAAhAkFAGq6dAdEcIYVF4QJKCA" +
"HQDBCBJYGUGQNhCEIhiSCJaGAYQWBsIYmEEFgJAGQ42CyC4iliPgygsT4olSXg3g2Qwwk0MpMiMLJIg8Y54niTYOmPPJMDMDIonSSU7jMJJbDaTYjlYUoMmMCRWFQAAl" +
"EkZgtDgTgjgCJQpEoIgkgkIQHnIAB7CACARnIaIaiaGYuG6GxmhmFB7CGSICAyHwoAmQxQlQNIlikWgthYIwaAYVQvAuQpsg0IxIhKTIzCwToTiiaYACkChGhKJJpEOQ" +
"oWC+C5imyCgiggYpUzMZ5Yj6AIfg6UpcjgLYInIPILhOTYaEIUg9EoItfCGCByAiCV2lIKILCGK4qnKO4YggWpQgIJxJmIaJhDgDgKECaIykkUhUhILQLEKRh9iiYpzC" +
"SSQxmgcgkm2NppAKbI8C4RoBiQYgSgSMQQEEEIDjECBDA8LorjKa47EQMQSm4DpEhEKBDBeRgBGqMQnmkA5in4JAJAINoEC6JR4jyaQ6E6AhEhIIxNBMRJPiQCYyHCGA" +
"UgUMQwEgEhhkEOBHBOBJxCMHJHjGXB/CKSBxlENwaj1qgsEwERICIDB/iQDgjgiYYvE2cx8l2KIinoEI5CYSYiFqEAz0mMBZBbwIkEsEN+gMSpSHSTITEqSoEFyGBHCo" +
"SoihqEAsgsIo8ikKhKGiVJ6AADwTkicQlAkUhElA+Z4VUHpHGuRA8lMdI9DscJc8r5QQAaIYsGUOpOjoOwHCEJAUgBh8B1EAAcHIzg5gPCGNgdQfRPhnGiLINhhQEDCB" +
"cGUDYphxjLHkNgfwTARhiHEBYWAVxpI1HQDcDjthiAADoKcCgJgbs7FyG4LQagBBgE0CMOYOxLhtGY/AcAegNgTHIPkHISAHADEQNYOA2BwAHEQHABwQxMDbCQEscoEB" +
"AAgEOD0V4cR0jyGCPAPwHAvh0EAOIHIDRfA/EaGMfYfguAACiBQIg/xWAbH0F8J4bxSD6G8MUMo7Q9ieHuI8eA0gLjfG2PUPQnwvhvHsPsGABxhD8E+AMbgfhVDJH2L8" +
"U48wAjbEGPwPo7x8j4F4FccwHAhhiEgBQEQhAnCDGgHwBonxiAZD+G8Lo/hHj3H8PELIiBwgOFCNQHAqQAhYBWAUIARAECgHyKkIIqAIgGGCLgUIFAhB5CQAcFAGgcEH" +
"HKBwUYkAdiHDgOaAIKBigYCCFAFQhBzChAWKEOYzwDhCEwFMBQNxwD3C8CsPgHQhANEuA4Uw+gdhHDAOwBogRYAzFuGAQIEgQAzCSGUAIbAXAFCiKIGghhBCQAeAFIgD" +
"gwjMByEAAYXg1hiEwFgBYAQugAGIPsTodgnDSBgMca4LhqChCgD4CIYgYBDmcI4GIxgUCYAm1oPIjwgjmFQMYWA1gNCiBUqcII6gegUEAHwB4oRwhzEGLge4GAOC6HUA" +
"cMIsAbCGDqLYHYVBACTAkIIIAYigCIGcBQCArQKiiFQFERQUQhDMAOBgcIWAggUBGIMfAVAHhCBwEgBAMg+jbFqCcHYLxvg4D2A8QI3AziMHiJoUgFhACyCwIINofwHi" +
"JDAJUKw2B2ARGEEAIwCxIh2BaNQQA/ROBRGoFYQ48B/AeEGEt99lQOgDFgGcAtFgdgHEANIMAhAIDKAygkQAEAAjxBeIoCI7QfjUEEEwDIIgWBFEQHUSANxsAqEEEUdw" +
"lA4iJCSFYEwhBsCXE0KoIAexnj4DoDkEwaBmgYCGAwMADAkCFCMMYAQOgMhQEIHsaIVQQDXFOOgRtwAUguAcAUU1iw1CWA6OwdIOQFBxCgCkDgeBribBmIgP4KQiAAB+" +
"KoAg2QNiDDoG0BQyQzg+EGOAWAFgRC4DsEURQYAdhWFKAoKAVQAB/AcHEaAORiioFqBYMWFATCZEsBsIYcA0gMGCJwGAhg4DQAwKsDAYQGzZBkAcSA8gODEBEGQVIQha" +
"jUEeeYKY1QIDrBCIAEg0xIAwEgBNkAAADUTA6B4MQEwv0UEGLAUgzhf04AKGEg4BhYD2B0MUAABApAAvqI8WAqAdDGGwJsEIXwWDtE0AAA4fhmDZCmJMMwbBkgBIC");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.OverviewVisible = exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
	var_Chart.AllowOverviewZoom = exontrol.EXG2ANTTLib.OverviewZoomEnum.exAlwaysZoom;
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exSecond,"");
	var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exYear,"");
exg2antt1.Chart.OverviewSelBackColor32 = 0x1ffff00;

1644:
Is there a way to show the Start and End dates in mm-dd-yyyy format

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/25/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,196);
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"K1");
	var_Column.FormatColumn = "(0 array (0:=(shortdateF(value) split `/`))) + `-` + (1 array (=:0) ) + `-` + (2 array (=:0) )";
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"K1");
	var_Column1.FormatColumn = "shortdateF(value) replace `/` with `-`";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem(null),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.AddBar(var_Items.AddItem(null),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
exg2antt1.EndUpdate();

1643:
Is there a way to show the Start and End dates in dd-mm-yyyy format

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/25/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,196);
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
	var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"K1");
	var_Column.FormatColumn = "(1 array (0:=(shortdateF(value) split `/`))) + `-` + (0 array (=:0) ) + `-` + (2 array (=:0) )";
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
	var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"K1");
	var_Column1.FormatColumn = "(1 array (0:=(shortdateF(value) split `/`))) + `-` + (0 array (=:0) ) + `-` + (2 array (=:0) )";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddBar(var_Items.AddItem(null),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.AddBar(var_Items.AddItem(null),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
exg2antt1.EndUpdate();

1642:
If we have bars with dark color, we use white font/color. But if the bars are too small for the caption, you canít read it. What can we do

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,48);
exontrol.EXG2ANTTLib.Bar var_Bar = exg2antt1.Chart.Bars["Task"];
	var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
	var_Bar.Height = 17;
exontrol.EXG2ANTTLib.Bar var_Bar1 = exg2antt1.Chart.Bars["Progress"];
	var_Bar1.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
	var_Bar1.Height = 17;
	var_Bar1.Shape = exontrol.EXG2ANTTLib.ShapeBarEnum.exShapeSolid;
	var_Bar1.Color = Color.FromArgb(0,0,255);
exontrol.EXG2ANTTLib.Bar var_Bar2 = exg2antt1.Chart.Bars.Add("Task%Progress");
	var_Bar2.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
	var_Bar2.Height = 17;
	var_Bar2.Shortcut = "Percent";
exg2antt1.DefaultItemHeight = 21;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,4112616);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF><sha 0;;0>Pause");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"white",null);
	var_Items.set_ItemBar(h,"white",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,4112616);
	var_Items.set_ItemBar(h,"white",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF>Pause");
	h = var_Items.AddItem("Task 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,2017557);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF><sha 0;;0>Production");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"white",null);
	var_Items.set_ItemBar(h,"white",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,2017557);
	var_Items.set_ItemBar(h,"white",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF>Production");
	h = var_Items.AddItem("Task 3");
	var_Items.AddBar(h,"Percent",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarPercent,0.5);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,2017557);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF><sha 0;;0>Pausing");
	var_Items.AddBar(h,"Percent",Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"white",null);
	var_Items.set_ItemBar(h,"white",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarPercent,0.5);
	var_Items.set_ItemBar(h,"white",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,2017557);
	var_Items.set_ItemBar(h,"white",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF>Pausing");
	h = var_Items.AddItem("Task 4");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,8421504);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF><sha 0;;0>Planned downtime");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"white",null);
	var_Items.set_ItemBar(h,"white",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,8421504);
	var_Items.set_ItemBar(h,"white",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF>Planned downtime");
exg2antt1.EndUpdate();

1641:
How do I programmatically exclude items from the filter

exg2antt1.BeginUpdate();
exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot;
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Items") as exontrol.EXG2ANTTLib.Column);
	var_Column.DisplayFilterButton = true;
	var_Column.DisplayFilterPattern = false;
	var_Column.FilterList = exontrol.EXG2ANTTLib.FilterListEnum.exShowExclude | exontrol.EXG2ANTTLib.FilterListEnum.exShowFocusItem | exontrol.EXG2ANTTLib.FilterListEnum.exShowCheckBox;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("Item 1");
	var_Items.AddItem("Item 2");
	var_Items.AddItem("Item 3");
	var_Items.AddItem("Item 4");
exontrol.EXG2ANTTLib.Column var_Column1 = exg2antt1.Columns[0];
	var_Column1.FilterType = exontrol.EXG2ANTTLib.FilterTypeEnum.exFilterExclude | exontrol.EXG2ANTTLib.FilterTypeEnum.exFilter;
	var_Column1.Filter = "Item 1|Item 4";
exg2antt1.ApplyFilter();
exg2antt1.EndUpdate();

1640:
How do I show in histogram, more values for a single task

// BeforeExpandItem event - Fired before an item is about to be expanded (collapsed).
private void exg2antt1_BeforeExpandItem(object sender,int   Item,ref object   Cancel)
{
	Cancel = true;
}
//this.exg2antt1.BeforeExpandItem += new exontrol.EXG2ANTTLib.exg2antt.BeforeExpandItemEventHandler(this.exg2antt1_BeforeExpandItem);

exg2antt1.BeginUpdate();
exg2antt1.SingleSel = true;
exg2antt1.ExpandOnDblClick = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.AllowLinkBars = false;
	var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramHeight = 167;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramNoGrouping | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems;
	exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistCumulative;
		var_Bar.HistogramItems = 6;
		var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
		var_Bar.HistogramItems = -40000;
		var_Bar.HistogramCriticalValue = 100000;
		var_Bar.HistogramRulerLinesColor = Color.FromArgb(128,128,128);
		var_Bar.HistogramCumulativeColors = 3;
	var_Chart.ShowNonworkingDates = false;
(exg2antt1.Columns.Add("Costs") as exontrol.EXG2ANTTLib.Column).Visible = false;
(exg2antt1.Columns.Add("Tasks") as exontrol.EXG2ANTTLib.Column).Visible = true;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	int h = var_Items.AddItem("Estimated");
	var_Items.set_CellValue(h,1,"Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,8000);
	int hR = var_Items.InsertItem(h,null,"Actual");
	var_Items.AddBar(hR,"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(hR,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,9000);
	var_Items.GroupBars(h,"",true,hR,"",true,null,null);
	var_Items.GroupBars(h,"",false,hR,"",false,null,null);
	hR = var_Items.InsertItem(h,null,"Cost");
	var_Items.AddBar(hR,"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(hR,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,200);
	var_Items.GroupBars(h,"",true,hR,"",true,null,null);
	var_Items.GroupBars(h,"",false,hR,"",false,null,null);
	h = var_Items.AddItem("Estimated");
	var_Items.set_CellValue(h,1,"Task 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,7000);
	hR = var_Items.InsertItem(h,null,"Actual");
	var_Items.AddBar(hR,"Task",Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(hR,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,8000);
	var_Items.