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
studentemployee(inherits student &...
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...
[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?
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?
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")
Sub Delete_Item(ByVal s As Object, ByVal e As DataGridCommandEventArgs)
DT = Session("Cart")
Session("Cart") = DT
dg.DataSource = DT
LabelTotal.Text = "£" & Cart.GetItemTotal(DR, DT)
How do I turn the above sub into a function in...
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...
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"?>
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...
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
I call it in another form in this way
Dim CodeClass As New Class1
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.
One this is done I would like to check that the selected item in the listbox...
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...
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.
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...
Using asp.net 2 has anyone come accros this error, it is a pain in the....
Server Error in '/test' Application.
Description: An error occurred during the processing of a configuration file...
Does anyone know why this code crashes my machine? also does it look like it should work.
Dim Client AsNew TcpClient
Dim port AsInteger = 8000
Dim Listener AsNew TcpListener(port)
PrivateSub ButtonSend_Click(ByVal sender As...
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