|
Hi
This code
bool result = proc.Start();
Above code return "true" value means that process get start.
Thanks
abm
|
|
|
|
|
What makes you say that the code doesn't invoke? What I am trying to understand is, are you expecting some result which is not happening?
A quick test would be putting a writeline to see what the passed in argument is coming as.
|
|
|
|
|
Hi...
Iam using Windows Explorer control in my application.If i want to change the application directory when click on home in toolbar..
How can i do this.can anybody help me,
|
|
|
|
|
i am developing a windows application like windows explorer, there in property we are getting type of file and its size on disk, how to get that in my application..
JibySeby
|
|
|
|
|
io.fileinfo has most of that info. I think there are more in the fileinfo attributes as well
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
i need the type of file like text document or Bitmap Image... exactly same way as windows explorer.. and it size is different from size on disk.. which is not available in Fileinfo class
anu&jiby
modified on Tuesday, February 17, 2009 3:53 AM
|
|
|
|
|
|
Size is same as length of Fileinfo object. but size on disk is different.. and i need its type also
JibySeby
|
|
|
|
|
I think you are talking about "Size on disk", if its that then Size on disk is calculated by block size, each file saved in blocks. In NTFS, the block size is 4096 bytes( 4 KB ) that mean if your file size is 1 KB then it will take 4 KB, 3 KB will be padding to align the other data. So if you gonna need Size on disk then you can use
(long)Math.Ceiling((double)fileinfo.Length / 4096);
Note : it was about NTFS, dunno about FAT
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
That's pretty rubbish.
- Cluster size depends on formating options. The default cluster size depends on file system (NTFS, FAT[32], exFAT...) and on the size of the disk.
- Files can be compressed at cluster level which has huge impact.
- Files can be fragmented.
- Files can be on another drive (yes, symbolic links exist on NTFS)
- Sparse files (which by definition don't actually take on the disk their size initially)
- ...
B.A.N.Z.A.I. ! !! !!!
|
|
|
|
|
so you voted yourself, nice...look at the date.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi all,
I've two C# project on the same solution. I just want to start one project from another, basically a form. How can I do it.
Any tutorial is appreciate a lot.
Thanks
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Your form needs to be in a dll, then you can import it, and create instances of it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
On the same solution how can I do it? Can you please clarify me on this.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
it can be exe too
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi Frnd's ...
Can anyone say How to read No of Lines and Characters in a Tiff image usin c#.net ..
Tks in Adv...
G.Sam....
|
|
|
|
|
If it's text, you need to buy an OCR library
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Tks Christian Graus...
Can say any demo version for that solution
Tks in Adv
G.sam...
|
|
|
|
|
Hi,
I have a form that has one combobox. I have already populated the combobox with data from a sql database by creating a method in the form_load.
How can I create a class file and then move my method to the class so that I can use that one method over multiple forms? It basically comes down to refactoring but I am having difficulty understanding the properties I need to do this...
My current method looks like this
private void PopulatePhysicalSuburbs()
{
DataSet dsPhysicalSuburbs = new DataSet();
dsPhysicalSuburbs.Merge(proxyGetData.GetSuburbs());
cbPhysicalSuburb.DataSource = dsPhysicalSuburbs.Tables["Suburb"];
cbPhysicalSuburb.DisplayMember = "Suburb";
cbPhysicalSuburb.ValueMember = "Id";
}
Illegal Operation
|
|
|
|
|
Well, this is redundant, it looks to me like you've done all you can.
Illegal Operation wrote: DataSet dsPhysicalSuburbs = new DataSet();
dsPhysicalSuburbs.Merge(proxyGetData.GetSuburbs());
Is dumb. You create, then throw away a dataset.
DataSet dsPhysicalSuburbs = proxyGetData.GetSuburbs();
Then the rest, is stuff that needs to happen in the class that has the combobox. Your next level of abstraction is to create a control that knows to load it's own data source, and reuse that
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Do you know of any good articles about creating a custom control like that?
Illegal Operation
|
|
|
|
|
hi everyone,
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Collections;
namespace arraylist
{
public struct ParameterValues
{
public ArrayList al;
};
public class Program
{
public static ArrayList alMix = new
ArrayList();
public static ParameterValues pValue = new
ParameterValues();
public static void Main(string[] args)
{
pValue.al = new ArrayList();
pValue.al.Add(5);
pValue.al.Add("vgbd");
pValue.al.Add('d');
alMix.Add(pValue.al);
alMix.Add(pValue.al);
//Now i want to ACCESS the elements of alMix array list
Console.ReadKey();
}
}
}
in the above program i have created an array list inside the structure and populated it.
The contents gets saved as,
pValue.al[0] = 5
pValue.al[1] = "vgbd"
pValue.al[2] = 'd'
Then i copied those values in another array list alMix where it is getting stored as.
alMix[0][0] = 5
alMix[0][1] = "vgbd"
alMix[0][2] = 'd'
alMix[1][0] = 5
alMix[1][1] = "vgbd"
alMix[1][2] = 'd'
Now since the alMix arraylist is 2D, i'm unable to access it. Please help in accessing the elements of the alMix array list which is 2-dimensional.?
thanx in advance.
|
|
|
|
|
A) No one uses Arraylists any more.
B) Try alMix[0].al[0]
C) Try ((Arraylist) alMix[0]).[0]
|
|
|
|
|
List cannot be 2D, Array can
ArrayList[] ai = new ArrayList[2];
ai[0] = new ArrayList();
ai[1] = new ArrayList();
or
ArrayList ai = new ArrayList();
ArrayList childai = new ArrayList();
childai.Add("MyName");
ai.Add(childai);
string name = ((ArrayList)ai[0])[0].ToString();
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi to all!
I'm using a PPP to connect two Gsm Devices through serial port. When i receive data from remote device, some characters are randomly appearing. I've been reading some documentation about those XonXoff characters, but i don't know how to deal with them. There's any way of avoiding those characters or to make my program correctly interpret them?
Best regards.
|
|
|
|