Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. matthewking

    Serializing an object

    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...
  2. matthewking

    Persisting objects in an application..

    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...
  3. matthewking

    Problem with deserializing..

    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...
  4. matthewking

    CartItemCollection to Datagrid..?

    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...
  5. matthewking

    Application Architecture..

    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...
  6. matthewking

    Connecting to MSDE with Enterprise manager..

    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...
  7. matthewking

    Help on socket server..

    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...
  8. matthewking

    Column naming conventions..hmm

    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...
  9. matthewking

    Chaning Background Contents in a form

    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...
  10. matthewking

    Events in class

    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...
  11. matthewking

    Tips on creating client/server application

    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...
  12. matthewking

    Compiling Multiple cs files prob

    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...
  13. matthewking

    dynamically generating a pdf file

    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...
  14. matthewking

    clean way to delete item on cart

    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
  15. matthewking

    FormsAuthentication Register Problem..

    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...
  16. matthewking

    Best solution for shopping cart

    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...
  17. matthewking

    System.Data.DataTable denotes a class which is not valid in..

    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...
  18. matthewking

    Cant access ado return parameters when populating recordset..

    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...
  19. matthewking

    Stored Proc Error converting data type varchar to column int

    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...
  20. matthewking

    MouseDrag, x, y coordinates prob.

    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; }...

Part and Inventory Search

Back
Top