I'm a Student and get stuck :'(
Hi there,
I hope somebody can help me.
here we go!!
I need to read the items and costs from the external file. In this project, read the file in the Calculate click event. This file can be read multiple times.
(external file info is like this and I cannot modified)
---
...
MDI parent & child help
Hi all,
I'm new to working with VB and just some days ago installed Visual Basic 2008 Express edition. I have exprience with programming with ASP and some VB so not all comes unfamilliar. Bought 3 books and printed dozen of tutorials, but none explain what I want... so here I am
(If this is the wrong...
Re: Creating a .txt file in a folder present in a specified location!!!
There may be a better way but this works:
vb.net Code:
Dim Writer As New StreamWriter ( "Location Here\" & "file.txt" ) Writer. Write ( "Contetnt" ) Writer. Close ( )...
Re: Creating a .txt file in a folder present in a specified location!!!
Ok sorry, try this:
vb.net Code:
Private Sub Button1_Click ( ByVal sender As System. Object , ByVal e As System. EventArgs ) Handles Button1. Click If ComboBox1. Text = "" Then MessageBox. Show (...
Re: Which Is The Best Way
Quote:
Originally Posted by ForumAccount
I can confirm that MsgBox does call MessageBox.Show, I've looked at the code of MsgBox.
Edit: Here it is if you're interested:
vb.net Code:
Public Shared Function MsgBox ( ...
Timer issue
Hi all i`m trying to figure out how to use a timer to do something for a couple of seconds.
Let`s say i want to prompt a message for 5 sec and after to disappear it.
Or
On a button`s click to appear an image and after 3 sec to disappear it.
How i`m i going to do it?
Re: Timer issue
Drag and drop a Timer component from the toolbox onto your form and then you will see a timer icon below your form - click on it and then set its Interval property to however long you want the image to be shown for (3 seconds would be a value of 3000 as its in milliseconds).
Now double click the timer under your ...
Re: Timer issue
Hey Chris thanks for replying.
Well let`s say if i record from web cam and i want to record for 10 sec only and stop it what i need to do?
This is the reverse of the previous example with the picture, because now i want to stop something after 10 sec....
Do i need to have 2 timers to be able to achieve that?...
Application.Current.Shutdown
EDIT: See post 5 for explanation of why I'm talking about Application.Exit here when the thread is titled Application.Current.Shutdown
So does anyone ever actually use Application.Exit? I mean is it considered a bad practice to just make everything instantly stop?
The reason I ask is because ...
Re: Combine multiple files into 1
You are most patient. Clearly this is not a task for a novice... multipl open file dialogs occur and if I hit cancel after chooseing 2 or 3 I receive a message that empty file path name is not legal.
Code:
Public Class CombineFiles
Private Function CombineFiles(ByVal filelist As ...
[RESOLVED] Error creating window handle - datagridview
I am using a Thread object to perform a function.
This function performs a task and displays its progress in the gridview (like adding rows \ changing text etc )
The reason I am using a thread for this function is that there is a cancel button on the form. While the task...
Re: Charecter Spacing in winforms The spacing between characters anywhere is up to the font, not the control. __________________ 2007, 2008, 2009 Why is my data not saved to my database? | Communicating between multiple forms | MSDN Data Walkthroughs MSDN "How Do I?" Videos: VB | C# VBForums Database Development FAQ My CodeBank Submissions: VB | C# (ForumAccount has translated some of my VB submissions to C#) *New*...
Re: Problem With Shortcut Keys Basically that amounts to needing a system wide hotkey, because your app will not have focus when it is in the system tray, so you need to monitor the system globally for the keypress. Look up the registerhotkey API, there should be some examples on this forum. __________________ Using VB.NET 2008/.NET 2.0/3.5 * Please mark you thread resolved using the Thread Tools above PLEASE INDICATE WHAT VERSION OF VB YOU...
Re: questions on rgb/argb 1) The two are seriously different. If you just compare 0,0,127 to 0,0,255, you will see that both are blue, but of much different shade. Changing the alpha level should just alter how much of the background color bleeds through whichever shade you are setting. With that error, you might as well leave off the A value. 2) The two are not EXACTLY equal. In fact, I would expect that you can see the difference, though it...
Re: Need help: Write programs like Media Center Can you be a little more specific? Which particular effects or parts of the UI are you talking about? In general, if you want to make a nice looking application in VB.NET, the best thing to use is WPF - we have a forum on here for that: http://www.vbforums.com/forumdisplay.php?f=86 Here's an example of a program made with WPF: and another: __________________ Would you use my SMTP server...
Re: Calendar To move to Today's date, set your selection start to Date.Today. The Calendar has an AddBoldedDate method, so logically the RemoveBoldedDate probably removes bolded dates. __________________ Negative 0 Blog | RegEx | Encrypting UN/PW in Web.Config | Enabling ASP.Net on IIS 6 | Port Numbers | Creating GUIDs | Start->Run | Modifying the default class
Quote: Originally Posted by hotlip1 For example, I want my progress bar to start when OK Button from a MsgTextbox and load up to 100% in 5 minutes, which would be the code? We'll explain the steps you need to take and allow you to figure it out on your own. This method will allow you to learn better. If you don't understand, then post the code you've tried and we'll help figure it out. First, forget about the...
heres the declarations: vb Code: ''API functions Private Declare Function RegisterHotKey Lib "user32" ( ByVal hwnd As IntPtr, ByVal id As Integer , ByVal fsModifiers As Integer , ByVal vk As Integer ) As Integer Private Declare Function UnregisterHotKey Lib "user32" ( ByVal hwnd As IntPtr, ByVal id As Integer ) As Integer Private Const...
Re: Class diagram for a game A few things: - Why is number of players in Player? Would make more sense in Game. - A player has exactly one TileBank so you can make a connection there. - A TileBank has at most 7 or something (can't remember) Tiles, so you can make another connection there. - A Board has exactly 15*15 Squares (assuming you mean that by Square), and at most 15*15 Tiles. The Tile class should have something to identify it...
Re: datagrid column format date You set the Format property of that column's DefaultCellStyle. __________________ Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it. - Abraham Lincoln -
Attempting to argue genetics with a phd student who... Attempting to argue genetics with a phd student who studies fruit flies at mary's grad student bbq. How do I get stuck in these situations? 4:44 PM Aug 28th from txt
Feeling sorry for our student employees who always get... Feeling sorry for our student employees who always get stuck with the 6 year old computers with hardly any RAM... must do something about it
11:00 AM February 29, 2008
from web
Thread profile page for "I'm a Student and get stuck :'(" on http://www.vbforums.com.
This report page is a snippet summary view from a single thread "I'm a Student and get stuck :'(", located on the Message Board at http://www.vbforums.com.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity