Click here to Skip to main content
15,889,433 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 4-Dec-11 22:02pm
v5
Comments
OriginalGriff 1-Apr-11 3:05am    
I think first you need to learn something about asking questions: I can't make any sense of what you want at all!
Why a form to input to a database if you never show people?
What does your image have to do with anything?
Where does the LCD come in?

Please, edit your question, and try to provide more (or even any) detail.
sonecs 1-Apr-11 3:11am    
sorry my network is slowly so i can not post more now i just edit
sonecs 1-Apr-11 3:16am    
Why a form to input to a database if you never show people?

because i want to hide my form when i input data to database . all people can see LCD only
how do you think ? it is impossible or not?
OriginalGriff 1-Apr-11 3:45am    
If I understand what you want, then not impossible: see my answer below.
If that isn't what you want, we need more info!

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.
 
Share this answer
 
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).
 
Share this answer
 
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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900