| 
| 
查看: 1276|回复: 7
 | 
请大家教我解决我在VB.NET遇到的问题..
[复制链接] |  
 |  | 
 
| 我正在做PROJECT是用VB.NET做的,请大家多教教我,谢谢!! 我看过了一本VB.NET的书,它都是CASE的,我找不到我想的东西.
 
 怎样写一个coding, 按button就能去另一个form?
 | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 发表于 20-10-2005 08:20 AM
|
显示全部楼层 
| 在 on_click event 里加入 
 dim myform as new form2
 myform.show
 | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 
 楼主|
发表于 20-10-2005 06:52 PM
|
显示全部楼层 
| 谢谢, 我click一个buttun 去了另一个form, why 它出现另一个windows, 而不是改变旧的form?我用me.hide()来hide掉form1, 不过form2出现得不美,跑位,怎么办? 
 [ 本帖最后由 公主 于 20-10-2005 09:12 PM 编辑 ]
 | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 发表于 20-10-2005 09:38 PM
|
显示全部楼层 
| 
 公主,不好意思,借帖一下下
  
 问题:          Cannot find entry point StartSession in the DLL
 
 vb code:
 
 Private Sub Command1_Click()
 Set lib = New MYKAD_PCSC.MYKADPCSCLib
 result = lib.StartSession
 If result = 1 Then
 MsgBox "StartSession success!"
 End If
 
 美美,没问题!
 ----------------------------------------------
 vfp9 code:
 
 DECLARE INTEGER StartSession IN 'MYKAD_PCSC.dll'
 lnReturn = StartSession()
 
 
 Error: Cannot find entry point StartSession in the DLL.>
 
 ----------------------------------------------------
 
 一样的 dll file
 
 http://www.ihud.com/file.php?file=1129814784/MYKAD_PCSC.dll
 or
 http://www.ihud.com/files/1129814784/MYKAD_PCSC.dll
 
 为何?
 
 
 | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 发表于 23-10-2005 11:49 PM
|
显示全部楼层 
| 回公主: 用bluesea_520的类似的方法
 dim myform as new form2
 myform.show
 不行吗?
 
 还有,你把
 dim myform as new form2
 放在
 Inherits System.Windows.Forms.Form
 的下面,这样就不会每次按button时都create新的 form2
 (这样作还有一些问题,需要修改一些东西,不过你先试试看可以吗)
 
 位置跑位:
 可以试试用startposition,top和left这几个,像这样:
 MyForm.StartPosition = FormStartPosition.Manual
 MyForm.Top = 100
 MyForm.Left = 200
 
 回小李波特:
 你的是vb6吧?
 
 我试过你的dll,没有这样的问题,不过我的出现这个:
 Run-time error ‘48’
 File not found: wtlic.dll
 你的 dll 应该还有 link 别的 dll 吧?
 | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 
 楼主|
发表于 24-10-2005 11:23 AM
|
显示全部楼层 
| 原帖由 meemee 于 23-10-2005 11:49 PM 发表回公主:
 用bluesea_520的类似的方法
 dim myform as new form2
 myform.show
 不行吗?
 
 还有,你把
 dim myform as new form2
 放在
 Inherits System.Windows.Forms.Form
 的下面,这样就不会每次按button ...
谢谢,
 如果,我要把它做成full screen呢? 能吗?
 | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 发表于 24-10-2005 01:01 PM
|
显示全部楼层 
| 原帖由 公主 于 24-10-2005 11:23 AM 发表
 谢谢,
 如果,我要把它做成full screen呢? 能吗?
 Form1.WindowState = vbMaximized 就可以把Form 放大了。
 | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 
 楼主|
发表于 27-10-2005 10:24 AM
|
显示全部楼层 
| 请问,怎样做一个temporaly location? 还是我直接学link去ms.access比较好?
 | 
 |  |  |  |
 
|  |  |  
|  |  |  |  | 
            本周最热论坛帖子 |