摘要:
--10进制转16进制create function inttohex(@int10 int)returns varchar(8)begin declare @int10 int declare @str16 nvarchar(8) set @str16='' if(@int10>0) begin while @int10>0 begin set @str16=substring('0123456789ABCDEF',@int10%16+1,1)+@str16 set @int10=@int10/16 end end else begin set @ 阅读全文
摘要:
function keyDown() { var keycode =event.keyCode; var keychar=String.fromCharCode(keycode); alert('ASCII='+keycode+'\nKeyChar='+keychar);} document.onkeydown=keyDown; 阅读全文
摘要:
google了一把tchart控件,看到许多都没有讲到数据绑定的。没事就做个简单的demo。不在赘述,如下: tChart1.Header.Text = "报告测试"; tChart1.Aspect.View3D = false; tChart1.Axes.Bottom.Labels.DateTimeFormat = "yyyy-MM-dd";////把X坐标轴刻度设置成时间类型,Axes是坐标轴的意思,Bottom是X轴,也可以选择其他轴 tChart1.Axes.Bottom.Labels.MultiLine = true; //tChart1.Ax 阅读全文
摘要:
With TChart1.Aspect.View3D = False '是否3D显示'.Aspect.Chart3DPercent = 100 '3D效果度大小.Walls.Visible = True '是否显示图表边框.Header.Text(0) = "生产" '修改标题.Header.Text.Add "日报表" '增加标题".Axis.DrawAxesBeforeSeries = True '坐标线是否在图表上面底部.Axis.Visible = True '是否显示纵横 阅读全文
摘要:
<Window.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="Black" Offset="0"/> <GradientStop Color="#FF666666" Offset="1"/> </LinearGradientBrush> </Window.Background& 阅读全文
摘要:
若要对 FrameworkElement 的大小进行动画处理,可以对它的 Width 和 Height 属性进行动画处理,或者使用经过动画处理的 ScaleTransform。 下面的示例使用这两种方法对两个按钮的大小进行动画处理。对于第一个按钮,通过对它的 Width 属性进行动画处理来调整其大小;对于第二个按钮,通过对应用于它的 RenderTransform 属性的 ScaleTransform 进行动画处理来调整大小。 每个按钮都包含一段文本。最初,这些文本在两个按钮中以相同的方式显示,但是在按钮的大小经过调整后,第二个按钮中的文本将发生扭曲。<!-- AnimatingSize 阅读全文
摘要:
<Window x:Class="WpfApplication2.Window6" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window6" Height="800" Width="400" Background="#FF840909"& 阅读全文
摘要:
<Button > <Button.Background> <LinearGradientBrush> <GradientStop Color="Blue" Offset="0"></GradientStop> <GradientStop Color="Black" Offset="0.5"></GradientStop> <GradientStop Color="Blue" Offset="1& 阅读全文
摘要:
第 1 部分:创建 DoubleAnimation1.不透明度值 1.0 使对象完全不透明,不透明度值 0.0 使对象完全不可见。 <[default] http://msdn2.microsoft.com/mtps:sentence runat="server" sentenceid="b25a8506c7a98ca77fd044981ed22f95" xmlns="http://msdn2.microsoft.com/mtps" class="tgtSentence" id="tgt51&quo 阅读全文
摘要:
编写WinForm程序时,都会碰到一个问题。就是WinForm窗口在不同分辨率下的大小问题。举例说明,你编写的WinForm窗口在1024×768下是合适、匀称的。不过,如果用户的计算机的分辨率为1400×900时,你的WinForm窗口就显得偏小,其中的字体和控件都显得偏小。如果用户的分辨率为640×480,那你的窗口就远远超过它的屏幕的大小。 如何解决这个问题?一般的WinForm程序都会这样操作:程序启动——》获取屏幕分辨率——》调整窗体的大小——》调整各个控件大小及位置——》调整各个控件的字体。这样操作比较繁琐,并且要考虑到各种分辨率的情况。这样一来,如果 阅读全文