|
hi everyone,
how can i determine the extension of any file.
what is the method to get the extension of any file.
Rupesh Kumar Swami
Integrated Solution,
Bikaner (India)
|
|
|
|
|
dim str as string = path.GetExtension("Rupesh Kumar Swami.extention")
|
|
|
|
|
Thanks sonia
by the way argument for GetExtension method is good
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
|
Hi All,
I have build a window service with timer in it and i want to enter log after every 5 minutes,so I have written code in Timer_tick function , but It's not working ,Can I do that way , Or there is another way of doing it.
Thanks & Wishes
Navneet Hegde
Nashik(City Of Pilgrimage)
Develop2Program & Program2Develop
|
|
|
|
|
send me the code ....I will ty to rectify it.
|
|
|
|
|
Hi Sonia,
Namespace AlertService
{
public partial class AlertService : ServiceBase
{
public AlertService()
{
InitializeComponent();
}
protected override void OnStart(string[] args)
{
// TODO: Add code here to start your service.
timer1.Enabled = true;
}
protected override void OnStop()
{
// TODO: Add code here to perform any tear-down necessary to stop your service.
timer1.Enabled = false ;
}
protected override void OnPause()
{
timer1.Enabled = false;
//base.OnPause();
}
protected override void OnContinue()
{
timer1.Enabled = true;
//base.OnContinue();
}
private void timer1_Tick(object sender, EventArgs e)
{
eventLog1.WriteEntry("Hai it's now " + DateTime.Now.ToString());
}
}
}
This is what i have coded , Installation is working well with custom Event log , Start , Stop Pause , Continue is Logged but Only the Timer is not working
Regards & Wishes
Navneet Hegde
Nashik(City Of Pilgrimage)
Develop2Program & Program2Develop
|
|
|
|
|
You are using Window based Timer. User System.Threading.Timer instead...
|
|
|
|
|
Hi A
I will try this and let you know
Regards & Wishes
Navneet Hegde
Nashik(City Of Pilgrimage)
Develop2Program & Program2Develop
|
|
|
|
|
Next time, use the C# forum if you're working in C# code.
|
|
|
|
|
hello frnds,
can i change/append the text in footer of word document using vb.net
if any one knows then plzzz...help.
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
|
Hai!
we have 8 of modules in our project(Visual Basic 6.0)!
And we already completed 6 of that modules!
we need to work with one more module! that module have similar functionality like one more previous module! so we just copied the earlier one! The problem is, the new module
doesnt respond properly as like the previous one!
How can i compare those two Visual basic sources?
Is there any option for that? or Is there any tools available for compare sources?
Help me plz! That will really helpful to me!
|
|
|
|
|
Hi ,
try Googling the Tool 'ExamDiff'
Regards & Wishes
Navneet Hegde
Nashik(City Of Pilgrimage)
Develop2Program & Program2Develop
|
|
|
|
|
|
Araxis Merge is an awesome diffing tool.
One also comes with Visual Studio, but it kind of sucks.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Kumar! wrote: Need a Help plz!
Please provide more of a title to your question, and using SMS speak is really kind of irritating.
"Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
Tom Welch
|
|
|
|
|
sorry! am new to codeproject! i will corect it in future!
|
|
|
|
|
1. Please read the forum guidelines. Everyone here needs 'help.' Please use meaningful descriptions in your message titles.
2. As already mentioned, please use regular English, not text speak.
Thanks!
______________________
stuff + cats = awesome
|
|
|
|
|
Dear Community,
can anybody give me a hint how I can change the attribute for a property during Run.Time?.
My current problem is that I use a PropertyGrid to show my defined properties. Depending on the selcetion of a certain Property (drop down menu) I want some other properties to be shown [browsable(true) ] or not to be shown [browsable(false) ].
ThanX...
|
|
|
|
|
Simple way to do is, create two classes one base class another derived class. In base class property set browsable attribute to true and in derived class property set browsable attribute to false... Interchange object from baseclass to derived class.
Thats it...
|
|
|
|
|
SoFar [...] how can I interchange object from baseclass to derived class? A sample could be helpful. thX
|
|
|
|
|
how to add , delete the dsn for ms access database.?
|
|
|
|
|
Hope the Article by Bas Goedemans here[^] in CP will help you
Regards,
Satips.
|
|
|
|