|
Better now?
You've won a personal extra-ref: r e f
_________________________________
Vote '1' if you're too lazy for a discussion
|
|
|
|
|
Hi,
I am trying to open a word document.It creates a application instance (winword.exe) but fails to open ,instead gets hanged.
when I try to kill the process it says access denied.
please help
Sukanya
|
|
|
|
|
It's impossible to tell you want your doing wrong when you haven't posted a code snippet showing how you're launching Word.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Some (or many?) of the useful Windows APIs have not made it yet to the .NET FCL. For example I was searching for the NetServerEnum() API equivalent functionality in FCl but could not find it. Had to do interop and call the API…
In general what is the policy on the relation and availability of Win32 APIs and .NET FCL? Will all the APIs be available with .NET FCL in future? What were the criteria to include some of the APIs in current version of the FCL and exclude some?
Salil Khedkar [^]
|
|
|
|
|
Hi folks!
I am trying to convert EBCDIC file to ASCII file. the issues are
1) Can all EBCDIC file be converted to ASCII without loss of information.(There is one character cent sign which is not in ASCII, how to handle that?)
2)What about non printable characters in EBCDIC, do they all converted to ASCII format?
Suggest some way.
Thanks n Regards
Ranjan
|
|
|
|
|
I have a picture box which is 48x48 in size and I want to set the image at runtime using a System.Drawing.Icon object which I have previously loaded.
I wish to know how I can display the icon in the picture box so the quality and resolution is the same as if I selected an icon file in design time and assigned this to the PictureBox.
At present I am converting the icon object to a bitmap (iconObject.ToBitmap()) and using this to populate the PictureBox. However this results is a grainy/poor quality image appearing in the picture box.
If I set the image property of the PictureBox at design time by selecting an icon file (*.ico) the image displayed is very crisp and clean and is at the highest resolution the icon supports.
I guess that I need to do some sort of image conversion from the icon object to some sort of high resolution image object. The .ToBitmap() method in the Icon object is obviously not sufficient.
Can anyone help please?
Can you tell me how I should be assigning icons to the image property so they are displayed at the high resolution I get when doing it in design time?
Ben
|
|
|
|
|
I use windows media encoder SDK to insert Mark In and Mark Out. But it will cut the selected part to be a new file.
I want to just insert markers without cutting. Can it be done?
Please help
|
|
|
|
|
In my application, the majority of data is taken not from a database, but is generated by the application itself.
Now before report generation I have to spread these data across tables for the sake of a single report.
It's too inconvenient.
Is there a way to do it directly, or, ideally, visually?
|
|
|
|
|
I think u can use flat files concept.
U can create a text file and copy all that is needed to generate your report
Sukanya
|
|
|
|
|
Hi there,
I try to find on the internet on how to achieve this, but still can't find any good resources till i downloaded Nant.
But there are too many codes inside Nant, and i have no idea which part of Nant code that can achieve this below.
<?xml version="1.0"?>
<project name="Property Test" default="test" basedir=".">
<property name="project.name" value="PropertyTest"/>
<property name="project.version" value="1.0.0"/>
<target name="test">
<echo message="Building ${project.name}-${project.version}"/>
</target>
</project>
--> I want to get the value of project.name. So i can use the ${project.name} a few times in my xml script.
Any idea on how to achieve this?
Thanks.
Regards,
Chua Wen Ching
Visit us at http://www.necoders.com
|
|
|
|
|
You should check out the NAnt documentation here[^] specifically the Properties[^] section of the documentation. This should get you started.
|
|
|
|
|
Hi Ian,
You get me wrong! I just want to know how NAnt can be able to achieve that.
I want to achieve this in my own custom xml script.
<Command id="1">
<DataIn>1234</DataIn>
<DataOut id="output">5555</DataOut>
</Command>
<Command id="2">
<DataIn>${output}</DataIn>
</Command>
I want to achieve the same way like what NAnt can do. But i do not
how know NAnt achieve that. I saw the source code, and there are so
many class files.
I am not looking for how to use NAnt with the property, just how to code the same way in my software.
Any tips please?
Thanks.
Regards,
Chua Wen Ching
Visit us at http://www.necoders.com
|
|
|
|
|
Hi
I am new to CSharp and have a question that might be quite straightforward to you gurus.
I have a system.collection.queue object. One thread X enque objects into this queue and another thread Y dequeues object and process them. I want to add a listener in thread Y so that anytime an object is enqueued into this queue, this method could be invoked. Any idea and code example in CSharp will be highly appreciated.
TIA
|
|
|
|
|
hello ,
I have a problem in retreiving the innerXml values from an XML File . The File is pasted below and the method I use is also listed below .
I want to list out the values Sylesh1,Sylesh2,sylesh3........ sylesh9 to an
arrayList .
The Method I use is... below but somehow I cannot retirve the values under the Path. Please point out my errors ?
XmlDocument _Document = new XmlDocument ();
_Document.Load (FileName);
XmlElement _Root = _Document.DocumentElement ;
XmlNodeList _NodeList = _Document.GetElementsByTagName
("configuration/userNames/sylesh/add/listGridCustomizations/myListGrid");
if (_NodeList.Count > 0)
{
foreach (XmlNode _Node in _NodeList)
{
List.Add(_Node.Attributes.GetNamedItem ("value").InnerText);
}
}
Any help ? suggestions ?
or if I'm wrong please point out ?
thanks Sylesh
<configuration>
<configsections>
<sectiongroup name="userNames">
<sectiongroup name="sylesh">
<sectiongroup name="listGridCustomizations">
<usernames>
<sylesh>
<add key="IsCustomized" value="false">
<listgridcustomizations><mylistgrid>
<add key="Column0" value="Sylesh0">
<add key="Column1" value="Sylesh1">
<add key="Column2" value="Sylesh2">
<add key="Column3" value="Sylesh3">
<add key="Column4" value="Sylesh4">
<add key="Column5" value="Sylesh5">
<add key="Column6" value="Sylesh6">
<add key="Column7" value="Sylesh7">
<add key="Column8" value="Sylesh8">
<add key="Column9" value="Sylesh9">
<listgridcustomizations><wrwerwer>
<add key="Column0" value="Sylesh0">
<add key="Column1" value="Sylesh1">
<add key="Column2" value="Sylesh2">
<add key="Column3" value="Sylesh3">
<add key="Column4" value="Sylesh4">
<add key="Column5" value="Sylesh5">
<add key="Column6" value="Sylesh6">
<add key="Column7" value="Sylesh7">
<add key="Column8" value="Sylesh8">
<add key="Column9" value="Sylesh9">
Thanks
Sylesh
sylesh
|
|
|
|
|
There is no xml in your question. I think you have to check the "Do not trest <'s as HTML tags", when you posting.
|
|
|
|
|
This is the Xml File ...
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="UserNames">
<sectionGroup name="Sylesh">
<sectionGroup name="ListGridCustomizations">
<section name="myListGrid" type="System.Configuration.NameValueSectionHandler,System,Version=1.0.5000.0, Culture=neutral,PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<UserNames>
<Sylesh>
<ListGridCustomizations>
<myListGrid>
<add key="IsCustomized" value="false" />
<add key="Column0" value="Sylesh0" />
<add key="Column1" value="Sylesh1" />
<add key="Column2" value="Sylesh2" />
<add key="Column3" value="Sylesh3" />
<add key="Column4" value="Sylesh4" />
<add key="Column5" value="Sylesh5" />
<add key="Column6" value="Sylesh6" />
<add key="Column7" value="Sylesh7" />
<add key="Column8" value="Sylesh8" />
<add key="Column9" value="Sylesh9" />
</myListGrid>
</ListGridCustomizations>
</Sylesh>
</UserNames>
</configuration>
Sorry !
|
|
|
|
|
For GetElementsByTagName, you should not pass the Xpath expression of node. Instead you have to pass the Name(should match the XmlElement.Name property) of the element.
In this case pass "add" instead of "configuration/userNames/sylesh/add/listGridCustomizations/myListGrid".
|
|
|
|
|
hello ,
I have a problem in retreiving the innerXml values from an XML File . The File is pasted below and the method I use is also listed below .
I want to list out the values Sylesh1,Sylesh2,sylesh3........ sylesh9 to an
arrayList .
The Method I use is... below but somehow I cannot retirve the values under the Path. Please point out my errors ?
XmlDocument _Document = new XmlDocument ();
_Document.Load (FileName);
XmlElement _Root = _Document.DocumentElement ;
XmlNodeList _NodeList = _Document.GetElementsByTagName
("configuration/userNames/sylesh/add/listGridCustomizations/myListGrid");
if (_NodeList.Count > 0)
{
foreach (XmlNode _Node in _NodeList)
{
List.Add(_Node.Attributes.GetNamedItem ("value").InnerText);
}
}
Any help ? suggestions ?
or if I'm wrong please point out ?
thanks Sylesh
<configuration>
<configsections>
<sectiongroup name="userNames">
<sectiongroup name="sylesh">
<sectiongroup name="listGridCustomizations">
<usernames>
<sylesh>
<add key="IsCustomized" value="false">
<listgridcustomizations><mylistgrid>
<add key="Column0" value="Sylesh0">
<add key="Column1" value="Sylesh1">
<add key="Column2" value="Sylesh2">
<add key="Column3" value="Sylesh3">
<add key="Column4" value="Sylesh4">
<add key="Column5" value="Sylesh5">
<add key="Column6" value="Sylesh6">
<add key="Column7" value="Sylesh7">
<add key="Column8" value="Sylesh8">
<add key="Column9" value="Sylesh9">
<listgridcustomizations><wrwerwer>
<add key="Column0" value="Sylesh0">
<add key="Column1" value="Sylesh1">
<add key="Column2" value="Sylesh2">
<add key="Column3" value="Sylesh3">
<add key="Column4" value="Sylesh4">
<add key="Column5" value="Sylesh5">
<add key="Column6" value="Sylesh6">
<add key="Column7" value="Sylesh7">
<add key="Column8" value="Sylesh8">
<add key="Column9" value="Sylesh9">
Thanks
Sylesh
|
|
|
|
|
I have question about browsable in propertygrid. I am trying to change browsable 's bool value bec sometimes it dont need to show all properties. Like sometimes First dont need to be browsable. I am well-aware that I cant change the browsable's value bec it need to be constant variable while it is run-time. what is your suggestions tht I can change browsable 's bool value while it is run-time?
For example:
for()
{
[Browsable(???)]///can be true or false
public string First
{
get { return m_strFirst; }
set { m_strFirst = value; }
}
[Browsable(???)]///can be true or false
public string Second
{
get { return m_strSecond; }
set { m_strSecond = value; }
}
[Browsable(????)]///can be true or false
public string Third
{
get { return m_strThird; }
set { m_strThird = value; }
}
}
|
|
|
|
|
Havent tested it but something like this should work (at least it should give you the idea of the right way):
<br />
public static void SwitchBrowsable(Type type, string propertyName) <br />
{<br />
object[] o = type.GetProperty(propertyName).GetCustomAttributes(typeof(BrowsableAttribute), true);<br />
if (o != null && o.Length > 0) <br />
{<br />
BrowsableAttribute ba = o[0] as BrowsableAttribute;<br />
ba.Browsable = !ba.Browsable;<br />
}<br />
}<br />
|
|
|
|
|
Thanks for the reply this messages. I followed your advice. I can get SwitchBrowsable working that can determines propertyName(First,Second,Third) is true or false. But I still cant change the bool value in property. I tried to use
ba.Browsable = !ba.Browsable;
but when I compiled and got error. it said:"
.ComponentModel.BrowsableAttribute.Browsable' cannot be assigned to -- it is read only"
I tried to used different ways to get bool value changed but no luck.
Do you have other ideas that need to fix like this:
ba.Browsable = !ba.Browsable;
|
|
|
|
|
Gurus,
Does anyone knows if the TreeView Controls that comes with .Net in WinForm has a sorting method ? Or I have to implement a callback function to achieve this. But before I head on and do this, wants to know if anyone has a better solution for this.
Stanley
|
|
|
|
|
Hi,
When my win app executes it opens in a maximized form and takes up 45,000K in mem. However, as soon as i minimize it, it cuts the mem usage in half. Is there are reason for this and is there any way of doing this type of mem clean up in the code. I tried using the garbage collection but it doesn't seem to do it.
thanks for any help
|
|
|
|
|
Minimising an app causes the OS to farm a lot of the memory it uses out to disk. It happens with every app.
Rugby League: The Greatest Game Of All.
|
|
|
|
|
That’s the OSs memory management and optimization in action
If you minimize an app, it does not need to be as responsive as an active app. So the OS optimizes the situation by moving most of the app data to virtual memory, so the physical memory usage is reduced and that real estate is available for active foreground apps. If you maximize it again, the reverse thing happens.
Salil Khedkar [^]
|
|
|
|