|
papy-boom wrote: m_pubDate = Convert.ToDateTime(DirectCast(xNode.Element("pubDate").Value, String))
This is not C# code.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Try DateTime.ParseExact ?
If you are getting the values in different formats, you may need to use a Regular Expression to determine which format each one uses.
This is why ISO 8601 was created.
|
|
|
|
|
Hi all,
I want to find the process ID, on one of my application. I want to do this, because later on I want to kill those process as well. I decide to use the process ID, because my application can run multiple time. Say the notepad. I can open multiple notepad docs and each have separate PIDs.
So I tried this.
Process[] servers = Process.GetProcessesByName("notepad.exe");
for (int index = 0; index < servers.Length; index++)
{
int id = servers[index].Id;
}
But each time, Process array length is zero. Even I've open multiple notepads.
Can anyone comment on this.
Thanks a lot
I appreciate your help all the time...
CodingLover
modified on Tuesday, June 23, 2009 5:46 AM
|
|
|
|
|
Amazing, I figured out that process not deal with the extension exe. If I use the process name as 'notepad' only it works fine.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Hi,
How can I close child form using Excape-Key ?
Thank you in advance
(Riaz)
|
|
|
|
|
Use Event "KeyDown". If key down is escape, then call Close();
|
|
|
|
|
Not working !
there are three text boxes and my cursor is on textbox1.
and I set Event on form level as you said.
and escap key is not working
(Riaz)
|
|
|
|
|
set : form.KeyPreview = true;
|
|
|
|
|
on key down events
write
C#
if (e.KeyCode == Keys.Escape)
{
this.close();
}
|
|
|
|
|
Hi, I have three separate filter webparts:filter by radiochoice, filter by text input, filter by dropdown.I want join them into one web part, is it possible? and how can I select type of filter through property of new web part?
Looking forward your response !thanks
|
|
|
|
|
Hi,
How can i play any music file from application without opening the system windows media player.
Thankyou
YPKI
|
|
|
|
|
Try the System.Media.SoundPlayer class.
Works in .NET 3.5, not sure about 2.0.
var question = (_2b || !(_2b));
|
|
|
|
|
Hello Experts!!!
I developed c# application inwhich i used vb.net dll file.I made setup file using .net setup wizard.Now my all forms are working well but one form gives error which contain that dll file
Error is like this->
************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'ClassLibrary2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'ClassLibrary2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
I dont knw more about set up wizard????
|
|
|
|
|
First remove the reference of the .dll then again add it and rebuild your program
Thank u
|
|
|
|
|
got same again...any other way???
|
|
|
|
|
It could well be a dependancy further down the line that is missing (i.e. a dll that the dll you referenced references...). Use dependancy walker (or similar) to see what the dll causing the issue is using and make sure they're all deployed with your app.
|
|
|
|
|
Hello experts!!
I want to use flash video on my mdi form,Is it possible??and which tool??
|
|
|
|
|
|
I do same it gave ACTIVX control error....
|
|
|
|
|
Hi All,
I want to convert current datetime (differs in format depending regional setting) into 20090622172120 format.
How do I do that? I want solution that work with any regional setting.
many thanks,
Jeet
|
|
|
|
|
this link may help you...<a href="http://www.codeproject.com/KB/datetime/Seagate_Date_Code.aspx">
|
|
|
|
|
use System.Globalization.Calendar name under this their are different country
Date time format are Provide or change the culture of your application for current thread.
thank u
|
|
|
|
|
Try DateTime.Now.ToString("yyyyMMddHHmmss"); .
Reference from MSDN.
|
|
|
|
|
thanks,
last solution worked perfectly, however how will I convert this into original string back? Please suggest.
thanks
Jeet
|
|
|
|
|
DateTime.ParseExact(dateTimeString, "yyyyMMddHHmmss", null); will give back the original DateTime object (MSDN).
|
|
|
|