Migrating .NET Code To A Web-based App?
Oct 29, 2009
I come to programming from a school of functionality rather than theory- writing programs to meet a goal or solve a problem.I haven't had any education in computer science so many aspects of the Visual Studio world are alien to me.Just for fun I wrote a very small program to help with a computer game.It's called the All Lucky Sevens calculator for Final Fantasy 7.If you haven't played the game it won't make much sense to you so I'll eschew the logic of why I wrote it, focusing on what it does.
Basically it performs a series of percentage calculations on a number input by the user, trying to convert the original number into one that ends in 77. So 6104 reduced by 7% is 5677 The question is, how difficult is it to convert VB.NET code to work as a web-based app. I thought .NET was designed to make it easier to do this? Is it relatively simple to convert VB.NET code into something that can be run from a website? If not, the solution is to rewrite it in a different language like Java or Flash.The actual programming of it would not be difficult, but I do not speak those languages and it would require rewriting all the nested loops and ifs.Forcing VB to round down a decimal to an integer was difficult enough, I daren't think how hard it is in a language I've never used before.
View 6 Replies
ADVERTISEMENT
May 17, 2010
First off I am so VB.NET green it's pitiful. I am a AutoCAD Manager and I need to start migrating my VBA code to VB.NET. That being said, I am very familar with VBA,and some asp.net, and trying to use that knowledge to self-train in .net. The trouble I'm having is communicating between the various objects in .net. That being said, here is the first of many issues.
Currently, I am working on a file processing program that checks a user selected folder for .dwg files. I'm attempting to use FolderBrowserDialog activated using a "Browse" button , and can't seem to, first get the dialog to show a folder structure from the FolderBrowserDialog object and second, get the initial dialog code to take the "SelectedPath" method. Error "SelectedPath is not a member of "folderbrowser"
I can post code, but I'm not sure what snippet would be the most informative of my problem.
View 5 Replies
Jan 23, 2010
Example: When you press "a" you want your program to automatically press again the same char you pressed. You know the e.KeyCode which is 65 for "a" and the command which is SendKeys.[code..]
Simple enough and it works for every character. But if you try it lets say with the Caps Lock button then the value of key is "CAPITAL"which means that the command will execute as follows:
[code..]
Which will obviously send the text "CAPITAL" not the key "Caps Lock".The same thing happens with % (Alt) and Is there another way to press a key without using the SendKeys function?
Don't stay on this:
When you press "a" you want your program to automatically press again the same char you pressed.
Cause that is not what i want to do.
View 4 Replies
Jan 20, 2011
I just want to repeat a code block if a CheckBox it's checked...So, i'm very novice to programing in Visual Basic and i'm learning by myself doing little things like a Ping Tool.I have this code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = ""
[code].....
View 6 Replies
Oct 3, 2009
I have a windows form that imports data from an xls file to sql2005. I have a browser button, a dropdown list for the sheet names in excel and a process button. Now the excel file has 3 sheets (sheet1, sheet2, sheet3) the columns and data type are not the same so I need 3 different queries to access this file,
I think about CASE, but not very sure,
So if dropdown list.selectedvalue=sheet1 then
run code
View 4 Replies
Sep 11, 2002
Is there any way to build a web based chat room application by using VB.NET as behind code and put it with ASP.NET on the web so users can login the account and start to chat without keep refreshing the browser or frame and have a real time transaction, I know that I have to use .NET.Socket namespaces, but don't know exactly how. I have seen many examples of windows based applications, but I need to know how to put it on the web.
View 5 Replies
Jan 29, 2010
The Timers based on System.Timers are multithreading timers, I can readBut if in my application I have two timers:1) Timer1 (based on Windows.Forms.Timers) that every 500 ms execute the program main code2) Timer2 (based on System.Timers) that every 1000 ms controls a secondary eventif in the Timer2_Elapsed event I insert the Thread.Sleep(30000)for 30 seconds ALL THE program stops, even the Timer1 controlled main code.
View 5 Replies
Nov 26, 2011
I have a user control which is essentially a main menu I can place it into my MasterPage hard-coded, but I don't want that, I want to be able to dynamically place it with the code behind of the MasterPage.
<controls:mainMenu ID='MainMenu1' runat='server' />
So what I am looking to do is something like
if **condition is true ** _ response.write('<controls:mainMenu ID='MainMenu1' runat='server' />')
Of course, I know that won't work, but how would I place the control based on a condition in code behind on the master page?
View 1 Replies
Dec 31, 2009
What i am tring to do is execute certain code based on a variable held in a module someting like compiler directives, here's an example for lack of an explanation.[code]...
View 2 Replies
Aug 24, 2010
how to write code on network programming that is window based. most of the code i read are console application.
View 4 Replies
Aug 15, 2011
I am going to be taking up a new job as a VB.net developer. I have worked with C# for about 3years. I did mention to the interviewer that I haven't worked with VB.net, but he seemed to think that its easy to migrate from C# to Vb.net.
View 1 Replies
May 1, 2012
I've done a fair bit with the other languages in Visual Studio, and have some C# code I wrote which I am trying to port to Visual Basic.
I will show it here:
public sealed partial class Dice
{
private sealed partial class MT
[Code].....
My question is one of a fairly simple nature, how do you make a thread safe singleton constructor with Visual Basic?
I tried a similar pattern to the one above, only to find that I had a lot of difficulty declaring the static variable instance as a null, this in turn would ruin my public Instance property, as I would have no way of telling if the class had been instantiated or not...
Anyhow, even a simple explanation as to the correct way of doing this would be nice, I'm sure I can fill in a lot of the grey areas, I just need more information than what I'm finding in MSDN, it seems Singletons are only really described in detail for the other languages...
View 4 Replies
Aug 24, 2010
I want to migrate some code from Vb6 to Vb.Net Here is the code that doesn't work:
UpgradeStubs.MSDataGridLib_DataGrid.getCol(ShowInsur) For UpgradeStubs, I have found an equivalent: Artinsoft.VBUpgrade.Maps, but overall it doesn't work.
View 14 Replies
Sep 30, 2009
I program in vb2008.I am curious about what resources exist:( books, videos, courses) which address how to migrate to 64 bit applications.Right now I have 4 machines with 8 gbyes of memory running XP64.My chief interest is in what I need to do to allow myself to address >4gbytes of ram in a vb application.
View 1 Replies
Mar 24, 2010
I program in vb2008. I am curious about what resources exist:( books, videos, courses) which address how to migrate to 64 bit applications. Right now I have 4 machines with 8 gbyes of memory running XP64. My chief interest is in what I need to do to allow myself to address >4gbytes of ram in a vb application.
View 10 Replies
Sep 18, 2009
We have a Try/Catch block of code in our web application to trap a certain exception. What we want to do with this exception depends on the current time. If it is between 4:30PM and 3:00AM we will want to send an email, otherwise we will throw the exception.
Try
'Yada
Catch ex as WebException
Dim Time As DateTime = DateTime.Now
[code].....
View 1 Replies
Apr 12, 2011
I am new to VB and I have two detail listviews with one full of items that can be droppedinto the other. I have three groups in Listview1 and I would like different forms to open up based on the group each dropped item belongs to. I was able to open Form2 on drop by adding Form2.Show() at the end of the ListView_DragDrop handler sub, but this opens forevery item and I want different forms to open depending on the ListViewGroup the item belongs to.I set the items and groups in the property windows and not in code; I do not know if this makes a difference. So here is the code I have on Form 1 where the listviews are:Public Class Form1
Private Sub ListView_ItemDrag(ByVal sender As Object, ByVal e As _
System.Windows.Forms.ItemDragEventArgs) Handles ListView1.ItemDrag, _
ListView2.ItemDrag
[code].....
View 2 Replies
Sep 2, 2009
I have made a windows application (running parfectly on my system). Now i want to run it on another computer.
Here's what i tried: I noticed that an exe file of the application is created inside the Debug folder after the application is deployed. So i thought that copying and pasting the .exe on any other system should work fine but trying to run the exe on that system gave an error and it would not run.
P.S. This application did not have a database. Also, i have made another application which interacts with an access database. How will i be able to run that on another system?
View 3 Replies
Jun 25, 2010
We're building an application using VB.net and WPF. Obviously we've found that there are huge differences between the syntax in the two, and we have a few problems trying to do things in Form apps in WPF.If possible, could you pass us some resources on things like switching between WPF windows, we'd use Show() and Close() in WinForms, and referencing variables from other forms, i.e. otherForm.StrVariable references StrVariable from otherForm.
View 2 Replies
Jul 1, 2009
I are testing Win7, and I have a ____ trying to just do anything in Win7. Lots of permissions problems. unexpected crashes.
I are no more owner of my code files!
I had no idea that my application was so buggy on Windows 7 :(
View 6 Replies
Apr 27, 2009
I'm migrating some code from VB.NET to C# (3.5).I find structurs like:
Public Event DataLoaded(ByVal sender As Object, ByVal e As EventArgs)
Protected Sub Mag_Button_Load_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Mag_Button_Load.Click
[..]
[code]....
What is the most streight-forward to translate such behavour in C#?
View 1 Replies
Apr 3, 2012
I need some help in the creation of a program to generate a security code based on the current date. I need to create something that first multiplies the MMDDYY (ie X=MM * DD * YY) then also adds the MMDDYY then finds the remainder and then multiplies but a specified number. I would like to create a small program that sits in the system tray with this code displayed. The code will always need to be 6 characters, so I might need to pad it with zeros. It has been years since I took basic VB, and I am really rusty.
View 1 Replies
Apr 17, 2012
I have an old system developed in Visual Basic. How can I determine what Visual Studio version to use based on the source code files? I've tried to upgrade the application using VS2005, VS2008 and VS2010. With VS2005 when I attempt to upgrade the source, it says the system was developed in a newer version. I currently have VS2005 version 8.0.50727.42 installed.
View 4 Replies
Nov 15, 2011
I am trying to make a simple program to display a shipping charge based upon a selected zip code. Where can I find sample code that I can use as a guide? I can create the GUI but can't figure our the code.
View 2 Replies
Feb 29, 2012
I currently had a .Net Remoting Application running on Framework 2 under IIS. I have to upgrade it to Framework 4 in order to use some new components. I have been able to set everything up and running smootly on Framework 2, but as soon as I change to Framework 4, I get the following exception when I try to call one of the function of my remote object.
The input stream is not a valid binary format. The starting contents (in bytes) are: 53-79-73-74-65-6D-2E-52-75-6E-74-69-6D-65-2E-52-65
This bug is not the real bug, it is caused by the fact that the remote object is throwing an exception, and IIS wrap the exception in XML, which throws the BinaryFormatter off.See this for more info on the bug.
This is very unfortunate because I cannot see what is causing the exception, and having never used any Remoting before, I do not have much ideas as to where to start debugging. It seems the Exception is thrown before even stepping in the code because I do a fair amount of logging and none of it seems to be triggering.Basically, I'm looking for some clues or pointer from people that encountered similar problems:
What could be causing the exception when no code has changed besides Compiling from .Net 2 to .Net 4?How can I get the full Exception message that is returned?
[Code]...
View 1 Replies
Aug 10, 2010
We have a small visual basic 6.0 application with an Access DB that we would like to migrate to modern code and architecture. I am not technical, but I am believe this would be something like a .net framework with a SQL Server DB.What I am wondering about, is there any way to covert this code to a modern language/architecture? If so, what is the easist modern language to migrate to?
View 7 Replies
Nov 1, 2009
I'm currently trying to interface some Fortran routines into a 3rd party environment by creating a VB.NET DLL. I don't have accessto the Fprtran code because its considered proprietary.
As a starting point, I demonstrated that I could make the call satisfactorily from VBA using the following
Declare Sub INTERFACE_VB Lib "C:FortDirFortFile.dll" _
(ByVal SV As String, ByVal intSV As Long, _
ByRef IV As Long, ByRef RV As Single, ByRef intIERR As Long)
[Code]....
View 4 Replies
Jan 4, 2012
I have an application with databases in MS Access. I want to migrate that to SSCE. I have converted all the databases. Problem is with datasets.Do I need to make all new datasets or there is a way to convert the existing ones to SSCE datasets?
View 6 Replies
May 20, 2010
I have to migrate a software from VB6 to a most modern technology.
1) Does has Visual Basic 2010 Migration Wizard to migrate VB6? I have downloaded the free trial of VB 2010 and I can't open a VB6 proyect
2) It is a good idea use VB2010 or is better go with VB2008?
I have to say that I will learn the language also, my guts says that I should code again everything using VB2010 ( so I am learning the lastest language) although I am not sure?
View 2 Replies
Jun 10, 2009
I need to convert my winform VB.NET application to an ASP.NET application.My current application has 4 forms, it reads a remote XML file, and uses a datagrid to collect user input and to create a report.It is a very simple application, and I would like to know where to start to convert it to ASP.NET.
View 3 Replies