Hi all,
I have a serializable class 'A', which holds an arraylist.
I add an instance of serializable class 'B' to this arraylist, then attempt to serialize class A using binary formatter, but at that point it dies. I've run it through the debugger and it just stops at the serialization...
Hi,
I have a CommsManager object in my application which manages network communications, I want to create a new instance of this when the application starts, then persist the object so I can access its methods anywhere in the application..
I think this is kind of like how a session in asp.net...
Hi,
I have two applications, one is a server and one is a client.
upon recieving data the server sends a serialized "Request" (I know this is teh wrong way around but im only prototying anyway) object to the client, but when I try to deserialize the object on the client side I get...
Hi all,
Say I had a CartItem class which represented a single cart item, and a CartItemCollection class which contains (not sure if this is how its done) a arraylist of CartItem objects..
How do I bind this data to a datagrid? create a datagrid in the CartItemCollection and return it? or is...
Hi all,
I usually develop web applications, but am delving into desktop application development with c#.
Im a little stumped on the archtecture of a .net application, I've gone through the tutorials but they all seem to be a little overdone.
Currently im doing this:
I have a user interface...
Hi all,
I've just installed MSDE on my system, I already has Sql Server 2000 running. I installed MSDE as instance name "msde" and have compname&msde service running, so it appears to be working.
When I open query analyzer I can connect to this instance and run queries on it, however...
Hi,
Im trying to create a socket library which doesn't use TcpClient or TcpListener..
I've written the client, which seems to work fine. On the server side so far I have SocketServer and ClientHandler classes, when the server accepts a connection it passes the socket to a new instance of...
Hi all,
Im not unfamiliar with sql server 2k but this time I want to make sure I have 'proper' naming conventions in the database. So heres the scenario:
I have a table called 'Users' which lets just say for now has a primary key column called 'UserID_PK'.
I also have a table called...
Hi,
I have an application where toolbar icons change the contents below. e.g. Clients toolbar will display a list of clients, some buttons etc and Reports toolbar will display something completely different in the same form..
I was wondering how you achieve this?
I was thinking to make panels...
Hi,
How would I declare an event in a class 'client' and raise the event at any time in the class, and have the functionality for the event in the form that creates an instance of the class 'client' ?
basically, I have a server class which is also the form, and I have a clientservice class...
Hi,
Im looking to create a client/server c# application. I've been reading many articles on the subject, but the developers always seem to be arguing about the best practices after the article.
I was just wondering if anyone has any tips? to use synchronous or asynchronous, etc. Polling or...
Hi,
Im trying to compile two files into a exe, but can't make it work.
The files are:
main.cs - member of application.core.components namespace
aboutForm.cs - member of application.core.components namespace
Im having trouble compiling because both of them reference the namespace, and they...
Hi,
Im interested in creating a library for generating pdf files on the fly.
Does anyone have any information on what this involves..e.g. what do I write to the pdf file, xml? binary?
Any information on the subject, or if anyone knows of an opensource / free pdf generation library please let...
hi all,
i want an x 'button/link' on my datagrid, that posts back and lets me retrieve a value (primary key) associated with it so I can perform the action, namely delete item, is there a way to do this or do i have to create a link? e.g. cart.aspx?action=delete&id=4503
Hi,
I've just written a forms authentication login page, which authenticates users with a table in a sql database. thats fine, but I also have a register page, which inserts the user into the database, then from here, i want it to log them in and carry on as usual, however, how can I use...
Hi,
I was just wondering what would be the best solution to create a shopping cart, e.g. in terms of storing the cart, cart items etc.
I was thinking of creating a cart class, an instance of this can be stored in a session, which reads its items from the database using a unique id from the...
Hi,
I have the following code, and im getting this error on the line that creates a new DataTable object:-
System.Data.DataTable denotes a class which is not valid in the given context.
I've commented alot out trying to find the error, but it persists. Anyone have any ideas?
code:-
using...
Hi,
I've noticed that you can only retrieve ado parameters with direction adParamOutput when executing the command object e.g.
objCommand.Parameters.Append .CreateParameter("@Return", adInteger, adParamOutput)
objCommand.Execute...
This sproc is supposed to build a query dynamically (in order to add filtering) then page records, it worked fine until I added the employeesTo filter, now I get this error
=============================================
Server: Msg 245, Level 16, State 1, Procedure sp_getAllRecords, Line 105...
Hi,
I have a java applet which allows you to drag n drop shapes.
at the moment the drag code is as follows:
public boolean mouseDrag(Event evt, int x, int y)
{
if (selectedObject != null)
{
selectedObject.x = x;
selectedObject.y = y;
}
repaint();
return true;
}...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.