|
All but one of his posts are marked C#
|
|
|
|
|
Hi All,
I want to have the functionality of undo like in MS Outlook.
I don't know how to create the same list like in MS Outlook.
Please help me .
Any idea would be appriciated.
thanx.
Praveen Sharma
|
|
|
|
|
If you're using Windows Forms, look up ToolStripTextBox class.
|
|
|
|
|
Hi
I want to disable the sorting property of datagrid .I set the allowsorting property to false but still i am able to sort on clicking it
How can i do it
Thanks in advance
Regards
DilipRam
|
|
|
|
|
If you have set allow sorting to false, I don't know how you are able to sort by clicking on column headings. Are you using VS 2003? I whipped up a quick example in 2003, set the AllowSorting property to False, and was unable to sort by clicking on column headings.
I suggest that you make sure that the AllowSorting is in fact set to false, or that it is not set back to true in your code somewhere else.
|
|
|
|
|
Hi thanks for the reply
I have set the property to false and havent set any thing in code but also when i am clicking on the col headers it is sorting...
Regards
DilipRam
|
|
|
|
|
Hi,
I have some Form and on it some UserControl that i wrote.
I need to use a lot of string on the userControl ==> so i will put all the string on the resources file of the Form.
I define new static resources variable on the Form class in this way
static public System.ComponentModel.ComponentResourceManager resources
and my plan is to get those string by using this resources variable.
But ... when i insert new string to the resource file and i close the IDE( after save the solution ) and open it again ==> the string is not there any more ((!)).
How to save the strings in some other way ?
Thanks for any help.
|
|
|
|
|
Hi, i already know how to get the lan ip within my c# app, but how do i get the wan ip?
thx in advance!
|
|
|
|
|
|
|
how to create array of string??
I ve to store path of file in array..
I use
string stotefilename[]= new string[50];
is it correct??
if anyone knows abt the array of string then plz reply
thanks
|
|
|
|
|
string[] stotefilename= new string[50];
However, all the strings in that array will be null until you initialize them.
|
|
|
|
|
string[] storeFileName = new string[50];
|
|
|
|
|
i want to make Photo Thumbnail copy and save it in data base
---
please i want help , i want to make upload to photo
befoar save it in data base i want to make copy from this photo and resize it to make Thumbnail image and then save it in data base
Palestine
|
|
|
|
|
|
Hello,
I have displayed a report from SQL server 2005 Reporting Service in C# windows form using reportviewer, now I want to code on a button pressing which the report get exported in PDF or JPEG format. Can any one help
Regards,
Farrukh Malik
+92-300-2564099
|
|
|
|
|
Is reportviewer a type of Windows Forms control? If so, you can render that to bitmap using Control.DrawToBitmap[^] method.
|
|
|
|
|
You can do this using the web services exposed by SQL Reporting Services.
Paul
|
|
|
|
|
ca you explain it a little
Regards,
Farrukh Malik
+92-300-2564099
|
|
|
|
|
Have a look at this article[^].
The sample code is in VB.NET, but it explains the concept of using the SSRS web service to generate a report programatically in PDF/Excel format.
Paul
|
|
|
|
|
I am trying to find all the classes in .net framework that has a particulart attribute. Is that possible?
I know it can be done but i just need a starting point if someone can help me out.
Also, Is there a way to list all the classes in .NET Framework?
Thanks.
|
|
|
|
|
Sure. You'll need to load all assemblies in the .NET framework using Assembly.LoadFile , then call GetTypes on the resulting assemblies. For each type in each assembly, call GetCustomAttributes method.
|
|
|
|
|
Hi,
I have been writing bytes to a file as per requirement.
It works fine when writing to files of type doc and ppt however error occurs when trying to write a file of xls type
It throws an error stating the file is read-only, cannot access......
The sample code is as follows:
FileStream fs;
fs = File.Open(@"C:\Book1.xls", FileMode.Open, FileAccess.Read);
long nBytes=fs.Length - 1;
Byte[] b = new Byte[fs.Length - 1];
fs.Read(b, 0, (int)nBytes);
fs.Close();
fs = null;
FileStream fs1;
fs1 = File.Open(@"C:\Dummy.xls", FileMode.Create, FileAccess.Write,FileShare.ReadWrite);
fs1.Write(b, 0, b.Length);
fs1.Close();
fs1=null;
gauthee
|
|
|
|
|
at which line are you getting the error?
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
Justin,
There is no error in the code written however when trying to open the new xls file created i get the follwing pop-up:
'Dummy.xls'cannot be accessed. The file may be read-only, or you may be trying to access a read only location. Or, the server the document is stored on may not be responding.
Why is this happening?
Thanks,
gauthee
|
|
|
|