Strategy For Converting A VB6 App To .NET?
Apr 27, 2010
Would it be a good idea to start converting forms into .NET one at a time which you would then invoke from the VB6 app via COM-interop.This way, by the end of the process you would just convert the 'shell' of the VB6 application into a new .NET app, and all your forms are ready to go in .NET.
View 5 Replies
ADVERTISEMENT
Jun 7, 2011
is it possible to implement strategy pattern with different parameters in VB.net? For example I have the following code:
Public Interface InterfaceDataManipulation
Sub updateMyData()
End Interface
How to implemente updateMyData in the class that implements above interface class with different parameter,for example in class x :
Public Class X
Implements InterfaceDataManipulation
Public Sub updateMyData(ByVal x as String)[code]......
But the IDE raises an error "class x must implement updateMyData on interface InterfaceDataManipulation"
View 2 Replies
Apr 18, 2011
I have inherited a .NET 4 VS2010 solution consisting of a WinForms app and a web service. I don't have access to a server that's running a copy of the web service but I have to run, debug, upgrade and test the project that accesses the web service as well as the web service code.Later, I also want to quickly switch between a deployed web service and the code in my local projectWhat's the best strategy for changing the projects so I can make changes to both projects, test locally, deploy the web service then test against that? If I find issues, I want to switch back to "local" mode to debug.
View 2 Replies
Dec 24, 2010
I developed app which accepts user responses. I created secondary labels which I envisioned as larger "tool tips" which prompt the user. ("prompts")As the user inputs to either combo box or text box, the label should go invisible and a "prompt" for the next input should go visible.I am trying to use Selected Index Changed,Leave, or LostFocus events to accomplish the visible invisible change.Is that the most effficient way to accomplish my functionality? A twist I would like to incorporate: the purpose of the "prompts" is to guide an unsophisticated user through the app the first couple times.After familiarity is acheived the "prompts" can be annoying.My strategy is to allow user to turn off the "prompts" by a check box.Then my conditionals will test the checkbox. checked property and either show the "prompts" or not based on the test. [code]
View 7 Replies
Dec 23, 2011
We have a asp.Net vb.net 2008 project on tfs2010. The project has one main branch and for any release we create a new feature branch which is finally deployed. Post production deployment we merge back the branch back into main branch.We are now also adding a db project to manage our SQL too. Question is how to version control the differential scripts. The db project contains all create scripts which is fine if we had to deploy thep project from scratch but the project is already live. So now any new release or hotfix would normally contain alter or change script practically.
View 1 Replies
Mar 4, 2010
I'm about to start a new project and want some advice on how to implement.I need a web application which contains a booking module for reserving timeslots, and a time management module which will enable employees to clock in / clock out.
If I am writing an update to the time managment module, I don't want to disrupt the booking engine availability by releasing a new solution containing both modules.to make things more difficult, there is some shared functionality like common users, roles and security.Here's a suggestion I've gotten, which sounds a bit cruddy, but may be functional.Write a 'container' web application which consists of basically a frame, and authentication / security features. This then has links which, will load the 2 independantly built and released web applications into the frame.I can see that say, if I wanted to update the time management module,
View 4 Replies
Jun 15, 2010
I'm trying to bind a WinForms TreeView control to some user-defined objects. In particular, I'd like to bind aTreeNode.Text property to myObject.Name. My strategy is to create xTreeNode, a subclass of TreeNode, add a DataBindings collection, and expose its Text property.
This would allow me to write some code like this:
Dim oBinding as Binding
Dim bs as New BindingSource
bs.DataSource = myObj
[code]....
View 5 Replies
May 18, 2012
a debate has been sparked here about the use of the strategy pattern in my classes.
Basically, I have a 'Shape' object that is an interface 'IShape'. We have 'Circle', 'Rectangle' and 'Elongated' that are the concrete classes that must implement the IShape interface.
[Code]...
View 3 Replies
Dec 6, 2009
Im a new in this VS2008. But i have some foundation of programming in VB6.0. So im planning to create this application using VB since im familiar in that language.I downloaded a Visual Studio 2008 and SP1 - now on its 90-day trial, and planning to buy the full version depending if it will meet my needs. I just read afterwards the conditions and how to buy it. I hope its free shipping and credit card is acceptable.^^
I need to make an application something like a reporting system, my plan application is a client-server application. Currently im reading the How to topics and some walkthroughs so far so good. Now here are some sort of details and target need to fulfill.
1. An interface from client that will input the data from the multiple-user , including images and these data will be saved in database/table remote server (center database server) LAN.
[Code]...
View 3 Replies
Mar 2, 2011
we changed the mapping from the table per concrete class to the subclass strategy and now the UnitTests fail, but I cannot recognize why.There's one base class Article and a child one SemifinishedArticle with no specific properties.
Article.hbm.xml:
<?xml version="1.0" encoding="utf-8" ?>
<ibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
[code].....
View 2 Replies
Aug 5, 2009
I have a usercontrol with a picturebox and a few buttons related to it, such as LoadFromFile, Paste and Zoom (that last one pops up a new form). Is there a way to override the basic Enabled property of the usercontrol so that I can keep the Zoom button active all the time, while turning off the other buttons?
I realize there are 2 "obvious" replies. don't do Enabled=False, create a custom method. do everything in the one form, not a usercontrol, so you can pick and choose disabling. Both are less than ideal, given that I'm putting this control into a couple of existing forms, so I'd like to work around how those forms already behave. So is there a way to override the behavior of my usercontrol when it gets disabled? What would be my best strategy?
View 3 Replies
Aug 17, 2011
I have to compare two columns in two different Excel sheets and delete the duplicates. I have come up with several strategies that work, but I am searching for the most efficient way to do this. At first, I was sorting the columns and looping through them in the manner of a sequential update and deleting when the cell values were equal. But I discovered here an article by Mike Rosenblum that explained that it is much more efficient to stick the columns into an array and iterate them from there. So I was able to do that. There was a complication in that once I had deleted a row, then the array and the spreadsheet were out of sync. So I had to compensate by incrementing a variable each time a row was deleted, and subtracting this variable from the array index to calculate the row to be deleted in the spreadsheet.
So now I am wondering whether there is a better strategy. I thought that if I could merely hide the rows to be deleted and then find a way to delete all hidden rows at once after the loop was over, then this would eliminate the problem of the array and the spreadsheet getting out of sync and would make the code easier to understand. I thought of putting the row numbers of the duplicates into another array and deleting the rows after the comparing loop. But this creates the same problem of having to compensate the row numbers in the array.
View 1 Replies
Aug 9, 2011
I am trying to write a system that will send an email to my Client and when my client reply I need to read the Email and push it back to proper Record for the Client.We are using Exchange and outlook, For Sending email I am using smtp with custom coding Which automatically record an email content to the Client File howerver how to read the reply as it is coming into outlook of user machine and push it back to the Proper Client record.
View 3 Replies
Aug 22, 2011
my goal is to
1.Take an file(exe,dll,etc)
2.Convert it into hex
3.place that hex values in a stack
4.Execute the values inside the stack to its original form(i.e. take the elements out of stack and then convert it to a compile format)
Imports System.IO
Sub Main()
Dim fileName As String = "ABC.exe"
[code]....
View 1 Replies
Jun 8, 2009
I am having trouble converting this Do Until loop to a Do While loop. Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click calculates and displays the average sales amount Const strPROMPT As String = _
[Code]...
View 5 Replies
Mar 10, 2010
I have the following in vb.net and need to convert it to c#. Seemed rather simple at first but I need to pass in the NamedObject variable as welll which is supported in vb.net but not in c#..
What are my options.
Here is the vb.net - notice the NamedObject
Public Property Datos(ByVal NamedObject As String) As T
Get
Return CType(HttpContext.Current.Session.Item(NamedObject ), T)
[Code]....
View 4 Replies
Jun 9, 2009
I am trying to convert an MP3 to a wav. The wav file is created, but I am having problems elsewhere. The label is displaying the wrong data("Cancel/Error") and the progressbar is doing nothing. I am using lame 3.98 .exe and a wrapper for the exe. I downloaded the LameShell project from codeproject. Here is a section of the wrapper class. This was originally for resampling a mp3 to mp3.
[Code]...
View 2 Replies
Nov 17, 2010
I'm developing a program to execute powershell from .net app. I found a sample but it uses c# so I'm changing the code to vb.net but I don't know how change the following line:
Collection<psobject /> results = pipeline.Invoke();
View 2 Replies
Feb 14, 2011
The C# version works but when I convert it to VB it doesn't. What am I doing wrong?Its for opening an HTML doc into a usercontrol.
VB
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Web
Imports System.Web.UI
[Code]...
View 4 Replies
Apr 9, 2012
how to convert this c++ sub to vb.net?
// Create points to simulate ellipse using beziers
void EllipseToBezier(CRect& r, CPoint* cCtlPt)
{
// MAGICAL CONSTANT to map ellipse to beziers
[code]....
View 3 Replies
Sep 11, 2009
I found some code on preventing DOS attacks written by Omar Al Zabir thta I would really like to use on a website written in VB.NET.
The code is at the following link -[URL] but is in C# I tried to convert using variios different programs but there seems to be one line that keeps giving me problems.It's the line
var hit = (HitInfo)(context.Cache[key] ?? new HitInfo());
in the method -
public static bool IsValid( ActionTypeEnum actionType )
{
HttpContext context = HttpContext.Current;
if( context.Request.Browser.Crawler ) return false;
[code].....
View 5 Replies
Dec 30, 2009
I am trying to convert this code from C# to VB. Tried to use third party tools, but not successful.
[code]...
View 3 Replies
Jan 21, 2010
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code].....
View 2 Replies
Jan 21, 2010
I am converting my project from VB6 to VB.net 3.5 and at one place i have declared private variable a() as variant and i am using some place as b =a(index,0) it will work in VB but gives me error in VB.Net the error is Number of Indices exceeds the number of dimensions of the indexed array.
View 4 Replies
Jan 19, 2011
It is a program on which logic programs can be developed, compiled and downloaded into Programmable Logic Controllers. It is fairly big and complicated and the resulting .exe file is about 2Mb. I need to develop the program further now, and would like to use VB.net. When I try loading the VB6 code into VB.net, it changes all the variables of type Integer and String into type Object. It then states all through the resulting code that the default values are not defined. I assume that if defined as Integer and String variables do not need a default value, it would assume them to be 0 and empty. Any ideas why the program changes the variable types during the converstion? All forms start with 'Option Explicit', so all variables are defined.
View 3 Replies
Sep 25, 2009
I am trying convert a macro for MSProject from VBA to VB to create an add-in. What I am struggling with is the code to set the values of fields on a windows form and how to actually display the form.
What I have so far is:
Dim objProj As Microsoft.Office.Interop.MSProject.Project
Dim objTasks As Microsoft.Office.Interop.MSProject.Tasks
Dim objTask As Microsoft.Office.Interop.MSProject.Task
[Code].....
View 1 Replies
Nov 9, 2010
the following is brief description of how my project works. GUI is used to collect information from User and validates.have got dll named control-class that pass input data from GUI to Business logic DLL.this dLL connect to the database and saves data.after that,it disconnected and takes the results to the control dll,then to GUI which interprets if the input data was successful or not.Is there a tool that can be used to convert VB6 GUI to .net web forms? am not familiar to vb.net.how do you create reference to vb6 dll or COM from vb.net?
View 2 Replies
Aug 29, 2009
I was following this thread [URL]to convert Hex to RGB, but Left$ and Right$ shows up as errors does anyone know why?
View 10 Replies
Apr 10, 2012
I have read the threads on converting PNG to ICO format. I came up with the code below. This works, but it creates a black background where the PNG had a transparent background.[code]....
The _File variable above is a string that has the path to the PNG file.
View 8 Replies
Jul 4, 2011
I was put in a situation where I had to convert RC4 code from c# into vb
I tried getting already made codes online but they did not seem to work as the currently c# one that I have. Maybe a professional will see the mistake I am making. Both codes give a different encrypted result.
c# code:
public static string RC4(string pStrMessage, string pStrKey)
{
char[] lBytAsciiAry;
int[] lBytKeyAry;
[Code].....
View 1 Replies