Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

luckykhalid

@luckykhalid
About
Posts
15
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Keys shortcuts problem
    L luckykhalid

    handle key down or key up event of the form and then trigger click event by; if(e.KeyCode == Keys.F10) button1.PerformClick(); hope it helps.

    Regards Khalid

    C# help question

  • Using a struct passed from a C# web service at the client
    L luckykhalid

    Make a dll of the struct and refer it to both client and the server.

    Regards Khalid

    C# question csharp help

  • Low process speed Large scale storage question...
    L luckykhalid

    There are a few recommendations: 1) Do not use ad hoc queries instead use Stored Procedures even to retrive data. 2) Do not use Typed Datasets. They are not efficient and take more memory. 3) Try to use Microsoft Enterprise Library Data Access Layer for better reliability and maturity to access DB. 4) If your target usersTry to use connection pooling. 5) Do not try to put dataset with 100000 rows on session or viewstate. Hope it helps.

    Regards Khalid

    ASP.NET database performance question csharp help

  • scrollbar when user's got low resolution?
    L luckykhalid

    There is a concept of Docking controls in windows applications in C#. Whenever I make an application I never set its width or hard code any of such attributes. All I do is to dock all the controls in such a way that the controls adjust themselves whatever the resolution is. Then you always set their minimum and maximum properties so that the controls dont get too much distorted on different resolutions or on resizing. Hope it helps.

    Regards Khalid

    C# help tutorial question

  • How to know whether a file is copied or not
    L luckykhalid

    Hi Create a seperate thread in which you will process that file. For instance, if you have 5 files moved into the folder, you will be having 5 threads that would process those files. In every thread, make a variable that would be having state of the file. whenever a file is copied into the filesystem, filesystemwatcher trigers Created event once and then Changed event twice. When the Chnaged event is fired for the same file for the second time then start doing anythng on that file. Hope it helps

    Regards Khalid

    C# help tutorial

  • Web Browser
    L luckykhalid

    Use WebBrowser control.

    Regards Khalid

    C#

  • Passing Data to a Child Form
    L luckykhalid

    Handle the event of focus of your parent form and then check if the child form is still alive. If so then cancel the current event and focus child else call base function for default focus behaviour.

    Regards Khalid

    C# sysadmin

  • Get Data from Lookup Form
    L luckykhalid

    There are many ways to accomplish your task. 1) Best way would be to make a custom event. As you told that you dont know much about delegates so I think it will be even difficult for you. 2) Make a static method in FormA and call it from FormB's click event handler by either passing it this (FormB object) as an argument if FormB is not class variable in FormA. In that method get all the values from FormB and then you could just close FormB or even destroy it. 3)In the click event handler of FormB, get its Parent by FormB.Parent, this will yeild you the reference to FormA's object. Now you could do anything with it. You can use any of the above mentioned way. Hope it helps.

    Regards Khalid

    C# tutorial question

  • a question about Report Service
    L luckykhalid

    Your question is vague, but I still try to answer to what I understood from it. If you are using a report viewer cntrol for MS SQL Reporting and you do not want to use the filter fields (parameters) that the control displays for you on the screen rather you want to have your own input controls acting as filter fields on your page, then you would have to do it a little programatically by following 2 ways. If you are using Report server then you can append all the parameters at the end of the report path property seperating every parameter with "&" of the ReportViewer control. If you are using stand alone reports then you would have to add ReportParameters to your control by using its method LocalReport.SetParameters(parameterlist). Hope I have asnwered to what you asked for.

    Regards Khalid

    C# question help

  • HOW TO TRANSFER DATA BY MODEM?
    L luckykhalid

    Do you intend to transfer data through internet?

    Regards Khalid

    C# sysadmin tutorial question

  • System events
    L luckykhalid

    You could use .Net Remoting for inter process communication. Whenever you want to fire an event from process 1, call a method of process 2 by remoting and then in that process 2's method invoke an event. This will be more secure and better approach to trigger an inter process event.

    Regards Khalid

    C# question csharp c++

  • Composite Custom Control problem!
    L luckykhalid

    I know that I would have to make a custom designer for my control. The problem I am getting is that I have not used ITemplate in my custom control and I just dont want to use it for some reason. Instead, I have used Panel controls in my Custom Control. So, in this situation how can I make my custom designer so that there are two editable regions over it that actually make Header and Body of the control and correspond to respective Header and Body Panels of the control.

    Regards Khalid

    ASP.NET wpf design help tutorial

  • Composite Custom Control problem!
    L luckykhalid

    I have made a collapsible composite custom control that has two panels acting as Header and Body of the control. I dont know how to make its designer so that users of the control are able to drag and drop controls in its Header or Body. I can add/remove controls in them programmatically but I dont know how to make it work at design time. I dont want to use Templates in my custom control. I want to use all the properties of Panel control and thats why I am using Panels as Header and Body of the control. But I want to make it behave like two editable regions at design time too. Thank You

    Regards Khalid

    ASP.NET wpf design help tutorial

  • C#.Net - A Deserialization problem! Help!!!
    L luckykhalid

    Well, Russ, I dont have any events in my custom objects. They contain data members only. Thanx for your reply. Regards Khalid

    C# csharp sysadmin help dotnet json

  • C#.Net - A Deserialization problem! Help!!!
    L luckykhalid

    I have two projects. One is Server and the other is client. I am using udpclient sockets for network communication. To send custom objects I have to serialize and desterilize by using binary formatters and memory streams. It works great if I use a single project having two threads and communicating with each other. But my actual task is to have two separate programs running on any two machines of a network. Now both the programs have different things to do as one is a server and the other is a client. The server waits for the client to send a custom object. The client serializes a custom object into stream of bytes and sends it to the server. At server side, the server receives the incoming stream and has to desterilize it back into the actual custom object. My custom object is completely serializable as described inn msdn. Attribute is there and ISerializable interface is implemented. Both the projects have different names and versions as they are separate assemblies. Now for casting I have included the class of my custom object in both the projects. But, I get an exception at deserialization time in server. The exception is; "An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional information: Cannot find the assembly Client.exe Version=1.0.2365, Culture=neutral, PublicKeyToken=null." What I perceive from this exception is that after serializing, the serialized object also contains the Assembly Meta Data info in which it was created e.g. Assembly Name, Assembly Version etc. So, at server side, when the object is deserialized back to its actual state then the CLR finds out that the deserialized object does not have correct information for the current running Assembly which is Server.exe. So, then CLR thinks that this deserialized object is incompatible with the current assembly i.e server.exe and tries to find the assembly Client.exe. When it is unable to find client.exe as it is not at server side so it raises the exception. I solution to this problem is that Client and server programs reside in the same directory, which is never going to happen in my case. Another solution to this problem is that I make a separate .dll for all my custom objects that need to be communicated between server/client and place the same copy of that dll at both the sides. But I don’t want to follow this solution coz then I would be spending my time in just checking the consistency of dll at both sides and what if a dll at some side is mi

    C# csharp sysadmin help dotnet json
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups