Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB9.0 VB.NET
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 31-Mar-11 21:56pm
sonecs453
Edited 4-Dec-11 23:02pm
v5
Comments
OriginalGriff at 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 at 1-Apr-11 3:11am
   
sorry my network is slowly so i can not post more now i just edit
sonecs at 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 at 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!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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).
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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[^]
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 505
1 Maciej Los 325
2 Richard MacCutchan 265
3 Mathew Soji 220
4 BillWoodruff 210
0 OriginalGriff 8,804
1 Sergey Alexandrovich Kryukov 7,457
2 DamithSL 5,689
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411028.1 | Last Updated 5 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100