I mean. I got a function and i execute it, then i want to know how long does function execute. Mr Duc Linh Nguyen
DucLinh
Posts
-
Get The Time When The Program Execute -
Get The Time When The Program ExecuteHow to get the time when the program executing Mr Duc Linh Nguyen
-
FormulaI got string that was entered by user like this: "(DC(112, 113) + DN(101, 102)) / CLDC(122, 123)......". Please help me how to get exactly the "DC(112, 113) and DN(101, 102) and so on" string. Thanks Mr Duc Linh Nguyen
-
Formulai got a string in a textBox like this: "45991476873-0+72396251509/408744738491*408744738491" please help me to get the result. thanks. Mr Duc Linh Nguyen
-
How to set the string for cell(rowNumber, colNumber)I got a DataGrid and I want to set a string for the cell(rowNumber, colNumber) but i do not known how to do it. Help me please. Thanks a lots. Mr Duc Linh Nguyen
-
Audio & Video chathttp://www.codeproject.com/useritems/direct\_show\_-\_playa.asp I hope that useful for you. Mr Duc Linh Nguyen
-
Set CurrentCell FocusI'm working with DataGrid in winforms application. I need to set focus() to a specific cell in the DataGrid. I used the CurrentCell property to set the cell focus: private void ColumnChangingHandler(object sender, DataColumnChangeEventArgs args) { switch (args.Column.ColumnName) { case "acsID": { string value = args.ProposedValue.ToString(); if (!IsNumber(value)) { SetCellWithFocus(this.dataGrid2); dataGrid2_GotFocus(sender, args); } break; } } } private void SetCellWithFocus(DataGrid myGrid) { myGrid.CurrentCell = new DataGridCell(1,1); } private void dataGrid1_GotFocus(object sender, EventArgs e) { MessageBox.Show(dataGrid1.CurrentCell.ColumnNumber + " " + dataGrid1.CurrentCell.RowNumber); } but the focus was returned in the next cell. Please help me. Thanks Mr Duc Linh Nguyen
-
Prohibit user enter key charhow to prohibit user enter the key char on key board except num key. thanks Mr Duc Linh Nguyen
-
How to Import Data from text file to SQL Server:confused: I got a text file that i exported from SQL Wizard and i named bank.txt. i want to write out a program that allow to import bank.txt file to SQL Server but i do not know how to do it. So can anyone help me or show me where to get the source code. Thank a lots. Mr Duc Linh Nguyen
-
Import Data From Excel to SQL Serveri do not know how to write out a program that allow to import data from excel files to SQL Server Help Me. Thanks Mr Duc Linh Nguyen
-
Setup Project:doh: I've just finish my project so I want to create a setup project but i do not known how to include the .NET Framework, Crystal Report into setup project. Please help me. Thanks Mr Duc Linh Nguyen
-
DataGrid:doh:i do not know how to catch error in data grid cell. this is the code i writed:
private void ColumnChangingHandler(object sender,DataColumnChangeEventArgs args) { switch(args.Column.ColumnName) { case "accID": { DataGridCell oldCell= new DataGridCell(); string values=args.ProposedValue.ToString(); if(!this.IsNumber(values)) { MessageBox.Show("value must be number"); } else if(!IsLengh(values)) { MessageBox.Show("It must be 4 characters"); } break; } ..............................
after catch error i want to return the focus on error cell. Please help me as possible as you can. Thanks. Mr Duc Linh Nguyen -
MessageBoxI want to know how to change the font, or size of MessageBox. Help me please. Thanks in advance. Mr Duc Linh Nguyen
-
Key PressI designed a form that got 2 textboxes(i named tbUserName & tbPassword) and 2 button (btOK & btCancel). private void btOK_Click(object sender, System.EventArgs e) { MessageBox.Show("Enter Key has been pressed"); } tbPassword_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if ((Control.ModifierKeys & Keys.Enter) == Keys.Enter) btOK_Click(sender, e); } but nothing happen. Please help me as possible as you can. Thanks. Mr Duc Linh Nguyen
-
MDI Form:doh:I designed 2 form. One is MDI form(i named frmMain) and another is child form (i named frmLoggon). On frmMain form i got a menuItem (i named menuItem1) On frmMain Form private void frmMain_Load(object sender, System.EventArgs e) { frmLoggon fLoggon = new frmLoggon(); fLoggon.ShowInTaskbar = false; fLoggon.ShowDialog(this); } On frmLoggon Form i got a button (i named btExit) private void btExit_Click(object sender, System.EventArgs e) { frmMain fMain = new frmMain(); fMain.Menu.MenuItem[0].Enabled = false; this.close(); } but the menuItem1 not disabed. Please help me as posible as you can. Thanks Mr Duc Linh Nguyen