User Profile

Collapse

Profile Sidebar

Collapse
george1106
george1106
Last Activity: Jul 19 '09, 11:53 PM
Joined: Oct 24 '06
Location: Mexico
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • george1106
    replied to C#
    in .NET
    link to excel reader

    Hi! i've been using this article to solve some problems about reading excel files, it gets a dataset with all the worksheets the workbook has as datatables.

    i hope it works, I can't remeber if it's allowed to put third party links, it's from codeproject. if it's not allowed, please tell me :D

    this is the link

    if it doesn't works, here it is
    http://www.codepr...
    See more | Go to post
    Last edited by george1106; Aug 12 '08, 06:21 PM. Reason: wrong word

    Leave a comment:


  • I recomend u to use the asp.net controls, the asp:textbox so u can refer it by code directly. it is a better server control.
    [HTML]
    <form id="form1" runat="server">
    <div>
    <asp:TextBox ID="IdTextbox" runat="server"> </asp:TextBox>
    </div>
    </form>[/HTML]

    in this way u can access the element easyly....
    See more | Go to post

    Leave a comment:


  • george1106
    replied to Alternate for Exit Sub in C#.net.
    in .NET
    hi!
    that sounds to me like u want to terminate some excecution.. try with a return(); statement. it finish whatever you're doing and bring you to the previes stack position in your app ejecution..

    hope it helps :D...
    See more | Go to post

    Leave a comment:


  • george1106
    replied to A problem with dates.
    in .NET
    Hi! try inserting a string with the next format:

    year/month/day hh:mm:ss

    something like String.Format(" {0}/{1}/{2} {3}:{4}", date.Year,date. Month,date.Day, date.Hour,date. Minute)

    to give to the DB engine a common string wich is accepted at least in SQLServe, Postgres and Oracle

    I hope it helps :D
    See more | Go to post

    Leave a comment:


  • george1106
    replied to C#, Application does not terminate
    in .NET
    Try defining the thread you are creating manually as a Background worker,
    when you define the thread

    thread t = new thread(new threadstart(fun ction));
    t.IsBackground = true;
    t.Start();

    check that.. I'm not shure the property is named IsBackGround, it says something like that.. but with that property activate that thread finishes when the main thread finish.

    I hopy it helps you :D...
    See more | Go to post

    Leave a comment:


  • george1106
    replied to replicating a IDBCommand conection
    in .NET
    Hi there!

    I found the solution.. I just needed to create a new object with an IDBCommand wich I make an instance with the kind of the original connection (I used a switch)

    IDBConnection conexion;
    switch(original Connection.GetT ype().ToString( ))
    {
    case "System.Data.Sq lConnection":
    conexion = new SqlConnection() ;
    break;
    case "NpgsqlConnecti on":
    conexion...
    See more | Go to post

    Leave a comment:


  • george1106
    started a topic calling winlogon window :D
    in .NET

    calling winlogon window :D

    hi everyone...

    a little problem here... i hope someona can help me with this... I'm usin impersonation to login a system, and i should to use a Bimetrics device (fingerprint) to authentificate and imperonalize the user... I was thinking about use the logon windows system, who calls the software of the fingerprint device and help to authentificate. .. but I just didn't find anything that help me to do that.. I can impersonalize with...
    See more | Go to post

  • george1106
    replied to Screen dimensions
    in .NET
    you can't use it like that.. you should specify the screen.

    ej.

    Rectangle rect = Screen.AllScree ns[0].Bounds;


    you must put AllScreens and the screen wich you mean to check, and then you can obtain the bouds.

    i hope it help :D
    See more | Go to post

    Leave a comment:


  • george1106
    replied to MDI Form in .Net ???
    in .NET
    talking in a sample.. you should put in the IsMDIParent = true

    and when you make instances of the parent children, you whould write

    Form forma2 = new Form();
    forma2.MdiParen t = this;
    forma2.Show();

    that should work. :D
    See more | Go to post

    Leave a comment:


  • george1106
    started a topic replicating a IDBCommand conection
    in .NET

    replicating a IDBCommand conection

    Hi everyone...

    I just was wondoring if there's a way to replicate or Clone a IDBConnection in an application.. look I'm working in a team that is developing app clientes to a kind of DB, that provide us with connections and all functionality necesary, we send instrucctions to this object and it make them happen (because it should be able to work in diferentes DB engines and it should be transparent for the clients we make)... well,...
    See more | Go to post

  • george1106
    replied to DataTable.Load gets blanks
    in .NET
    thank you. it helped a lot :D
    See more | Go to post

    Leave a comment:


  • george1106
    replied to Screen dimensions
    in .NET
    Hi.

    look, there are a few Objects in the framework... you can use them to know about your screen..

    the main object to do it is the Screen Object. I use it to create a form that should not move out the screen...

    if (this.Left > Screen.AllScree ns[Screen.AllScree ns.Length - 1].Bounds.Right - Properties.Sett ings.Default.ta manno.Width)
    this.Left = Screen.AllScree ns[Screen.AllScree ns.Length...
    See more | Go to post

    Leave a comment:


  • george1106
    replied to DataTable.Load gets blanks
    in .NET
    Code:
    /* these are my declarations: */
            /// <summary>
            /// conection to db
            /// </summary>
            private IDbConnection conexion = null;
            /// <summary>
            /// command used in multiple queryes
            /// </summary>
            private IDbCommand command = null;
            /// <summary>
            /// reader to hold data
    ...
    See more | Go to post
    Last edited by kenobewan; Feb 21 '07, 04:34 AM. Reason: Add code tags

    Leave a comment:


  • george1106
    started a topic DataTable.Load gets blanks
    in .NET

    DataTable.Load gets blanks

    Hi. I have a little trouble here.

    when I use a IDataReader to get info from a DataBase, and try to put it into a DataTable (C#), I just get blanks. I have spaces for all the recods in the tabla where the reader comes from, buy I don't have data.

    Any help will be appreciate.
    Thanks
    See more | Go to post
No activity results to display
Show More
Working...