What exactly are you looking for? I won't do your homework but I don't mind helping you with certain aspects of it.
In this case, it's a relatively simple project so I'd suggest planning out/designing the initial UI that will be presented then slowly building up the backing code and any other UI objects you need to make it work.
I'm not big on VB2008, the last version I used was 6.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _ &
"(impersonationLevel=impersonate)!\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_LogicalDisk Where DriveType = 3")
For Each objItem in colItems
Wscript.Echo objDisk.DeviceID & "=" & Int(objDisk.Size /1048576) & "MB " & FormatPercent(objDisk.FreeSpace / objDisk.Size) * 100) & "% Free"
Next
>cscript disk.vbs > disk.txt
C:\...\disk.vbs(4, 45) Microsoft VBScript compilation error: Invalid char
acter
Well my first concern is the UI I'm not sure what to make of it.
what would be best?
1. have a window asking for the customer's name and choice of menu. From there open a new window displaying the desired menu Then just do a list and add the prices
or should I do it all in one window? point my in the right direction
I wouldn't call myself a programmer I know very little about programming.Not all of them are programmers
I wouldn't call myself a programmer I know very little about programming.
Thanks I'll consider it.Well I am giving instructions to people from C# programming language in order to teach them.I charge 5 dollars per hour.If you want I can teach you the C# programming language either in my appartment or firm if you are here (which is highly unlikely) or online using the Team Viewer software and MSN or Skype.
If you are interested,here is my contact information:
Sellphone number: +385 (0) 918921434
E-mail address: [email protected]
I can show you few things for free,but if you want to really learn,either contact me or buy books and video tutorials.
Hi!
i'm trying to write a script to check free disk space on my file server. so far i have this
i know i'm trying to output too much info in one line, but i'm trying to keep it as simple as possible.
i'm getting this error"
i've already rewritten this a few time, still geting the same error
Well I am giving instructions to people from C# programming language in order to teach them.I charge 5 dollars per hour.If you want I can teach you the C# programming language either in my appartment or firm if you are here (which is highly unlikely) or online using the Team Viewer software and MSN or Skype.
If you are interested,here is my contact information:
Sellphone number: +385 (0) 918921434
E-mail address: [email protected]
I can show you few things for free,but if you want to really learn,either contact me or buy books and video tutorials.
Cheers!
Thanks I'll consider it.
Here is what I've done for the UI so far.
Advice or feedback?
How would I get this window to disappear and display the menu?
Well my first concern is the UI I'm not sure what to make of it.
what would be best?
1. have a window asking for the customer's name and choice of menu. From there open a new window displaying the desired menu Then just do a list and add the prices
or should I do it all in one window? point my in the right direction
Is that the main form? If so, I believe it would be easier if you created 2 forms on top of the main one that display when the program runs. The first will be this screen, the second will be the menu. Then it'll move to your main form. Just an idea.
As for changing forms. I've not used basic since high school. I couldn't tell you exactly. Just google 'switching forms, vb.net'
Thanks I'll consider it.
Here is what I've done for the UI so far.
Advice or feedback?
How would I get this window to disappear and display the menu?
Please translate that language to english on that picture lol.I am lost xD
Anyway it would be good that on the first form you give the users to simply just choose what they want.If for example they want dinner,just make that after the DINNER button (or any other control you want) is clicked (or whatever event you want to use) that the SECOND FORM for the DINNER and ONLY DINNER is showed and that the user can choose what he/she wants for the dinner from the list of all meals you are offering to them.As for the meals menu,I would recommend using the LIST BOX control or at least the COMBO BOX control.
Tip 1: To add another form to your project,go to the solution explorer,right click your project name and choose ADD ITEMS and from the windows that will open choose Form2.vb (or however it is called in VB 2008 .NET).
Tip 2: Here is the code how to close,dispose,show and hide the form:
CLOSE---> me.Close()
DISPOSE---> me.Dispose(true)
SHOW---> Form2.Show()
HIDE---> Form2.Hide()
Here is the C# version for the SHOW and HIDE:
SHOW:
Form2 blabla=new Form2();
blabla.Show();
HIDE:
Form2 blabla=new Form2();
blabla.Hide();
Tip 3: You may want to show the form to the user as the modal dialog box.That means that the user wont be able to use the previous window in the program as long as the current window is opened.That can sometimes be useful so that the user doesnt do dozens of things on the previous windows accidentaly.Here is how to do that in the Visual Basic:
Form2.ShowDialog()
Tip 4: As for closing the forms,I would rather use "Me.Dispose(true)" because that will close the form and also remove ALL ITS usage from the memory.For the difference of CLOSE which just closes the form window,but does NOT remove it from the memory completely.
Cheers!
You have:
LblSaisieNom = txtSaisieNom.Text
You want:
LblSaisieNom.Text = txtSaisieNom.Text
You have:
frmCafeJean.Hide()
You want:
Me.Hide()