-
- Problem with CreateProcess
by JoeVB
- 1 Replies
- Last post
by JoeVB
- This is a tough one, only for the patient. I am a bit curious myself who can help, I bet not many. It seems by the time I post things, there are no ideas left.
We have an application (written in VB6) that is having some trouble, but just lately. This app is a service and it calls another (worker) app to do certain functions. We use CreateProcess to call the worker app. This code hasn't
-
- Class.ForName() in vb.net?
by Warren LaFrance
- 5 Replies
- Last post
by Warren LaFrance
- Does anyone know the correct approach in vb.net that would produce the same result that class.forname in java does...
static Employee create(String name) {
return (Employee) Class.forName(name).newInstance();
.
.
.
-
- busy waiting -- best approach?
by Steve from adzac
- 4 Replies
- Last post
by Steve from adzac
- Hi,
I have inherited and updated a vb6 app to 2005. The app uses multiple forms to control some external test hardware. The overall structure is something like:
FormMaster()
Call StartTest(A)
Call StartTest(B)
Call StartTest(C)
StartTest(...)
Starts the hardware and starts two timers to get/process data from hardware.
Opens FormTestStatus to display results. The f
-
- StreamReading Resource
by Alastair Q
- 2 Replies
- Last post
by Alastair Q
- Hi there, I have currently got this code which is not working to attempt to read a textfile embedded as a resource:
Code Block
Dim objStreamReader As IO.StreamReader = New IO.StreamReader(My.Resources.Equations)
Dim strLine As String strLine = objStreamReader.ReadLine ListBox1.Items.Add(strLine) While strLine.ToString = "" = False strLine = objStre
-
- How do I copy bitmap data to a buffer?
by Phil Rogers
- 9 Replies
- Last post
by jo0ls
- I have an application that displays some images using PictureBox. There is a requirement to toggle between colour and monochrome or grey-scale versions of the image, so I've created a class derived from PictureBox that contains extra bitmaps that hold the various versions of the image, and then when the user switches between them, I just assign the relevant bitmap to the PictureBox.
When the im
-
- Transferring text to another form with datagridview
by Quantzie
- 1 Replies
- Last post
by Riquel Dong ¨C MSFT
- Hi I am a newbie programmer and I am having problems transferring data from a form to another and into a datagridview. My first form consists of: 3 listboxes (each labled lbox_"") 2 textboxes (txt_mn, txt_mcb [both for display functions only]) 1 button (btn_trans for transferring data to 2nd form) My 2nd form consists of: 1 datagridview (called DataGridView1) 1 text box (called TextBox1
-
- How to determin in VB if a file is open by an other application
by Grabner
- 13 Replies
- Last post
by HappyGene
- I need to determin if a file is still open before i start to read it's content.
How do i do this in Visual Baisc
-
- Currency and Decimal
by TeciTeacher
- 4 Replies
- Last post
by JohnWein
- How do I display significan digits in decimal to represent currency value to only 2 digits below the decimal point as in cents.
My class is doing consol application for a future value calculator.
Thanks in advance
Sub Main()
Dim decInvestment, decInterestRate As Decimal
Dim intYears As Integer
Dim decMaturity As Decimal
Console.Write( "Enter the inv
-
- How to Break on All Errors?
by Michael Cook
- 1 Replies
- Last post
by Matthew Gertz MS
- In Visual Basic 6 under the Options...General tab, there is an option to "Break on All Errors". I've been unable to find a similar setting in Visual Studio 2005. Does something similar exist
-
- how partitioning or splitting an AVIfile using VB.net ?
by DimmuZangetsu
- 1 Replies
- Last post
by Bruno Yu - MSFT
- Hi, how do i to splitting an AVIfile using VB.net , and i wanna play every part of this partitioned file.
in other word how can i write the header of every part ( if i understood the structure of RIFF file, every file should have an header chunk, so all of these parts will lose the header chunk...), i know that i have to create a streamwriter to write in a Textfile, but i don't know how to do i
-
- String.Contains
by Cryo75
- 3 Replies
- Last post
by Cryo75
- Hi all,
I've got a problem with something that should be rather simple!!
I've declared a constant as follows:
Private Const VALID_EXT As String = "ini, rpt, cld, tif, jpg, png"
I then loop through the files of a folder and validate their extension as follows:
For lFile As Long = oFiles.GetLowerBound(0) To oFiles.GetLowerBound(0)
oFile = oFil
-
- do not see korean text with Microsoft Agent Genie
by Tom Cubbins
- 2 Replies
- Last post
by Tom Cubbins
- Hi,
I am using the Microsoft Agent Genie to say some
simple korean, that aspect of the code works well,
but the 'ballon text' is not correct.
what's the problem, should the encoding format
be unicode maybe the encoding should be the double
byte asia variety
has anyone been able to correctly display asian
text in the balloon text with Microsoft Agent Genie
-
- Populate a combobox in a datagrid
by Davids Learning
- 7 Replies
- Last post
by tattoo
- I know it can be done, but I havent found a post on it yet.
How do you populate a combobox already in an existing datagridview
I do have a datagridview with a column that I would like to change to a combobox and give the user a chance to select something from another table.
How do you populate the items list of an existing datagrid from a different table
Then is there issue
-
- After starting 2nd instance of single instance application.... vb2005
by Tech_Prince
- 10 Replies
- Last post
by Tech_Prince
- My application is of Single Instance. After opening the 2nd instance of application, the DoubleClick and MouseDoubleClick event of NotifyIcon (when minimized) gets disabled. How should i prevent it from Disabling
Code Snippet
Private Sub Main_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SizeChanged If Me.WindowState = FormWindowState.Minimized Th
-
- Using text from a textBox
by Brandville
- 7 Replies
- Last post
by Brandville
- Hi,
I am writing a program and need some help in capturing information in a textbox typed by a user. Now, in my previous program the following code worked without a hitch
' The following line passes the value the user enter for PostalCode
Try
Me .CustomersTableAdapter.FillByPostalCode( Me .NorthWind1DataSet.Customers, txtPostcodeTextBox.Text)
Catch ex As System.Exception
-
- comaring two list boxes and displaying difference -Vb.net 2005
by bell52
- 1 Replies
- Last post
by PEng1
- I am new vb.net 2005 user and i really need help. I am trying to compare two list boxes and display the difference in a third list box. I was trying to loop thru list box2 and adding to the listbox1 collection and display the unmatched in listbox3. The column heading of the list boxes are date/action/quantity/price/order #. The key for comparison is the order #.Can somebody give me an idea on this
-
- vb.net vs vb6 pros and cons help
by Jamie LJ
- 10 Replies
- Last post
by SJWhiteley
- Hi there
i am a seasoned vb6 and vb.net developer and where i currently work, they use VB6. Now, we develop a range of office plugins for a client, and they currently use vb6, they also do some other projects with vb6. I want them to change to vb.net
They have asked me for a list of Pros for switching, and also some Cons.
The pros i have are:
.Net is future proofed, VB6 will not be
-
- Refreshing a page
by davidk85
- 5 Replies
- Last post
by davidk85
- Hi Guys,
I need to be able to refresh my page so that added / deleted records are apparent in the controls within my page. I guess i need to call some sort of refresh function when a button is selected
Any Ideas
Many thanks david
-
- change GUI language @ runtime
by sydes141
- 4 Replies
- Last post
by sydes141
- Hi,
How can I a winform to change is display language from user interaction using resx file
Thanks
Sylvain
-
- How Do I Read a Unformatted or Binary File the Was Created from a Big-Endian Machine?
by more FAQ
- 10 Replies
- Last post
by more FAQ
- I read in the integer values from a binary file and then write the integer values to the console. This binary file was ftp to my local PC from a UNIX big-endian machine (for testing purpose, integer values of 1, 2, and 3 are stored in this file). Here is the following code that I used:
Sub Main()
Dim br As New IO.BinaryReader(IO.File.OpenRead( "d:\data\val_integer.bin"
-
- Sharing classes between solution projects
by Antigen
- 12 Replies
- Last post
by Cynthia Joffrion
- I have created a VB.NET project (Project1) in a solution and I would like to share some of its classes with a new project (Project2) I am adding to that solution. If I right click on the target project, Project2, and add existing items, and then use 'link file', I am able to add a link to the desired class files residing in Project1. However when building the solution I find that I get
-
- Does anyone know the right approach: Printing text and Graphics
by AbeAbe
- 1 Replies
- Last post
by Bruno Yu - MSFT
- I have a problem finding the right (general) solution for printing text and graphics.
In vb6 I wrote a general routine to output text and graphics. This was convenient since I only had to write the routine ones (short of a few different initializations for the different "surfaces"). My general routine drew on a supplied "control", like this:
Function DrawAll(Draw2
-
- Functions in computed columns
by DRM55
- 5 Replies
- Last post
by John Oliver (UK)MSP, VSIP
- I am using Visual Studio 2005, coding in VB, and the SQL Server that is included with VS2005. I have a VB module stored in the App_Code folder. In that module are public functions. I want to reference one of those functions in the formula for a computed column in one of the tables in my SQL Server database, but it gives me an error when it tries to validate the formula. How can I find documentatio
-
- Assigning an InteropForm to a Form type.
by Gravy
- 3 Replies
- Last post
by Jonathan Aneja - MSFT
- Hi,
I have created an interop form using the interop forms toolkit 2. It seems to work ok, but when my VB6 code tries to assign a new instance of it to a Form type I get an error.
VB6 Code:
Dim f as Form
set f = new MyIntopForm
etc...
The error I get is Type Mismatch.
Do I have to DIM f as the correct type
Thanks for your help
Graham
-
- Hosting VB .NET User Control in C++ Application
by Lou
- 1 Replies
- Last post
by Bruno Yu - MSFT
- After I create a VB .NET VB6 User Interop control can that control be used in a C++ application. Also, If that control is used as a plug-in to a C++ app, what components are required to be present on the target machine running the C++ app beside the .dll for the user interop control I made