I am doing a college project for a driving instructor, so the heart of the program is getting the booking part right. I've made a structure in a module:
I have myself a self-hosted WCF server setup, which serves a clientaccesspolicy.xml and an index.htm which is just points to my xap (accessible via app.xap).
I'm currently serving them via the following code: Public Function GetPolicy() As System.IO.Stream Implements IClientAccessPolicy.GetPolicy WebOperationContext.Current.OutgoingResponse.ContentType = "application/xml" Return New IO.MemoryStream(IO.File.ReadAllBytes("Server Files/ClientAccessPolicy.xml")) End Function Public Function GetIndex() As IO.Stream Implements ISilverlightServer.GetIndex [Code] .....
It works, does the job I'm after. However, I don't think this streams the xap properly, and I know it's a streaming type. If this isn't streaming it properly, how should I stream it? (The endpoint that the XAP and index.htm files are coming through has a webHttpBinding binding). Is it being streamed properly? Or should I make some changes?
Is it possible to make a program that serves web pages, along with all of their embedded links and external CSS stylesheets or scripts? It would have to serve it across: a) a USB cable, attached to the serving and client computer b) a network, directly to other computers. I would really like it if option A were possible. B is what everything else uses, and I won't try that. I don't have a network.
I am trying to build an application using vb.net that will serve as a very large checklist of sorts. and i'm not exactly sure of the best way to do this. I considered using a database but i would need it to be self contained without having to rely on a server or internet connection
My problem is I need to develop a sales application to be used on 5 computers. The database needs to stay on a main computer and other computers should connect with that over LAN.I donot want to use SQL Server as it is too complicated to give permissions, setting up firewalls etc. for the end user.Is that any type of database that could serve my purpose, without giving sharing violation error?
I am coding a program that will allow the user to input 5 payrolls for Store 1, Store 2, and Store 3. The total of the 5 payrolls are then added together and shown in the respective Store's labels. A total label is also there to add up all the totals into one number. The numbers in the label must be in currency form. My problem is the numbers don't add correctly when I hit calculate. The first two numbers add together, but then after that the number just seems to subtract a random amount.
So far I have this --
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Close() End Sub
i know that integer is a variable to store whole numbers and that a string is a varialbe used to store any text, but what variable type would you use to store a number that has decimals?
"Create a class called Invoice that a hardware store might use to represent an invoice for an item sold at the store. An Invoice should include four pieces of information as instance variables--a part number (type String), a part description (type String), a quantity of the item being purchased (type Integer) and a price per item (Type Integer). Your class should have a constructor that initialize for each of the four instance variables. Provide a property for each instance variable. If the quantity is not positive it should be set to zero. If the price per item is not positive it should be set to zero."
I attached the code I have. obj is underlined and says "Argument not specified for parameter 'Invoice4' of the 'Public Sub New (Invoice1 As Object, Invoice2 As Object, Invoice3 As Object, Invoice4 As Object)' and so the program won't run. What am I doing wrong?
Public Class Form1
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Dim obj1 As New Invoice(Val(TextBox1.Text)) TextBox1.Text &= obj1.Invoice1 & vbNewLine TextBox1.Text &= obj1.Invoice2 & vbNewLine TextBox1.Text &= obj1.Invoice3 & vbNewLine TextBox1.Text &= obj1.Invoice4 & vbNewLine
My form has a subform with a few fields including a datetimepicker.When I select other items in the subform they save to that particular record within my DB no problem, but when I use the datetimepicker it does not seem to bind.
How can I get the value of the year, month and/or day from the DateTimePicker if I'm trying to compute for the age? I've tried
Dim x As String = "" x = Date.FromOADate(Val(DateTimePicker1.ToString)) MsgBox(x) But it only gave me 12:00 AM. and DateDiff(DateInterval.Year, DateTimePicker1, Now.Date)
This time it said datetimepicker1 cannot be converted to date.
I have seen application which click a button and a calander pops up from that we can select a date and time which intern goes to a textbox. When i burows through net i found that we can make use of datetimepicker..Is there any way to use datetimepicker in web application can any one tell me how to use it.
I want to save the time in the format hh:mm:ss from the DateTimePicker to MySQL database, How to format the DateTimePicker into hh:mm:ss only without date and What is the appropriate type to save time in mysql?
I want to get the date value from datetime.now till the selected value from datetimepicker. Ex. date Today is 08/09/2011 selected date from datetimepicker is 02/08/2012
I want to show the dates between the 2 dates mentioned. For example I want to show the value of 09/09/2011-Firstmonth 10/09/2011-SecondMonth 11/09/2011-thirdMonth 12/09/2011-FourthMonth 01/09/2012-FifthMonth Until it reached the selected value from datetimpicker.
I have a date time picker where the dates available to be selected on it is affected by the choice made in a combo box above it. If the user selects "Express Air" in the combo box for example, the minimum date in the date time picker must be either Today or Tomorrow. Nothing before, nothing after. How do I go about this? I tried:
Private Sub DateTimeExpressAir() If cmbShipmentMethod.Text = "Express Air" Then DateTimePicker1.MinDate = DateTime.Today End If End Sub
If also possible how do I set the MAX date to like, tomorrow, or 6 days after today, etc? DateTimePicker1.MaxDate = ?? But no success. I am using Visual Basic 2008.
I need to have my date into a label.text = 03/10/2011I'm able to do that on my datetimepicker1 but when I try to pass to the text it brings in short date = 3/10/2011 I need the zeros.
'format the datetimepicker value Me.DateTimePicker1.CustomFormat = "MM/dd/yyyy" Me.DateTimePicker1.Format = DateTimePickerFormat.Custom
having a bit of bother with the DateTimePicker control in .NET 3.5. I created a very simple form. It consists of just one DateTimePicker control called "DateTimePicker1". In the Load event of the form, I placed the following
Running: Win7Pro, VS2010Pro Try this: New project (WindowsApplication1), new form (Form1) with one DateTimePicker (DateTimePicker1), one TextBox (TextBox1) and one Button (Button1). The DateTimePicker's properties changed are: ShowCheckBox: True, Checked: False
The code on the form is: Public Class Form1 Public Sub New() ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. Me.DateTimePicker1.Value = DateSerial(2011, 1, 31) [Code] .....
i have a simple VB.NET application with a datetimepicker-control. Now i want that the datetimepicker always shows this format 01.07.2009, always the first day of the month
I have a Date Time Picker control and need to get it to display as H:mm in a text box as a declaration so that I can transfer to a database, I do not want the seconds. I have tried using :ToString("H:mm") but it just zero's off the seconds ie..."13:45:00".
I'm having a little problem trying to figure out how to get only the time from a datetimepicker.I've set up a datetimepicker to only allow user selection of time by setting Format to Time and ShowUpDown to True.However, when I store the value of the datetimepicker to a variable, it returns a date as well.[code]However, this seems like a really inelegant solution and I can't figure out how to get an AM/PM behind that.I feel like I'm missing some really simple solution that I'm just not seeing! There HAS to be a way to get just the time!