|
Any tool can convert from vb6 code to vb.net.
Any help will be much appreciated.
Clifford
|
|
|
|
|
1. Select the FILE Menu -> OPEN -> PROJECT (or)
Press CTRL + SHIFT + O
2. Now Open Project Dialog Box appeared.
3. In the Dialog Box, Select the Project
(Created In VB6.0 - To be Upgrade to VB.NET) (VB Project File Ex: Project1.vbp).
4. Select OPEN Button.
5. Now a Dialog box appeared entitled : "Visual Basic Upgrade Wizard - Page 1 of 5".
6. In this dialog box, Select the NEXT Button.
7. Select the Option EXE and then select NEXT Button.
8. Give a New Name (D:\Pandian\Project1.NET), Location for VB.NET Solution to be Created.
9. Select the button NEXT, A Confirmation box appeared, Select YES.
10. Select the Button NEXT. Please Wait...... ( Till the Progress bar completed)
11. Press 'CTRL+ALT+L' (or) 'Solution Explorer' on Standard Tool Bar.
12. Within your Solution Explorer(VB.NET), The following items are added.
12.1 _UpgradeReport.htm ( This is Statistics file, Whatever files have been upgraded from VB6.0 to VB.NET)
12.2 AssemblyInfo.vb
12.3 Form1.vb
13. Now Your VB6.0 Project has been Upgraded to VB.NET Solution.
With Regards,
PANDIAN S
pandians@ho.netaccess-india.com
|
|
|
|
|
Hi All,
Is there a way to add (or map) directly from dataset to combobox? I tried to use ComboBox.DataSource = ADataSet , but it doesn't seem to work. The reason that i'm using dataset to map direct to combobox because the data in the database is huge. It's about 20,000 records; and I don't want to use for loop or while loop to loop through and add one by one. If anyone know a way to do it, please help me.
Thank you for helping.
John
|
|
|
|
|
In addition to set DataSource, you have to set DataTextField, DataValueField also. If the DataSet has more than one table you to set the DataMember property also.
|
|
|
|
|
Urgent - HELP!!!!!!!!!!!!!!
How do I populate three (3) different listboxes in a single form - programmatically (vb.net)? I really do not want to use the visual tools.
The items of the listboxes are coming from the database. I can connect to the database and can query the database to the specific tables, but my dilemma is that I can't seem to populate the listboxes.
Do I need to instantiate three different sqladapters and datasets after I connect to the database? Afterwards, how do I map or bind the results to the specific controls. Please provide a simple code.
Thanks.
Jay (Lost in Self-strangulation)
|
|
|
|
|
I'm working on a project Visual Studio and in my
project, I am not able to use .NET dialog boxes (ie. MessageBox.Show,
OpenFileDialog, etc.). I have to use the dialog box code from VB6.
Why is this happening and how can I fix it?
|
|
|
|
|
Joe - D wrote:
MessageBox.Show
MsgBox("My Message")
Joe - D wrote:
OpenFileDialog
Dim openDialog As New OpenFileDialog<br />
openDialog.ShowDialog()
Hope this helps
Tom
|
|
|
|
|
Joe-D
Messagebox and openfiledialog are in the System.Windows.Forms namespace. Make sure it is referenced/imported etc... properly.
The openfiledialog is a control from the toolbox that you could drag onto your form or
Sample from Help
Dim myStream As Stream<br />
Dim openFileDialog1 As New OpenFileDialog()<br />
<br />
openFileDialog1.InitialDirectory = "c:\"<br />
openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"<br />
openFileDialog1.FilterIndex = 2<br />
openFileDialog1.RestoreDirectory = True<br />
<br />
If openFileDialog1.ShowDialog() = DialogResult.OK Then<br />
myStream = openFileDialog1.OpenFile()<br />
If Not (myStream Is Nothing) Then<br />
' Insert code to read the stream here.<br />
myStream.Close()<br />
End If<br />
End If<br />
|
|
|
|
|
I checked what was imported in the project properties and it is show Microsoft.VisualBasic. When I removed this, all of the places where I have had to insert MsgBox became an error. Perfect, but then when I try to replace MsgBox, MessageBox is not recognized. What do I have to Import into the project properties?
|
|
|
|
|
Forget about msgbox. Use MessageBox
In the project references make sure that System.windows.forms is referenced else add it.
|
|
|
|
|
Hi,
My form have a datagrid from ArrayList.
I would like to modify some cells of values using "edit-in-place".
After I press keyup, the new cell value is canceled and show that message: "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: Index Do you want to correct the value ?"
How can I modify a cell value using "edit-in-place" on Datagrid ?
Thanks.
|
|
|
|
|
Hi,
My form have a datagrid from ArrayList.
I would like to modify some cells of values using "edit-in-place".
After I press keyup, the new cell value is canceled and show that message: "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: Index Do you want to correct the value ?"
How can I modify a cell value using "edit-in-place" on Datagrid ?
Thanks.
|
|
|
|
|
Try reading this, you may get some hints
http://www.developer.com/net/vb/article.php/2228761
|
|
|
|
|
Hi! I have a main form that handles several other child forms.The thing is that when i close the main form, and i want to close all of the child forms, it seems that the Main thread doesn't wait for the child forms to terminate.The main form calls Dispose() which destroys the mainUI first than the childs. Is this the correct procedure or do i have to destroy first the child forms and only then the mainUI?
Thanks in advance.
Never say never
|
|
|
|
|
Hi,
- If the Form1 is a MainForm then (Form1 -> Property -> isMdiContainer=True)
- I hope the below code will help U
Private Sub CallForm2(...) Handles MenuItem2.Click
Dim F2 As New Form2()
F2.MdiParent = Me
F2.Show()
End Sub
Private Sub CallForm3(...) Handles MenuItem3.Click
Dim F3 As New Form3()
F3.MdiParent = Me
F3.Show()
End Sub
Private Sub CallExit(...) Handles MenuItem4.Click
Application.ExitThread()
End Sub
With Regards
PANDIAN S
|
|
|
|
|
what functions should i use for a runtime chating program over the network and not over the internet having a security blocking the edit of a file or a database on the server (bypassing writing on a file or a database, i already try that)
10x
|
|
|
|
|
Hi,
I have a Map system (mentioned in the object) that in VB6 is addressed that way:
private mpview as IMapView (an interface)
mpview=axmap.object (where axmap is the control on the form)
The problem with VB.NET is that I don't have the .object property. And if I simply try mpview=axmap I get an invalid cast....
Any idea how to work it around?
Thanks
Briga
|
|
|
|
|
A better bet would be to ask the manufacturer of the control what the correct procedure is for VB.NET. You'll find a very small user base, if any at all, for people with experience with this control.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
If the manufacturer of the VB6 OCX cannot provide you with the NET Interop assemblies needed to use the VB6 OCX in .NET, then what you will have to do is put the Map control in a VB6 UserControl that provides all wrapper functions you need to interact with the child Map control from your NET application. Then you should be able to import the UserControl you created into VB.NET.
You should review your licensing agreement. Most commercial VB6 OCX controls prohibit reverse engineering, and wrapping in another OCX for purposes of redistribution to other developers. Wrapping a 3rd party OCX in your own custom control OCX for use in your own applications is rarely a violation. But you should still check.
Robert
|
|
|
|
|
Thank you Robert for the reply. I did it and it did work, that has been a very good idea. Now I'm struggling with a couple of bitmap pointers but all the rest works properly. Sorry for the late reply but I was away for a while!
Briga
|
|
|
|
|
I have a small problem I want to get the primary key to insert into a another table but the problem is that the only thing is I have an autonumber that gets created and that is the PK and the only other thing that goes into the datebase is the date. any sugestions on how to get the newest autonumber created.... Thanks
I am the one the only king cobra
|
|
|
|
|
kingcobra0128 wrote:
sugestions on how to get the newest autonumber created
SELECT Max(Id) FROM MyTable;
Hope this helps
Tom
|
|
|
|
|
Hey Tom Thanks I figured it out after a while I just had to think which I wasnt doing very well last night around 3:00 am
I am the one and only king cobra
|
|
|
|
|
when ajusting the column width of MSFlexGrid Control with mouse ,how to capture the event?
thanks
|
|
|
|
|
There is no event for that fired by the MSFlexGrid control. The only your going to see is a Click event firing for the entire control, not the column that was resized.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|