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
ADVERTISEMENT
Jul 22, 2011
I want to upgrade MSFlexGrid to .net datagridview,what is equivalent code for these code? With gridview
If .Row > .FixedRows Then
bDoNotEdit = True
.Row = .Row - 1[code]....
View 2 Replies
May 21, 2010
In my application (VB2008),I am using MS flex grid and it was workingfine on 32bit mode. When I tried to compile the same code base in 64 bit ,it crashes the application.
View 2 Replies
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
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
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
Feb 6, 2010
Ihave been looking for two days, and have not been able to place an msflexgrid or an mshflexgrid on my program. Any ideas what I must be missing? I am using vb in vs 2008 pro. Just building a simple windows form application
View 2 Replies
Dec 21, 2011
I just used MsFlex grid In my vb.net project. Its working in XP, but shot showing error in windows 7. error message like dll not found. But msflexgrid dll file included correctly.Still the same problem.
View 1 Replies
Mar 17, 2010
im currently developing a system. it's a tracking system and an alpha list..now currently im using datagrid to view thousands of records in foxpro free table in my vb form, how to export the datagrid into an excel for reporting but there is none..
View 8 Replies
Mar 3, 2012
i have a textbox,flexgrid and a button. this is my problem. when i input data in the textbox, the data will be added to the flexgrid using textmatrix. and if i click the command button. the data on the flexgrid will be registered to the sql table.however, if there's two or more data (different data) on the flexgrid. the data will be registered to the mysql but the data is same with each other.
the input is :
1st row: (3500)
2nd row: (2000)
3rd row: (1000)
but the output (in the sql table) is this.
1st row: (3500)
2nd row: (3500)
3rd row: (3500)
this is my code in the command button.conn.Execute "INSERT INTO tbl_purchaseDetails(Quantity) VALUES('" & gridpr.TextMatrix(gridpr.RowSel, 0) & "')"..BTW i am using navicat to connect my sql.
View 1 Replies
Jan 28, 2010
I have a VB project that is converted from VB6 to VB.NET.In this, I have a MSFlexGrid that is used as an interop compatibiliy. That means it is somewhat converted to .NET, but internally, many of the mechanisms are still from VB6/COM.I need to drag an image from a PictureBox (which is .NET) and drop it on the flexgrid.
This is what I do to initialize the drag:
Private Sub picStartSymbol_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles picStartSymbol.MouseDown
picStartSymbol.DoDragDrop(picStartSymbol.Image, DragDropEffects.Copy)
End Sub
[Code]...
View 1 Replies
Mar 2, 2010
I am using the following code and I am able to create a new WORD Document and create a Table inside it and insert data into it sucessfully from a MSFLEXGRID (just like a datagrid) on my form. I would appreciate if anyone could tell me how to achieve the same but by inserting the data into a specific document saved as ("c:123.doc") with a table already created inside it.
I just don't want to create a new word file everytime and then create a table and then do the insert.I want to keep my 123.doc with a formatted table inside it and all i need is to insert data from the Grid into it.
Dim oWord As Object
Dim oDoc As Object
Dim oTable As Object
Dim oSelection As Object
[code]....
View 2 Replies
Jul 29, 2002
When trying to edit an exisiting or trying to create a new dialog with a MSFlexGrid I get the following error
The ActiveX control "Microsoft FlexGrid Control, version 6.0" could not be instantiated because it requires a design-time license.
Any one know how to get a "design-time license" for the MSFlexGrid control.
View 5 Replies
May 12, 2012
I have a fixed-size pane for displaying MSFlexGrid rows, and, when the number of rows exceeds the pane capacity, a vertical scroll bar is displayed. If the user scolls downward, and selects a lower row for action, I want the display to be restored (approximately) after the grid is reloaded.row selection is maintained explicitly by code: If the action is a change in row data, the successor row will be selected (by code); if the action is row deletion, the preceeding row will be selected (by code). Since the grid must be reloaded following the change, MSFlexGrid will present the first n rows by default. (The grid must be reloaded because the actions may have affected the presentation order.)How can I force a scrolling repositioning after a grid reload? In my imagination I see a sequence somewhat like make-non-visible, reload-grid, set-scroll-position, make-visible, set-new-row-selection. Is something like this easily done?
View 3 Replies
Mar 10, 2012
I'm at the Studio 2008 stage in migrating from VB6 to Studio 2010. My application appears to run OK for the most part, but my MSFlexGrid display's single column is just 8 or 10 characters wide -- it should span the entire grid display (i.e., have the same width as the grid).The Studio 2008-Upgraded code sets several grid properties correctly, but the statement ".ColWidth(0) = .Width" (in the scope of a With block) causes an error. So does the statement ".TextMatrix(0, 0) = string".
Not only are these properties not included in the upgraded control (now identified as AxMSFlexGrid), but some column-related properties are greyed out in the properties list. My grid size was set originally by cursor drag, and the present .Size sub-properties of .Width and .Height are set to the numbers 593 and 329, respectively. (My form has a fixed size and is user-moveable but not user resizable.)
View 6 Replies
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
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
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
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
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
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
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
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
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
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
Jul 22, 2010
I need to update (well, rewrite really) a SMALL VB6 application which uses ADO to access a JET database, to a vb.net app in Visual Studio 2008. My research suggests that I should use LINQ, but it doesn't seem to be possible to connect to JET. If JET is now deprecated, what should I use? Or should I use ADO.NET without LINQ?
Please don't answer SQL Server! - this needs to be an app that end users can install easily in corporate or non-corporate environments, and must not require any ongoing technical maintenance. I started to install SQL Express, but stopped when it required at least 2 system updates, as that will be far too complex for this little app.
View 4 Replies
Jan 12, 2012
I make loads of programs in visual basic, but it happens that my friends that want to try some, have Windows XP or Vista, when I have Windows 7 on the computer where i create them.I tried to launch the application compiled on 7 on their PCs but it just doesn't work. Is there any way to port programs from Windows 7 to other version of Windows? Or just to find a way to make them run?
View 9 Replies
Aug 26, 2009
I am porting Excel VBA to VB.NET. I have a function that takes a selection of data, and it may be one dimensional or two. VBA code is quite fluid about using a variable as either a 1-D or 2-D array, but VB.NET marks it as an error.
Here is the reduced code:
Public Function Stat(ByVal Data As Range) As Object
Dim Y() As Object
[code]....
View 2 Replies
Nov 2, 2009
Using VB.NET 2008. Am using Datagridview in my application, Datagridview should display according to the windows screen size, Before I used vb6
code.
Private Sub Form_Resize()
On Error Resume Next
[CODE]............
Am new to vb.net, How to set a datagridview size according to windows screen size, In Datagridview property itself any option is available or i have to make a code as like vb. If i have to make a code, how to give form_resize in vb.net.
View 1 Replies
Jul 18, 2010
I am developing a project in which i have to access datagridview's value into my application
Now i am able to get the handler of window
i am also get able to handler of datagridview.
i am used findwindow & findwindowex functions
Now i want some guidelines :-
1.How i can access Column Count
2.How i can access row Count
3.How i can access values of datagridview
for listview there are built in class in win32 named as syslistview32
Is there any class for Datagridview?
Or By which Window class handle datagridview?
Or tell any other way to access datagridview values of Third Application By My Application.
View 2 Replies