VB.NET并输出到LCD [英] VB.NET and Output to LCD

查看:77
本文介绍了VB.NET并输出到LCD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

现在,我尝试学习有关vb.net和LCD的一些信息

1.我创建了一个表单,用于将DATA输入到DATABASE,但我不想让人们
看到这个表格. (名称为Forminput.)
2.我为显示解决方案"创建了一个表单,但我希望人们看到此表单
(名称为FormOutput.)

看到这张图片 http://image.free.in.th/z/ie/51untitled.png

解决方案

制作一个窗口表单应用程序.并以表格形式写任何内容
将FormBorderStyle设置为无"

然后在您的LCD屏幕上放置一台低成本的原子基础PC.并确保FTP可用,然后运行您创建的程序,LCD将显示全屏以及您在其中写的内容.

现在您需要将文件上传到LCD PC的FTP.然后按计时器处理上载的文件并读取文件并显示您想要的内容.


这一次您的图片显示了更多(以前只是中间一点,没有帮助) .

让我看看我是否正确:

您有PC应用程序,想要在一个屏幕上进行数据输入,并在另一个屏幕上显示数据库输出?

最简单的方法是将其设置为多监视器:将显示表单放在一个屏幕上,将输入应用程序放在另一个屏幕上.

frmDisplayDB disp = new frmDisplayDB();
if (Screen.AllScreens.Length > 1)
    {
    disp.StartPosition = FormStartPosition.Manual;
    foreach (Screen screen in Screen.AllScreens)
        {
        if (!screen.Primary)
            {
            disp.Location = screen.WorkingArea.Location;
            disp.Size = new Size(screen.WorkingArea.Width, screen.WorkingArea.Height);
            break;
            }
        }
    }
disp.Show();

或在VB中:

Dim disp As New frmDisplayDB()
If Screen.AllScreens.Length > 1 Then
	disp.StartPosition = FormStartPosition.Manual
	For Each screen__1 As Screen In Screen.AllScreens
		If Not screen__1.Primary Then
			disp.Location = screen__1.WorkingArea.Location
			disp.Size = New Size(screen__1.WorkingArea.Width, screen__1.WorkingArea.Height)
			Exit For
		End If
	Next
End If
disp.Show()

(应该的,我使用了在线转换器).


非常感谢

OriginalGriff

真实

请!您可以将示例源代码发送给我吗?

请参见!! http://image.free.in.th/z/ie/51untitled.png [ ^ ]

Hi all

Now i try to learn something about vb.net and LCD

1. I create a form for input DATA to DATABASE but i don''t want to people to
see this form. (The name is Forminput. )
2. I create a form for Display Solution but i want to people to see this form
(The name is FormOutput. )

see this picture http://image.free.in.th/z/ie/51untitled.png

解决方案

make one window form application. and write any thin in the form
make FormBorderStyle to "none"

then put one low cost atom base pc at you LCD screen. and make sure the FTP is available run the program you have created and the LCD will show the full screen with what ever you write there.

now you need to upload file to FTP of your LCD pc. and then handle the uploaded file by timer and read the file and show the content you want.


This time your picture shows a little more (previously it was just the middle bit, not helpful).

Let me see if I have it right:

You have a PC app, you want to do data entry on one screen, and display database output on another?

The easiest way would be set up it up as multimonitor: Put your display form on one, and your input app on the other.

frmDisplayDB disp = new frmDisplayDB();
if (Screen.AllScreens.Length > 1)
    {
    disp.StartPosition = FormStartPosition.Manual;
    foreach (Screen screen in Screen.AllScreens)
        {
        if (!screen.Primary)
            {
            disp.Location = screen.WorkingArea.Location;
            disp.Size = new Size(screen.WorkingArea.Width, screen.WorkingArea.Height);
            break;
            }
        }
    }
disp.Show();

Or in VB:

Dim disp As New frmDisplayDB()
If Screen.AllScreens.Length > 1 Then
	disp.StartPosition = FormStartPosition.Manual
	For Each screen__1 As Screen In Screen.AllScreens
		If Not screen__1.Primary Then
			disp.Location = screen__1.WorkingArea.Location
			disp.Size = New Size(screen__1.WorkingArea.Width, screen__1.WorkingArea.Height)
			Exit For
		End If
	Next
End If
disp.Show()

(Should be right, I used an online converter).


thank you so much

OriginalGriff

it true

please !! Could you send sample source code to me?

see this !!http://image.free.in.th/z/ie/51untitled.png[^]


这篇关于VB.NET并输出到LCD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆