Wednesday, June 1, 2016

Unable to connect Mi4i to Laptop via USB


Solution taken from  http://en.miui.com/thread-121129-1-1.html
First go to About phone in Settings, then tap continuously on MIUI version, it will now say a message, you are now a developer, something like that, then go to Additional setting in Settings, look for Developer options, then enter it and search for USB debugging and enable it and connect your mobile to PC afterwards.

Wednesday, March 2, 2016

Data Grid View Property


1) If you want to change Column Header Colour in DataGridView then first you have to change Property "EnableHeaderVisualStyle" from True to False and then set back colour from property "ColumnHeadersDefaultCellStyle"

2) If you want to column width as per content then set property "AutoSizeColumnsMode" and "AutoSizeRowsMode" to AllCells

3) If you want to change Column Header Height then first change property "ColumnHeadersHeightSizeMode" from AutoSize to EnableResizing.

4) If you want to change row colour alternate then first set the Back colour from property "DefaultCellStyle" and then set the Back colour from property "AlternatingRowsDefaultCellStyle".