User Profile

Collapse

Profile Sidebar

Collapse
shiponeye1
shiponeye1
Last Activity: Oct 10 '07, 05:00 PM
Joined: Aug 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shiponeye1
    replied to extract IP address
    in .NET
    in C# you may done it through the following code

    string sIPAddress=labe l2.Text;

    string[] sExtractIPAddre ss=sIPAddress.S plit('.');

    string IP1=sExtractIPA ddress[0];
    string IP2=sExtractIPA ddress[1];
    string IP3=sExtractIPA ddress[2];
    string IP4=sExtractIPA ddress[3];
    See more | Go to post

    Leave a comment:


  • to open file write the following code

    System.Diagnost ic.Process.Star t("WINWORD.EXE" ,sFileNameWithF ullPath)
    See more | Go to post
    Last edited by MMcCarthy; Sep 2 '07, 11:25 AM. Reason: signature removed - not allowed on technical questions

    Leave a comment:


  • how a application can write with administrator credential

    Hi,
    I have a C# application that will be run by general users who have no permission to write or copy anything to C:/ProgramFiles.

    But i want to give them permission to write in this folder by my application.
    to give permission i can use the userid as administrator and its password.

    but i dont know how can i do that.
    See more | Go to post

  • shiponeye1
    replied to C# Find Text Boxes Grab Data
    in .NET
    HI KAREN,
    to get all the controls within a form, u can use

    Controls oFormControls=t his.Controls;
    it returns all the controls on the form. but it better if u put all the textbox in groupbox or panel. then it'll iterate throw few controls.

    //this code iterate throw all controls on the form
    foreach (Control ctl in this.Controls)
    {
    if(ctl.GetType( ).Name==...
    See more | Go to post
    Last edited by MMcCarthy; Sep 2 '07, 11:27 AM. Reason: email removed - against site rules

    Leave a comment:


  • Hi, Its very simple like...

    on button or link event just add this code
    say you have 2 form

    frmMain, frmChild
    you want to call frmChild from frmMain

    code will be

    frmChild oChildForm=new frmChild;

    oChildForm.Show Dialog();


    it protect u from opening another from without close the oChildForm. if you want to open multiple form at a time use the following...
    See more | Go to post

    Leave a comment:


  • shiponeye1
    replied to c# regarding
    in .NET
    Hi, it simple like...

    #region SHIPON FUNCTION

    something goes there...

    #endregion
    See more | Go to post

    Leave a comment:


  • shiponeye1
    replied to Inserting Datetimepicker in SQL Database
    in .NET
    Hi, just try with that.

    datetime dMyDate=dtpPick er.value

    cmdInsert="INSE RT INTO MyTable(MyDate) VALUES('" & dMyDate.ToStrin g("dd MMM yyyy") & "')"

    you can insert any date in this format.

    !!! SHIPON !!!
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...