Add Operations From A Listbox Into A Timetable
Dec 19, 2011
I'm new in VB.net but I'm trying to make application (planning-game). The game is about showing students the planning 'complexity' of a operation room in a hospital. I created a listbox which randomly shows 5 operations. But now I would like a function which makes it possible to add a selected operation to a timetable. The timetable has blocks of 30 mins (example 08:00 - 08:30, 08:30 - 09:00 etc..). This because 1 type operation takes 1 hours and 1 takes 1:30 hours. Now I have given the operations a value by using a label. [code]
View 1 Replies
ADVERTISEMENT
Feb 6, 2009
First of all my task is to create a timetable in VB which allows users to enter new timetable entries, load timetable, save etc. They way I have set this out is with a text display window and drop down menus with "File>New>Timetable" and "Load>timetable" etc. I am confused as the how the serialization works?
I have attached my code in notepad. My code is telling VB to pull the XML file called timetable.xml, but I havnt created this file ... how is this file created?
View 4 Replies
Apr 6, 2011
I have two listboxes one is the source listbox and the other is the destination. When I try to drag an item from the source listbox to the destination listbox it does not select the item that the mouse if over. I have implemented the mouseover event selection. It only works when I am not dragging also the mouseover events do not fire when dragging an item from one listbox over.
Private Sub DtlBox3_MouseMove(sender As Object, e As System.Windows.Input.MouseEventArgs) Handles DtlBox3.MouseMove
Try
' Get the current mouse position
Dim mousePos As Windows.Point = e.GetPosition(Nothing)
[code]....
View 3 Replies
Jul 22, 2009
I have to do the project using VB in Visual Studio, and i have to create a timetable with the control TableLayoutPanel (with columns from Monday to Saturday and rows from 9AM to 10PM) and with that a have also to create labels, outside the TableLayoutPanel, with the names of the disciplins and then using the Drag-and-Drop, i drag the labels i want to the TableLayoutPanel and drop them anywhere i want, for example, drop a label in the column Thursday and row 2PM (Thursday at 2PM)
View 12 Replies
Dec 29, 2010
I want to generate a TimeTable for School autogenerate.how i can generate it with Any algorithm? and which algorithm can i use for it?is any Prepare Algorithm is available for generate it?
View 1 Replies
Jul 23, 2010
I'm going to do college timetable generator project.
View 1 Replies
Jun 12, 2009
i suppose to develop a s/w.. which automatically generates a timetable for the entire college.. on all possible classes..
View 5 Replies
May 4, 2012
I want to create column headers. Now in my first array have this
array
CSC238,8.00-9.50
MAT183,1.00-2.00
ECO120,2.10-4.00
BEL311,4.10-6.00
MAT183,8.00,9.50
Then second array, I want to do like this
array
8.00-8.50
9.00-9.50
10.00-10.50
11.00-11.50
12.00-12.50
1.00-2.00
2.10-3.00
3.10-4.00
4.10-5.00
5.10-6.00
6.00-7.00
7.00-8.00
8.00-8.50
9.00-9.50
View 1 Replies
Feb 10, 2012
my update script in VB.NET, i'm making some stuff, and I want, while all funcs are executed, a progressbar to be displayed? How to do that? Here is my execution sub:
[Code]...
View 1 Replies
Dec 10, 2009
I have an idea about improving the assigning operations of VB.NET (maybe other .NET languages too.) It is similar with "With ... End With" block:
[Code]...
So we don't type "Some Text" every time. Do you think does this idea work? Maybe in the future we can see something like that?
View 3 Replies
Jan 6, 2012
Ime1 = ListView1.SelectedItems(0).Text
ListView2.Items.Add(Ime1)
If MkCal1 < 0 Then
ListView2.Items(0).SubItems.Add("Nepoznato")
Else
[Code]...
The problem is when I click the next time to button, listview2 add only first rows from listview1
View 3 Replies
Sep 13, 2009
I have an application in which I am running a separate thread.
Dim thread As New System.Threading.Thread(AddressOf Main)
thread.Start()
However, the thread makes reference to an textbox named Output, and it generates this error upon execution:
System.InvalidOperationException was unhandled
Message="Cross-thread operation not valid: Control 'Output' accessed from a thread other than the thread it was created on."
Source="System.Windows.Forms"
(message shortened for space)
How can I make the operations run on another thread, but still use the Output object? I cannot call a subroutine to do that for me, as it generates the exact same error.
The method called is AppendText, by the way.
View 3 Replies
May 23, 2010
I have 2 child nodes under a particular node. I want to do operations on the second child node. The code goes like:
Dim pChain As XmlNodeList = pChainDoc.ChildNodes
Dim processName As String = ""
For Each pNode As XmlNode In pChain
processName = pNode.SelectSingleNode("//Name").InnerText
[Code]...
View 1 Replies
Dec 22, 2011
The following commands I used them in VB6 for database operations MsAccess which are, kindly DataBaseDataSet corresponding commands in VB10?
- Data1.Recordset.FindFirst query
- Data1.Recordset.NoMatch
- Data1.Recordset.MoveLast
- Data1.Recordset.AddNew
- Data1.Recordset.Edit
- Data1.Recordset.Delete
- Data1.Recordset.Fields("nome campo") = dato
- Data1.Recordset.Update
View 7 Replies
Aug 19, 2010
I have a few syncing routines that I'd like to use for FTP uploads. However they all use the functions in the IO namespace, and I was wondering whether I could use it to access distant files stored on an FTP server.
View 1 Replies
Aug 19, 2010
I want to create a dll in VB.NET. The functionality of the dll is that it should include all the xml operations. Any application that uses this dll will just pass the node that has to be selected. The dll will accept the node name and search for the node in the xml file and return the details of the node. For example:if the xml file is like
<Node1>
<Node2>
<Node21 Attribute1 = "Value1" Attribute2 = "Value2" />
<Node22 Attribute1 = "Value11" Attribute2 = "Value22" />
[code]....
If the application which uses the dll calls a function named readNode(Node3) which is defined in the dll, then the dll should be able to retrieve all the details of Node3 including subnodes and theire attribute values and return it to the calling application. All the XML operations are to be done in the dll. The calling application will just call the method in the dll by passing the node name and it should be able to get all the node or attribute values.
View 1 Replies
Apr 1, 2011
In my API class I encountered a lot of times I had to Get/Set low/high order <something> of <something>. For example, get the low order integer from a long. I made a few functions for this: [code] Before I start using these functions permanently, I come to ask if it contains any bugs, especially because of the Unsigned/Signed issue.
View 15 Replies
Jul 22, 2011
I have a basic calculator that Multiplies A and B to give a result of C.I want to be able to once multiplication occurs then to add the data to 3 column listview where in Colum 0 the value of A will be entered, Column 1 the Value of B and Column 2 C.For every operation done then to follow on the next row and so on until Memory Result button is pressed, which would mean the end of transfering the data.
View 1 Replies
Jul 19, 2010
I'm re-writing some old application in VB.NET to C# and ASP.NET 3.5. Everything is going OK but I have this problem - and, as the database will not be changed, I must find a solution to it.The old app saves the list o desired days (from Sunday to Saturday) in a byte. This is the way it do it:
If chkDaily.Checked Then
daysBitmask = 127 ' This is for a full week
Else
[code]....
View 1 Replies
Jul 22, 2010
In my projects (WPF) I use System.Windows.MessageBox to show the user a confirmation dialog for operations that are critical, such as a delete-operation.
My problem is that if I specify as button value MessageBoxButton.YesNo, the user cannot use the escape-key to cancel the operation. IMO this is one of the most annoying things, a program can do, showing a dialog without the possibility to cancel/close the dialog through the escape-key.
Other possibilities are MessageBoxButton.YesNoCancel, but IMO this is confusing because it shows three buttons for only two operations . Or one can use MessageBox.OKCancel, but this is IMO not clear enough. In my dialogs I want to ask the user if her really wants to execute the operation. And for this, a simple ok is not appropriate. A yes (I want) is much better than an ok (go on).
How do you handle this? Is it a non-topic or do you think as I do and have an own MessageBox-implementation or do you know a possibility to extend the System.Windows.MessageBox-class?
View 1 Replies
Jun 10, 2011
On compiling a visual basic assembly, int32 variables are cast as int64 for calls to adodb methods that require int32. This results in a method not found exceptions at run time. The unnecessary cast operation can be seen when using reflector to inspect the site of the method call and is not present in the source code.To further muddy the waters when the code is compiled on my 64bit windows 7 machine all is well, but on a 64bit windows 2008 r2 the unnecessary cast is added.
View 1 Replies
Oct 27, 2010
I'm using Visual Basic 2010I've created a ListBox and a BackgroundWorker using designerI want to change the location of listbox using backgroundworker but I get the error as follows:"InvalidOperationException was Handled by user code:"Cross-thread operation not valid: Control 'ListBox1' accessed from a thread other than the thread it was created on
View 10 Replies
Jul 15, 2009
Whats the best way to include the Currency Symbol, without affecting arithmetic operations for example. Lets say I have a Listview which has one column named "Cost" where ill be a Currency Value which needs to carry the symbol for example "BsF. 22,34" or "$. 22,34". Lets say I need to apply aritmetics with those values after whats the best way to store em or at least ignore the symbol when using arithmetic on them?
View 3 Replies
Jun 5, 2011
The file operation calls are returning before they are actually complete, or the disk is being cached somehow. What is happening here is that a zipped file containing a number of files to be updated on the users machine has been unzipped and the filenames are returned in an array called 'newfiles'. Each actual file unzipped is temporarily preceded by a '~' character. We rename each existing file to <filename>.old, then delete all the old files. However, sometimes when the code runs, the old files are not deleted. The only explanation for this I can think of is that the second 'Fileexists' is not seeing the files because the filesystem has not caught up at that point. I've never seen this behaviour documented anywhere, though. It works fine when single-stepped.
For Each fn As String In newfiles
If .FileExists(fn) Then
'rename existing file to .old
delpath = Path.ChangeExtension(fn, "old")
.RenameFile(fn, delpath)
End If
'rename the new file to correct name i.e. remove "~"
[Code] .....
View 9 Replies
Feb 7, 2011
How do you use money in visual basic I know that I have to set nickels and divide by 5 and I am suppose to have another expression to the number. Then i am suppose to determine what change i would have left so that way i can determine how many pennies I have.[code]
View 1 Replies
Jun 18, 2012
I have some task regarding do operations on database using ADODB in Vb.NET.regarding using the same record set multiple times?
I have tried on this topic just by closing the recordset after performing First operation and doing second operation e.t.c.
In ADO.NET we have "MultipleActiveResultSets=True" in ConnectionString for SqlDataReader.Do we have any property like this in ADODB?
View 1 Replies
Jul 31, 2011
I've got the bulk of a calculator up and working, however it doesn't like multiple operations. For example 3x5+2= brings up 10 (i.e. 3+5+2) and even doing it in two parts doesn't help, if I enter 3x5= I get 15 then +2= gives me 32 (i.e. 3x5=15 15x2=30 30+2=32). Also I am getting trialing zeros in my command line I can't debug.Note that lblcommandline displays the whole function and lbldisplay just displays the current imputted number.
Public Class frmSimpleCalc
'This code is run when the program starts. Here we 'declare' or basically, define which variables we want, what they are and such.
'So, for this example, we need two variables. The number we are CALCULATING and the one which we will CALCULATE FROM.
Dim lCalcNumberMaster As Long 'The master number is the solution, the number stored and displayed when we click equals.
[code]....
View 3 Replies
Sep 6, 2010
I am programming hooks for store operations using the qsrules.dll but I do not find information about his variables you can help her obtain?
View 2 Replies
Jan 30, 2010
What is the syntax for mathematical operations as SIN, COS and TAN in Visual Basic 2005?
View 1 Replies
Apr 18, 2010
I've designed a Arithmetic Calculator. I can get my additon button to work but not my multiplication button. My result total comes back as 0.
[Code]...
View 2 Replies