Porting Winforms Application To C#?

Jun 24, 2012

Possible Duplicate: Porting VB.NET Winforms Application to C# .Is there any way to convert a vb.net winforms application into c# ? In terms of both code and .vb (forms) files.

View 2 Replies


ADVERTISEMENT

Datagridview - Porting A VB6 Application With Msflexgrid

Mar 17, 2009

I am porting a vb6 application to VB.net. One of the key forms has a large msflexgrid on it - about a 1000 columns and 50 rows. It has 2 header rows - the first header row has merged cells to form a main header and the second row has sub headings. There is no requirement for any data entry and it's unbound. The code does the work in deciding what to display (if anything) in each cell. It is solely used to display data in the form of a character and a coloured background and to display a tooltip text with more information when you mouse over it. Works beautifully in vb6. I'm trying to decide whether to:

a) use the vb6 msflexgrid in the .net version
b) use the datagridview - which at a first glance seems to have a problem merging the cells on the header row
c) build my own custom control to do the job

View 2 Replies

Porting .net Application From Windows To Linux?

Mar 21, 2011

I developed an application using VB .NET on a Windows OS. If I want to enable this application for a client who uses Linux , how do I do so? Do they need to purchase VB .NET? I am totally lost on how this works.

View 5 Replies

.net - Porting Crystal Reports Application (VB 2003, Framework 1.1)?

May 17, 2012

I've been asigned to a new project. I have to mantain an application wich was made in Visual Studio 2003 (VB.NET, Framework 1.1) and Crystal Reports wich came included with the IDE. The application is absolutely what we call "legacy code" :).Just to make the test, today I've tried to convert the application in Visual Studio 2010. The converter is offering me download SAP Crystal Reports, with no cost and no registration.The question is: Does anybody has experience with this components?. Is feasible to migrate an application as described to VS 2010?

View 1 Replies

Deploying Winforms Application To Client Machines Application Failing On Start?

Jul 2, 2009

Deploying Winforms Application to Client Machines Application Failing on start

View 8 Replies

Winforms - Convert A Desktop Application To A Mobile Web Application?

Mar 9, 2011

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?

View 1 Replies

Detect If The Application Is A Console Or WinForms Application?

Sep 24, 2010

detect whether the current application is a console or a winforms application.The reason that I want to do this is that I am developing a library with a global error handler in it and I need to know what type of application it is in order to be able to subscribe to the appropriate exception event.Obviously I could get the user to pass in a parameter specifying what type of application it is, but I would rather deal with that automatically so its all encapsulated from the user of the class.

View 1 Replies

CSS Be Used In A WinForms Application?

Mar 9, 2010

Can we use css formatting in a vb application to give some enhancement? Examples would be changing the font color and or background? Are there any other way to customize a (VB)desktop application?

View 4 Replies

Porting C# Code To VB?

Feb 26, 2009

I have a bit of code which is causing me a few problems to port from C# to VB.NET

The C# looks like this

byte[] serverbuff = new Byte[1024];
int count = 0;
while (true)
{

[code]....

View 13 Replies

Porting Linq From C# To VB

Jul 4, 2010

I am trying to port the folling C# Linq statement to VB.NET. I can't seem to find any equlivant for Select((asm, idx) => new { asm, idx })

List<AssemblyReference> assemblies =
(
from asm in loadList.Assemblies.Select((asm, idx) => new { asm, idx })

[Code]....

View 2 Replies

PV Function And Porting VB6 To C#?

Sep 24, 2009

I'm working on porting some classic VB6 code to C# and just stumbled across a usage of the PV function.I feels wrong including a reference to the Microsoft.VisualBasic Assembly. Is this something that is commonly done, or should I explore further options. The next idea that pops into my mind is exploring this PV function in Reflector.

View 3 Replies

Migrating Winforms Application To ASP.NET?

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

Porting VB 2005 To 2008

Mar 22, 2010

I have the following code in a VB 2005 project that works fine:

Imports System.Text.RegularExpressions.Regex
Do While intIndex >= 0 'Or Not boolMatch
If IsMatch(strTitle, Trim(arrTitle(intIndex)),

[Code].....

View 4 Replies

Porting VB Apps To OS X/Linux?

Dec 29, 2009

I've been wondering about this for a while, but is there actually any free way to port VB.net apps to OS X and Linux? I've searched the web for this and couldn't find anything much.

View 5 Replies

Vb6 Migration - Porting A .bas File To Vb?

Feb 21, 2011

I'm working on some legacy VB5/VB6 code and need to convert a ".bas" file to vb.net. i found several options

Compile the .bas file into a com dll and then reference and use it in my project. (For this I guess I would need vb5 or vb6 which I don't have at my disposal) Copy and paste the contents of the file in to a new module in vb.net and then try solving the errors one by one.The contents of the .bas file reference a particular dll. The .bas file has mostly declarations consts, types, sub's and functions.

What would be the most elegant way of redoing this in vb.net. Is it as simple as option 2.EDIT

I used VS2008 express and ran the code through the upgrade wizard it did the necessary conversion. and the .bas file was converted to .vb. I took that file and decided to rewrite other parts of the code, including some redoing of the converted .vb file. Other questions related to this one are here.

View 3 Replies

References Not Appering In Winforms Application?

Nov 25, 2009

I have a 3 tier applicaiton, winforms, business and data layers.I just pulled the projects out of souce control. My winforms application references business which references data.I added a reference to my business layer and my winforms project is not seeing the reference. "Names or type specified in the Imports . . . doesn't contain any public member or cannot be found . . .

View 1 Replies

C# - How To Get Path To File In Winforms Application

Oct 5, 2011

How can I get the path of a file on my computer or on the local area network.

I would to show a window that allows me to browse the file system when I click a button, and I want to select a file and get the path to the file. How can I do this?

P.S. I'm not looking to upload the file; I just want to get the path.

View 4 Replies

Secure Connection Of .net Winforms Application

Dec 1, 2011

I am developing an .net Winforms application and I need to secure the connection to the sql server 2008 database. I plan to create a webservice as a middle tier that will handle the authentication and that will provide data manipulation. Is there a better way to go with? Does .net have components or tools for that? What is the best technique?

View 2 Replies

Use GridView In A Winforms Application But It Does Not Appear In Toolbox?

Sep 26, 2009

I need to use GridView in a Winforms application but it does not appear in my Toolbox (see attached).

Attached Images VBToolBox.jpg (9.9 KB, 34 views)

View 4 Replies

Winforms - Launch External Application Using Hot Key?

Mar 7, 2011

I have a windows program which is launched after pressing certain key combination (if its already running). Now i want to do this triggering through vb.net code? How can it be done?

View 3 Replies

C# - Language Choices When Porting A Classic Asp App To .NET

Sep 7, 2010

We are looking to port our existing classic ASP application to .NET, but we're unsure of what language to use for the new app. I personally would 'prefer' C#, as I'm more familiar and comfortable with that languages way of doing things, but, the original code is VBScript, so it would possibly be easier to port to VB.NET ... One possible situation I fear would be that, because the code is so similar between the two variants of VB, that we might end up getting stuck on something that is not similar between the two, even though it looks like it would work. A shift to a wholly different language might avoid that kind of situation. Does anyone have any practical examples of this kind of situation? Insights to illuminate the issue with? Do the potential benefits of a complete paradigm shift outweigh the gains from a high degree of 'copy-and-paste-ability' ?

View 9 Replies

Forms :: Toolbar Question - WRT Porting From VB 6?

May 16, 2009

I've got a VB 6 application that I ported over to VS 2005. The application has a toolbar on it. When building it in VB 6, I created all the bitmaps for the toolbar. And they looked just fine.Now I have ported to VS 2005. The toolbar works just fine. But the images in the toolbar look "wrong". The best way to describe them is if you took each bitmap and squeezed it down to about 67% of it's size. So it is missing the detail it used to have. And the smalleer picture still takes up the same amount of space on the toolbar. It is just that each squeezed bitmap now looks like it has a thick, blank pictureframe around it.

View 5 Replies

VS 2008 Porting C# Unchecked Keywords To VB?

Oct 23, 2009

I am trying to decode yEnc data using the component found here:[URL]...It all converts fine, except for Line 173 of Decoder.cs which contains the c# keyword "unchecked".Without using unchecked I get an OverflowException.What is the correct way to implement this in VB?

[Code]...

View 6 Replies

VS 2008 Porting To Win7 FtpRequest?

Apr 13, 2011

I created an application for Windows XP, now it needs to run on Windows 7. I have had some issues to resolve, but rather small ones. I am now stumped on this one... Here is my code block

vb.net
Private Shared Sub RenameFileAfterDownload(ByVal File As String)
Try

[code]....

The code works perfectly for Windows XP, but the ftpRequest does not work in Windows 7 for renaming. That said, the code runs that entire sub becaues WriteToEventLog get's written, but seems to ignore the ftpRequest lines.

View 4 Replies

.net - Window Close Events In A Winforms Application?

Jan 31, 2011

I am looking to prompt the user to save data when they close a form window in a winforms application. I can't figure out how to trigger the prompt to the user, should they click the red box at the top right corner of the form.

My application currently has a boolean flag, that is set to True on textchanged event. So I will only need to check for the boolean value in whatever event is trigger by the red box.

View 3 Replies

Can't Distribute Winforms Application That Writes To Event Log

Feb 3, 2012

My application writes to the event log if there is an error or other status updates.

The application checks to see if there is an event source named "applicationName"and if not, it creates the source (see code below).

This works fine if the user is an administrator.

If the user is not an administrator, an error is thrown when SourceExists is called:

{"The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security."}

In my environment, the typical user is NOT an admin. Therefore, I cannot use the event log in my application.

Is there a way around this, or is the event log effectively useless for distributed applications?

View 9 Replies

Embed HTML Code Into A WinForms Application?

Jul 21, 2010

I've a somewhat unusual feature to implement and I don't know if it can be done without much effort.A WinForms application has a help file (well, not HTML help, but simply a HTML file with a reference sheet). When user presses F1 button a form with a web-browser control in it displays showing this file. The client wants this HTML file to contain buttons/checkboxes which a program should respond to.For example, if a user clicks a HTML button in the help file some value should appear in a textbox on the main form, etc. Is it altogether possible

View 1 Replies

Notified Of Date Change In .NET WinForms Application?

Dec 27, 2010

I would like to specify a function to be called in my VB.Net 2005 WinForms project at midnight when the system date changes. Is this possible?I know I could do this by setting a timer by setting the interval to midnight minus the current time, then after the first tick, setting the interval to 24 hours. I was wondering if there was a cleaner, simpler way.

View 3 Replies

Passing Data From WinForms Application To MVC3

Dec 14, 2011

I am working on an application that has a Winforms and MVC3 Web component. We need to be able upload large files from the desktop to the web. I have tried the various VB 2010 WebClient and FTP FileUpload alternatives but continue to run into permission issues, even though the User-ID and password I supply are the same as those used by an FTP application that successfully copies files to the same MVC3 site. In my efforts to find alternative solutions, I have looked into using WCF which also seems complicated and problematic for this particular application.

The closest I have come to a solution utilizes HttpWebRequest on the Winforms application. The following VB 2010 and C# code (MVC3) successfully passes the Filename and File data to MVC3 (the InputStream contains the references and UrlEncode data, but the class containing the fields for this data are null. (I have also passed just the file data without the filename, and the uploaded file is successfully created from the InputStream - but the method variable is still null). Although I could pick apart the InputStream, I would prefer a more elegant alternative.

VB 2010 Winforms method:
Public Shared Sub FileUpload(ByVal Filepath As String)
Try
Dim Host = System.Configuration.ConfigurationManager.AppSettings("Host")
Dim url As String = Path.Combine(Host, "UI/FileUpload")
Dim request As HttpWebRequest = HttpWebRequest.Create(url)
request.Method = "POST"
[Code] .....

View 2 Replies

WinForms - Clicking Button On 3rd Party Application

Oct 19, 2010

I am launching a 3rd party application from my windows form
System.Diagnostics.Process.Start("C:Program Filesabcabc.exe")
There is a "SAVE" button and a tool bar on the is application. Is it possible to click the button on this application as soon as it is launched or click (Alt + F) on the toolbar programmatically without clicking the mouse or keyboard.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved