|
Catch a man a fish, you've fed him for a day. Teach a man to fish, you've fed him for life.
|
|
|
|
|
Hear hear!
-Larantz-
|
|
|
|
|
How to catch fish? Plz send codes.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
malcolm!
this ur professor from university. i have a doubt on ur ethical sensual natures. u must no post my homowork on the cpiansex. i tell class u must no post fishing homoworks on the cians next time i bend u over bare buttocks and spank u in front of all classes to shame u. black grade for u this semester. CURSES OF DARK SHIVA ON U ETERNITY EVERLASTING!!!1!
Sincelery yours, Computer Information conSciences Professor and grader, Sharada Ulhas
|
|
|
|
|
Light a man a fire you've warmed him for a night. Light a man on fire you've warmed him for life.
--
If you view money as inherently evil, I view it as my duty to assist in making you more virtuous.
|
|
|
|
|
Darn the luck. I was going to post a similar reply but then I thought maybe I shouldn't. You must be a sick individual, and yes it takes one to know one.
BDF
|
|
|
|
|
I've been justly acused of many things in my life. Normalcy has never been one of them.
--
If you view money as inherently evil, I view it as my duty to assist in making you more virtuous.
|
|
|
|
|
He did give him the information he needed. He told the man who to find the information on his own. Judah didn't ahve to Google this to find out if there was any info on it out there. It's a question that's been asked and answered a couple of million times already!
Like Judah said, answering a simple question directly only serves to answer that single question. Teaching him how to find his own answers answers many, many more questions than just the one.
|
|
|
|
|
Process.Start
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 )
|
|
|
|
|
Look at the System.Diagnostics.Process class, it might be just what you're looking for.
Dave
|
|
|
|
|
|
System.Diagnostics.Process.Start(/*url or file goes here*/)
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
give me any reference about key tempring in c#
-- modified at 12:01 Thursday 6th September, 2007
tahir
|
|
|
|
|
I saved you from yourself, you should never post programming questions in the lounge. Your question still makes no sense, and you should consider being more polite in how you ask it.
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 )
|
|
|
|
|
Perhaps you mean assembly tampering via key signing? Check out .NET key signing, search for it on your favorite search engine, there will be thousands of hits.
p.s. I realize English may not be your first language, but I'll warn you anyways: be more polite next time. "give me any reference" sounds too demanding. "Can you give me any reference..." would be better.
|
|
|
|
|
Hi
I want to do component: hierarchical dictionary based on DataGridView in C# (.NET 2.0 ). It don't has this component, I must do it same and I have problem with add rows to the DataGridView. When I add row like this: DataGridView row = new DataGridView(); this.DataGridview.Rows.Add(row); the new row will be add to the end of the table. I want to add the new row after the row which I click. It is posible ? if not, i will be must rewrite all rows and in the middle write my new rows. Is someone another posibility ?
I'm sory for my bad english.
Best regards
dift
I
|
|
|
|
|
You can insert a row at a specific index using the insert method:
this.DataGridview.Rows.Insert(2,row);
|
|
|
|
|
Can anyone tell me how to save the information stored in a DataTable component straigh to an Excel spread sheet?
I am trying to use the Excel COM object and not having much luck
Cheers
Give me strength, give me caffeine
|
|
|
|
|
|
Basically I did the same as you, but instead I just used to WriteXML function that I found inside the Access Tables collection, but changed the extension of the target file to a .xls
Give me strength, give me caffeine
|
|
|
|
|
Hi,
I'm trying to store escape charachters (such as '\t') in the beginning of a string.
Problem is that I'm reading the characters from a file (ini-file), and I'm using a class that automatically stores the string with the @-sign which means that the string ignores the escape characters (like writing string g = @"\t";) Is there any way I can get rid of that annoying '@' character once it has been placed there?
/Martin
|
|
|
|
|
smsmfe wrote: I'm using a class that automatically stores the string with the @-sign
smsmfe wrote: Is there any way I can get rid of that annoying '@' character once it has been placed there?
Placed where? In the code? I use the delete key to remove characters from my code. Backspace will also work if the cursor is on the right side.
|
|
|
|
|
Escape characters are only used to represent characters in a string literal in the code. There are no escape characters in a string or a file, just characters.
A @-quoted string is a verbatim string literal. That is also something that you only do in code. The @ character doesn't end up in the string literal, and putting the @ character in a string doesn't change how the string is used, it's just another character.
---
single minded; short sighted; long gone;
|
|
|
|
|
Ok, thanks. I wanted to read it as an escapecharacter from the file, but I guess that's not possible then.
|
|
|
|
|
Hello every one.
i have been working on web parts for sharepoint and i am using c# to develope the web parts.
my problem is huge and i have to explain it so you people can help me out
Summary..
I am downloading image from SQL Server 2000 and displaying it in System.Web.UI.WebControls.Image control. (control name imgPhoto)
byte[] bits = (byte[])cmd.ExecuteScalar();
MemoryStream ms = new MemoryStream(bits);
ms.Write(bits, 0, bits.Length);
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
img.Save(@"C:\1.tmp", ImageFormat.Jpeg);
imgPhoto.ImageUrl = @"C:\1.tmp";
this code is working fine (display the image in image control) when i run this webpart in an ASP application on localhost but when i run this web part on share point it gives me the error "A generic error occured in GDI+." i check the error in try catch statement and it turns out that Image.Save() is generating the error. All the other data from database get displayed without problem.
And here are some things which i already checked..
1) As you know in sharepoint you have to logon with username and password to open the sharepoint page. So if i log on it my username and password i can run the page and even the above code was running fine without any error, but no other user was able to run that webpart.
therefore i change the web.config file and changed the identity tag from
<identity impersonate="true"/>
to
<identity impersonate="false"/>
and after that user can run the webpart but the above code start generating the error as i mentioned above.
2) after changing the identity tag the pages are running with NETWORK SERVICE user id.
3) i do not know that it is a security issue or not as i gave full permission to Everyone and NETWORK SERVICE users on C:\ dive.
4) and one more thing i have changed "trust level" tag in the web.config file from
<trust level="WSS_Minimal" originUrl="" />
to
<trust level="Full" originUrl="" /> just to make sure that security is not a problem
if any Gurus want to have some more information about this problem i can explain..
i describe this error with Image.Save()
i also tried Bitmap.Save("filename",imageFormat.jpeg) and again got the same error
i actually dont know what actually causing this error i spent lots of time googling ..
1)it could be a permission/security problem
2) it could be a memoryStream problem but if i display the image without saveing it it work fine
Bitmap bitmap = new Bitmap(ms);
Page.Response.ContentType = "image/bmp";
bitmap.Save(Page.Response.OutputStream, ImageFormat.Jpeg);
but i want to save that image rather displaying it through Page.Response.OutputStream
i would appreciate if anyone can help as there is no help any where on forums
cheers
Muzaffar Saeed
|
|
|
|