vb

Enumに任意の文字列を割り振る

vb

[C#] 何故 enum に拘りたくなるのか? | Moonmile Solutions Blog http://www.moonmile.net/blog/archives/3666c# - Extension Methods for IEnumerable? - Stack Overflow http://stackoverflow.com/questions/5162389/extension-methods-for-ienumerableen…

Enumを数値に変換して文字列に変換する

vb

c# - How to convert from System.Enum to base integer? - Stack Overflow http://stackoverflow.com/questions/908543/how-to-convert-from-system-enum-to-base-integer Imports System.Runtime.CompilerServices ''' <summary> ''' Enum関連の処理を提供します。 </summary>…

TextのないCheckBoxにフォーカスの枠を表示する(WinForms)

vb

Winforms Checkbox Focus Problem if no Text is Applied on Checkbox - Stack Overflow http://stackoverflow.com/questions/2019675/winforms-checkbox-focus-problem-if-no-text-is-applied-on-checkboxAutoSize : False CheckAlign : MiddleCenter Font:…

TabControlのタブをDisableにする(WinForms)

vb

c# - TabControl.DrawItem not firing on user painted TabControl - Stack Overflow http://stackoverflow.com/questions/3115321/tabcontrol-drawitem-not-firing-on-user-painted-tabcontrol DrawItemイベントが起きないタイミングで描画しなおすにはInva…

TabControlの子コントロールを強制的に作成する(WinForms)

vb

TabControl クラス (System.Windows.Forms) https://msdn.microsoft.com/ja-jp/library/system.windows.forms.tabcontrol(v=vs.100).aspxTabPageに含まれるコントロールは、タブ ページが表示されるまで作成されません。また、これらのコントロール内のいず…

ToolStripButtonの外観を変更する。(WinForms)

vb

ToolStripProfessionalRendererを継承して好きなように描画する。 下記の例は ・ToolStripButtonに枠線を描画する ・ToolStripの角丸をやめる の二点を行う例。 ToolStrip1.Renderer = New ToolStripRectRenderer() ''' <summary> ''' ToolStrip オブジェクトの描画機</summary>…

簡易2進数表記

vb

Public Function Dec2Bin(DecValue As Long, Optional Keta As Long = 0) As String Dim b$, i& b = Oct$(DecValue) For i = 0 To 7 b = Replace(b, i, Choose(i + 1, "000", "001", "010", "011", "100", "101", "110", "111")) Next i If Keta > 1 Then b …

誤差の例

VB

?int ( 0.3 * 10 ) 2 ?int ( 0.3@ * 10 ) 3