|登录 |注册

查看: 3077|回复: 10
打印 上一主题 下一主题

visual basic 的问题~

[复制链接]
ThomasWoh
2012-7-9 05:11 PM
err 我是完全的初学者 刚刚学罢了 如果我做错的话不要笑我 请指点我 谢谢
请问一下
有谁懂用visual basic (- -;)
我最近在做一个马来文字典的程式
但是我不懂怎样空一行
那些字我只能一行过
e.g;
aba I:- ayah 父亲,长辈 father. 1. mengabakan, mengayahkan 尊称父辈 to treat someone like one's father. 2. atom 原子 atom. 3. = haba bahang (untuk badan) 体温,热度 temperature of the body. aba II = aba-aba :- perintah 命令,暗号 order, command. aba III = aba-daba :- hama, kuman 细菌 germ. perang ~, 细菌战 germ warfare


我只能像这样

其实我要这样的 :
aba I:- ayah 父亲,长辈 father.
1. mengabakan, mengayahkan 尊称父辈 to treat someone like one's father.
2. atom 原子 atom.
3. = haba bahang (untuk badan) 体温,热度 temperature of the body

aba II = aba-aba :- perintah 命令,暗号 order, command.

aba III = aba-daba :- hama, kuman 细菌 germ.
perang ~, 细菌战 germ warfare

我一空行它就不算了

要怎么空行的? 指点指点 谢谢
原谅我的愚蠢 希望你们懂我说什么 - -;
leon_lcl
2012-7-9 05:28 PM
回复 1# ThomasWoh

试看看用Environment.NewLine
TextBox2.text = output1 & Environment.NewLine & output2
ThomasWoh
2012-7-9 05:30 PM
蛤??? 加了过后怎么做??
ThomasWoh
2012-7-9 05:38 PM
那个environment.newline怎么加??
TextBox2.Text = "aba I:- ayah 父亲,长辈 father"  and environment.newline and 1.sdfsdfsdfsdf <<<< 是不是???
tomiverson
2012-7-9 05:38 PM
看你的问题,应该是要在code里把你的string分成几行来看吧
是的话,你可以试试

dim s as string = "testing string " & _
                                "String line 2" & _
                                "string line 3"

如果你是要display出来时空一行的话,
dim s as string = "testing string " & vbcrlf & " line 2" & vbcrlf  & "line 3"

应该是这样吧
ThomasWoh
2012-7-9 05:42 PM
回复 5# tomiverson


    @@ 不是很懂你在写什么 因为我是初学者 - - 抱歉抱歉 能讲得容易点吗???
tomiverson
2012-7-9 05:47 PM
回复 6# ThomasWoh


    你是要那些字显示出来时分行对吧?这样的话,可以试试

textbox1.text = " line 1 string " & vbcrlf & " line 2 string " & vbcrlf & " line 3 string"

vbcrlf 是用于分行用的
ThomasWoh
2012-7-9 05:52 PM
谢谢 十分感谢 能了 能了 ^^ 请问您有facebook嘛? 因为论坛我比较少开 要一直刷 >< 方便问嘛~
tomiverson
2012-7-9 06:02 PM
不好意思,我的facebook只加我朋友而已。
有什么问题的话,关于vb的,你可以短信我,我再看能不能帮到你吧
ThomasWoh
2012-7-9 06:04 PM
ok 谢谢 谢谢 ^^
您需要登录后才可以回帖 登录 | 注册

JBTALKS.CC |联系我们 |隐私政策 |Share

GMT+8, 2026-1-1 10:59 AM , Processed in 0.100433 second(s), 24 queries .

Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.

本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved

Dedicated Server powered by iCore Technology Sdn. Bhd.

合作联盟网站:
JBTALKS 马来西亚中文论坛 | JBTALKS我的空间 | ICORE TECHNOLOGY SDN. BHD.
回顶部