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];
User Profile
Collapse
-
to open file write the following code
System.Diagnost ic.Process.Star t("WINWORD.EXE" ,sFileNameWithF ullPath)Last edited by MMcCarthy; Sep 2 '07, 11:25 AM. Reason: signature removed - not allowed on technical questionsLeave 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. -
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==...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...Leave a comment:
-
Hi, it simple like...
#region SHIPON FUNCTION
something goes there...
#endregionLeave a comment:
-
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 !!!Leave a comment:
No activity results to display
Show More
Leave a comment: