Hide horizontal scrollbar in tablelayoutpanel

When populating a tablelayoutpanel dynamically, the horizontal scrollbar kept appearing, even though there was no need for it.

It looks like there is no property to disable only the horizontal scrollbar, but I did find this workaround.

Pad the layoutpanel to the width of the horizontal scroll bar and the scroll bar will disappear.


int vertScrollWidth = SystemInformation.VerticalScrollBarWidth;

tableLayoutPanel1.Padding = new Padding(0, 0, vertScrollWidth, 0);

The Graduate

A quick and fun read.

The Graduate

The First Family

Well written and re-searched.

The First Family: Terror, Extortion, Revenge, Murder, and the Birth of the American Mafia

The Long Fall

Starts off strong, but tires in the later rounds. Mosley delivers for the most part.

The Long Fall

The Lobster Coast

Well written and interesting. Good chapter on the origins of canning and lobster.

The Lobster Coast: Rebels, Rusticators, and the Struggle for a Forgotten Frontier

Good People

Fast paced and entertaining. The end is a bit of a mess. Characters seem plastic.

Good People

The Blade Itself

Started out with promise, but didn’t deliver.

The Blade Itself: A Novel

The Comedians

Strange and enjoyable book.

The Comedians (Penguin Classics)

MySql with .Net SqlDataSource on hosted server

I was getting an error saying the .Net provider could not be found when attempting to connect to a MySql db in hosted environment. If the MySql.Data.MySqlClient is not loaded in the GAC on the hosted server, you will need to add a reference in your web.config, if you want to use the SqlDataSource control.

  1.  
  2. web.config - make sure the version matches your MySqlClient version
  3.  
  4. <system.data>
  5. <DbProviderFactories>
  6. <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=5.2.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
  7. </DbProviderFactories>
  8. </system.data>
  9.  
  10. SqlDataSource reference
  11.  
  12. <asp:SqlDataSource ProviderName="MySql.Data.MySqlClient" ID="dsData" runat="server" ></asp:SqlDataSource>
  13.  

The Ministry of Fear

Bourne Identity meets Upstairs / Downstairs. A bit stilted in places, but not bad overall.

The Ministry of Fear: An Entertainment (Penguin Classics)

Long Time No See

Drags for bit, but soldiers on.

Long Time No See

Change column order in MySql

Too bad the MySql GUI can’t handle this, but it is what it is:

ALTER TABLE `clientpackage` MODIFY COLUMN `ParentPackageId` mediumint AFTER `PackageId`

MySql import with crlf

If your text file lines end with carriage return / line feed, you will need \r in addition to \n to have clean data import:


LOAD DATA LOCAL INFILE 'c:\\www\\package.txt'
INTO TABLE businesscategory
LINES TERMINATED BY '\r\n'
(businesscategory);

Fort Apache, The Bronx

Well written with flawed, empathetic characters.

Fort Apache, The Bronx

YYYYMMDD for derived column in SSIS

I think SSIS is great, but date formatting still remains a bit tricky. Would be nice to have a straight format function, but this is what I needed to use in the expression portion of the Derived Column Transformation Editor in order to get the date format YearMonthDay :

(DT_STR,4,1252) DatePart("yyyy",Trans_Dttm) +
Right("0" + (DT_STR,4,1252) DatePart("m",Trans_Dttm),2) +
Right("0" + (DT_STR,4,1252) DatePart("d",Trans_Dttm),2)

Tricks

One of the better non-Carrella based 87th books.

Tricks

Fortune’s Formula

The computer and gambling chapters were interesting along with the sections involving Milken and Boesky. Some of the math discussions were a little much for late night reading.

Fortune’s Formula: The Untold Story of the Scientific Betting System That Beat the Casinos and Wall Street

Delete WINDOWS when emptying Recycle Bin

Needless to say, this isn’t a very comforting message to get when you try to clear the Recycle Bin. What made it even weirder was there was nothing in the Recycle Bin.

To fix:

Start / Run / %systemdrive%\Recycler – this will give you the weird folder names for Recycle Bin – Something like : S-1-5-21-507921405-527237240-1801674531-1029

I had two folders under c:\recycler – went to CMD – cd \Recycler – then deleted all files / folders in Recycler and then deleted the c:\Recycler directory and rebooted.

That fixed the issue.

Black Betty

Still a good read the second time through

Black Betty : Featuring an Original Easy Rawlins Short Story “Gator Green”

Perish Twice

Not much to recommend in this one.

Perish Twice (Sunny Randall)

« Previous PageNext Page »