|
Hi,
Thanks for the reply.
With the context this is going to be used in it is unlikely that anyone would add http:// before a url, it would more than likely be www.server.com/page
I have been copy/pasting some Regex code I found with no luck so far. I know absolutely nothing about Regex but I have just downloaded the Regex coach which will hopefully help me learn a bit.
If you have any pointers as to what the regex should look like or links to good places to learn (It's not making much sense at the moment!) that would be great
Cheers,
Dan
|
|
|
|
|
send me the code for Forums using C#.net
|
|
|
|
|
|
<br />
while( true )<br />
{<br />
doForum();<br />
}
I hope that's of some use to you.
|
|
|
|
|
vasavi.polisetty wrote: send me the code for Forums using C#.net
Only if you say "please".
|
|
|
|
|
www.forums.c#.net2.0
may b...
*************************
SetNewGoal:
while (GoalNotAchieved){}
goto SetNewGoal;
*************************
|
|
|
|
|
Hi,
I use this function :
textControl1.Load("C:\\ENUtxt.pdf", TXTextControl.StreamType.AdobePDF);
but I have an error:
Value does not fall within the expected range.
please help.
Thanks.
|
|
|
|
|
|
I have one schedule application done with a form having several controls. Now i want to create windowsservice and want to add the task to OnStart() method but what should i add?
If you know what I mean?
I mean i have form "Form1.cs"with events one different buttons and "schedule.cs" having main method to run the form.
Now when i add new item or new project as windows service both have then main methods?
Please advice?
|
|
|
|
|
A windows service can call other dlls. I would suggest putting the code that is in form1.cs in a new class library. Then add a windows service add a reference to the class library. Then the windows service can call the same code the windows form calls.
Ben
|
|
|
|
|
What you mean ben?
Are you saying create a different project or what because class library cannot be added in this project.
I tried to create clean class library project and this form1.cs code doesnt fit there because it complains abt different controls.
I am now kind of confused a lot
|
|
|
|
|
That is true, you can not put windows controls in your class library. You should not try to do this anyway. What should go in the class library is the methods that are in the form1.cs that use the data from the windows controls. You should have methods that get called by button click events etc.
Then you can add a class library project to your solution and move the code to there. As long as the windows project has a reference to the class library everything should work.
Ben
|
|
|
|
|
I know that application is same as mine but i dont know how to do registry things.. I mean how to save my data in registry?
ok i think i am misleading everybody. Following what i have and what i want to do
I have form1.cs which have different events and what i am doing on this form is adding some tasks in ListView. Now the next task is to add scheduling functionality to those tasks.
How would you start implementing it? Can somebody please guide me the steps of tasks as how to add schedule functionality?
Yes I need a kind of service which will run any tasks which were added in listview in Form1.cs. how would you implement that?
Anu guidance please?
|
|
|
|
|
I am trying to make an application similar to as following:
http://www.filedudes.com/JIT_Scheduler-screenshot-31062.html
But in my case i have gui ready as JIT_Scheduler but now the tasks that has been added i want to schedule them how would you start it or what can be different ways to schedule them?
Thanks - please help
|
|
|
|
|
|
Hello,
System.IO.Path has a lot of fancy methods like:
string extension = System.IO.Path.GetExtension(filename);
All the best,
Martin
|
|
|
|
|
You can check for extension of openFileDialog1.FileName
|
|
|
|
|
Don't delete your question - It is considered rude.
|
|
|
|
|
I am having a strange experience. I have inherited a grid class and written my own class, say myGrid. Now, i am wrapping myGrid object in myPresentationControl class.
when i set the visibility of myPresentationControl object , sometimes OnLeave event of myGrid is firing and sometimes not, any idea what could be the reason?
Thanks
kumar
|
|
|
|
|
Hello,
Maybe it depends on if the Grid has focus or not?
All teh best,
Martin
|
|
|
|
|
hi
we have an excel file opened and contain data, this file is not saved on the hard i want to read the data of this excel file while it i opened in memory
i don`t want to save the file the read it using it`s path i want to read it from the memory
how can i do that
thanks in advance,
haitham
|
|
|
|
|
I don't know if that is possible but if it is you would use the Excel Object Model from the Primary Interop Assembly. If you go search on MSDN you can find all sorts of information about it. The namespace is: Microsoft.Office.Excel
led mike
|
|
|
|
|
Hi, any idea how to calculate files size found in some folder??
string[] arSourceFiles = System.IO.Directory.GetFiles(MyDir);
arSourceFiles.(:confused:);
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Try This....
foreach (string file in arSourceFiles)
{
FileInfo finfo = new FileInfo(file);
int filesize = finfo.Length; // Length returns the size of file.
}
|
|
|
|
|
Looks good enough thank you Mandaar
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|