就是不会设字体什么的 能详细说一下吗?
追答vb.net的图形界面前台相关属性里面就可设定背景或字体什么的,后台代码如Form1.Background="White", Label1.Font="Arial" 等等都可以实现. vb应该也是类似的,你在你的vb编程工具里面找找看。
如何在vb里输出九九乘法表?
vb中输出九九乘法表,可以参考下面的代码:Private Sub Form_Click()For a = 1 To 9 For b = 1 To a Print b; "*"; a; "="; b * a;Next b Print Next a End Sub
用VB编一个九九乘法表,程序应该怎么写,求救!
本示例使用Visual Basic编写了一个九九乘法表程序。以下为程序代码:在编写程序前,我们需要定义两个整型变量i和j,分别用于表示行数和列数,以及一个字符串变量str用于存储乘法表。通过设置Me.AutoRedraw = True,可以实现在输出过程中实时更新控件。使用For循环,遍历i从1到9。在循环内部,定义一个空字...
用vb在文本框里输出九九乘法表
vb中输出九九乘法表,可以参考下面的代码:Private Sub Form_Click()For a = 1 To 9 For b = 1 To a Print b; "*"; a; "="; b * a;Next b Print Next a End Sub
怎么用VB打九九乘法表
三角形的九九乘法表 Private Sub Form_Load()Dim i, j, s For i = 1 To 9 For j = 1 To i s = s & j & "×" & i & "=" & IIf(Len(i * j) < 2, i * j & " ", i * j) & " "Next s = s & vbCrLf Next MsgBox s End Sub ...
用VB程序怎么做九九乘法表?
Public Class Form1 Private Sub Button1_Click(sender As Object,e As EventArgs)Handles Button1.Click Dim i,j As Integer Dim se As String Label1.Text=""For i=1 To 9 Step 1 For j=1 To 9 Step 1 se=i&"x"&j&"="&i*j Label1.Text&=se&Space(10-Len(se))Next Label1....
怎样用vb在窗体上输出九九乘法表?
Private Sub Form_Click()Dim i, j As Integer Dim s As String Print Tab(35); "九九乘法表"For i = 1 To 9 For j = 1 To i s = i & "×" & j & "=" & i * j Print Tab((j - 1) * 9 + 2); s;Next j Print Next i End Sub ...
用vb编写九九乘法表
用VB程序怎么做九九乘法表的步骤如下:创建显示结果的窗体:编写按钮宏 Private Sub Command1_Click()Dim a, b As Integer Dim s As String: s = ""For a = 1 To 9 For b = 2 To 9 s = s & a & "*" & b & "=" & b * a If b <> 9 Then s = s & Space(1) Else...
VB中怎么用矩阵输出右下倒三角九九乘法表代码?
VB中用矩阵输出右下倒三角九九乘法表代码是:Private Sub Form_Load()show FontSize=12 print tab(25);“九九表”print print "*";for i =1 to 9 print Tab(i*6);i;next i print for j =1 to 9 print j;"";for k = j to 9 m=j*k print tab(k*6);m;" ";next k print...
VB程序设计,功能是打印“九九表”,如图所示。
Private Sub Command3_Click()Print Tab(35); "九九乘法表(上三角)" For i = 1 To 9 For j = i To 9 '就只有这里有点变化i to 9 Print Tab((j - 1) * 9); i & "×" & j & "=" & i * j; Next j Print Next iEnd Sub ...
九九乘法表九九乘法表vb代码
关于九九乘法表,九九乘法表 vb代码这个很多人还不知道,今天来为大家解答以上的问题,现在让我们一起来看看吧!1、Private Sub Command1_Click() print99 Me End Sub Private Sub Command2_Click() print99 Picture1 End Sub Private Sub print99(obj1 As Object) Dim i As Integer, j As ...