|
Assume i have a subfolders in the mainfolder. These subfolders contains certain Excel files. And that this main folder is stored in server. I want to retrieve the path of the files in subfolder and pass it to the local machines. I am not supposed to use database. So how am i to implement this
ItsMe
|
|
|
|
|
|
will this function fetch all the paths of the subfolders in specific mainfolder.
Can this be written in a webmethod in webservice or the client has to call this. because i want this to be written in the webmethod at server.
ItsMe
|
|
|
|
|
Hi, I was wondering if anyone here has any experience using the ipod class "iPodManagerClass"? if so, I'd be interested if you have any knowledge of how to, or where to find information on, getting artist names off the ipod, and copying songs from the ipod to the pc. I have searched google without many results. Thanks for the help,
Stephen
|
|
|
|
|
|
Hello Code Project Team.
Someone knows wath is necesary to make a VPN client in C#?
Thanks in advanced.
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
Hello!!
I want to create a function in which i need for example click some button and obtain a value, then click somewhere in the win form and obtain a x, y value and finally click other button and make some math operations, so the function that i want must wait until i click the appropriate button or area in the win form, if i don't follow the right order the function must do nothing until i click the elements in the right order.
Somebody knows how can i do this?
Thanks,
Alberto Martinez
|
|
|
|
|
|
Hi,
I need to parse a text file to scrap information. I have seen various post. This one in particular is good. http://www.codeproject.com/vb/net/TextFileParser.asp#xx1033521xx[^]
However, my data is a bank statement. I need to specify an offset and length to get to a piece of information. My file is not delimited or in fixed lengths. Each line is different. Some of the lines don't have a label to match against. My question is would it be better to use SubString or RegEx? I need to read line by line. It seems silly using a RegEx on a single line. What do you all recommend?
Thanks in advance for any help you can provide.
|
|
|
|
|
It's not silly at all to use a RegEx on a single line. Specify a pattern that will match a legal line and use that to match the line. If you get a match you know that the line is well formed and you can easily get the interesting values from the matches collection.
I used this method recently to parse web logs, and it works quite well.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for the reply. I have read that RegEx and some string operations are a CPU hit. StringBuilder is suppose to be better. Would SubString be more efficient? I guess this should have been my original question.
|
|
|
|
|
Dale Hegler wrote: I have read that RegEx and some string operations are a CPU hit.
One that you will never ever notice....
|
|
|
|
|
Yes, using RegEx is somewhat expensive, but on the other hand if the match does exactly what you want, you can hardly do it in a more efficient way. A regular expression can do matches that would need quite a lot of code to do with plain string operations.
For an example, checking if a range of characters in a string are digits is very easy to do with a regular expression, while doing the same with string operations would require you to loop through the characters and check each character individually.
-- modified at 7:48 Tuesday 14th March, 2006
As for performance, it will be sufficient in most cases. When I used RegEx for parsing the web logs, it goes through about 20000 lines a second, and I think that most of that time is actually spent reading the data from disk. So as long as you are reading the data from a file, you needn't worry about the performance of the RegEx object.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for the information.
|
|
|
|
|
I would like to create a graphics form (formA), which is controlled by another form (formB) with a bunch of pushbuttons on it. Each button will draw a certain line, or rectange or some other graphic on formB. I have tried to figure out the even handling to so something like this, but GUI development is pretty new to me.
Thanks
|
|
|
|
|
The ideas in this article, Passing Values Between Forms[^] are exactly the same as calling methods. The properties used in the examples are really just syntactic sugar for methods called get_PropertyName() and set_PropertyName(object value) so the concepts explained are really identical.
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
Thanks for the response.
For my task, rather than passing a value, I want to cause a graphic to be drawn on the child form (line, arc, rectangle, etc). I can't figure out how to do this using the OnPaint mechanism. Is there a good reference on doing this?
Thanks
|
|
|
|
|
The best reference for drawing graphics in Windows Applications is Charles Petzold.
Also remember that using OnPaint is quite an ephemeral thing because you have to keep a note somewhere of what you drew. When the window is damaged (e.g. another window is placed on top) then it you have to redraw what was there. So, you might want to consider wrapping that up into a custom control and have the control do the drawing.
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
DataGridView is inherited from "CONTROL" so several properties are reserved like Background Image.
How can i set an image as a background of DataGridView control ?
Thank you in advanced.
|
|
|
|
|
hello....
does this below code mean that int variable are also treated as objects? if not please provide help regardingly...
int var=9;
string st=var.ToString();
if var is not an object how does it act like an instance of an object....
thanks...
haseeb
|
|
|
|
|
Everything in the .NET framework (excluding the rarely used pointers) are of type System.Object. That is the unified type system.
Now, you can start getting into some intricacies of the type system, for example, everything in the unified type system is either a reference type or a value type. Any C# 'struct' is a value type. Any C# 'class' is a reference type. System.Int32 (C#'s 'int') is a value type. When you call .ToString() on it, it will create a string representation of the integer.
Structs/value types are treated differently in .NET. For one, they are high-performance as they do not require a heap allocation or a garbage collection (whereas references type require both). When you pass a value type to a function, a copy of the value is actually passed:
int i = 5;
MyFunc(i);
...
void MyFunc(int theInteger)
{
theInteger = 10;
}
Also, if you cast a value type to type System.Object, a process called boxing is induced:
int i = 5;
object o = i;
Does that answer your question?
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Moral Muscle
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Hello haseeb,
Actually in .Net there us two type of object.
1) Value type object (Language define types e.g. int,char,byte,long...)
2) Reference type object (User define types e.g. class with define by user or
included by library).
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
there's nothing to stop the user defining a value type!
public struct MyValueType
in oppose to
public class MyReferenceType
|
|
|
|
|
What is the best way to create a folder in the "Documents and settings\user name\local settings\application data\program folder" when creating a deployment project?
|
|
|
|
|
If I remember correctly than System.Windows.Forms.Application.LocalUserAppDataPath will automatically create one when it is accessed.
|
|
|
|