|
Jun Du wrote: I never checked older Windows, like NT 4.0.
There isn't a NT4 runtime of .net2.0, 1.1 will run under NT4sp6a
|
|
|
|
|
Hi,
I've made a project to make Word documents with a template in VB.NET. If I try to make a preview of the page, my program craches and get an error in Word. It says:
"The assembly nederlandseTemp cannot be found in .\nederlandseTemp_bin\ or the assembly cannot be loaded. You can stil change and save the document."
nederlandseTemp was a second project in my solution, but I deleted it.
Has anyone any idea what's wrong with the solution?
Greetz Kris
|
|
|
|
|
solved the problem
I needed to add an Office system project with name nederlandseTemp and select word Temp. Now he finds the file and opens office Word again.
greetz Kris
|
|
|
|
|
I have an application that was written in VB6 (lots of spaghetti code), that I am trying to get the business to upgrade to .net (redesign). What are some reasons that could be used to entice the business to upgrade?
I know the following:
1. Microsoft no longer supports VB6 so any future software releases (office, OS, etc.) could break functionality.
2. Maintenance Cost will be cheaper.
3. Fewer bugs due to better design, unit testing (nUnit)
Anyone got anymore?
Thanks in advance.
|
|
|
|
|
Well, fewer bugs are not guarenteed. If your current code is spagetti, it probably is a sign that the coding process needs to be improved, no language will do that. It also increases the odds that you'll have a really bad time trying to turn your code base into a VB.NET project.
I hate to say it, but an upgrade for it's own sake is not always a good idea. You may lose time trying to get back to the point you're at now ( that is, in converting to VB2005 ). You may introduce bugs. Unless you need stuff that's in the framework, or you just want to work in a supported framework, it's possible that upgrading is not a good idea.
Have you downloaded the VB Express Edition to see how your code fares in the upgrade process ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I agree with you that the coding process needs to be improved. I inherited this application when I took a new job. The app is updated/enhanced about once or twice a month. Currently, these changes are taking longer to implement because the code is performing the same functionality in several different places.
My motiviation for moving the application to .Net is to redesign/rewrite the application (it is not a large app, it should only take 2 months to rewrite). My problem is I can't go to the business and say the current application is a mess and needs to be rewritten, but I can say VB6 is no longer supported by Microsoft. But I need to provide more reasons for upgrading.
Thanks. Any ideas?
|
|
|
|
|
mr_12345 wrote: My problem is I can't go to the business and say the current application is a mess and needs to be rewritten
Why not ? You didn't write it. Point out that the app will in the long term be more cost effective for them if it's rewritten so that it's easier to extend and maintain. Point out the cost benefits of moving to a modern framework with support for lots of stuff that's not there in VB6. Point out the benefits of being able to run VB.NET code through VSTO and SQL Server 2005 stored procs ( if you use a database ). Unless your boss wrote it, if you talk in terms of cost benefit, you're talking their language.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Because I work for company A who wrote the application for company B. Now A is telling B that we need to rewrite/redesign the application?
|
|
|
|
|
Don't try to con your employers into letting you re-write it in .NET by telling them VB6 is no longer supported; tell them the truth and inform them of the costs, benefits, and dangers then let them make the decision. Another aspect is that you need not port the whole application at once. You could test the waters by making a new component or recoding an existing one using .NET and use interop. In my opinion this is the best approach.
Steve
|
|
|
|
|
VB6 IS no longer supported. I'm a moderator on the MSDN forums, and we lock VB6 questions and tell them to find help elsewhere.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
My intention was NOT to suggest that VB6 was supported, it was in response the following comment from the OP:
"My motiviation for moving the application to .Net is to redesign/rewrite the application (it is not a large app, it should only take 2 months to rewrite). My problem is I can't go to the business and say the current application is a mess and needs to be rewritten, but I can say VB6 is no longer supported by Microsoft. But I need to provide more reasons for upgrading."
I have underlined bits to make my point clearer. Hopefully what I meant when I said, "don't try to con your employer" is now a bit clearer.
Steve
|
|
|
|
|
mr_12345 wrote: What are some reasons that could be used to entice the business to upgrade?
Everybody else is doing it.
(Might seem like a joke at first, but it isn't.)
----------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
|
|
I am trying to process code when the Enter key is pressed. For some reason it only works if shift + Enter is pressed.
Here is my code:
colCNa.TextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(OpenCollection_EnterKey);
...
private void OpenCollection_EnterKey(object sender, System.Windows.Forms.KeyEventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
...
}
}
I also tryed this using Keypress and KeyChar == (char)13
Thanks for any feedback.
RABB17
|
|
|
|
|
Hi there,
I'm looking for a .NET based sample application which is using the SkyWave
API functionality to get the tracking data (position data) from the SkyWave server.
Is there anybody here to know such this sample application?
I've asked it from SkayWave support center (support.skywave.com) but their supports are not too good.
Thank you in advance.
|
|
|
|
|
Hi
I am creating a bitmap on the fly serverside (c#) and sending it down the response to appear on the browser - pretty neat I reckon....but....my client (the guy who's paying, not the browser) now wants co-ordinate info about the image displayed during a mouse over event. Basically, it is a line graph, with 10 x 1 pixel wide lines. He wants to move his mouse over a line and for me to display the info. I have all the info, but I don't know how to detect what is under the mouse point without using an image map - just getting the colour would suffice.
Can image maps be created dynamically...or...is there a way to get a list of pixels along a path? I could then store each pixel colour that I have drawn in a container and do it that way...or...can you think of an alternative?
Cheers
Regards
Angel
*********************************************
The sooner you fall behind, the longer you have to catch up.
-- modified at 10:27 Thursday 8th June, 2006 - typos and grammar!
|
|
|
|
|
Hi All!
How can i localize tte CryctalReports in Visual Studio 2005?
I add this code to my project:
Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru");
CultureInfo cifo = Thread.CurrentThread.CurrentUICulture;
CrystalDecisions.Shared.SharedUtils.RequestLcid = cifo.LCID;
and create CrystalDecisions.Windows.Forms.resources.dll in this way http://marian.ideaz.sk/crystal
but it does not work.
Thanks in advice.
|
|
|
|
|
hi frenz,
i need a answer from u guys, i want to know how to convert apublic assembly to private and viseversa,and some sample code,
thanks
laxman.
|
|
|
|
|
What's a private assembly? For that matter, what's a public assembly?
|
|
|
|
|
Private assembly is the assembly deployed in application directory or in subdirectory.
Public (or shared) assemblies are those installed in GAC.
To convert private assembly to shared - sign it with the key and deploy into the GAC.
To make a public assembly out of shared – copy it into the directory where your app resides then delete it from the GAC.
Best regards,
-----------
Igor Sukhovhttp://sukhov.net
|
|
|
|
|
SerialPort.GetPortNames() gives you just the port names line "COM1","COM2"
I need the full name that is provided by the device manager like: "CP2101 USB to UART BRIDGE CONTROLLER (COM2)".
The reason for this is that I need to select a port with a specific device driver.
Can someone post a C# snippet?
|
|
|
|
|
The requirement is to delete a line from a text file without resorting to a temporary file.
Presently, this has been implemented using the FileStream class and its Position member. Say for instance if there are 10 lines in the text file and the 5th line is to be deleted. The lines 6-10 are re-written from the 5th line, thus shifting these lines one line upwards. And the 10th line is overwritten by writing spaces to it.
This has avoided the use of a temporary file. But this is unnecessarily creating a blank line towards the end of the file.
I did not find any solution to delete the line altogether. Is there any way to do it.
Please Help.
|
|
|
|
|
You could read the file into a string or string array, remove the unneeded line, and then write the string/string[] back into the file.
Josh
|
|
|
|
|
The text file can be huge. It can have around 500000 lines, each line having a minimum character count of around 44.
What can be done in this case?
|
|
|
|