How To Change C++ .net To Or Vb2008
Oct 21, 2009
int CApp20Dlg::Read_LB(int lb_id, CStringArray* pOutput)
{
CListBox* pLB = (CListBox*) Get_Control(lb_id);
[CODE]..............
I want to change this code over to vb2008 but dont know how to do it.
View 3 Replies
ADVERTISEMENT
Sep 18, 2010
In vb6,I wrote those code: statusbar1.text=Inet1.Open[URL]
In vb2008,it had statusbar,but it hadn't "Inet",I don't know how to change those code. ps:I'm a beginner,maybe this problem it's not a big problem,but I really don't know how to solution this problem,
View 7 Replies
Jan 13, 2009
I need to be able to change a path inside a document ( a config file to a program) to the current directory of the application im creating in VB so the text file looks something like
Quote:
something=234
blabla=io
ServerRoot=C:Server
i need to change c:server
View 2 Replies
Feb 4, 2012
I'm using Visual Studio 2010 / VB / dot net 4.0, and I have a drop-down menu in my left column that switches resource languages for the end user. It reads like this:
--------English ------- <<- Engish is always the default top language option
French |
Spanish |
[code].....
View 2 Replies
Jun 30, 2010
I have inherited support for a program written in VB2008
The problem I have is as follows:
Users have a low screen resolution (company policy) and so can't see the bottom of a particular form.
The bottom of the form has buttons that allow them to navigate between its' four pages so they need to be able to see them. This being the case I need to add a scrollbar to the form.
If I try to drag and drop a vscrollbar from the toolbox it just sits there at runtime (you can slide the button on the toolbar up and down but nothing happens regarding scrolling the page.
All the reading I have done seems to point to forms being given scrollbars in accordance to the AutoScroll, AutoScrollMargin and AutoscrollMinSize properties of the Form itself.
By setting these properties I can get scrollbars to appear in the IDE but they are not there at runtime.
I think I'm probably missing something really obvious here but, so far, have been unable to work out what it is.
View 10 Replies
Mar 2, 2010
I new in vb. Currently im using vb2008 to run a program.Dim notepadID As Integer = Shell("C:\Program Files\Motvik\wwigo\wwigo.exe", AppWinStyle.NormalFocus)This is the code is use but it keeps show "file not found exception was unhandled.
View 2 Replies
Dec 18, 2009
Im trying to switch from VB6 to VB2008/VB2010 and i have managed to convert all my old code to the new. The only thing i cant figure out is how to use the new database system. How can i convert this code to be used in VB2008 ?
Dim vntTemp As Variant
Dim vnDummy As Variant
On Error GoTo Form_LoadError
[Code].....
View 6 Replies
Feb 23, 2010
i was joined newly in the website. And my prob is , we are using Visual Studio 2008 with VB Coding.I want to connect MS Access 2007 Database.i want to display view values in the dropdown list where these values will come through database.when i click on the dropdown list (combobox) the values will come.
[Code]...
View 2 Replies
Jan 12, 2012
I am trying to use LB_ADDITEM and LB_SETDATAITEM in my piece of code to add a string to a listbox on another application's window. But I haven't any luck in getting it to work. Here is a sample of what I got so far:
[Code]....
View 1 Replies
Aug 4, 2009
Im trying to use the library in GNU in VB2008 to generate random number with uniform distribution (actually will also use it for other distributions)...I already added dll under bin file and try to run the following code, but just cant make it work: Public Class Form1 Declare Function gsl_rng_uniform Lib "C:vbuniformuniforminDebuglibgsl.dll" (ByVal x As Double, ByVal y As Double) As Double
[Code]...
View 5 Replies
Aug 21, 2011
I am a VB6 coder and I'm making the move to VB8 / VB.NET.I know how to wait in VB6, but my problem is that I don't know how to wait in VB8/VB.NET. I have a TextBox called textbox2 that contains the number of seconds I want to wait. I used to use wait 60 in VB6, but of course VB2008 is different.
View 5 Replies
Oct 15, 2011
I have a problem with building a project. When I build a project and when I create .exe file, I cannot run it on other computers.There is an error: "The application failed to initialize properly (0x0000135). Click OK to terminate the application.".ca i have any chance to solve this error without installing framework 3.5
View 2 Replies
Dec 22, 2009
I have programmed in VB before (vbexpress 2008) and used "formname.show()" to open and show new forms that I wished to open. I try the exact same code in vb10express(beta) and get errors! Did the code change? I cannot find any information on it if it did... or is it possibly a "betatest error" that needs to be addressed?
View 3 Replies
Jul 20, 2009
I have a problem with building a project. When I build a project and when I create .exe file, I cannot run it on other computers. There is an error: "The application failed to initialize properly (0x0000135). Click OK to terminate the application.". When I install .NET framework on the computer, than there is no this error. Is there any chance to create a file that will run on the other computers without installing the .NET framework?
View 8 Replies
Aug 29, 2011
how to configure the adodc in vb2008? I'm using MySQL Connector Net 6.4.3 for my DB and i don't know how to configure it using adodc control...like what is the connection string and the provider....All I want is to link my DB to a particular textbox to display information.
View 1 Replies
Mar 3, 2009
I would like to make VB2008 program to connect http and get response as string, in PHP I normally use curl how about in VB2008 ?
View 6 Replies
Nov 25, 2010
Public Class Form1
Dim con As New OleDb.OleDbConnection
Dim dprovider, dsource As String
Dim ds As New DataSet
[code]....
The code above can access the database but it refuses to add,update,or delete any records..
View 3 Replies
Nov 25, 2011
Ive recently wrote a custom control which hosts other controls on its surface. These constituent controls are accessed through a collection property in similar vein to a DataGridView's columns. Now I find that whenever I delete the control from the designer, it leaves behind the code for the constituent controls when it should delete them as well just as the DataGridView columns would be deleted when you delete a DataGridView.
I also had similar problems with copying and pasting which were solved by implementing a designer for the main control and overriding the AssociatedComponents property to return the collection so that the designer would treat the components in the collection as children of the main control. This doesn't work when deleting the main control.
For the purposes of experimenting with this, I created a small projects with similar circumstances to focus specifically on the problem without all the baggage that comes with the real thing. I made a master control with a collection property that holds several objects that inherit from component similar to my real project. I created a ControlDesigner for this object as with the real thing. Even so I still cant figure out why deletions dont work.
[Code]...
View 12 Replies
Sep 4, 2009
I am trying to convert a program for VB6 to VB2008. In VB6 I have the code below to load a database field into a variable.
The database = Local MS Access MyDatabase has a table in it called CoInfo which has a field CustID that I need to put in a variable gCustID.
This code works greatin VB6 but I can't for the life of me figure out how to accomplish this in the Visual Basic 2008.
Dim adoCon As New ADODB.Connection
Dim adoRec As New ADODB.Recordset
Dim MyPath
[Code]....
View 1 Replies
Sep 22, 2010
how to write a console application by using nested For.. Next loops to generate the star design as per below picture.star design.JPG
View 6 Replies
Apr 26, 2010
I have developed a s/w using acces and sqlserver 2008 and now trying to make a setup file. How could be the possible way?? I tried in VS2008 software and development. But after installing from the msi file and running the s/w it shows an error "Microsoft.ACE.OLEDB.12.0 provider is not registered
View 1 Replies
Apr 11, 2010
i am going well but am stuck with trying to call a Crystal report 2008 rpt format file from within a button in vb?
View 4 Replies
Aug 30, 2011
Currency Declaration in vb2008.
View 2 Replies
Sep 28, 2009
I'm starting to play around some with VB2008.
In VB6, I would write something like this:
rs.open("SELECT * FROM Contacts", cn1)
strFirstName = rs!FirstName
In VB2008, line 2 does not work. How do get to the fields in the recordset?
View 2 Replies
Jan 10, 2010
I've use the following vb6 code to query a stored procedure on a sql server, querying 2 record sets, this works fine. I've been looking for a VB.Net equillivant but with no success.
Code:
Public Sub Read()
Dim Rtn As Variant, aryParams(1)
Set conn = CreateObject("ADODB.Connection")
[Code]....
View 1 Replies
Jun 22, 2010
whilst trying to debug all projects in vb2008 i get the following error. Anyone got an idea of what I can do to solve this error?
Error 1
Class 'CLSID_CorSymWriter' could not be created: System Error &H80040154&
MusicTrivia
View 3 Replies
Feb 28, 2009
Why my delete button wasn't work. it say "InvalidOperationException was unhandled' at m_daDataAdapter.Update(m_dtContact).
What that means?[font=Arial Black]
Public Class Form1
Private m_cnADONetConnection As New OleDb.OleDbConnection()
Private m_daDataAdapter As OleDb.OleDbDataAdapter
Private m_cbCommandBuilder As OleDb.OleDbCommandBuilder
[code]....
View 2 Replies
Jun 22, 2010
what differences between vb2008 and vb2010.(OOP)
View 3 Replies
Dec 2, 2009
I tried to download in VB2008 express the Visual basic 2008 samples. It dowloads a zip files under Windows/temporary internet files/ When I try to launch the sample I get the message"The project location is not trusted"and it does not load the vb files What should I do ?
View 3 Replies
Jul 8, 2009
A code to visual basic 2008 howe to make a facebook freezer or msn freezer
View 4 Replies