|
ID3V1 tag reading / writing has been done many times over in C# - a quick google search could save you a lot of time.
|
|
|
|
|
Are there any other methods to do printing in .net other than crystal reports and printdocument objects.
I want to print on non-standard papers,but did not find a better solution.
Thanks.
this is my signature for forums quoted from shog*9:
I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.
|
|
|
|
|
What's the difference (if any) between:
[MethodImpl(MethodImplOptions.Synchronized)]
void SomeMethod()
{
}
and
void SomeMethod()
{
lock(this)
{
}
}
?
|
|
|
|
|
I don't believe there is any difference.
This is how lock is implemented.
object tmp = this;
Monitor.Enter(tmp);
try
{
DoSomething();
}
finally
{
Monitor.Exit(tmp);
}
For static methods, the class type is used instead of this.
From the specification, synchronized works the same as using lock(this) and lock(typeof(Class)) for statics around the method. I think both actually used the syncblockindex that every object has, so that mixed use will probably work correctly as well.
But in one Microsoft article on performance, it was suggested that synchronized function calls are faster than using locks. I think the reasoning used was that fine-grained locks are less performant--the higher-up the synchronization, the less overhead incurred because of fewer traffic lights.
My guess is that the implementation is actually the same.
|
|
|
|
|
I have tried several different ways to use this DLL, but can not get it to work. I have registered the DLL via regsvr32.
En/Decode MIME-Content with MimeSniffer
http://www.codeproject.com/internet/mimesniffer.asp?df=100&forumid=3772&noise=1&app=50&fr=51
The author only provides VB code for it and that does not help me much.
|
|
|
|
|
In the menu: Project->Add Reference, in here you select the COM Tab and select MimeSniffer.
Then it's just something like
MimeSnifferLib.Client ms = new MimeSnifferLib.Client();<br />
ms.CallAFunction();
I have not used MimeSniffer, so Client is probably called something else, but I hope you get the point...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Academic project. Free download from http://www.doteasy.addr.com
Abstract: "dotEASY" is a Visual Studio .Net Add-in that evaluates C# source code and performs "advices" in order to improve software quality. The configuration and programming of the "advices" is invisible to the developer, the tool’s final user, who only requests for code evaluation. A new "advice" can be created defining metrics, thresholds and optionally programming validation classes and execution classes to automatically modify the code. The export and import capabilities allow one person to create an "advice", which can be configured and exported, so it can be used by many other people.
Regards,
Juan Esteban Suárez
|
|
|
|
|
How to Click a Button in Another Application Programatically in C#?
|
|
|
|
|
Have you tried to raise the click event of the button?
But I'm not sure about crossing process threads, maybe use a Mutex.
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
I would like to write a simple syntax highlighter for one of my c# applications but i cant seem to find any examples on how to do this. My current plans are to use a richtextbox and somehow do the highlighting in this but i cant find any examples of how to use a richtextbox for something similar.
Does anyone know of any c# examples of syntax highlighters or if not any code snippets that might help me in writing one?
Thanks
Tim
|
|
|
|
|
|
I do have sharp develop but i was hoping for a much more simplistic view of it, i dont need it to do overly much at the minute but, i was hoping for something a lot less integrated and basic overview of how to do it.
Thanks all the same though
|
|
|
|
|
C#
Is it possible to declare reference variable?
I wanna change member variable of TextHandler class from Mouse class Basically I wanna keep reference to the member of another class).
public class Mouse<br />
{<br />
<br />
protected string strRefText;<br />
<br />
public Mouse(ref string strInText)<br />
{<br />
<font color=blue>this.strRefText = strInText;</font><br />
}<br />
<br />
public void AddMouse()<br />
{<br />
strRefText += "I'm mouse.";<br />
}<br />
}<br />
<br />
<br />
public class TextHandler<br />
{<br />
protected string strText;<br />
<br />
public void Main()<br />
{<br />
strText = "I'm dog. ";<br />
Mouse myMouse = new Mouse(ref strText);<br />
myMouse.AddMouse();<br />
Console.Write(myText);<br />
}<br />
}
|
|
|
|
|
Thomas W wrote:
// Add mouse text
public void Main()
{
strText = "I'm dog. ";
Mouse myMouse = new Mouse(ref strText);
myMouse.AddMouse();
Console.Write(myText);
}
Where is myText declared?
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Not with strings, since they are immutable (their contents can't be changed), which means upon any change, a new string object is created, and any pointer to the previous one does not reflect the change (except when passing as a ref in a function call).
However, you can use a StringBuilder instead, who's contents can change without reallocating the class object itself. Your code idea will work with a StringBuilder, although that means all relevant code will have to use one.
|
|
|
|
|
Ok, Thanks for explanation.
|
|
|
|
|
Hi, all:
I am using Datagrid control in my WinForm application. I have two questions regarding the usage of the datagrid control.
1. In MS Access Database, you can specify a column "Lookup" to another table for available values ( show up as List when clicked on the cell ). Can I do the same thing in Datagrid control?
2. I'd like the user to update the data in the datagrid, but not add a new row. I will programatically add new rows through Dataset. Is this possible?
Thanks for your help in advance.
Dion
|
|
|
|
|
1. Yes. You can create class "DataGridComboBoxColumn" etc. using ComboBox and DataGridColumnStyle
public class DataGridUniPoleColumn : DataGridColumnStyle<br />
{ ... }
as it's written in help.
2. Property AllowNew (of DataView) to allow/deny adding new row by user is in ((DataView)ListManger.List) property (protected) of DataGrid -or- in Your view used by DataGrid -or- in DefaultView property of DataTable in the DataSet. You can add row to DataTable.Rows or to DataView using Add().
Your problems are much more complicated ... see help.
Hi,
AW
|
|
|
|
|
I'm trying to change the IP address of a Win2k machine, preferably without rebooting it, but there seems to be no info how to go about it!
Anybody any ideas ?
|
|
|
|
|
I have a dataset with two tables (Category, Element) and one relation between them (every row in Category has several rows in Element). At start I saw the Category lines and clicking the (+) sign could navigate to elements.
Problem: when a sublist of elements are shown corresponding to one catgory how can I know with wich category I work with (I need to know also the number of lines in the grid). If I want to iterate through elements I need to know the category.
Please help me!
|
|
|
|
|
This place here might not be the appropriate one to ask this question.
I've checked Borlands website but I'm still not clear enough. Will Borland integrate the .NET technology into their products (Delphi, or even a C# compiler)? What can we expect from them?
(I might need to learn delphi soon but I like .NET best for now;)
thank you
|
|
|
|
|
I believe they are trying to bend over. Like Macromedia.
|
|
|
|
|
Hi,
I'm working on a C# Winform application to manage content in a electronical schoolbook. One of the key feautures is a WYSIWYG HTML editor, where the author can format the output text on her own.
At the moment I don't quite know where to start building this feauture. I've done some research, and figured out that there are two components i could use, a) the DHTMLEdit ActiveX component, or b) the MSHTML COM objecct (correct me if I'm wrong). Most of the information i could find about the DHTMLEdit is datet 1998/1999, and is "old". I've allso seen some newsgroup post saying that Microsoft is outfasing DHTMLEdit, and are suggesting you to use the MSHTML object.
What i wan't to know, is witch one of these two components i should use to build my WYSIWYG HTML Editor. What's the main differences, and how could i as easy as possible implement the feauture in my application. The best thing whould be if i could buy a out of the box editor, witch I could include in my project. I know there are plenty of webbased editors out there, but i wan't something that's winforms.
I would allso appreciate any kind of good information about witch path to take.
Thank you
Jonas Follesø
Developer, GreIT AS
http://www.greit.no
|
|
|
|
|
Hi Mr. Follesø,
Found this at Google (http://groups.google.com/groups?q=MSHTML+vs.+DHTML):
"...as many of you know Microsoft has recently published an article stating that the DHTML Editing Component will no longer be updated or supported as an HTML Editing interface. Instead they have said that developers should migrate their applications to the many interfaces provided by MSHTML. The article also explains that the DHTML control was simply a wrapper component for MSHTML in the first place. To me this means that every function provided and exposed by the DHTML control can be rewritten into your current application..."
Based in this you should drop the DHTML Editing Component and consentrate your development effort on MSHTML.
Håper dette kan være til hjelp.
Regards
Andreas Kongelstad
Computer Programmer
http://www.kongelstad.no
|
|
|
|
|
Hi Andreas,
so you're from norway as well.. Had a look at your website, it looks realy nice
I read something like that post my self, and agree that you should concentrate on the MSHTML com object. The dissadvantages about doing this is that 1) it's a COM object, so you have to write some sort of wrapper to be able to take advantage of the object in .NET. b) Another (norwegian) developer i discussed this issue with, said that the DHTML Editing component got some greate built in table/row/cell support, (insert row, insert cell, insert table etc.) witch the MSHTML object don't. But, i guess if the MSHTML object is so easy to use, you could simply write you'r own table methods.
Done any thing work on the MSHTML component your selfe? Correct me if i'm wrong: MSHTML == the biggest COM object in IE5.5+, and is actualy just a "HTML Parser object"?
- Takk for hjelp, hilsen fra Finnmark;)
|
|
|
|