User Profile

Collapse

Profile Sidebar

Collapse
Ramk
Ramk
Last Activity: Jul 3 '15, 10:06 AM
Joined: Nov 8 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rs.Fields(0) returns the Object type. Cast it similar to rs.Fields(0).To String() before checking with username.Text etc. Also do check for NULL of the returned object such as
    Code:
    if (rs.Fields(0) != null)
    {
     //your code...
    }
    See more | Go to post

    Leave a comment:


  • Ramk
    started a topic Unmanaged to managed
    in .NET

    Unmanaged to managed

    I have a typical architecture related doubt. The following lines will depict the picture

    Product A Framework => Legacy code(written in VC++ 6.0 ATL),

    Product B Framework => Written in WCF.

    There are two approaches.

    1. Create a wrapper service in WCF(which will talk to Product B), consume it from product A and vice versa

    2. Create a general C++ dll(which will talk to...
    See more | Go to post

  • Ramk
    started a topic Generic algorithm implementation

    Generic algorithm implementation

    Does anybody give me suggestions in implementing an algorithm using a programming language such as C#.

    For example, lets say; I had a stream of data continuously coming to me. I want to filter the data based on certain conditions such as "if new data is lessthan 10", discard the new data.

    I can implement the same by 'C# generic collection', but Im more concerned about the performance. Because I may have to...
    See more | Go to post

  • Ramk
    replied to xml serialization question
    Code:
    public class myclass
            {
                [XmlElement]
                public Property Properties;
                public myclass()
                {
                    Properties = new Property();
                }
            }
    
            public class Property
            {
                [XmlElement]
                public int first;
                [XmlElement]
                public
    ...
    See more | Go to post

    Leave a comment:


  • Ramk
    replied to COM Interop
    We recently had the similar issue ie we used VB6.0 activex component in C#. During the run, some times, we got the activex error(its client-server communication). But later, we found it was happening due to not releasing the used resources properly. Also, you may have to configure some other settings using dcomcnfg....
    See more | Go to post

    Leave a comment:


  • Ramk
    replied to Add Remove Item sIn ComboBox !!!
    I guess the above line should be
    Code:
    if (index > -1) c.Items.RemoveAt(index);
    ...
    See more | Go to post

    Leave a comment:


  • Ramk
    replied to Linking between Form Controls (Drag Events)
    Did you check the mousemove event is attached to the form? Other case could be, a panel could have occupied the entire form, in which the mouse move messages will go to the panel when the mouse is over it.

    CreateGraphics will create the graphcis object for us, through which we can draw on the screen irrespective of the underlying graphics hardware.

    Yes, the rectangle is unnecessary. I want to comment it by editing my post,...
    See more | Go to post

    Leave a comment:


  • Ramk
    replied to Customize Paging
    This will give compilation error.ToInt method doesn't exist in String class.

    Use Convert class as follows.
    Code:
    Convert.ToInt32(ddlSize.SelectedItem.Value)
    ...
    See more | Go to post

    Leave a comment:


  • Ramk
    replied to Customize Paging
    Try to use the SelectedItem property of the ddl.
    Code:
    gv.PageSize = [B]ddlPageSize.SelectedItem[/B];
    Also, plz wrap your code in the [code] BLOCKS(Click the # symbol available on the extreme right of your editor window), which makes your post easy to read.
    See more | Go to post

    Leave a comment:


  • Ramk
    replied to xml serialization question
    Try to change the access specifiers in your Actor class from private to public.
    See more | Go to post

    Leave a comment:


  • Ramk
    replied to Linking between Form Controls (Drag Events)
    Handle the NodeMouseClick of treeview & form's mousemove events.
    Few lines of code is shown below.You can enhance it.
    Code:
    private void treeView2_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
            {
                tracked = true;
                start.X = treeView2.Location.X + e.Location.X;
                start.Y = treeView2.Location.Y + e.Location.Y;
            }
            private void Form1_MouseMove(object
    ...
    See more | Go to post

    Leave a comment:


  • Ramk
    replied to Extra commas in CSV file
    Why don't you try to use JET OLEDB. In which, you can parse the csv file(or any text file etc) by using OLEDB. You can define a custom schema in a file called schema.ini file.
    Plz go through the following link for more info on schema.ini file.
    Schema.ini File (Text File Driver)...
    See more | Go to post

    Leave a comment:


  • Ramk
    replied to xml serialization question
    Check the following boldface code.Hope this helps you.
    Code:
    [XmlRoot]
    public class Level
    {
        [XmlAttribute]
        public int lvl;
       [B][XmlElement][/B]
        public Ball[] ballColl;
    }
    public class Ball
    {           
        [B][XmlAttribute][/B]
        public int x, y;
    }
    ...
    See more | Go to post

    Leave a comment:


  • Try to use Dispose method if one such exists.
    See more | Go to post

    Leave a comment:


  • Ramk
    replied to Connection String
    Hope this helps:
    Code:
    Data Source=.\\SQLExpress;Integrated Security=true;
    User Instance=true;
    AttachDBFilename=|DataDirectory|\InstanceDB.mdf;Initial Catalog=InstanceDB;
    Follow the link for more information at
    SQL Server 2005 Express Edition User Instances
    See more | Go to post

    Leave a comment:


  • Hi I have written some code for you. Here you can the caption also.
    Sorry. I was late as Im so busy in last couple of days.

    This is main code used in getting the excel sheet. Here you can get the caption of it also.

    Code:
    'Option Explicit On
    Imports System.Text
    Public Class Class1
        ' Callback delegates
        Private Delegate Function EnumWindowCallbackDelegate _
            (ByVal hWnd As IntPtr,
    ...
    See more | Go to post

    Leave a comment:


  • Ramk
    replied to icons in Windows Vista
    in .NET
    hi Plater, Im not fully convinced with the answers.In general whenever an image of the required size is not found, Windows will automatically create it. This is particularly true in case of colour, wherein the requested color is not available, Windows will give the best matching colour based on underlying graphics hardware.
    One ex is that, if you select the large images option in VS, it zooms the icons to fit the toolbar area. I don't know...
    See more | Go to post

    Leave a comment:


  • Right click on the reference you added(in your case, in project A for the 3party dll & in project B for the reference project A), Choose Properties & then set the
    Copy Local property to True. Afterwards, whenever you build your project, VS will automatically copies the referred assemblies to the output folder.
    See more | Go to post

    Leave a comment:


  • Ramk
    replied to Irritating problem c# Ado.net
    hi akshay,
    did your problem is solved?...
    See more | Go to post

    Leave a comment:


  • Im working on your sample. I will post the code little later.
    Infact, be patient.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...