Search results

  1. L

    Multiple inheritance

    Guys, I know it's not possible to perform multiple inheritance in .net put I have heard there is a way to fake it. Could anyone give me a simple example. Say for insatance we have these classes person student(inherits person) employee(inherits person) studentemployee(inherits student &...
  2. L

    Web Browser Control

    Guys I have a webbrowser control on my form. It contains a webpage with some information on it. What I want to do is for example. Highlight a link then click a button and get information about that link. I can get information about the tags but I don't know how to find out what part of the page...
  3. L

    Making an IDE

    [RESOLVED] Making an IDE Guys/girls does anybody know where to start if you were going to make an IDE. I want to try and make a HTML editor with the ability to drag parts from a menu, just like in Visual studio. Does anybody know where to start on this? Thanks
  4. L


    Does anyone know how to make an OCR program or know of any tutorials on how to make one?
  5. L

    Page width

    I think it would be a good idea if when people paste code that it would not make the page wider than the screen. It is really annoying when you have to scroll sideways. Do you think we could change the forum so that it is wraped?
  6. L

    Function doesn't work with a WebService

    Anyone know why this doesn't work. <WebMethod(Description:="Creates a new Shopping Cart")> _ Function makeCart(ByVal dt As DataTable) As DataTable dt = New System.Data.DataTable("Cart") dt.Columns.Add("Product", GetType(String)) dt.Columns.Add("Quantity", GetType(Integer))...
  7. L

    How do I change this sub into a function

    Sub Delete_Item(ByVal s As Object, ByVal e As DataGridCommandEventArgs) DT = Session("Cart") DT.Rows(e.Item.ItemIndex).Delete() Session("Cart") = DT dg.DataSource = DT dg.DataBind() LabelTotal.Text = "£" & Cart.GetItemTotal(DR, DT) End Sub How do I turn the above sub into a function in...
  8. L

    Update an adapter using a dataset

    Hey guys anyone know why this doesn't work. Dim ds AsNew DataSet Dim adapter As SqlDataAdapter ProtectedSub LinkButtonLookup_Click(ByVal sender AsObject, ByVal e As System.EventArgs) Handles LinkButtonLookup.Click If TextBoxCustID.Text = ""Then LabelStatus.Text = "Error: You must enter a...
  9. L

    XML Dataset (

    Hi, I have a number of questions. How do I add a new entry to my xml file? Can I search an XML file for an entry? This is my current xml file <?xml version="1.0" standalone="yes"?> <Customers> <Customer> <id>1</id> <name>Jonathan</name> <age>23</age> </Customer> <Customer>...
  10. L

    Writiing an xml file.

    Hi, I know how to write data to an xml file but the problem is how do I add data to the xml instead of over writing the current data? Protected Sub ButtonUpdate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonUpdate.Click Dim textWriter As New...
  11. L

    Changing the value of an Interger in another class

    I have this class Public Class Class1 Public TenToTwelve As Integer = 12 Public TwelveToTwo As Integer = 14 Public TwoToFour As Integer = 18 Public FourToSix As Integer = 18 Public SixToEight As Integer = 12 End Class I call it in another form in this way Dim CodeClass As New Class1 Then...
  12. L

    checking if a selected time is in the past

    Hi, I think this is fairly simple, but then isn't everything when you know how. I would like to populat a listbox with some time periods. For instance 10:00-12:00 12:00-14:00 14:00-16:00 16:00-18:00 18:00-20:00 One this is done I would like to check that the selected item in the listbox...
  13. L

    DropDownList index

    Hello, I have some code which does a select statement on a database and then binds to a dropdownlist. The sql returns two values, Time and SlotID. I would like the time to show as an item in the list(this is easy) but I would also like to store the slotID in the list, maybe as an index. It...
  14. L

    Primary Key in SQL Server

    How do I make an autoincrementing primary key for my tables. I can create the tables and change a column to a primary key but I don't know how to make it autoincrement. And whats the point of typing in a primary key by yourself.
  15. L

    Database design help

    Hello, I need to create a program that allows people to register for home delivery of their shopping. I have a rough idea of how to do it but I am stuck on one part. The problem is that there can only be a certain number of deliveries per day i.e. 18. How do I limit the number to 18 within a...
  16. L 2.0

    Using 2 has anyone come accros this error, it is a pain in the.... Server Error in '/test' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file...
  17. L

    .net framework 2

    Anyone know when this will be released?
  18. L

    Chat Program crashes

    Does anyone know why this code crashes my machine? also does it look like it should work. Imports System.Net.Sockets Imports System.Text PublicClass Form1 Dim Client AsNew TcpClient Dim port AsInteger = 8000 Dim Listener AsNew TcpListener(port) PrivateSub ButtonSend_Click(ByVal sender As...
  19. L


    Where has this gone in vs2005? What is the alternative and why doesn't this work Private Sub Form1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Leave Me.StudentDataSet.AcceptChanges() End Sub
  20. L

    VS2003 Vs VS2005

    Whats the difference then guys/gals?
Top Bottom