Answer Questions
aaaweb.org Add text to a text box from a module
I'm upgrading a program I wrote in VB6 to VB2005 and am having a problem with updating a text box. I have a module that manages serial port communications. When data is received in the serial port buffer, it should update a text box (txtSerialIn) on a form (frmSerialInOut). Here's the code: Public Sub Handler( ByVal strInMessage As String ) frmSerialInOut.txtSerialIn.Text = strRXData & vbCrLf & frmSerialInOut.txtSerialIn. ...Show All
DaveBost Can't run SnippetEditor.exe
it says, "Unhandled exception has occurred in your application. If you click....will close immediately. "Object reference not set to an instance of an object." Details: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at SnippetEditor.Snippe ...Show All
adisD I know VB.Net but I want to learn the basics of VB6 as quickly as possible
I use VB.Net but I have a requirment to learn the basics of VB6 as quickly as possible. (sorry I m going backward :). I m mostly familiar with VB.Net but not with VB6 Anyideas, thanks thanks a lot Here's a good site to get started with: http://www.profsr.com/vb/vbintro.htm#content There's also a tonne of great content at the VB6 Resource Centre: http://msdn.microsoft.com/vbrun/ Hope that helps, Jonathan Aneja The VB T ...Show All
Dipsy156323 How to change properties dynamically
Hi - I have a problem parsing an object between these two subs below. I keep getting this error: Unable to cast object of Type 'Microsoft.Office.tools.excel.NamedRange' to type 'Microsoft.Interop.Excel.Range'. Void UpdateRangeControl(System.Windows.Forms.Control) What can I do to to make it work. Any help will be much appriciated. Ezero Private Sub Expenseform_TextChanged( ByVal sender As System.Object, ByVal ...Show All
Dan Straw msg error with xp 64 pro
I reloaded my os and still get the same error when I boot DaleWitty wrote: I reloaded my os and still get the same error when I boot my error has nothing to do with visual basic but I am not sure what to contribute it to causes problems with my epson printer and Logic camera I do not see how installing vb will cause errors with your printer or logic camera. What is the error you have ...Show All
chongqing Picturebox change forecolor
Hi!! I'm developing a math (ray tracing) application in VB6, and using .line method to draw between 100 and 100,000 lines in a picturebox. I need some of this lines be painted in a different color. I use picturebox.forecolor=RGB(255,0,0) in runtime but it just won't change the color the lines are painted!! What can I do Thank you, Konstantin. Already tried that with the same result. here ...Show All
volkerm Ping and detecting loss
Hi, I've looked through the ping class and was wondering if there is way to determine the packets sent and received (packet loss) Thanks in advance! Well, yes... Just run the Ping.Send() n times and check its response... Private Sub pingHost( ByVal source As String , ByVal numOfPackages As Integer ) Dim p As New System.Net.NetworkInformation.Ping() Dim pReply As Sy ...Show All
Sossy VB6 to VB>Net Converts
Are there any books that explain conversion between the two languages The biggest problem that I see with any migration tool, VB6->VB.NET or otherwise, is that it won't utilize new features of the environment or new class libraries. Let's say you implemented your own hashtable algorithm in VB6. No migration tool, no matter how smart, is going to say, "Hey, you're using a hashtable. We'll just drop in the System.Collections.Hashtable ...Show All
lichh_2003 Encrypting a file using Windows Explorer cryptography
Hello, Is there a way to encrypt a file using Windows Explorer cryptography through VB .NET 2005 Thanks Hi guys, I found it!!! System.IO.File.Encrypt("c:\test.txt") System.IO.File.Decrypt("c:\test.txt") Thakns anyway!! ...Show All
sharpdotnet2005 Sequence of Execution of Program Statements
I am trying to print out a status message to a text box just prior to loading a large file. The printing to the text box is not occuring prior to the download and I am confused about what I need to do to force the desired sequence of steps. Thanks, Fred Herring Dim b As Integer Dim OFD As New OpenFileDialog OFD.Filter = "Media Files|*.wmv;*.wma;*.avi;*.ram;*.rm;*.mpeg" OFD.ShowDialog() If Not ...Show All
WebGoudarzi URGEN~!! I cannot save data in vb.net
Hi guys, I'm a new vb.net user and trying to add year with the numericUpDown. I used the same coding in other forms, it works. Only this form can't work. The error is pointing to syntax error in INSERT INTO statement. Can anyone help me sql = "INSERT INTO Year VALUES " & "('" & YOB.Value & "'," & "')" Dim cmd As New OleDbCommand(sql, con) ...Show All
Brett H. DataTable Find Row
I need find a Row for check user name in my Logon Form and modify the field Machine in table 'Users'. The error appear : "Table doesn't have a primary key", but i check and the primarykey (user) exists in Sql Table (Users). What happening Dim daUsers As New SqlDataAdapter Dim cbUsers As New SqlCommandBuilder Dim dtUsers As New DataTable daUsers.SelectCommand = New SqlCommand( "SELECT * FROM User ...Show All
Pierre Leclerc Load an Array with a string & convert EBCDIC to ASCII
I have a function that I wrote to convert from EBCDIC to ASCII. Please see below. I'm having a problem loading a string into an array in order to convert each character. When I try to load the array I get the following error: 'Unable to cast object of type "System.String of type System.String[ ]" Why can't I load the array by using: InputArray = FieldContent Code below: Function EBCDIC2ASCII(ByVal FieldContent) ...Show All
xishan shigri How to instance a class in the current project
Hey NG So, the subject says everything - I think. I have a MDI-Application. In one of my ChildForms I have some UserControls. By changing the CheckedEvent of a RadioButton(in the Form), my class enables or disables all TextBoxes of the UserControls. - Therefor I use ReadOnly Property to access the status. But I do need the status also in the UserControls. I don't want to check the RadioButton - I don't think that is the correct way. - Beca ...Show All
kil4h Problem with SQL Connection
Hi, I installed the AdventureWorks database, and can connect with SQL Express Manager or Visual Studio 2005 data tools to this database. The problem is that while writing the follwoing code: Dim connectStringBuilder As New SqlConnectionStringBuilder()connectStringBuilder.DataSource = ".\SQLEXPRESS" connectStringBuilder.InitialCatalog = "AdventureWorks" connectStringBuilder.IntegratedSecurity = True connectStringBuilder.UserInstance ...Show All
