|
C# is the better language*, we just need to get a compiler that will compile C# to work with the Java VM.
But that has nothing to do with which would be better for you to learn.
* Really, it is; in C# we can compare the contents of two strings with the equals (==) operator rather than calling an Equals method .**
** On the other hand, Java is better because there, methods are virtual by default, whereas in C# they're not .
|
|
|
|
|
Hi,
I have one software which gives me 10 digit Number for date. How could I convert that 10 digit number to actual date.
Example :- The output given by software is 1251983760 for the date 03-09-2009.
Please help me to convert that number to actual date.
|
|
|
|
|
I'm not a .NET expert, but I'm assuming that the numeric value corresponds to number of ticks (from some standard base time?) Have you looked at the constructors of DateTime[^] structure?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
can be the seconds since 1970/01/01 (or maybe 1969/12/31)
|
|
|
|
|
I tried it: it´s the number of seconds since 1970/01/01 00:00
DateTime smq = new DateTime(1970, 1, 1);
Console.WriteLine("Date {0} + {1} seconds = {2}", smq.ToString(), 1251983760.ToString(), smq.AddSeconds(1251983760).ToString());
|
|
|
|
|
Thanks bro. That number was in seconds since 1970/01/01 00:00;
|
|
|
|
|
Happy to see you posting on C# forum.
|
|
|
|
|
Well, I've started to lurk here to see if I can learn something new (the plan of learning .NET properly, which I had been procrastinating for a very long time).
While in the process of reading posts and leeching knowledge off the C# Gurus, I may answer a couple of easy posts, being wrong here and there. You guys must be watchful and warn me on such occasions!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
how to use message box in webApplication.
|
|
|
|
|
So the title references ASP and the body references ASP.
So why isn't this in the ASP forum?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
You choose wrong category,
with the use of alert javascript you can use message box in asp.net
|
|
|
|
|
Use the client side script JavaScript or VbScript Both work on client side , but i recommend javascript because it is more common.
|
|
|
|
|
I am not able to add rows n values to data gridview programmatically(without binding to datasource)..I think the problem is because the rows are assigned 'databound' property...Any alternative for 'databound' so that i can add values programmatically?
|
|
|
|
|
I dont think that there is something else than databound? But the question is why dont you want to use databound??
|
|
|
|
|
i dnt want to use databound because i am adding values to datatable on each buttonclick...if databinding is used the firstly written values will get refreshd
|
|
|
|
|
Man your really confusing me you wrote to threads and it appears that am answering both. So Please Give Me a big scenario to help you i know i can, but i should understand what is happening with your code. I think it is something easy once i know what is really going on.
|
|
|
|
|
Hi all ,i would like to find default Audio devicesin my desktop application, i used coredll.dll , while accessing the deviceID i m getting the follwoing error. i have tried TAPI , DirectX for Audio streaming no fruitfull result.
code:
if (KernelIoControl(IOCTL_HAL_GET_DEVICEID, IntPtr.Zero, 0, outbuff, nBuffSize, ref dwOutBytes))
Error :
Unable to load DLL 'coredll.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
could anyone suggest me whetehr we can use coredll.dll.
|
|
|
|
|
|
Hi,
I am working on a windows application and in this I am using a Rich Textbox. In this I want to fix the number of lines in the Rich textbox.When I increase the font size of the text in the Rich Textbox then also the number of lines in the rich textbox should not change.
For example if a rich textbox contains 10 lines of text and if I increase the font size then also it should then also the rich textbox should contain 10 line but not 11 or more line. These extra lines should be deleted or move to the next rich textbox.
If anyone have idea to solve this please reply me.
Thanks in advance.
|
|
|
|
|
|
i am inserting values to my datatable for each button click event..Then i am databinding it to data gridview..But the first value inserted in the gridview is getting overwritten with each button_click event.I dont want this thing to happen.For each button click event the datagridview column should increment once and the new values should get added to the new row in gridview.
I think databinding property is the problem..Is there a way to add values to gridview wihtout databinding,so that i can add values to data gridview without the first value gets overwritten?????
|
|
|
|
|
When a pdf file is opened in adobe reader 8.0, how to read the adobe reader text,
can anyone suggest how I can achieve this in c#?
Is acrobat SDK required for doing this...
|
|
|
|
|
|
svt gdwl wrote: When a pdf file is opened in adobe reader 8.0, how to read the adobe reader text,
If at all such a thing would be possible, then you'll need the SDK for that. Have you read the SDK manual to see if such a feature is supported?
However, personally I think that you will only be able to read a PDF file offline (as opposed to what is currently open and is being displayed by acrobat reader).
And such offline manipulation of PDF files, you can do with something like iTextSharp, which the other poster pointed out.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I'm using a regular expression to remove some whitespace in a string (length of ~200 characters), which immediately results in memory usage of 1.2+ gig. Stepping through my code in the IDE, everything is fine until I hit this line intended to remove the whitespace between XML tags...
string cleanStr = Regex.Replace(inputStr, @">\s+<", "><");
Evaluating this line results in the immediate occupation of memory. Oddly enough, this is not the case when I run the standalone executable independant of the IDE. I'm pretty new to regular expressions, but this does actually achieve what I want...just with a massive memory footprint.
Suggestions?
|
|
|
|