Quickest way to convert a VB.Net desktop application to a mobile web application? - vb.net

I have an application that is written in VB.NET, using the System.Windows.Forms.Form as the front-end GUI.
It runs perfectly on my Windows machine however recently there is a business requirement to convert this application to run as a web application so that people could view them in their blackberries when they go to the URL.
Is there any quick way to perform such a conversion or I will have to translate the code line-by-line for such cases?
Any help is appreciated!
Thanks!

Is there any quick way to perform such a conversion
No, not that meets your requirements. You can build custom winforms controls that can be hosted in internet explorer, but that won't help users accessing your app from a blackberry.
will I have to translate the code line-by-line for such cases?
No, it's much worse than that. Many of the things you do in a Winforms app just won't translate to the web well. You'll have to re-write and re-think a lot of your existing code. Essentially, you're not only re-building the app from from scratch, but you're doing it for a platform with which you have no prior experience. In other words, it might even take longer than building the original.
I know it's not what you were hoping to hear, but thems the breaks.

Related

How to control any windows program with no available API

What is the best way to control a program's user interface (clicking, entering text, drop down selection, etc) when the program has no available API?
I've heard of AutoHotKey and FlaUI and watched a few videos but haven't seen a great example yet. Before I go too far, is this the best direction/method?
Thanks!
FlaUI is a fully fledged UI Testing library that allows you to automate all aspects of a Windows application. As author of it, I of course recommend it. If you do have a bit of programming know how, it should be fairly easy to use. In case you just want some scripts to run locally, you don't even need Visual Studio or Visual Studio code, you can just use RoslynPad for example and directly create and run your code there.
I use this all the time for small automations, heck even sometimes to input very long passwords in a remote machine where I cannot use copy/paste.

Migrating a Compact Framework 2.0 App to Windows Phone

I have a Compact Framework 2.0 application written years ago in VB.NET using VS2005. The application uses a local SQL compact database (.sdf) file. The application has been running on HP iPAQs for years.
I want to look at making this available to Windows Phone users. Any suggestions for the easiest way to do this? When I say easy I mean quick I suppose, the client is not interested in paying for it, so if there was a crude way to implement/achieve it I would be prepared to go that route.
The alternative is building a new Windows Phone app, my first. Which would be fun, but not very good for the balance sheet! Thanks all.
Probably the only option available is going to be a wholesale rewrite of the application. If you were strategic in your original design and kept the business logic and UI separate, then that code will transfer pretty easily, but the data access code will have to be rewritten and all of the UI code will have to be rewritten.

Automation testing for windows and web?

I am looking for an automation testing tool that checks the following features:
Windows application functional testing on local desktop
Web-based functional testing
No coding required, to be used by testers with no coding experience
Record and run would be easy for GUI, but for object based testing some features to write simple words without coding without syntax problems
Can someone please help me with this?
I would recomend QTP as it can be used without any need for coding. The testers will just record and play back the recorded tests.
I don't understand point four well. I hope that my answer sheds some light and point you into the right direction
TestComplete is the way to go for this. It's strong points is everything you're looking for it seems. There is a 30 day free trial too and a bunch of content to get you up to speed. No coding required. http://smartbear.com/products/qa-tools/automated-testing-tools/

Convert Smart Device Dll to ActiveX control for Windows Mobile

I am using C# and Visual Studio 2008.
I have a class that will turn on the scanner of my Windows Mobile Device and then will capture the read of the scanner when pressed. It will also shut down appropriately and cleanly. I am using a vendor provided SDK to do a lot of the heavy lifting.
I have this working correctly in a Mobile App, but I also need the dll to be able to be called via COM/ActiveX from a web site. I have been going around and around about how to do this. I've bounced between various settings and project types. I've tried converting it over to C++ and ATL. But so far nothing works.
I get conflicting information depending upon where I look. I need help. Can only C++ do this? Is there something I'm missing? I can't be the only person needing to do this. How can I do this?
You cannot create ActiveX/COM components in managed code with the Compact Framework. There is not EE Hosting support, so it simply cannot be done. You will have to write this in C++ (not managed C++, but old-fashioned native).
As a side note that is sometimes overlooked on COM controls, you also have to implement IObjectSafety for the control to work in a browser.

How to create a cross-platform DLL in .net

I have a interesting problem: Where I work we've built a home-grown ERP system in VB6 that we are slowly moving over into vb.net. There are some projects have are in .net: we have a hand-held C# project that uses a web service to talk to our database, I've built some reporting screens using Crystal and some smaller maintenance screens.
Well as we have been plotting the conversion out, we want to have a way to separate our business logic and UI so that the UI can be a win/web form or a Smart Device project. Is this even possible? I try to reference the DLL in a test I have and it gives me this error when trying to debug using a emulator
Deployment and/or registration failed with error: 0x8973190e. Error writing file '%csidl_program_files%\smartdeviceproject1\system.windows.forms.dll'. Error 0x80070070: There is not enough space on the disk.
I'm not sure what it's doing... I take my DLL out and it works fine. Does anyone know of a way I can create a DLL that can target all of these UI without may changes?
This post here
helped me alot. Using a linked projects with conditional complation would seem to work in my case.