|
Thanks Scott. I'll add it to my toolbox.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
You're welcome.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Marc, see my reply to Luc here[^] which gives you the P/Invoke code necessary to call the PathRelativePathTo function from shlwapi.dll. This should give you what you are after.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Hi ,
I have 2 buttons on the form, SAVE and PRINT .. I want the user to click on the SAVE button first to save the current record and then print it. Now.. my question is.... if the user clicks first on the PRINT button before clicking on the SAVE button.....I want to alert the user using MessageBox etc.... upon click..that the record needs to be save first(by clicking on the save button) etc... how can i achive this....
(I have done the enable and disable operations by it was not accepted by the client .... ie on from_load ,,, disable print and enable save ....and on save_click enable print)
thanks,
|
|
|
|
|
I think you must implement something like isDirty variable.
That means, if the user change something, you must set isDirty=true.
if(isDirty)
{
MessageBox.Show("Please save first");
}
else
{
}
|
|
|
|
|
OKay thanks, it did the trick !!
|
|
|
|
|
I have device running Windows CE 5.0.
I am developing an application for it in C# using a SQL server mobile database.
In order to install the database on the device,I first have to add SQLserverCE.dll.But I don't know why the folder or dll is not available. I tried to install Microsoft SQL Server Mobile Developer Tools.but still nothing.
I also reinstalled SQl Server 2005...
|
|
|
|
|
Hi
I m very fresh guy for developement field. Actually I need to edit a opendocument spreadsheet.ods file. In c# I could not add a namespace for that, like
using Excel = Microsoft.Office.Interop.Excel
for this what are the settings to be made, i m having visual studio 2005.
Please let me know about it.
Thanks
Sath.
|
|
|
|
|
Have you added a reference to that assembly?
|
|
|
|
|
Hi
In my system Excel has been uninstalled, I have only openoffice. I can't find any Excel related dll to add reference. Could you please tell the corresponding dll for Openoffice.
Thanks
sath.
|
|
|
|
|
|
This won't allow the OP to open opendocument format files.
ODS formats are xml files and so no need to add namespaces for them nor reference any dlls - but will have to use the XML stuff in C#.
Here's a link that may help: http://www.codeguru.com/csharp/csharp/cs_data/xml/article.php/c16311/[^]
Don't know how good it is - got by googling 'opendocument c# .ods'.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
Hey!
I´m looking for a code that i can see the monitor from an other Pc on my network(how teamviewer). I have a Server and Client i can write something to him and i can send him files and now i will see the monitor when there is a change.
|
|
|
|
|
|
okay thank you i will try it!
|
|
|
|
|
I have downloaded the Prog/Code!
And how can i start it? I have opened the sln file in C# and then?
Can i copy the Code into a server and client?
|
|
|
|
|
Hi All,
I am creating a windows app, with MVP architecture.
In presenter, I am adding nodes to the treenode, so in doing so, I am initializing
<pre>TreeNode MainNode = new TreeNode();
MainNode.Name = strProjectFolderPath;
MainNode.Text = strProjectFolderPath;
_view.AddTreeNodes(MainNode);
</pre>
I see the error, when I put a watch on MainNode,
FullPath = 'MainNode.FullPath' threw an exception of type 'System.InvalidOperationException'
Actually I am trying to add items to this main node, so that I get the treeview from the folder.
Please help me in solving this
Thanks
Ramm
|
|
|
|
|
Hi,
You probably need to act according to this article[^].
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Hey guys!
How can i decrypt Decrypt Signons3.txt, signons.sqlite and key.db?
I´m looking for a long time and i asked in a lot of foren but nobody could help me!And i herd that is a very good C#, Coding forum. Maybe someone can help me!
|
|
|
|
|
Now, why would you want to decrypt files which store user names and passwords?
If you can explain the reason, then perhaps someone will help you.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
I want to make my own Firefox Pw Viewer.
To make a Firefox Pw manager.
|
|
|
|
|
plzzz answer my question how to open key.db file in mozilla profile folder plzzzzzzzzzzzzz
|
|
|
|
|
|
Hi, Ive made a user control and it works great but the problem is that I dont want it to display on my form when I drag it in from the toolbox. I want it to be like how the timer control works where it doesnt have a gui, as apposed to how a label control works.
Im sure im just not seeing something silly.
Thanks
|
|
|
|
|
You need to derive from Component rather than Control or UserControl
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|