|
You dint mention whether it is an Web or windows application?
If this is a winform appllication, Just change the reference. Remove reference of the old dll and add referece to the new dll.
I suppose this should work for webapplicaiton as well..
|
|
|
|
|
Thnx for ur reply.
Yes it is a windows application.
The solution you suggested allows new controls that can be added in the new format. But the old ones that have been created does not change their font. My basic requirement is that all of them change their fonts. Working on it, but if you have any ideas pls mail.
Thanks
Nithya
|
|
|
|
|
Most probably the designer already generated the code for the Font property. Thus no matter what you change in the control the designer will overwrite it with its generated code. If you really want that all your control have a fixed Font which cannot be changed than you'll have to override the Font property in your control and leave the setter empty.
|
|
|
|
|
You might be dealing with two different versions of a dll.
Say, You create a windows custom control, add it to the toolbox using add/remove component and designed all your forms. And now, you have updated the custom control and a new dll will be created.
To solve this you have to find the path where you old dll resides and replace it with the new one and build the application.
*check* The refrence path to dll and one which is in the toolbox points to the same location.
|
|
|
|
|
Dear All,
I just tried to instal .NET framework 2.0 but why it can't integrate with MSVS 2003? Please answer me . . .?
Note : I already uninstalled .NET Framework 1.1 but still not working...
|
|
|
|
|
One obvious reason is .NET 2.0 bring complete new syntax that VS2003 can't support.
I think that MS might have an underground, unofficial and unsupported project to bring .NET 2.0 to VS2003.
But anyway, why not try the free Visual Express Edition[^]?
|
|
|
|
|
Simple...It'll never work. Visual Studio 2003 work ONLY with the .NET Framework 1.1. You cannot use VS2003 with the .NET Framework 2.0.
You can, however, install both .NET Frameworks 1.1 and 2.0 side-by-side, along with Visual Studio 2003 and 2005 side-by-side, and everything will work just fine.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I just download wikipedia's wikibooks dump file.
http://download.wikimedia.org/[^]
I have a hard time figuring out what to do with 130MB XML file.
I tried hard to convert it to to a MySQL database with xml2sql but grr... mysqlimport keeps failing with column id invalid...
How could I use the damn thing!
130MB of XML! Most of my text editor / viewer just fail...
|
|
|
|
|
Write an XSLT transforming it into whatver you want - or use an XmlReader... or load it into an XPathDocument. There are plenty of options, but as we have no clue whatsoever what you want to achieve with the data I do not see how we should be able to help you find the best way of dealing with it.
|
|
|
|
|
I want to reuse some data. But 1st I have to know the DTD and to find how to:
1. find the data I'm looking for.
2. reuse the books content.. I mean I don't know its format yet..
|
|
|
|
|
DTD is something they used in the dark ages, but I guess the schema will do as well.
If you can't find an editor that will deal with such a large file you can make a small program based on the XmlReader that will read the document. This program could dump each child of the root element to a separate file (or the first 10 children if you do not need thousands of files).
You might also be able to load it into an XmlDocument if your computer has enough memory.
Alternatively look in the source code generating the dump if it is available.
|
|
|
|
|
Ho.....
Yesterday I had a bug which made me though it would be horribly slow...
But in fact I could skip the 130Mb in a very reasonable amount of time (~ 2 second) with the XML text reader, cool!
I think I will write a small dynamic tree view, which loads node as I open them.
This way I could explore the whole XML document at my own pace!
|
|
|
|
|
Hello!
I have the following problem:
I am writing a plugin for another application where I have the source, too. This application was orignally programmed with VS .Net 2003. I converted the project file to VS .Net 2005, everything fine so far.
The forms in that application originally used the .Net Framework 1.1, because they were built with .Net 2003. The original exe and the exe from the converted project both show the form in old-style (not XP-style) UI.
My plugin was build with VS .Net 2005 from scratch. When I run it as a standalone application, the forms get the XP-Style layout. But when I run it as a plugin for the application, the forms look old-style.
Does anybody know why me code does now use the xp-style when I'm using as plugin? Are there any switches I have to activate in the project settings of the 3rd party application?
Thanks in advance,
Stefan Schwarzbach
|
|
|
|
|
You need to Enable visual styles in your EXE's code.
System.Windows.Forms.Application.EnableVisualStyles();
|
|
|
|
|
Hi Joshua,
thank you, it works perfectly!
Best regards,
Stefan
|
|
|
|
|
Am I allowed to distribute a .NET Framework installation pack along with my application?
Thanks in advance,
Shy.
|
|
|
|
|
Yes. But:
"If you need to have users install the .NET Framework from the Internet, do not post the .NET Framework Redistributable Package; instead direct users to the Microsoft Windows Update Web site."
Redistributing the .NET Framework 1.1[^]
---
b { font-weight: normal; }
|
|
|
|
|
I have a problem with Thread.Start.
In my program, serveral threads are started asyncrously, ie.
thread1.Start();<br />
thread2.Start();<br />
...<br />
threadn.Start();
All these threads are started by a thread manager and exit after they have finished their jobs.
But, just once, thread2 to threadn were all started and finished normally, while thread1 didn't continue its job. Fortunately, the thread manager could Abort thread1 by its handler.
Up to now, this happend only once, and it was not able to log the thread status when abort it.
Could anyone give some advice about why the thread will hang up even though it is started (I could confirm it by log)
Thank you
|
|
|
|
|
There are too many reasons to list since you have not provided any code, pseudo-code or even a brief discription of what your threads are doing. Are you using try-catch-finally blocks or assertions in your thread code? Are your threads modifying the same data?
|
|
|
|
|
George L. Jackson wrote: There are too many reasons to list since you have not provided any code, pseudo-code or even a brief discription of what your threads are doing. Are you using try-catch-finally blocks or assertions in your thread code? Are your threads modifying the same data?
Thank you for your reply. As it is impossible to attach too many source code, I hope a brief discription will help.
I use a thread manager of my own to create threads, keep track of the handlers of them while the threads are working and delete each handler just before each thread exits. All the threads execute in background and have a priority "normal". Threads of the same type will have the same thread name. Before the object which owns the thread manager dispose, it will also call the Dispose method of thread manager in which all thread handlers will be checked and aborted if the ThreadState is not "Stopped" (if a thread exits normally, no reference of finished thread will remain in thread manager 's list).
Of cause, if any of the threads stopped abormally, the object which owns thread manager will hang up unless it is stopped by some external "event" .
From the help of MSDN, it is said a thread will be set to Running state whenever Thread.Start() is executed and will be scheduled by OS. I have never imagined a Started thread will stop somethere.
You see, I don't use Thread directly but instead use MyThread, and all the methods have try-catch for exceptions. As for the stopped thread, if it executes , a message must be logged first which never appeared when that thread hanged.
All the threads will entered the same statemachine and lock is used with a 10 seconds timer. As no timeout occured at all, no deadlock occured.
Could you give me some hints about "the too many reasons" please ?
Thank you
|
|
|
|
|
So, what does thread execute before it stores a log message? Also, how are you logging your messages?
|
|
|
|
|
George L. Jackson wrote: So, what does thread execute before it stores a log message?
Nothing else.The first line of the thread is to store a message.
George L. Jackson wrote: Also, how are you logging your messages?
A log host service application exists in my system. All the threads in my main program (a service of XP) send log messages to a log client inside the main program(first into a quue). The log client send to log host by remoting FIFO. Both the client and the host are working after a certain thread hanged up.
Thank you
|
|
|
|
|
Does each thread access the queue directly? Are you using a synchronized queue? Also, you probably know this already, threads don't always start executing in the same order that you executed Thread.Start.
|
|
|
|
|
George L. Jackson wrote: Does each thread access the queue directly?
Yes, each thread access the thread directly but synchronized.
George L. Jackson wrote: Also, you probably know this already, threads don't always start executing in the same order that you executed Thread.Start.
As you have pointed out, I have taken this point into condsideration. But, the fact is although my program rarely hangs up, it happened when some factors occured at the same time.
|
|
|
|
|