Answer Questions
Matt Hollingsworth VS2005 TCP Client/Server Chat example
Does anyone have a functioning VS2005 example of a simple TCP/IP client/server chat program I must admit all of the threading stuff is a bit foreign to me coming from a VB6 background. All of the examples I've been able to find have been for 2002/03 and generate loads of " Cross-thread operation not valid: Control <insert the name of any control on the form> accessed from a thread other than the thread it was ...Show All
Excubator Multiline strings in components
Hello, how can I build a multiline string in a component as the Items-Property of a ListBox-Component Yes. I don't want create a multiline listbox , I want create a multiline string as the Items property of a ListBox . Sorry, the code what you say is for C#, but I need VB code. Then the article that i give ...Show All
MarkH001 Events: why use them instead of member call coupled with DoEvents()?
Hello. I've been reading up on Events, and don't see what they offer that just doing a member call, followed by DoEvents() would not do for you When I indicate an event, the function that indicated it must wait anyway for the event to return control. And DoEvents() would accomplish the same thing of seeing if, for example, the user clicked the 'Cancel' button if I was to call a function, then DoEvents() after it, then checking for cancel button ...Show All
hurf0rd How do I get data from an XML file in VB.NET Express 2005?
How do I get data from an XML file in VB.NET Express 2005 I'm making a program that gets data from an XML file when the user clicks a search button. The collected data would be displayed in text boxes. You need to add a reference to the System.Xml.dll file and then use Imports System.Xml to import the classes for that namespace. Those classes are used to read xml. i have the same problems, i wanna ...Show All
Melvin S. Bernstein Bound Form Dirty
This should be fall off the log simple for a brand new development environment, but... In VS2005 b2 I have a bound windows form. How do I determine if the user has made changes to the data TIA Is it bound to a dataset If so you could check the version property of the row in the dataset. OK- so it isn't simple. I am amazed that such a common need as determining if any change ...Show All
DomDom How Can I split One datagridview column into many cells?
datagrid cells types have no mask type so I have decieded to split One cloumn into 3 ceels One for year , Month and day. How can I do that!! I saw it in other applications .. but I don't know how to do it :( ...Show All
Brad_Dunn '1-dimensional array of String' cannot be converted to '1-dimensional array of Byte' because 'String'
I'm stuck. I am trying to take the string values of 4 form fields and write it to a binary file. Below is my code which errors on the last line per the subject of this post. Please help, and Thank you in advance. ' Create Binary file Dim tmpSel, tmpExcl, tmpExch, tmpSysS As String Dim arrayVal(3) As String If Me.txtSel.Text = Nothing Then MsgBox("Selections can't be blank!" & vbCrLf & vbCrLf & _ ...Show All
Kevinxox setup project can not build
Hi, I am using vs 2003 to build a setup project but got this error message "Could not find file ..., Not enough storage is available to complete this operation." I checked the path of the file, it is correct. After I remove this file from the setup project, I can build it successfully and the result msi file is about 250MB, the file I removed is about 260MB, is there any limitation about the size of the file in setup project or the tot ...Show All
abc23 Type conversion errors.
Hiya, I made a program in Visual studio 2005. Compiles and works OK at home. At work, i have JUST VB 2005 Express Beta 2 installed. The code itself ported OK, no errors. However, during runtime, i get a type conversion error. It's not that i'm converting anything though either. I can't convert string to single. For example... Dim sngSingle as Single sngSingle = "0.5" ' Doesn't work sngSingle = cSng("0.5") Doesn't work. sngSingl ...Show All
He is Cool File Conversion
How can I save .Doc file to .HTML with VB.NET I'm not sure what the 2nd parameter of function SaveAs() should be. I tried and all I got is "Type mismatch" error. What namespace are you trying to use the SaveAs method from Namespace: Microsoft.Office.Interop.Word ...Show All
GrahamM How to hide a Shell command window
I have the below code in a VB Console project. The AppWinStyle function is not hiding the window as expected Module Module1 Sub Main() ' This script uploads a clients gaitScan database to the ftp server Dim sFileName, fso, oFile, sCustNmbr, oExec, ScMD ' get the customer number fso = CreateObject( "Scripting.FileSystemObject" ) If fso.FileExists( "C:\Program Files\App1\Settings\custnumb.txt" ) ...Show All
mayurkotlikar Problems with ADO .NET
Hi, I'm trying to pass a LongVarBinary data type parameter to a dynamic SQL, but it gives me a Syntax error. That is in order to insert a blob data type under Informix DataBase. The code that I'm using is the following: '******************************* dim intValReturn as integer = 0 ...Show All
Deecrypt immed?
In vb 6 I could use the immedaite window to do something like form3.DataGridView1.Width to see the width of a column... then form3.DataGridView1.Width = 800 to set it and see if it looks right.. then I'd write a procedure to set up data grid appearance. How do I do that in vb.net Getting furstrated... Brian (I should also mention just for the sake of completion for whomever else is ...Show All
visiSteve Returning Private Sub Name In Error Message
I have a command button on a form to delete the current record. The corresponding subroutine is called Private Sub cmdDelete_Click(). I'm looking for a way to display "cmdDelete_Click" in an error message if an error is thrown. I want to have the the statment be the same for each subroutine I have so I don't have to hard code the name for each one. Is there a way to return the name of the current subroutine as I desc ...Show All
SatishJ Can't directly dim an instance of a tableadapter 2005
Can't directly dim an instance of a tableadapter I'm creating a sample project much smaller than my whole project to isolate some remaining issues. Naturally I'm copying a great deal of code. However, there have been several anomalies. In my regular project the statement Dim cdt As New ConceptsTableAdapter is accepted. However, in the sample project I am preparing, the same statement gives me the message Type 'ConceptsTableAdap ...Show All
